configure revision c6e579a2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libX11 1.8.9. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594as_awk_strverscmp=' 595 # Use only awk features that work with 7th edition Unix awk (1978). 596 # My, what an old awk you have, Mr. Solaris! 597 END { 598 while (length(v1) && length(v2)) { 599 # Set d1 to be the next thing to compare from v1, and likewise for d2. 600 # Normally this is a single character, but if v1 and v2 contain digits, 601 # compare them as integers and fractions as strverscmp does. 602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 603 # Split v1 and v2 into their leading digit string components d1 and d2, 604 # and advance v1 and v2 past the leading digit strings. 605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 609 if (d1 ~ /^0/) { 610 if (d2 ~ /^0/) { 611 # Compare two fractions. 612 while (d1 ~ /^0/ && d2 ~ /^0/) { 613 d1 = substr(d1, 2); len1-- 614 d2 = substr(d2, 2); len2-- 615 } 616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 617 # The two components differ in length, and the common prefix 618 # contains only leading zeros. Consider the longer to be less. 619 d1 = -len1 620 d2 = -len2 621 } else { 622 # Otherwise, compare as strings. 623 d1 = "x" d1 624 d2 = "x" d2 625 } 626 } else { 627 # A fraction is less than an integer. 628 exit 1 629 } 630 } else { 631 if (d2 ~ /^0/) { 632 # An integer is greater than a fraction. 633 exit 2 634 } else { 635 # Compare two integers. 636 d1 += 0 637 d2 += 0 638 } 639 } 640 } else { 641 # The normal case, without worrying about digits. 642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 644 } 645 if (d1 < d2) exit 1 646 if (d1 > d2) exit 2 647 } 648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 649 # which mishandles some comparisons of empty strings to integers. 650 if (length(v2)) exit 1 651 if (length(v1)) exit 2 652 } 653' 654 655test -n "$DJDIR" || exec 7<&0 </dev/null 656exec 6>&1 657 658# Name of the host. 659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 660# so uname gets run too. 661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663# 664# Initializations. 665# 666ac_default_prefix=/usr/local 667ac_clean_files= 668ac_config_libobj_dir=. 669LIBOBJS= 670cross_compiling=no 671subdirs= 672MFLAGS= 673MAKEFLAGS= 674 675# Identity of this package. 676PACKAGE_NAME='libX11' 677PACKAGE_TARNAME='libX11' 678PACKAGE_VERSION='1.8.9' 679PACKAGE_STRING='libX11 1.8.9' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues' 681PACKAGE_URL='' 682 683ac_unique_file="Makefile.am" 684# Factoring default headers for most tests. 685ac_includes_default="\ 686#include <stddef.h> 687#ifdef HAVE_STDIO_H 688# include <stdio.h> 689#endif 690#ifdef HAVE_STDLIB_H 691# include <stdlib.h> 692#endif 693#ifdef HAVE_STRING_H 694# include <string.h> 695#endif 696#ifdef HAVE_INTTYPES_H 697# include <inttypes.h> 698#endif 699#ifdef HAVE_STDINT_H 700# include <stdint.h> 701#endif 702#ifdef HAVE_STRINGS_H 703# include <strings.h> 704#endif 705#ifdef HAVE_SYS_TYPES_H 706# include <sys/types.h> 707#endif 708#ifdef HAVE_SYS_STAT_H 709# include <sys/stat.h> 710#endif 711#ifdef HAVE_UNISTD_H 712# include <unistd.h> 713#endif" 714 715ac_header_c_list= 716ac_func_c_list= 717enable_year2038=no 718ac_subst_vars='am__EXEEXT_FALSE 719am__EXEEXT_TRUE 720LTLIBOBJS 721XTMALLOC_ZERO_CFLAGS 722XMALLOC_ZERO_CFLAGS 723MALLOC_ZERO_CFLAGS 724XERRORDB 725XKEYSYMDB 726locales 727X11_LOCALEDIR 728XLOCALEDIR 729X11_LOCALELIBDIR 730XLOCALELIBDIR 731X11_LOCALEDATADIR 732XLOCALEDATADIR 733X11_LIBS 734X11_CFLAGS 735X11_LIBDIR 736X11_DATADIR 737MAKE_LINT_LIB_FALSE 738MAKE_LINT_LIB_TRUE 739LINTLIB 740LINT_FALSE 741LINT_TRUE 742LINT_FLAGS 743LINT 744XKBPROTO_REQUIRES 745XKB_FALSE 746XKB_TRUE 747BIGFONT_LIBS 748BIGFONT_CFLAGS 749XLOCALE_FALSE 750XLOCALE_TRUE 751XCMS_FALSE 752XCMS_TRUE 753KEYSYMDEFS 754USE_THREAD_LIBS 755XTHREAD_CFLAGS 756XTHREADLIB 757LAUNCHD 758OS2_FALSE 759OS2_TRUE 760WCHAR32 761LIBOBJS 762XLIB_LOADABLE_I18N_FALSE 763XLIB_LOADABLE_I18N_TRUE 764I18N_MODULE_LIBS 765X11_EXTRA_DEPS 766EXEEXT_FOR_BUILD 767LDFLAGS_FOR_BUILD 768CFLAGS_FOR_BUILD 769CPPFLAGS_FOR_BUILD 770CC_FOR_BUILD 771HAVE_PERL_FALSE 772HAVE_PERL_TRUE 773PERL 774TRADITIONALCPPFLAGS 775RAWCPPFLAGS 776RAWCPP 777CPP 778HAVE_STYLESHEETS_FALSE 779HAVE_STYLESHEETS_TRUE 780XSL_STYLESHEET 781STYLESHEET_SRCDIR 782XORG_SGML_PATH 783HAVE_XSLTPROC_FALSE 784HAVE_XSLTPROC_TRUE 785XSLTPROC 786HAVE_FOP_FALSE 787HAVE_FOP_TRUE 788FOP 789HAVE_XMLTO_FALSE 790HAVE_XMLTO_TRUE 791HAVE_XMLTO_TEXT_FALSE 792HAVE_XMLTO_TEXT_TRUE 793XMLTO 794ENABLE_SPECS_FALSE 795ENABLE_SPECS_TRUE 796MAN_SUBSTS 797XORG_MAN_PAGE 798ADMIN_MAN_DIR 799DRIVER_MAN_DIR 800MISC_MAN_DIR 801FILE_MAN_DIR 802LIB_MAN_DIR 803APP_MAN_DIR 804ADMIN_MAN_SUFFIX 805DRIVER_MAN_SUFFIX 806MISC_MAN_SUFFIX 807FILE_MAN_SUFFIX 808LIB_MAN_SUFFIX 809APP_MAN_SUFFIX 810INSTALL_CMD 811PKG_CONFIG_LIBDIR 812PKG_CONFIG_PATH 813PKG_CONFIG 814CHANGELOG_CMD 815STRICT_CFLAGS 816CWARNFLAGS 817BASE_CFLAGS 818LT_SYS_LIBRARY_PATH 819OTOOL64 820OTOOL 821LIPO 822NMEDIT 823DSYMUTIL 824MANIFEST_TOOL 825RANLIB 826ac_ct_AR 827AR 828DLLTOOL 829OBJDUMP 830FILECMD 831LN_S 832NM 833ac_ct_DUMPBIN 834DUMPBIN 835LD 836FGREP 837EGREP 838GREP 839SED 840LIBTOOL 841AM_BACKSLASH 842AM_DEFAULT_VERBOSITY 843AM_DEFAULT_V 844AM_V 845CSCOPE 846ETAGS 847CTAGS 848am__fastdepCC_FALSE 849am__fastdepCC_TRUE 850CCDEPMODE 851am__nodep 852AMDEPBACKSLASH 853AMDEP_FALSE 854AMDEP_TRUE 855am__include 856DEPDIR 857am__untar 858am__tar 859AMTAR 860am__leading_dot 861SET_MAKE 862AWK 863mkdir_p 864MKDIR_P 865INSTALL_STRIP_PROGRAM 866STRIP 867install_sh 868MAKEINFO 869AUTOHEADER 870AUTOMAKE 871AUTOCONF 872ACLOCAL 873VERSION 874PACKAGE 875CYGPATH_W 876am__isrc 877INSTALL_DATA 878INSTALL_SCRIPT 879INSTALL_PROGRAM 880OBJEXT 881EXEEXT 882ac_ct_CC 883CPPFLAGS 884LDFLAGS 885CFLAGS 886CC 887host_os 888host_vendor 889host_cpu 890host 891build_os 892build_vendor 893build_cpu 894build 895target_alias 896host_alias 897build_alias 898LIBS 899ECHO_T 900ECHO_N 901ECHO_C 902DEFS 903mandir 904localedir 905libdir 906psdir 907pdfdir 908dvidir 909htmldir 910infodir 911docdir 912oldincludedir 913includedir 914runstatedir 915localstatedir 916sharedstatedir 917sysconfdir 918datadir 919datarootdir 920libexecdir 921sbindir 922bindir 923program_transform_name 924prefix 925exec_prefix 926PACKAGE_URL 927PACKAGE_BUGREPORT 928PACKAGE_STRING 929PACKAGE_VERSION 930PACKAGE_TARNAME 931PACKAGE_NAME 932PATH_SEPARATOR 933SHELL 934am__quote' 935ac_subst_files='' 936ac_user_opts=' 937enable_option_checking 938enable_dependency_tracking 939enable_silent_rules 940enable_shared 941enable_static 942with_pic 943enable_fast_install 944with_aix_soname 945with_gnu_ld 946with_sysroot 947enable_libtool_lock 948enable_largefile 949enable_selective_werror 950enable_strict_compilation 951enable_specs 952with_xmlto 953with_fop 954with_xsltproc 955with_perl 956enable_unix_transport 957enable_tcp_transport 958enable_ipv6 959enable_local_transport 960enable_loadable_i18n 961enable_loadable_xcursor 962enable_thread_safety_constructor 963with_launchd 964enable_xthreads 965with_keysymdefdir 966enable_xcms 967enable_xlocale 968enable_xlocaledir 969enable_xf86bigfont 970enable_xkb 971enable_composecache 972with_lint 973enable_lint_library 974with_locale_lib_dir 975enable_malloc0returnsnull 976enable_year2038 977' 978 ac_precious_vars='build_alias 979host_alias 980target_alias 981CC 982CFLAGS 983LDFLAGS 984LIBS 985CPPFLAGS 986LT_SYS_LIBRARY_PATH 987PKG_CONFIG 988PKG_CONFIG_PATH 989PKG_CONFIG_LIBDIR 990XMLTO 991FOP 992XSLTPROC 993CPP 994PERL 995BIGFONT_CFLAGS 996BIGFONT_LIBS 997LINT 998LINT_FLAGS 999X11_CFLAGS 1000X11_LIBS' 1001 1002 1003# Initialize some variables set by options. 1004ac_init_help= 1005ac_init_version=false 1006ac_unrecognized_opts= 1007ac_unrecognized_sep= 1008# The variables have the same names as the options, with 1009# dashes changed to underlines. 1010cache_file=/dev/null 1011exec_prefix=NONE 1012no_create= 1013no_recursion= 1014prefix=NONE 1015program_prefix=NONE 1016program_suffix=NONE 1017program_transform_name=s,x,x, 1018silent= 1019site= 1020srcdir= 1021verbose= 1022x_includes=NONE 1023x_libraries=NONE 1024 1025# Installation directory options. 1026# These are left unexpanded so users can "make install exec_prefix=/foo" 1027# and all the variables that are supposed to be based on exec_prefix 1028# by default will actually change. 1029# Use braces instead of parens because sh, perl, etc. also accept them. 1030# (The list follows the same order as the GNU Coding Standards.) 1031bindir='${exec_prefix}/bin' 1032sbindir='${exec_prefix}/sbin' 1033libexecdir='${exec_prefix}/libexec' 1034datarootdir='${prefix}/share' 1035datadir='${datarootdir}' 1036sysconfdir='${prefix}/etc' 1037sharedstatedir='${prefix}/com' 1038localstatedir='${prefix}/var' 1039runstatedir='${localstatedir}/run' 1040includedir='${prefix}/include' 1041oldincludedir='/usr/include' 1042docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1043infodir='${datarootdir}/info' 1044htmldir='${docdir}' 1045dvidir='${docdir}' 1046pdfdir='${docdir}' 1047psdir='${docdir}' 1048libdir='${exec_prefix}/lib' 1049localedir='${datarootdir}/locale' 1050mandir='${datarootdir}/man' 1051 1052ac_prev= 1053ac_dashdash= 1054for ac_option 1055do 1056 # If the previous option needs an argument, assign it. 1057 if test -n "$ac_prev"; then 1058 eval $ac_prev=\$ac_option 1059 ac_prev= 1060 continue 1061 fi 1062 1063 case $ac_option in 1064 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1065 *=) ac_optarg= ;; 1066 *) ac_optarg=yes ;; 1067 esac 1068 1069 case $ac_dashdash$ac_option in 1070 --) 1071 ac_dashdash=yes ;; 1072 1073 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1074 ac_prev=bindir ;; 1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1076 bindir=$ac_optarg ;; 1077 1078 -build | --build | --buil | --bui | --bu) 1079 ac_prev=build_alias ;; 1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1081 build_alias=$ac_optarg ;; 1082 1083 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1085 ac_prev=cache_file ;; 1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1088 cache_file=$ac_optarg ;; 1089 1090 --config-cache | -C) 1091 cache_file=config.cache ;; 1092 1093 -datadir | --datadir | --datadi | --datad) 1094 ac_prev=datadir ;; 1095 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1096 datadir=$ac_optarg ;; 1097 1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1099 | --dataroo | --dataro | --datar) 1100 ac_prev=datarootdir ;; 1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1103 datarootdir=$ac_optarg ;; 1104 1105 -disable-* | --disable-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid feature name: '$ac_useropt'" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"enable_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval enable_$ac_useropt=no ;; 1120 1121 -docdir | --docdir | --docdi | --doc | --do) 1122 ac_prev=docdir ;; 1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1124 docdir=$ac_optarg ;; 1125 1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1127 ac_prev=dvidir ;; 1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1129 dvidir=$ac_optarg ;; 1130 1131 -enable-* | --enable-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid feature name: '$ac_useropt'" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"enable_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval enable_$ac_useropt=\$ac_optarg ;; 1146 1147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1149 | --exec | --exe | --ex) 1150 ac_prev=exec_prefix ;; 1151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1153 | --exec=* | --exe=* | --ex=*) 1154 exec_prefix=$ac_optarg ;; 1155 1156 -gas | --gas | --ga | --g) 1157 # Obsolete; use --with-gas. 1158 with_gas=yes ;; 1159 1160 -help | --help | --hel | --he | -h) 1161 ac_init_help=long ;; 1162 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1163 ac_init_help=recursive ;; 1164 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1165 ac_init_help=short ;; 1166 1167 -host | --host | --hos | --ho) 1168 ac_prev=host_alias ;; 1169 -host=* | --host=* | --hos=* | --ho=*) 1170 host_alias=$ac_optarg ;; 1171 1172 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1173 ac_prev=htmldir ;; 1174 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1175 | --ht=*) 1176 htmldir=$ac_optarg ;; 1177 1178 -includedir | --includedir | --includedi | --included | --include \ 1179 | --includ | --inclu | --incl | --inc) 1180 ac_prev=includedir ;; 1181 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1182 | --includ=* | --inclu=* | --incl=* | --inc=*) 1183 includedir=$ac_optarg ;; 1184 1185 -infodir | --infodir | --infodi | --infod | --info | --inf) 1186 ac_prev=infodir ;; 1187 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1188 infodir=$ac_optarg ;; 1189 1190 -libdir | --libdir | --libdi | --libd) 1191 ac_prev=libdir ;; 1192 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1193 libdir=$ac_optarg ;; 1194 1195 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1196 | --libexe | --libex | --libe) 1197 ac_prev=libexecdir ;; 1198 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1199 | --libexe=* | --libex=* | --libe=*) 1200 libexecdir=$ac_optarg ;; 1201 1202 -localedir | --localedir | --localedi | --localed | --locale) 1203 ac_prev=localedir ;; 1204 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1205 localedir=$ac_optarg ;; 1206 1207 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1208 | --localstate | --localstat | --localsta | --localst | --locals) 1209 ac_prev=localstatedir ;; 1210 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1211 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1212 localstatedir=$ac_optarg ;; 1213 1214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1215 ac_prev=mandir ;; 1216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1217 mandir=$ac_optarg ;; 1218 1219 -nfp | --nfp | --nf) 1220 # Obsolete; use --without-fp. 1221 with_fp=no ;; 1222 1223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1224 | --no-cr | --no-c | -n) 1225 no_create=yes ;; 1226 1227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1229 no_recursion=yes ;; 1230 1231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1233 | --oldin | --oldi | --old | --ol | --o) 1234 ac_prev=oldincludedir ;; 1235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1238 oldincludedir=$ac_optarg ;; 1239 1240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1241 ac_prev=prefix ;; 1242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1243 prefix=$ac_optarg ;; 1244 1245 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1246 | --program-pre | --program-pr | --program-p) 1247 ac_prev=program_prefix ;; 1248 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1250 program_prefix=$ac_optarg ;; 1251 1252 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1253 | --program-suf | --program-su | --program-s) 1254 ac_prev=program_suffix ;; 1255 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1257 program_suffix=$ac_optarg ;; 1258 1259 -program-transform-name | --program-transform-name \ 1260 | --program-transform-nam | --program-transform-na \ 1261 | --program-transform-n | --program-transform- \ 1262 | --program-transform | --program-transfor \ 1263 | --program-transfo | --program-transf \ 1264 | --program-trans | --program-tran \ 1265 | --progr-tra | --program-tr | --program-t) 1266 ac_prev=program_transform_name ;; 1267 -program-transform-name=* | --program-transform-name=* \ 1268 | --program-transform-nam=* | --program-transform-na=* \ 1269 | --program-transform-n=* | --program-transform-=* \ 1270 | --program-transform=* | --program-transfor=* \ 1271 | --program-transfo=* | --program-transf=* \ 1272 | --program-trans=* | --program-tran=* \ 1273 | --progr-tra=* | --program-tr=* | --program-t=*) 1274 program_transform_name=$ac_optarg ;; 1275 1276 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1277 ac_prev=pdfdir ;; 1278 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1279 pdfdir=$ac_optarg ;; 1280 1281 -psdir | --psdir | --psdi | --psd | --ps) 1282 ac_prev=psdir ;; 1283 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1284 psdir=$ac_optarg ;; 1285 1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1287 | -silent | --silent | --silen | --sile | --sil) 1288 silent=yes ;; 1289 1290 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1291 | --runstate | --runstat | --runsta | --runst | --runs \ 1292 | --run | --ru | --r) 1293 ac_prev=runstatedir ;; 1294 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1295 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1296 | --run=* | --ru=* | --r=*) 1297 runstatedir=$ac_optarg ;; 1298 1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1300 ac_prev=sbindir ;; 1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1302 | --sbi=* | --sb=*) 1303 sbindir=$ac_optarg ;; 1304 1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1307 | --sharedst | --shareds | --shared | --share | --shar \ 1308 | --sha | --sh) 1309 ac_prev=sharedstatedir ;; 1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1313 | --sha=* | --sh=*) 1314 sharedstatedir=$ac_optarg ;; 1315 1316 -site | --site | --sit) 1317 ac_prev=site ;; 1318 -site=* | --site=* | --sit=*) 1319 site=$ac_optarg ;; 1320 1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1322 ac_prev=srcdir ;; 1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1324 srcdir=$ac_optarg ;; 1325 1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1327 | --syscon | --sysco | --sysc | --sys | --sy) 1328 ac_prev=sysconfdir ;; 1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1331 sysconfdir=$ac_optarg ;; 1332 1333 -target | --target | --targe | --targ | --tar | --ta | --t) 1334 ac_prev=target_alias ;; 1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1336 target_alias=$ac_optarg ;; 1337 1338 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1339 verbose=yes ;; 1340 1341 -version | --version | --versio | --versi | --vers | -V) 1342 ac_init_version=: ;; 1343 1344 -with-* | --with-*) 1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1346 # Reject names that are not valid shell variable names. 1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1348 as_fn_error $? "invalid package name: '$ac_useropt'" 1349 ac_useropt_orig=$ac_useropt 1350 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1351 case $ac_user_opts in 1352 *" 1353"with_$ac_useropt" 1354"*) ;; 1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1356 ac_unrecognized_sep=', ';; 1357 esac 1358 eval with_$ac_useropt=\$ac_optarg ;; 1359 1360 -without-* | --without-*) 1361 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1364 as_fn_error $? "invalid package name: '$ac_useropt'" 1365 ac_useropt_orig=$ac_useropt 1366 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1367 case $ac_user_opts in 1368 *" 1369"with_$ac_useropt" 1370"*) ;; 1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1372 ac_unrecognized_sep=', ';; 1373 esac 1374 eval with_$ac_useropt=no ;; 1375 1376 --x) 1377 # Obsolete; use --with-x. 1378 with_x=yes ;; 1379 1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1381 | --x-incl | --x-inc | --x-in | --x-i) 1382 ac_prev=x_includes ;; 1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1385 x_includes=$ac_optarg ;; 1386 1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1389 ac_prev=x_libraries ;; 1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1392 x_libraries=$ac_optarg ;; 1393 1394 -*) as_fn_error $? "unrecognized option: '$ac_option' 1395Try '$0 --help' for more information" 1396 ;; 1397 1398 *=*) 1399 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1400 # Reject names that are not valid shell variable names. 1401 case $ac_envvar in #( 1402 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1403 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1404 esac 1405 eval $ac_envvar=\$ac_optarg 1406 export $ac_envvar ;; 1407 1408 *) 1409 # FIXME: should be removed in autoconf 3.0. 1410 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1412 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1413 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1414 ;; 1415 1416 esac 1417done 1418 1419if test -n "$ac_prev"; then 1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1421 as_fn_error $? "missing argument to $ac_option" 1422fi 1423 1424if test -n "$ac_unrecognized_opts"; then 1425 case $enable_option_checking in 1426 no) ;; 1427 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1428 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1429 esac 1430fi 1431 1432# Check all directory arguments for consistency. 1433for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1434 datadir sysconfdir sharedstatedir localstatedir includedir \ 1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1436 libdir localedir mandir runstatedir 1437do 1438 eval ac_val=\$$ac_var 1439 # Remove trailing slashes. 1440 case $ac_val in 1441 */ ) 1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1443 eval $ac_var=\$ac_val;; 1444 esac 1445 # Be sure to have absolute directory names. 1446 case $ac_val in 1447 [\\/$]* | ?:[\\/]* ) continue;; 1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1449 esac 1450 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1451done 1452 1453# There might be people who depend on the old broken behavior: '$host' 1454# used to hold the argument of --host etc. 1455# FIXME: To remove some day. 1456build=$build_alias 1457host=$host_alias 1458target=$target_alias 1459 1460# FIXME: To remove some day. 1461if test "x$host_alias" != x; then 1462 if test "x$build_alias" = x; then 1463 cross_compiling=maybe 1464 elif test "x$build_alias" != "x$host_alias"; then 1465 cross_compiling=yes 1466 fi 1467fi 1468 1469ac_tool_prefix= 1470test -n "$host_alias" && ac_tool_prefix=$host_alias- 1471 1472test "$silent" = yes && exec 6>/dev/null 1473 1474 1475ac_pwd=`pwd` && test -n "$ac_pwd" && 1476ac_ls_di=`ls -di .` && 1477ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1478 as_fn_error $? "working directory cannot be determined" 1479test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1480 as_fn_error $? "pwd does not report name of working directory" 1481 1482 1483# Find the source files, if location was not specified. 1484if test -z "$srcdir"; then 1485 ac_srcdir_defaulted=yes 1486 # Try the directory containing this script, then the parent directory. 1487 ac_confdir=`$as_dirname -- "$as_myself" || 1488$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1489 X"$as_myself" : 'X\(//\)[^/]' \| \ 1490 X"$as_myself" : 'X\(//\)$' \| \ 1491 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1492printf "%s\n" X"$as_myself" | 1493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1494 s//\1/ 1495 q 1496 } 1497 /^X\(\/\/\)[^/].*/{ 1498 s//\1/ 1499 q 1500 } 1501 /^X\(\/\/\)$/{ 1502 s//\1/ 1503 q 1504 } 1505 /^X\(\/\).*/{ 1506 s//\1/ 1507 q 1508 } 1509 s/.*/./; q'` 1510 srcdir=$ac_confdir 1511 if test ! -r "$srcdir/$ac_unique_file"; then 1512 srcdir=.. 1513 fi 1514else 1515 ac_srcdir_defaulted=no 1516fi 1517if test ! -r "$srcdir/$ac_unique_file"; then 1518 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1519 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1520fi 1521ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1522ac_abs_confdir=`( 1523 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1524 pwd)` 1525# When building in place, set srcdir=. 1526if test "$ac_abs_confdir" = "$ac_pwd"; then 1527 srcdir=. 1528fi 1529# Remove unnecessary trailing slashes from srcdir. 1530# Double slashes in file names in object file debugging info 1531# mess up M-x gdb in Emacs. 1532case $srcdir in 1533*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1534esac 1535for ac_var in $ac_precious_vars; do 1536 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1537 eval ac_env_${ac_var}_value=\$${ac_var} 1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1539 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1540done 1541 1542# 1543# Report the --help message. 1544# 1545if test "$ac_init_help" = "long"; then 1546 # Omit some internal or obsolete options to make the list less imposing. 1547 # This message is too long to be a string in the A/UX 3.1 sh. 1548 cat <<_ACEOF 1549'configure' configures libX11 1.8.9 to adapt to many kinds of systems. 1550 1551Usage: $0 [OPTION]... [VAR=VALUE]... 1552 1553To assign environment variables (e.g., CC, CFLAGS...), specify them as 1554VAR=VALUE. See below for descriptions of some of the useful variables. 1555 1556Defaults for the options are specified in brackets. 1557 1558Configuration: 1559 -h, --help display this help and exit 1560 --help=short display options specific to this package 1561 --help=recursive display the short help of all the included packages 1562 -V, --version display version information and exit 1563 -q, --quiet, --silent do not print 'checking ...' messages 1564 --cache-file=FILE cache test results in FILE [disabled] 1565 -C, --config-cache alias for '--cache-file=config.cache' 1566 -n, --no-create do not create output files 1567 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1568 1569Installation directories: 1570 --prefix=PREFIX install architecture-independent files in PREFIX 1571 [$ac_default_prefix] 1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1573 [PREFIX] 1574 1575By default, 'make install' will install all the files in 1576'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1577an installation prefix other than '$ac_default_prefix' using '--prefix', 1578for instance '--prefix=\$HOME'. 1579 1580For better control, use the options below. 1581 1582Fine tuning of the installation directories: 1583 --bindir=DIR user executables [EPREFIX/bin] 1584 --sbindir=DIR system admin executables [EPREFIX/sbin] 1585 --libexecdir=DIR program executables [EPREFIX/libexec] 1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1589 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1590 --libdir=DIR object code libraries [EPREFIX/lib] 1591 --includedir=DIR C header files [PREFIX/include] 1592 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1595 --infodir=DIR info documentation [DATAROOTDIR/info] 1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1597 --mandir=DIR man documentation [DATAROOTDIR/man] 1598 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1599 --htmldir=DIR html documentation [DOCDIR] 1600 --dvidir=DIR dvi documentation [DOCDIR] 1601 --pdfdir=DIR pdf documentation [DOCDIR] 1602 --psdir=DIR ps documentation [DOCDIR] 1603_ACEOF 1604 1605 cat <<\_ACEOF 1606 1607Program names: 1608 --program-prefix=PREFIX prepend PREFIX to installed program names 1609 --program-suffix=SUFFIX append SUFFIX to installed program names 1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1611 1612System types: 1613 --build=BUILD configure for building on BUILD [guessed] 1614 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1615_ACEOF 1616fi 1617 1618if test -n "$ac_init_help"; then 1619 case $ac_init_help in 1620 short | recursive ) echo "Configuration of libX11 1.8.9:";; 1621 esac 1622 cat <<\_ACEOF 1623 1624Optional Features: 1625 --disable-option-checking ignore unrecognized --enable/--with options 1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1628 --enable-dependency-tracking 1629 do not reject slow dependency extractors 1630 --disable-dependency-tracking 1631 speeds up one-time build 1632 --enable-silent-rules less verbose build output (undo: "make V=1") 1633 --disable-silent-rules verbose build output (undo: "make V=0") 1634 --enable-shared[=PKGS] build shared libraries [default=yes] 1635 --enable-static[=PKGS] build static libraries [default=yes] 1636 --enable-fast-install[=PKGS] 1637 optimize for fast installation [default=yes] 1638 --disable-libtool-lock avoid locking (might break parallel builds) 1639 --disable-largefile omit support for large files 1640 --disable-selective-werror 1641 Turn off selective compiler errors. (default: 1642 enabled) 1643 --enable-strict-compilation 1644 Enable all warnings from compiler and make them 1645 errors (default: disabled) 1646 --enable-specs Enable building the specs (default: yes) 1647 --enable-unix-transport Enable UNIX domain socket transport 1648 --enable-tcp-transport Enable TCP socket transport 1649 --enable-ipv6 Enable IPv6 support 1650 --enable-local-transport 1651 Enable os-specific local transport 1652 --enable-loadable-i18n Controls loadable i18n module support 1653 --disable-loadable-xcursor 1654 Controls loadable xcursor library support 1655 --disable-thread-safety-constructor 1656 Controls mandatory thread safety support 1657 --disable-xthreads Disable Xlib support for Multithreading 1658 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1659 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1660 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1661 --disable-xf86bigfont Disable XF86BigFont extension support 1662 --disable-xkb Disable XKB support *EXPERIMENTAL* 1663 --disable-composecache Disable compose table cache support 1664 --enable-lint-library Create lint library (default: disabled) 1665 --enable-malloc0returnsnull 1666 malloc(0) returns NULL (default: auto) 1667 --enable-year2038 support timestamps after 2038 1668 1669Optional Packages: 1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1672 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1673 both] 1674 --with-aix-soname=aix|svr4|both 1675 shared library versioning (aka "SONAME") variant to 1676 provide on AIX, [default=aix]. 1677 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1678 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1679 compiler's sysroot if not specified). 1680 --with-xmlto Use xmlto to regenerate documentation (default: 1681 auto) 1682 --with-fop Use fop to regenerate documentation (default: no) 1683 --with-xsltproc Use xsltproc for the transformation of XML documents 1684 (default: auto) 1685 --with-perl Use perl for extracting information from files 1686 (default: auto) 1687 --with-launchd Build with support for Apple's launchd (default: 1688 auto) 1689 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1690 include dir) 1691 --with-lint Use a lint-style source code checker (default: 1692 disabled) 1693 --with-locale-lib-dir=DIR 1694 Directory where locale libraries files are installed 1695 (default: $libdir/X11/locale) 1696 1697Some influential environment variables: 1698 CC C compiler command 1699 CFLAGS C compiler flags 1700 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1701 nonstandard directory <lib dir> 1702 LIBS libraries to pass to the linker, e.g. -l<library> 1703 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1704 you have headers in a nonstandard directory <include dir> 1705 LT_SYS_LIBRARY_PATH 1706 User-defined run-time library search path. 1707 PKG_CONFIG path to pkg-config utility 1708 PKG_CONFIG_PATH 1709 directories to add to pkg-config's search path 1710 PKG_CONFIG_LIBDIR 1711 path overriding pkg-config's built-in search path 1712 XMLTO Path to xmlto command 1713 FOP Path to fop command 1714 XSLTPROC Path to xsltproc command 1715 CPP C preprocessor 1716 PERL Path to perl command 1717 BIGFONT_CFLAGS 1718 C compiler flags for BIGFONT, overriding pkg-config 1719 BIGFONT_LIBS 1720 linker flags for BIGFONT, overriding pkg-config 1721 LINT Path to a lint-style command 1722 LINT_FLAGS Flags for the lint-style command 1723 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1724 X11_LIBS linker flags for X11, overriding pkg-config 1725 1726Use these variables to override the choices made by 'configure' or to help 1727it to find libraries and programs with nonstandard names/locations. 1728 1729Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>. 1730_ACEOF 1731ac_status=$? 1732fi 1733 1734if test "$ac_init_help" = "recursive"; then 1735 # If there are subdirs, report their specific --help. 1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1737 test -d "$ac_dir" || 1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1739 continue 1740 ac_builddir=. 1741 1742case "$ac_dir" in 1743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1744*) 1745 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1746 # A ".." for each directory in $ac_dir_suffix. 1747 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1748 case $ac_top_builddir_sub in 1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1751 esac ;; 1752esac 1753ac_abs_top_builddir=$ac_pwd 1754ac_abs_builddir=$ac_pwd$ac_dir_suffix 1755# for backward compatibility: 1756ac_top_builddir=$ac_top_build_prefix 1757 1758case $srcdir in 1759 .) # We are building in place. 1760 ac_srcdir=. 1761 ac_top_srcdir=$ac_top_builddir_sub 1762 ac_abs_top_srcdir=$ac_pwd ;; 1763 [\\/]* | ?:[\\/]* ) # Absolute name. 1764 ac_srcdir=$srcdir$ac_dir_suffix; 1765 ac_top_srcdir=$srcdir 1766 ac_abs_top_srcdir=$srcdir ;; 1767 *) # Relative name. 1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1769 ac_top_srcdir=$ac_top_build_prefix$srcdir 1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1771esac 1772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1773 1774 cd "$ac_dir" || { ac_status=$?; continue; } 1775 # Check for configure.gnu first; this name is used for a wrapper for 1776 # Metaconfig's "Configure" on case-insensitive file systems. 1777 if test -f "$ac_srcdir/configure.gnu"; then 1778 echo && 1779 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1780 elif test -f "$ac_srcdir/configure"; then 1781 echo && 1782 $SHELL "$ac_srcdir/configure" --help=recursive 1783 else 1784 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1785 fi || ac_status=$? 1786 cd "$ac_pwd" || { ac_status=$?; break; } 1787 done 1788fi 1789 1790test -n "$ac_init_help" && exit $ac_status 1791if $ac_init_version; then 1792 cat <<\_ACEOF 1793libX11 configure 1.8.9 1794generated by GNU Autoconf 2.72 1795 1796Copyright (C) 2023 Free Software Foundation, Inc. 1797This configure script is free software; the Free Software Foundation 1798gives unlimited permission to copy, distribute and modify it. 1799_ACEOF 1800 exit 1801fi 1802 1803## ------------------------ ## 1804## Autoconf initialization. ## 1805## ------------------------ ## 1806 1807# ac_fn_c_try_compile LINENO 1808# -------------------------- 1809# Try to compile conftest.$ac_ext, and return whether this succeeded. 1810ac_fn_c_try_compile () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 rm -f conftest.$ac_objext conftest.beam 1814 if { { ac_try="$ac_compile" 1815case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818esac 1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820printf "%s\n" "$ac_try_echo"; } >&5 1821 (eval "$ac_compile") 2>conftest.err 1822 ac_status=$? 1823 if test -s conftest.err; then 1824 grep -v '^ *+' conftest.err >conftest.er1 1825 cat conftest.er1 >&5 1826 mv -f conftest.er1 conftest.err 1827 fi 1828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1829 test $ac_status = 0; } && { 1830 test -z "$ac_c_werror_flag" || 1831 test ! -s conftest.err 1832 } && test -s conftest.$ac_objext 1833then : 1834 ac_retval=0 1835else case e in #( 1836 e) printf "%s\n" "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=1 ;; 1840esac 1841fi 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_c_try_compile 1846 1847# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1848# ------------------------------------------------------- 1849# Tests whether HEADER exists and can be compiled using the include files in 1850# INCLUDES, setting the cache variable VAR accordingly. 1851ac_fn_c_check_header_compile () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1855printf %s "checking for $2... " >&6; } 1856if eval test \${$3+y} 1857then : 1858 printf %s "(cached) " >&6 1859else case e in #( 1860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862$4 1863#include <$2> 1864_ACEOF 1865if ac_fn_c_try_compile "$LINENO" 1866then : 1867 eval "$3=yes" 1868else case e in #( 1869 e) eval "$3=no" ;; 1870esac 1871fi 1872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1873esac 1874fi 1875eval ac_res=\$$3 1876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1877printf "%s\n" "$ac_res" >&6; } 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 1880} # ac_fn_c_check_header_compile 1881 1882# ac_fn_c_try_link LINENO 1883# ----------------------- 1884# Try to link conftest.$ac_ext, and return whether this succeeded. 1885ac_fn_c_try_link () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1889 if { { ac_try="$ac_link" 1890case "(($ac_try" in 1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1892 *) ac_try_echo=$ac_try;; 1893esac 1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1895printf "%s\n" "$ac_try_echo"; } >&5 1896 (eval "$ac_link") 2>conftest.err 1897 ac_status=$? 1898 if test -s conftest.err; then 1899 grep -v '^ *+' conftest.err >conftest.er1 1900 cat conftest.er1 >&5 1901 mv -f conftest.er1 conftest.err 1902 fi 1903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1904 test $ac_status = 0; } && { 1905 test -z "$ac_c_werror_flag" || 1906 test ! -s conftest.err 1907 } && test -s conftest$ac_exeext && { 1908 test "$cross_compiling" = yes || 1909 test -x conftest$ac_exeext 1910 } 1911then : 1912 ac_retval=0 1913else case e in #( 1914 e) printf "%s\n" "$as_me: failed program was:" >&5 1915sed 's/^/| /' conftest.$ac_ext >&5 1916 1917 ac_retval=1 ;; 1918esac 1919fi 1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1922 # interfere with the next link command; also delete a directory that is 1923 # left behind by Apple's compiler. We do this before executing the actions. 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_c_try_link 1929 1930# ac_fn_c_check_func LINENO FUNC VAR 1931# ---------------------------------- 1932# Tests whether FUNC exists, setting the cache variable VAR accordingly 1933ac_fn_c_check_func () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937printf %s "checking for $2... " >&6; } 1938if eval test \${$3+y} 1939then : 1940 printf %s "(cached) " >&6 1941else case e in #( 1942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1946#define $2 innocuous_$2 1947 1948/* System header to define __stub macros and hopefully few prototypes, 1949 which can conflict with char $2 (void); below. */ 1950 1951#include <limits.h> 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (void); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main (void) 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO" 1977then : 1978 eval "$3=yes" 1979else case e in #( 1980 e) eval "$3=no" ;; 1981esac 1982fi 1983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1984 conftest$ac_exeext conftest.$ac_ext ;; 1985esac 1986fi 1987eval ac_res=\$$3 1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1989printf "%s\n" "$ac_res" >&6; } 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1991 1992} # ac_fn_c_check_func 1993 1994# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1995# ------------------------------------------------------------------ 1996# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1997# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1998ac_fn_check_decl () 1999{ 2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 as_decl_name=`echo $2|sed 's/ *(.*//'` 2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2003printf %s "checking whether $as_decl_name is declared... " >&6; } 2004if eval test \${$3+y} 2005then : 2006 printf %s "(cached) " >&6 2007else case e in #( 2008 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2009 eval ac_save_FLAGS=\$$6 2010 as_fn_append $6 " $5" 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014int 2015main (void) 2016{ 2017#ifndef $as_decl_name 2018#ifdef __cplusplus 2019 (void) $as_decl_use; 2020#else 2021 (void) $as_decl_name; 2022#endif 2023#endif 2024 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO" 2030then : 2031 eval "$3=yes" 2032else case e in #( 2033 e) eval "$3=no" ;; 2034esac 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2037 eval $6=\$ac_save_FLAGS 2038 ;; 2039esac 2040fi 2041eval ac_res=\$$3 2042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2043printf "%s\n" "$ac_res" >&6; } 2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2045 2046} # ac_fn_check_decl 2047 2048# ac_fn_c_try_cpp LINENO 2049# ---------------------- 2050# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2051ac_fn_c_try_cpp () 2052{ 2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2054 if { { ac_try="$ac_cpp conftest.$ac_ext" 2055case "(($ac_try" in 2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2057 *) ac_try_echo=$ac_try;; 2058esac 2059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2060printf "%s\n" "$ac_try_echo"; } >&5 2061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2062 ac_status=$? 2063 if test -s conftest.err; then 2064 grep -v '^ *+' conftest.err >conftest.er1 2065 cat conftest.er1 >&5 2066 mv -f conftest.er1 conftest.err 2067 fi 2068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2069 test $ac_status = 0; } > conftest.i && { 2070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2071 test ! -s conftest.err 2072 } 2073then : 2074 ac_retval=0 2075else case e in #( 2076 e) printf "%s\n" "$as_me: failed program was:" >&5 2077sed 's/^/| /' conftest.$ac_ext >&5 2078 2079 ac_retval=1 ;; 2080esac 2081fi 2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2083 as_fn_set_status $ac_retval 2084 2085} # ac_fn_c_try_cpp 2086 2087# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2088# ---------------------------------------------------- 2089# Tries to find if the field MEMBER exists in type AGGR, after including 2090# INCLUDES, setting cache variable VAR accordingly. 2091ac_fn_c_check_member () 2092{ 2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2095printf %s "checking for $2.$3... " >&6; } 2096if eval test \${$4+y} 2097then : 2098 printf %s "(cached) " >&6 2099else case e in #( 2100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101/* end confdefs.h. */ 2102$5 2103int 2104main (void) 2105{ 2106static $2 ac_aggr; 2107if (ac_aggr.$3) 2108return 0; 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113if ac_fn_c_try_compile "$LINENO" 2114then : 2115 eval "$4=yes" 2116else case e in #( 2117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$5 2120int 2121main (void) 2122{ 2123static $2 ac_aggr; 2124if (sizeof ac_aggr.$3) 2125return 0; 2126 ; 2127 return 0; 2128} 2129_ACEOF 2130if ac_fn_c_try_compile "$LINENO" 2131then : 2132 eval "$4=yes" 2133else case e in #( 2134 e) eval "$4=no" ;; 2135esac 2136fi 2137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2138esac 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2141esac 2142fi 2143eval ac_res=\$$4 2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2145printf "%s\n" "$ac_res" >&6; } 2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2147 2148} # ac_fn_c_check_member 2149 2150# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2151# ------------------------------------------- 2152# Tests whether TYPE exists after having included INCLUDES, setting cache 2153# variable VAR accordingly. 2154ac_fn_c_check_type () 2155{ 2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2158printf %s "checking for $2... " >&6; } 2159if eval test \${$3+y} 2160then : 2161 printf %s "(cached) " >&6 2162else case e in #( 2163 e) eval "$3=no" 2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2165/* end confdefs.h. */ 2166$4 2167int 2168main (void) 2169{ 2170if (sizeof ($2)) 2171 return 0; 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO" 2177then : 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181int 2182main (void) 2183{ 2184if (sizeof (($2))) 2185 return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO" 2191then : 2192 2193else case e in #( 2194 e) eval "$3=yes" ;; 2195esac 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2200esac 2201fi 2202eval ac_res=\$$3 2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2204printf "%s\n" "$ac_res" >&6; } 2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2206 2207} # ac_fn_c_check_type 2208 2209# ac_fn_c_try_run LINENO 2210# ---------------------- 2211# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2212# executables *can* be run. 2213ac_fn_c_try_run () 2214{ 2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2216 if { { ac_try="$ac_link" 2217case "(($ac_try" in 2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2219 *) ac_try_echo=$ac_try;; 2220esac 2221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2222printf "%s\n" "$ac_try_echo"; } >&5 2223 (eval "$ac_link") 2>&5 2224 ac_status=$? 2225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2227 { { case "(($ac_try" in 2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2229 *) ac_try_echo=$ac_try;; 2230esac 2231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2232printf "%s\n" "$ac_try_echo"; } >&5 2233 (eval "$ac_try") 2>&5 2234 ac_status=$? 2235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2236 test $ac_status = 0; }; } 2237then : 2238 ac_retval=0 2239else case e in #( 2240 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2241 printf "%s\n" "$as_me: failed program was:" >&5 2242sed 's/^/| /' conftest.$ac_ext >&5 2243 2244 ac_retval=$ac_status ;; 2245esac 2246fi 2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2249 as_fn_set_status $ac_retval 2250 2251} # ac_fn_c_try_run 2252ac_configure_args_raw= 2253for ac_arg 2254do 2255 case $ac_arg in 2256 *\'*) 2257 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2258 esac 2259 as_fn_append ac_configure_args_raw " '$ac_arg'" 2260done 2261 2262case $ac_configure_args_raw in 2263 *$as_nl*) 2264 ac_safe_unquote= ;; 2265 *) 2266 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2267 ac_unsafe_a="$ac_unsafe_z#~" 2268 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2269 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2270esac 2271 2272cat >config.log <<_ACEOF 2273This file contains any messages produced by compilers while 2274running configure, to aid debugging if configure makes a mistake. 2275 2276It was created by libX11 $as_me 1.8.9, which was 2277generated by GNU Autoconf 2.72. Invocation command line was 2278 2279 $ $0$ac_configure_args_raw 2280 2281_ACEOF 2282exec 5>>config.log 2283{ 2284cat <<_ASUNAME 2285## --------- ## 2286## Platform. ## 2287## --------- ## 2288 2289hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2290uname -m = `(uname -m) 2>/dev/null || echo unknown` 2291uname -r = `(uname -r) 2>/dev/null || echo unknown` 2292uname -s = `(uname -s) 2>/dev/null || echo unknown` 2293uname -v = `(uname -v) 2>/dev/null || echo unknown` 2294 2295/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2296/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2297 2298/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2299/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2300/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2301/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2302/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2303/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2304/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2305 2306_ASUNAME 2307 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 case $as_dir in #((( 2313 '') as_dir=./ ;; 2314 */) ;; 2315 *) as_dir=$as_dir/ ;; 2316 esac 2317 printf "%s\n" "PATH: $as_dir" 2318 done 2319IFS=$as_save_IFS 2320 2321} >&5 2322 2323cat >&5 <<_ACEOF 2324 2325 2326## ----------- ## 2327## Core tests. ## 2328## ----------- ## 2329 2330_ACEOF 2331 2332 2333# Keep a trace of the command line. 2334# Strip out --no-create and --no-recursion so they do not pile up. 2335# Strip out --silent because we don't want to record it for future runs. 2336# Also quote any args containing shell meta-characters. 2337# Make two passes to allow for proper duplicate-argument suppression. 2338ac_configure_args= 2339ac_configure_args0= 2340ac_configure_args1= 2341ac_must_keep_next=false 2342for ac_pass in 1 2 2343do 2344 for ac_arg 2345 do 2346 case $ac_arg in 2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2349 | -silent | --silent | --silen | --sile | --sil) 2350 continue ;; 2351 *\'*) 2352 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2353 esac 2354 case $ac_pass in 2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2356 2) 2357 as_fn_append ac_configure_args1 " '$ac_arg'" 2358 if test $ac_must_keep_next = true; then 2359 ac_must_keep_next=false # Got value, back to normal. 2360 else 2361 case $ac_arg in 2362 *=* | --config-cache | -C | -disable-* | --disable-* \ 2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2365 | -with-* | --with-* | -without-* | --without-* | --x) 2366 case "$ac_configure_args0 " in 2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2368 esac 2369 ;; 2370 -* ) ac_must_keep_next=true ;; 2371 esac 2372 fi 2373 as_fn_append ac_configure_args " '$ac_arg'" 2374 ;; 2375 esac 2376 done 2377done 2378{ ac_configure_args0=; unset ac_configure_args0;} 2379{ ac_configure_args1=; unset ac_configure_args1;} 2380 2381# When interrupted or exit'd, cleanup temporary files, and complete 2382# config.log. We remove comments because anyway the quotes in there 2383# would cause problems or look ugly. 2384# WARNING: Use '\'' to represent an apostrophe within the trap. 2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2386trap 'exit_status=$? 2387 # Sanitize IFS. 2388 IFS=" "" $as_nl" 2389 # Save into config.log some information that might help in debugging. 2390 { 2391 echo 2392 2393 printf "%s\n" "## ---------------- ## 2394## Cache variables. ## 2395## ---------------- ##" 2396 echo 2397 # The following way of writing the cache mishandles newlines in values, 2398( 2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2400 eval ac_val=\$$ac_var 2401 case $ac_val in #( 2402 *${as_nl}*) 2403 case $ac_var in #( 2404 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2405printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2406 esac 2407 case $ac_var in #( 2408 _ | IFS | as_nl) ;; #( 2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2410 *) { eval $ac_var=; unset $ac_var;} ;; 2411 esac ;; 2412 esac 2413 done 2414 (set) 2>&1 | 2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2416 *${as_nl}ac_space=\ *) 2417 sed -n \ 2418 "s/'\''/'\''\\\\'\'''\''/g; 2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2420 ;; #( 2421 *) 2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2423 ;; 2424 esac | 2425 sort 2426) 2427 echo 2428 2429 printf "%s\n" "## ----------------- ## 2430## Output variables. ## 2431## ----------------- ##" 2432 echo 2433 for ac_var in $ac_subst_vars 2434 do 2435 eval ac_val=\$$ac_var 2436 case $ac_val in 2437 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2438 esac 2439 printf "%s\n" "$ac_var='\''$ac_val'\''" 2440 done | sort 2441 echo 2442 2443 if test -n "$ac_subst_files"; then 2444 printf "%s\n" "## ------------------- ## 2445## File substitutions. ## 2446## ------------------- ##" 2447 echo 2448 for ac_var in $ac_subst_files 2449 do 2450 eval ac_val=\$$ac_var 2451 case $ac_val in 2452 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2453 esac 2454 printf "%s\n" "$ac_var='\''$ac_val'\''" 2455 done | sort 2456 echo 2457 fi 2458 2459 if test -s confdefs.h; then 2460 printf "%s\n" "## ----------- ## 2461## confdefs.h. ## 2462## ----------- ##" 2463 echo 2464 cat confdefs.h 2465 echo 2466 fi 2467 test "$ac_signal" != 0 && 2468 printf "%s\n" "$as_me: caught signal $ac_signal" 2469 printf "%s\n" "$as_me: exit $exit_status" 2470 } >&5 2471 rm -f core *.core core.conftest.* && 2472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2473 exit $exit_status 2474' 0 2475for ac_signal in 1 2 13 15; do 2476 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2477done 2478ac_signal=0 2479 2480# confdefs.h avoids OS command line length limits that DEFS can exceed. 2481rm -f -r conftest* confdefs.h 2482 2483printf "%s\n" "/* confdefs.h */" > confdefs.h 2484 2485# Predefined preprocessor variables. 2486 2487printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2488 2489printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2490 2491printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2492 2493printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2494 2495printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2496 2497printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2498 2499 2500# Let the site file select an alternate cache file if it wants to. 2501# Prefer an explicitly selected file to automatically selected ones. 2502if test -n "$CONFIG_SITE"; then 2503 ac_site_files="$CONFIG_SITE" 2504elif test "x$prefix" != xNONE; then 2505 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2506else 2507 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2508fi 2509 2510for ac_site_file in $ac_site_files 2511do 2512 case $ac_site_file in #( 2513 */*) : 2514 ;; #( 2515 *) : 2516 ac_site_file=./$ac_site_file ;; 2517esac 2518 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2520printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2521 sed 's/^/| /' "$ac_site_file" >&5 2522 . "$ac_site_file" \ 2523 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2524printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2525as_fn_error $? "failed to load site script $ac_site_file 2526See 'config.log' for more details" "$LINENO" 5; } 2527 fi 2528done 2529 2530if test -r "$cache_file"; then 2531 # Some versions of bash will fail to source /dev/null (special files 2532 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2533 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2535printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2536 case $cache_file in 2537 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2538 *) . "./$cache_file";; 2539 esac 2540 fi 2541else 2542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2543printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2544 >$cache_file 2545fi 2546 2547as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2548# Test code for whether the C compiler supports C89 (global declarations) 2549ac_c_conftest_c89_globals=' 2550/* Does the compiler advertise C89 conformance? 2551 Do not test the value of __STDC__, because some compilers set it to 0 2552 while being otherwise adequately conformant. */ 2553#if !defined __STDC__ 2554# error "Compiler does not advertise C89 conformance" 2555#endif 2556 2557#include <stddef.h> 2558#include <stdarg.h> 2559struct stat; 2560/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2561struct buf { int x; }; 2562struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2563static char *e (char **p, int i) 2564{ 2565 return p[i]; 2566} 2567static char *f (char * (*g) (char **, int), char **p, ...) 2568{ 2569 char *s; 2570 va_list v; 2571 va_start (v,p); 2572 s = g (p, va_arg (v,int)); 2573 va_end (v); 2574 return s; 2575} 2576 2577/* C89 style stringification. */ 2578#define noexpand_stringify(a) #a 2579const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2580 2581/* C89 style token pasting. Exercises some of the corner cases that 2582 e.g. old MSVC gets wrong, but not very hard. */ 2583#define noexpand_concat(a,b) a##b 2584#define expand_concat(a,b) noexpand_concat(a,b) 2585extern int vA; 2586extern int vbee; 2587#define aye A 2588#define bee B 2589int *pvA = &expand_concat(v,aye); 2590int *pvbee = &noexpand_concat(v,bee); 2591 2592/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2593 function prototypes and stuff, but not \xHH hex character constants. 2594 These do not provoke an error unfortunately, instead are silently treated 2595 as an "x". The following induces an error, until -std is added to get 2596 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2597 array size at least. It is necessary to write \x00 == 0 to get something 2598 that is true only with -std. */ 2599int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2600 2601/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2602 inside strings and character constants. */ 2603#define FOO(x) '\''x'\'' 2604int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2605 2606int test (int i, double x); 2607struct s1 {int (*f) (int a);}; 2608struct s2 {int (*f) (double a);}; 2609int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2610 int, int);' 2611 2612# Test code for whether the C compiler supports C89 (body of main). 2613ac_c_conftest_c89_main=' 2614ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2615' 2616 2617# Test code for whether the C compiler supports C99 (global declarations) 2618ac_c_conftest_c99_globals=' 2619/* Does the compiler advertise C99 conformance? */ 2620#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2621# error "Compiler does not advertise C99 conformance" 2622#endif 2623 2624// See if C++-style comments work. 2625 2626#include <stdbool.h> 2627extern int puts (const char *); 2628extern int printf (const char *, ...); 2629extern int dprintf (int, const char *, ...); 2630extern void *malloc (size_t); 2631extern void free (void *); 2632 2633// Check varargs macros. These examples are taken from C99 6.10.3.5. 2634// dprintf is used instead of fprintf to avoid needing to declare 2635// FILE and stderr. 2636#define debug(...) dprintf (2, __VA_ARGS__) 2637#define showlist(...) puts (#__VA_ARGS__) 2638#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2639static void 2640test_varargs_macros (void) 2641{ 2642 int x = 1234; 2643 int y = 5678; 2644 debug ("Flag"); 2645 debug ("X = %d\n", x); 2646 showlist (The first, second, and third items.); 2647 report (x>y, "x is %d but y is %d", x, y); 2648} 2649 2650// Check long long types. 2651#define BIG64 18446744073709551615ull 2652#define BIG32 4294967295ul 2653#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2654#if !BIG_OK 2655 #error "your preprocessor is broken" 2656#endif 2657#if BIG_OK 2658#else 2659 #error "your preprocessor is broken" 2660#endif 2661static long long int bignum = -9223372036854775807LL; 2662static unsigned long long int ubignum = BIG64; 2663 2664struct incomplete_array 2665{ 2666 int datasize; 2667 double data[]; 2668}; 2669 2670struct named_init { 2671 int number; 2672 const wchar_t *name; 2673 double average; 2674}; 2675 2676typedef const char *ccp; 2677 2678static inline int 2679test_restrict (ccp restrict text) 2680{ 2681 // Iterate through items via the restricted pointer. 2682 // Also check for declarations in for loops. 2683 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2684 continue; 2685 return 0; 2686} 2687 2688// Check varargs and va_copy. 2689static bool 2690test_varargs (const char *format, ...) 2691{ 2692 va_list args; 2693 va_start (args, format); 2694 va_list args_copy; 2695 va_copy (args_copy, args); 2696 2697 const char *str = ""; 2698 int number = 0; 2699 float fnumber = 0; 2700 2701 while (*format) 2702 { 2703 switch (*format++) 2704 { 2705 case '\''s'\'': // string 2706 str = va_arg (args_copy, const char *); 2707 break; 2708 case '\''d'\'': // int 2709 number = va_arg (args_copy, int); 2710 break; 2711 case '\''f'\'': // float 2712 fnumber = va_arg (args_copy, double); 2713 break; 2714 default: 2715 break; 2716 } 2717 } 2718 va_end (args_copy); 2719 va_end (args); 2720 2721 return *str && number && fnumber; 2722} 2723' 2724 2725# Test code for whether the C compiler supports C99 (body of main). 2726ac_c_conftest_c99_main=' 2727 // Check bool. 2728 _Bool success = false; 2729 success |= (argc != 0); 2730 2731 // Check restrict. 2732 if (test_restrict ("String literal") == 0) 2733 success = true; 2734 char *restrict newvar = "Another string"; 2735 2736 // Check varargs. 2737 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2738 test_varargs_macros (); 2739 2740 // Check flexible array members. 2741 struct incomplete_array *ia = 2742 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2743 ia->datasize = 10; 2744 for (int i = 0; i < ia->datasize; ++i) 2745 ia->data[i] = i * 1.234; 2746 // Work around memory leak warnings. 2747 free (ia); 2748 2749 // Check named initializers. 2750 struct named_init ni = { 2751 .number = 34, 2752 .name = L"Test wide string", 2753 .average = 543.34343, 2754 }; 2755 2756 ni.number = 58; 2757 2758 int dynamic_array[ni.number]; 2759 dynamic_array[0] = argv[0][0]; 2760 dynamic_array[ni.number - 1] = 543; 2761 2762 // work around unused variable warnings 2763 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2764 || dynamic_array[ni.number - 1] != 543); 2765' 2766 2767# Test code for whether the C compiler supports C11 (global declarations) 2768ac_c_conftest_c11_globals=' 2769/* Does the compiler advertise C11 conformance? */ 2770#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2771# error "Compiler does not advertise C11 conformance" 2772#endif 2773 2774// Check _Alignas. 2775char _Alignas (double) aligned_as_double; 2776char _Alignas (0) no_special_alignment; 2777extern char aligned_as_int; 2778char _Alignas (0) _Alignas (int) aligned_as_int; 2779 2780// Check _Alignof. 2781enum 2782{ 2783 int_alignment = _Alignof (int), 2784 int_array_alignment = _Alignof (int[100]), 2785 char_alignment = _Alignof (char) 2786}; 2787_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2788 2789// Check _Noreturn. 2790int _Noreturn does_not_return (void) { for (;;) continue; } 2791 2792// Check _Static_assert. 2793struct test_static_assert 2794{ 2795 int x; 2796 _Static_assert (sizeof (int) <= sizeof (long int), 2797 "_Static_assert does not work in struct"); 2798 long int y; 2799}; 2800 2801// Check UTF-8 literals. 2802#define u8 syntax error! 2803char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2804 2805// Check duplicate typedefs. 2806typedef long *long_ptr; 2807typedef long int *long_ptr; 2808typedef long_ptr long_ptr; 2809 2810// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2811struct anonymous 2812{ 2813 union { 2814 struct { int i; int j; }; 2815 struct { int k; long int l; } w; 2816 }; 2817 int m; 2818} v1; 2819' 2820 2821# Test code for whether the C compiler supports C11 (body of main). 2822ac_c_conftest_c11_main=' 2823 _Static_assert ((offsetof (struct anonymous, i) 2824 == offsetof (struct anonymous, w.k)), 2825 "Anonymous union alignment botch"); 2826 v1.i = 2; 2827 v1.w.k = 5; 2828 ok |= v1.i != 5; 2829' 2830 2831# Test code for whether the C compiler supports C11 (complete). 2832ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2833${ac_c_conftest_c99_globals} 2834${ac_c_conftest_c11_globals} 2835 2836int 2837main (int argc, char **argv) 2838{ 2839 int ok = 0; 2840 ${ac_c_conftest_c89_main} 2841 ${ac_c_conftest_c99_main} 2842 ${ac_c_conftest_c11_main} 2843 return ok; 2844} 2845" 2846 2847# Test code for whether the C compiler supports C99 (complete). 2848ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2849${ac_c_conftest_c99_globals} 2850 2851int 2852main (int argc, char **argv) 2853{ 2854 int ok = 0; 2855 ${ac_c_conftest_c89_main} 2856 ${ac_c_conftest_c99_main} 2857 return ok; 2858} 2859" 2860 2861# Test code for whether the C compiler supports C89 (complete). 2862ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2863 2864int 2865main (int argc, char **argv) 2866{ 2867 int ok = 0; 2868 ${ac_c_conftest_c89_main} 2869 return ok; 2870} 2871" 2872 2873as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2874as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2875as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2876as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2877as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2878as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2879as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2880as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2881as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2882as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2883as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2884as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2885 2886# Auxiliary files required by this configure script. 2887ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub" 2888 2889# Locations in which to look for auxiliary files. 2890ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2891 2892# Search for a directory containing all of the required auxiliary files, 2893# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2894# If we don't find one directory that contains all the files we need, 2895# we report the set of missing files from the *first* directory in 2896# $ac_aux_dir_candidates and give up. 2897ac_missing_aux_files="" 2898ac_first_candidate=: 2899printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901as_found=false 2902for as_dir in $ac_aux_dir_candidates 2903do 2904 IFS=$as_save_IFS 2905 case $as_dir in #((( 2906 '') as_dir=./ ;; 2907 */) ;; 2908 *) as_dir=$as_dir/ ;; 2909 esac 2910 as_found=: 2911 2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2913 ac_aux_dir_found=yes 2914 ac_install_sh= 2915 for ac_aux in $ac_aux_files 2916 do 2917 # As a special case, if "install-sh" is required, that requirement 2918 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2919 # and $ac_install_sh is set appropriately for whichever one is found. 2920 if test x"$ac_aux" = x"install-sh" 2921 then 2922 if test -f "${as_dir}install-sh"; then 2923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2924 ac_install_sh="${as_dir}install-sh -c" 2925 elif test -f "${as_dir}install.sh"; then 2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2927 ac_install_sh="${as_dir}install.sh -c" 2928 elif test -f "${as_dir}shtool"; then 2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2930 ac_install_sh="${as_dir}shtool install -c" 2931 else 2932 ac_aux_dir_found=no 2933 if $ac_first_candidate; then 2934 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2935 else 2936 break 2937 fi 2938 fi 2939 else 2940 if test -f "${as_dir}${ac_aux}"; then 2941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2942 else 2943 ac_aux_dir_found=no 2944 if $ac_first_candidate; then 2945 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2946 else 2947 break 2948 fi 2949 fi 2950 fi 2951 done 2952 if test "$ac_aux_dir_found" = yes; then 2953 ac_aux_dir="$as_dir" 2954 break 2955 fi 2956 ac_first_candidate=false 2957 2958 as_found=false 2959done 2960IFS=$as_save_IFS 2961if $as_found 2962then : 2963 2964else case e in #( 2965 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2966esac 2967fi 2968 2969 2970# These three variables are undocumented and unsupported, 2971# and are intended to be withdrawn in a future Autoconf release. 2972# They can cause serious problems if a builder's source tree is in a directory 2973# whose full name contains unusual characters. 2974if test -f "${ac_aux_dir}config.guess"; then 2975 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2976fi 2977if test -f "${ac_aux_dir}config.sub"; then 2978 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2979fi 2980if test -f "$ac_aux_dir/configure"; then 2981 ac_configure="$SHELL ${ac_aux_dir}configure" 2982fi 2983 2984# Check that the precious variables saved in the cache have kept the same 2985# value. 2986ac_cache_corrupted=false 2987for ac_var in $ac_precious_vars; do 2988 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2989 eval ac_new_set=\$ac_env_${ac_var}_set 2990 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2991 eval ac_new_val=\$ac_env_${ac_var}_value 2992 case $ac_old_set,$ac_new_set in 2993 set,) 2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2995printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2996 ac_cache_corrupted=: ;; 2997 ,set) 2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2999printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3000 ac_cache_corrupted=: ;; 3001 ,);; 3002 *) 3003 if test "x$ac_old_val" != "x$ac_new_val"; then 3004 # differences in whitespace do not lead to failure. 3005 ac_old_val_w=`echo x $ac_old_val` 3006 ac_new_val_w=`echo x $ac_new_val` 3007 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3009printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3010 ac_cache_corrupted=: 3011 else 3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3013printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3014 eval $ac_var=\$ac_old_val 3015 fi 3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3017printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3019printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3020 fi;; 3021 esac 3022 # Pass precious variables to config.status. 3023 if test "$ac_new_set" = set; then 3024 case $ac_new_val in 3025 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3026 *) ac_arg=$ac_var=$ac_new_val ;; 3027 esac 3028 case " $ac_configure_args " in 3029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3030 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3031 esac 3032 fi 3033done 3034if $ac_cache_corrupted; then 3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3036printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3038printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3039 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3040 and start over" "$LINENO" 5 3041fi 3042## -------------------- ## 3043## Main body of script. ## 3044## -------------------- ## 3045 3046ac_ext=c 3047ac_cpp='$CPP $CPPFLAGS' 3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3050ac_compiler_gnu=$ac_cv_c_compiler_gnu 3051 3052 3053 3054ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 3055 3056 3057 3058 3059 3060 # Make sure we can run config.sub. 3061$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3062 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3063 3064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3065printf %s "checking build system type... " >&6; } 3066if test ${ac_cv_build+y} 3067then : 3068 printf %s "(cached) " >&6 3069else case e in #( 3070 e) ac_build_alias=$build_alias 3071test "x$ac_build_alias" = x && 3072 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3073test "x$ac_build_alias" = x && 3074 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3075ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3076 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3077 ;; 3078esac 3079fi 3080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3081printf "%s\n" "$ac_cv_build" >&6; } 3082case $ac_cv_build in 3083*-*-*) ;; 3084*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3085esac 3086build=$ac_cv_build 3087ac_save_IFS=$IFS; IFS='-' 3088set x $ac_cv_build 3089shift 3090build_cpu=$1 3091build_vendor=$2 3092shift; shift 3093# Remember, the first character of IFS is used to create $*, 3094# except with old shells: 3095build_os=$* 3096IFS=$ac_save_IFS 3097case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3098 3099 3100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3101printf %s "checking host system type... " >&6; } 3102if test ${ac_cv_host+y} 3103then : 3104 printf %s "(cached) " >&6 3105else case e in #( 3106 e) if test "x$host_alias" = x; then 3107 ac_cv_host=$ac_cv_build 3108else 3109 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3110 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3111fi 3112 ;; 3113esac 3114fi 3115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3116printf "%s\n" "$ac_cv_host" >&6; } 3117case $ac_cv_host in 3118*-*-*) ;; 3119*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3120esac 3121host=$ac_cv_host 3122ac_save_IFS=$IFS; IFS='-' 3123set x $ac_cv_host 3124shift 3125host_cpu=$1 3126host_vendor=$2 3127shift; shift 3128# Remember, the first character of IFS is used to create $*, 3129# except with old shells: 3130host_os=$* 3131IFS=$ac_save_IFS 3132case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3133 3134 3135# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3136# Must be called before any macros that run the compiler (like LT_INIT) 3137# to avoid autoconf errors. 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148# Expand $ac_aux_dir to an absolute path. 3149am_aux_dir=`cd "$ac_aux_dir" && pwd` 3150 3151ac_ext=c 3152ac_cpp='$CPP $CPPFLAGS' 3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156if test -n "$ac_tool_prefix"; then 3157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3158set dummy ${ac_tool_prefix}gcc; ac_word=$2 3159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160printf %s "checking for $ac_word... " >&6; } 3161if test ${ac_cv_prog_CC+y} 3162then : 3163 printf %s "(cached) " >&6 3164else case e in #( 3165 e) if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 case $as_dir in #((( 3173 '') as_dir=./ ;; 3174 */) ;; 3175 *) as_dir=$as_dir/ ;; 3176 esac 3177 for ac_exec_ext in '' $ac_executable_extensions; do 3178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3179 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3181 break 2 3182 fi 3183done 3184 done 3185IFS=$as_save_IFS 3186 3187fi ;; 3188esac 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193printf "%s\n" "$CC" >&6; } 3194else 3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196printf "%s\n" "no" >&6; } 3197fi 3198 3199 3200fi 3201if test -z "$ac_cv_prog_CC"; then 3202 ac_ct_CC=$CC 3203 # Extract the first word of "gcc", so it can be a program name with args. 3204set dummy gcc; ac_word=$2 3205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206printf %s "checking for $ac_word... " >&6; } 3207if test ${ac_cv_prog_ac_ct_CC+y} 3208then : 3209 printf %s "(cached) " >&6 3210else case e in #( 3211 e) if test -n "$ac_ct_CC"; then 3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3213else 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 case $as_dir in #((( 3219 '') as_dir=./ ;; 3220 */) ;; 3221 *) as_dir=$as_dir/ ;; 3222 esac 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3225 ac_cv_prog_ac_ct_CC="gcc" 3226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233fi ;; 3234esac 3235fi 3236ac_ct_CC=$ac_cv_prog_ac_ct_CC 3237if test -n "$ac_ct_CC"; then 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3239printf "%s\n" "$ac_ct_CC" >&6; } 3240else 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242printf "%s\n" "no" >&6; } 3243fi 3244 3245 if test "x$ac_ct_CC" = x; then 3246 CC="" 3247 else 3248 case $cross_compiling:$ac_tool_warned in 3249yes:) 3250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3252ac_tool_warned=yes ;; 3253esac 3254 CC=$ac_ct_CC 3255 fi 3256else 3257 CC="$ac_cv_prog_CC" 3258fi 3259 3260if test -z "$CC"; then 3261 if test -n "$ac_tool_prefix"; then 3262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3263set dummy ${ac_tool_prefix}cc; ac_word=$2 3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265printf %s "checking for $ac_word... " >&6; } 3266if test ${ac_cv_prog_CC+y} 3267then : 3268 printf %s "(cached) " >&6 3269else case e in #( 3270 e) if test -n "$CC"; then 3271 ac_cv_prog_CC="$CC" # Let the user override the test. 3272else 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 case $as_dir in #((( 3278 '') as_dir=./ ;; 3279 */) ;; 3280 *) as_dir=$as_dir/ ;; 3281 esac 3282 for ac_exec_ext in '' $ac_executable_extensions; do 3283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3284 ac_cv_prog_CC="${ac_tool_prefix}cc" 3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3286 break 2 3287 fi 3288done 3289 done 3290IFS=$as_save_IFS 3291 3292fi ;; 3293esac 3294fi 3295CC=$ac_cv_prog_CC 3296if test -n "$CC"; then 3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3298printf "%s\n" "$CC" >&6; } 3299else 3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301printf "%s\n" "no" >&6; } 3302fi 3303 3304 3305 fi 3306fi 3307if test -z "$CC"; then 3308 # Extract the first word of "cc", so it can be a program name with args. 3309set dummy cc; ac_word=$2 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311printf %s "checking for $ac_word... " >&6; } 3312if test ${ac_cv_prog_CC+y} 3313then : 3314 printf %s "(cached) " >&6 3315else case e in #( 3316 e) if test -n "$CC"; then 3317 ac_cv_prog_CC="$CC" # Let the user override the test. 3318else 3319 ac_prog_rejected=no 3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321for as_dir in $PATH 3322do 3323 IFS=$as_save_IFS 3324 case $as_dir in #((( 3325 '') as_dir=./ ;; 3326 */) ;; 3327 *) as_dir=$as_dir/ ;; 3328 esac 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3331 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3332 ac_prog_rejected=yes 3333 continue 3334 fi 3335 ac_cv_prog_CC="cc" 3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343if test $ac_prog_rejected = yes; then 3344 # We found a bogon in the path, so make sure we never use it. 3345 set dummy $ac_cv_prog_CC 3346 shift 3347 if test $# != 0; then 3348 # We chose a different compiler from the bogus one. 3349 # However, it has the same basename, so the bogon will be chosen 3350 # first if we set CC to just the basename; use the full file name. 3351 shift 3352 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3353 fi 3354fi 3355fi ;; 3356esac 3357fi 3358CC=$ac_cv_prog_CC 3359if test -n "$CC"; then 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3361printf "%s\n" "$CC" >&6; } 3362else 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364printf "%s\n" "no" >&6; } 3365fi 3366 3367 3368fi 3369if test -z "$CC"; then 3370 if test -n "$ac_tool_prefix"; then 3371 for ac_prog in cl.exe 3372 do 3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3374set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3376printf %s "checking for $ac_word... " >&6; } 3377if test ${ac_cv_prog_CC+y} 3378then : 3379 printf %s "(cached) " >&6 3380else case e in #( 3381 e) if test -n "$CC"; then 3382 ac_cv_prog_CC="$CC" # Let the user override the test. 3383else 3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3385for as_dir in $PATH 3386do 3387 IFS=$as_save_IFS 3388 case $as_dir in #((( 3389 '') as_dir=./ ;; 3390 */) ;; 3391 *) as_dir=$as_dir/ ;; 3392 esac 3393 for ac_exec_ext in '' $ac_executable_extensions; do 3394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3395 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3397 break 2 3398 fi 3399done 3400 done 3401IFS=$as_save_IFS 3402 3403fi ;; 3404esac 3405fi 3406CC=$ac_cv_prog_CC 3407if test -n "$CC"; then 3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3409printf "%s\n" "$CC" >&6; } 3410else 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412printf "%s\n" "no" >&6; } 3413fi 3414 3415 3416 test -n "$CC" && break 3417 done 3418fi 3419if test -z "$CC"; then 3420 ac_ct_CC=$CC 3421 for ac_prog in cl.exe 3422do 3423 # Extract the first word of "$ac_prog", so it can be a program name with args. 3424set dummy $ac_prog; ac_word=$2 3425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3426printf %s "checking for $ac_word... " >&6; } 3427if test ${ac_cv_prog_ac_ct_CC+y} 3428then : 3429 printf %s "(cached) " >&6 3430else case e in #( 3431 e) if test -n "$ac_ct_CC"; then 3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3433else 3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3435for as_dir in $PATH 3436do 3437 IFS=$as_save_IFS 3438 case $as_dir in #((( 3439 '') as_dir=./ ;; 3440 */) ;; 3441 *) as_dir=$as_dir/ ;; 3442 esac 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3445 ac_cv_prog_ac_ct_CC="$ac_prog" 3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449done 3450 done 3451IFS=$as_save_IFS 3452 3453fi ;; 3454esac 3455fi 3456ac_ct_CC=$ac_cv_prog_ac_ct_CC 3457if test -n "$ac_ct_CC"; then 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3459printf "%s\n" "$ac_ct_CC" >&6; } 3460else 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3462printf "%s\n" "no" >&6; } 3463fi 3464 3465 3466 test -n "$ac_ct_CC" && break 3467done 3468 3469 if test "x$ac_ct_CC" = x; then 3470 CC="" 3471 else 3472 case $cross_compiling:$ac_tool_warned in 3473yes:) 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3475printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3476ac_tool_warned=yes ;; 3477esac 3478 CC=$ac_ct_CC 3479 fi 3480fi 3481 3482fi 3483if test -z "$CC"; then 3484 if test -n "$ac_tool_prefix"; then 3485 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3486set dummy ${ac_tool_prefix}clang; ac_word=$2 3487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3488printf %s "checking for $ac_word... " >&6; } 3489if test ${ac_cv_prog_CC+y} 3490then : 3491 printf %s "(cached) " >&6 3492else case e in #( 3493 e) if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495else 3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497for as_dir in $PATH 3498do 3499 IFS=$as_save_IFS 3500 case $as_dir in #((( 3501 '') as_dir=./ ;; 3502 */) ;; 3503 *) as_dir=$as_dir/ ;; 3504 esac 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_CC="${ac_tool_prefix}clang" 3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512 done 3513IFS=$as_save_IFS 3514 3515fi ;; 3516esac 3517fi 3518CC=$ac_cv_prog_CC 3519if test -n "$CC"; then 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3521printf "%s\n" "$CC" >&6; } 3522else 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3524printf "%s\n" "no" >&6; } 3525fi 3526 3527 3528fi 3529if test -z "$ac_cv_prog_CC"; then 3530 ac_ct_CC=$CC 3531 # Extract the first word of "clang", so it can be a program name with args. 3532set dummy clang; ac_word=$2 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534printf %s "checking for $ac_word... " >&6; } 3535if test ${ac_cv_prog_ac_ct_CC+y} 3536then : 3537 printf %s "(cached) " >&6 3538else case e in #( 3539 e) if test -n "$ac_ct_CC"; then 3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3541else 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 case $as_dir in #((( 3547 '') as_dir=./ ;; 3548 */) ;; 3549 *) as_dir=$as_dir/ ;; 3550 esac 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3553 ac_cv_prog_ac_ct_CC="clang" 3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi ;; 3562esac 3563fi 3564ac_ct_CC=$ac_cv_prog_ac_ct_CC 3565if test -n "$ac_ct_CC"; then 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3567printf "%s\n" "$ac_ct_CC" >&6; } 3568else 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570printf "%s\n" "no" >&6; } 3571fi 3572 3573 if test "x$ac_ct_CC" = x; then 3574 CC="" 3575 else 3576 case $cross_compiling:$ac_tool_warned in 3577yes:) 3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3579printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3580ac_tool_warned=yes ;; 3581esac 3582 CC=$ac_ct_CC 3583 fi 3584else 3585 CC="$ac_cv_prog_CC" 3586fi 3587 3588fi 3589 3590 3591test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3592printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3593as_fn_error $? "no acceptable C compiler found in \$PATH 3594See 'config.log' for more details" "$LINENO" 5; } 3595 3596# Provide some information about the compiler. 3597printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3598set X $ac_compile 3599ac_compiler=$2 3600for ac_option in --version -v -V -qversion -version; do 3601 { { ac_try="$ac_compiler $ac_option >&5" 3602case "(($ac_try" in 3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3604 *) ac_try_echo=$ac_try;; 3605esac 3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3607printf "%s\n" "$ac_try_echo"; } >&5 3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3609 ac_status=$? 3610 if test -s conftest.err; then 3611 sed '10a\ 3612... rest of stderr output deleted ... 3613 10q' conftest.err >conftest.er1 3614 cat conftest.er1 >&5 3615 fi 3616 rm -f conftest.er1 conftest.err 3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; } 3619done 3620 3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623 3624int 3625main (void) 3626{ 3627 3628 ; 3629 return 0; 3630} 3631_ACEOF 3632ac_clean_files_save=$ac_clean_files 3633ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3634# Try to create an executable without -o first, disregard a.out. 3635# It will help us diagnose broken compilers, and finding out an intuition 3636# of exeext. 3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3638printf %s "checking whether the C compiler works... " >&6; } 3639ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3640 3641# The possible output files: 3642ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3643 3644ac_rmfiles= 3645for ac_file in $ac_files 3646do 3647 case $ac_file in 3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3650 esac 3651done 3652rm -f $ac_rmfiles 3653 3654if { { ac_try="$ac_link_default" 3655case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660printf "%s\n" "$ac_try_echo"; } >&5 3661 (eval "$ac_link_default") 2>&5 3662 ac_status=$? 3663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; } 3665then : 3666 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3667# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3668# in a Makefile. We should not override ac_cv_exeext if it was cached, 3669# so that the user can short-circuit this test for compilers unknown to 3670# Autoconf. 3671for ac_file in $ac_files '' 3672do 3673 test -f "$ac_file" || continue 3674 case $ac_file in 3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3676 ;; 3677 [ab].out ) 3678 # We found the default executable, but exeext='' is most 3679 # certainly right. 3680 break;; 3681 *.* ) 3682 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3683 then :; else 3684 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3685 fi 3686 # We set ac_cv_exeext here because the later test for it is not 3687 # safe: cross compilers may not add the suffix if given an '-o' 3688 # argument, so we may need to know it at that point already. 3689 # Even if this section looks crufty: it has the advantage of 3690 # actually working. 3691 break;; 3692 * ) 3693 break;; 3694 esac 3695done 3696test "$ac_cv_exeext" = no && ac_cv_exeext= 3697 3698else case e in #( 3699 e) ac_file='' ;; 3700esac 3701fi 3702if test -z "$ac_file" 3703then : 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3705printf "%s\n" "no" >&6; } 3706printf "%s\n" "$as_me: failed program was:" >&5 3707sed 's/^/| /' conftest.$ac_ext >&5 3708 3709{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3710printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3711as_fn_error 77 "C compiler cannot create executables 3712See 'config.log' for more details" "$LINENO" 5; } 3713else case e in #( 3714 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3715printf "%s\n" "yes" >&6; } ;; 3716esac 3717fi 3718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3719printf %s "checking for C compiler default output file name... " >&6; } 3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3721printf "%s\n" "$ac_file" >&6; } 3722ac_exeext=$ac_cv_exeext 3723 3724rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3725ac_clean_files=$ac_clean_files_save 3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3727printf %s "checking for suffix of executables... " >&6; } 3728if { { ac_try="$ac_link" 3729case "(($ac_try" in 3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3731 *) ac_try_echo=$ac_try;; 3732esac 3733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3734printf "%s\n" "$ac_try_echo"; } >&5 3735 (eval "$ac_link") 2>&5 3736 ac_status=$? 3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3738 test $ac_status = 0; } 3739then : 3740 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3741# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3742# work properly (i.e., refer to 'conftest.exe'), while it won't with 3743# 'rm'. 3744for ac_file in conftest.exe conftest conftest.*; do 3745 test -f "$ac_file" || continue 3746 case $ac_file in 3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3749 break;; 3750 * ) break;; 3751 esac 3752done 3753else case e in #( 3754 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3755printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3756as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3757See 'config.log' for more details" "$LINENO" 5; } ;; 3758esac 3759fi 3760rm -f conftest conftest$ac_cv_exeext 3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3762printf "%s\n" "$ac_cv_exeext" >&6; } 3763 3764rm -f conftest.$ac_ext 3765EXEEXT=$ac_cv_exeext 3766ac_exeext=$EXEEXT 3767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3768/* end confdefs.h. */ 3769#include <stdio.h> 3770int 3771main (void) 3772{ 3773FILE *f = fopen ("conftest.out", "w"); 3774 if (!f) 3775 return 1; 3776 return ferror (f) || fclose (f) != 0; 3777 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782ac_clean_files="$ac_clean_files conftest.out" 3783# Check that the compiler produces executables we can run. If not, either 3784# the compiler is broken, or we cross compile. 3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3786printf %s "checking whether we are cross compiling... " >&6; } 3787if test "$cross_compiling" != yes; then 3788 { { ac_try="$ac_link" 3789case "(($ac_try" in 3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3791 *) ac_try_echo=$ac_try;; 3792esac 3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3794printf "%s\n" "$ac_try_echo"; } >&5 3795 (eval "$ac_link") 2>&5 3796 ac_status=$? 3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3798 test $ac_status = 0; } 3799 if { ac_try='./conftest$ac_cv_exeext' 3800 { { case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3805printf "%s\n" "$ac_try_echo"; } >&5 3806 (eval "$ac_try") 2>&5 3807 ac_status=$? 3808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3809 test $ac_status = 0; }; }; then 3810 cross_compiling=no 3811 else 3812 if test "$cross_compiling" = maybe; then 3813 cross_compiling=yes 3814 else 3815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3816printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3817as_fn_error 77 "cannot run C compiled programs. 3818If you meant to cross compile, use '--host'. 3819See 'config.log' for more details" "$LINENO" 5; } 3820 fi 3821 fi 3822fi 3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3824printf "%s\n" "$cross_compiling" >&6; } 3825 3826rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3827 conftest.o conftest.obj conftest.out 3828ac_clean_files=$ac_clean_files_save 3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3830printf %s "checking for suffix of object files... " >&6; } 3831if test ${ac_cv_objext+y} 3832then : 3833 printf %s "(cached) " >&6 3834else case e in #( 3835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836/* end confdefs.h. */ 3837 3838int 3839main (void) 3840{ 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846rm -f conftest.o conftest.obj 3847if { { ac_try="$ac_compile" 3848case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851esac 3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3853printf "%s\n" "$ac_try_echo"; } >&5 3854 (eval "$ac_compile") 2>&5 3855 ac_status=$? 3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3857 test $ac_status = 0; } 3858then : 3859 for ac_file in conftest.o conftest.obj conftest.*; do 3860 test -f "$ac_file" || continue; 3861 case $ac_file in 3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3864 break;; 3865 esac 3866done 3867else case e in #( 3868 e) printf "%s\n" "$as_me: failed program was:" >&5 3869sed 's/^/| /' conftest.$ac_ext >&5 3870 3871{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3872printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3873as_fn_error $? "cannot compute suffix of object files: cannot compile 3874See 'config.log' for more details" "$LINENO" 5; } ;; 3875esac 3876fi 3877rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3878esac 3879fi 3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3881printf "%s\n" "$ac_cv_objext" >&6; } 3882OBJEXT=$ac_cv_objext 3883ac_objext=$OBJEXT 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3885printf %s "checking whether the compiler supports GNU C... " >&6; } 3886if test ${ac_cv_c_compiler_gnu+y} 3887then : 3888 printf %s "(cached) " >&6 3889else case e in #( 3890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892 3893int 3894main (void) 3895{ 3896#ifndef __GNUC__ 3897 choke me 3898#endif 3899 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904if ac_fn_c_try_compile "$LINENO" 3905then : 3906 ac_compiler_gnu=yes 3907else case e in #( 3908 e) ac_compiler_gnu=no ;; 3909esac 3910fi 3911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3912ac_cv_c_compiler_gnu=$ac_compiler_gnu 3913 ;; 3914esac 3915fi 3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3917printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3918ac_compiler_gnu=$ac_cv_c_compiler_gnu 3919 3920if test $ac_compiler_gnu = yes; then 3921 GCC=yes 3922else 3923 GCC= 3924fi 3925ac_test_CFLAGS=${CFLAGS+y} 3926ac_save_CFLAGS=$CFLAGS 3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3928printf %s "checking whether $CC accepts -g... " >&6; } 3929if test ${ac_cv_prog_cc_g+y} 3930then : 3931 printf %s "(cached) " >&6 3932else case e in #( 3933 e) ac_save_c_werror_flag=$ac_c_werror_flag 3934 ac_c_werror_flag=yes 3935 ac_cv_prog_cc_g=no 3936 CFLAGS="-g" 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main (void) 3942{ 3943 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948if ac_fn_c_try_compile "$LINENO" 3949then : 3950 ac_cv_prog_cc_g=yes 3951else case e in #( 3952 e) CFLAGS="" 3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954/* end confdefs.h. */ 3955 3956int 3957main (void) 3958{ 3959 3960 ; 3961 return 0; 3962} 3963_ACEOF 3964if ac_fn_c_try_compile "$LINENO" 3965then : 3966 3967else case e in #( 3968 e) ac_c_werror_flag=$ac_save_c_werror_flag 3969 CFLAGS="-g" 3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972 3973int 3974main (void) 3975{ 3976 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981if ac_fn_c_try_compile "$LINENO" 3982then : 3983 ac_cv_prog_cc_g=yes 3984fi 3985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3986esac 3987fi 3988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3989esac 3990fi 3991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3992 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3993esac 3994fi 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3996printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3997if test $ac_test_CFLAGS; then 3998 CFLAGS=$ac_save_CFLAGS 3999elif test $ac_cv_prog_cc_g = yes; then 4000 if test "$GCC" = yes; then 4001 CFLAGS="-g -O2" 4002 else 4003 CFLAGS="-g" 4004 fi 4005else 4006 if test "$GCC" = yes; then 4007 CFLAGS="-O2" 4008 else 4009 CFLAGS= 4010 fi 4011fi 4012ac_prog_cc_stdc=no 4013if test x$ac_prog_cc_stdc = xno 4014then : 4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4016printf %s "checking for $CC option to enable C11 features... " >&6; } 4017if test ${ac_cv_prog_cc_c11+y} 4018then : 4019 printf %s "(cached) " >&6 4020else case e in #( 4021 e) ac_cv_prog_cc_c11=no 4022ac_save_CC=$CC 4023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025$ac_c_conftest_c11_program 4026_ACEOF 4027for ac_arg in '' -std=gnu11 4028do 4029 CC="$ac_save_CC $ac_arg" 4030 if ac_fn_c_try_compile "$LINENO" 4031then : 4032 ac_cv_prog_cc_c11=$ac_arg 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.beam 4035 test "x$ac_cv_prog_cc_c11" != "xno" && break 4036done 4037rm -f conftest.$ac_ext 4038CC=$ac_save_CC ;; 4039esac 4040fi 4041 4042if test "x$ac_cv_prog_cc_c11" = xno 4043then : 4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4045printf "%s\n" "unsupported" >&6; } 4046else case e in #( 4047 e) if test "x$ac_cv_prog_cc_c11" = x 4048then : 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4050printf "%s\n" "none needed" >&6; } 4051else case e in #( 4052 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4053printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4054 CC="$CC $ac_cv_prog_cc_c11" ;; 4055esac 4056fi 4057 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4058 ac_prog_cc_stdc=c11 ;; 4059esac 4060fi 4061fi 4062if test x$ac_prog_cc_stdc = xno 4063then : 4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4065printf %s "checking for $CC option to enable C99 features... " >&6; } 4066if test ${ac_cv_prog_cc_c99+y} 4067then : 4068 printf %s "(cached) " >&6 4069else case e in #( 4070 e) ac_cv_prog_cc_c99=no 4071ac_save_CC=$CC 4072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074$ac_c_conftest_c99_program 4075_ACEOF 4076for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4077do 4078 CC="$ac_save_CC $ac_arg" 4079 if ac_fn_c_try_compile "$LINENO" 4080then : 4081 ac_cv_prog_cc_c99=$ac_arg 4082fi 4083rm -f core conftest.err conftest.$ac_objext conftest.beam 4084 test "x$ac_cv_prog_cc_c99" != "xno" && break 4085done 4086rm -f conftest.$ac_ext 4087CC=$ac_save_CC ;; 4088esac 4089fi 4090 4091if test "x$ac_cv_prog_cc_c99" = xno 4092then : 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4094printf "%s\n" "unsupported" >&6; } 4095else case e in #( 4096 e) if test "x$ac_cv_prog_cc_c99" = x 4097then : 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4099printf "%s\n" "none needed" >&6; } 4100else case e in #( 4101 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4102printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4103 CC="$CC $ac_cv_prog_cc_c99" ;; 4104esac 4105fi 4106 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4107 ac_prog_cc_stdc=c99 ;; 4108esac 4109fi 4110fi 4111if test x$ac_prog_cc_stdc = xno 4112then : 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4114printf %s "checking for $CC option to enable C89 features... " >&6; } 4115if test ${ac_cv_prog_cc_c89+y} 4116then : 4117 printf %s "(cached) " >&6 4118else case e in #( 4119 e) ac_cv_prog_cc_c89=no 4120ac_save_CC=$CC 4121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123$ac_c_conftest_c89_program 4124_ACEOF 4125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4126do 4127 CC="$ac_save_CC $ac_arg" 4128 if ac_fn_c_try_compile "$LINENO" 4129then : 4130 ac_cv_prog_cc_c89=$ac_arg 4131fi 4132rm -f core conftest.err conftest.$ac_objext conftest.beam 4133 test "x$ac_cv_prog_cc_c89" != "xno" && break 4134done 4135rm -f conftest.$ac_ext 4136CC=$ac_save_CC ;; 4137esac 4138fi 4139 4140if test "x$ac_cv_prog_cc_c89" = xno 4141then : 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4143printf "%s\n" "unsupported" >&6; } 4144else case e in #( 4145 e) if test "x$ac_cv_prog_cc_c89" = x 4146then : 4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4148printf "%s\n" "none needed" >&6; } 4149else case e in #( 4150 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4151printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4152 CC="$CC $ac_cv_prog_cc_c89" ;; 4153esac 4154fi 4155 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4156 ac_prog_cc_stdc=c89 ;; 4157esac 4158fi 4159fi 4160 4161ac_ext=c 4162ac_cpp='$CPP $CPPFLAGS' 4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4165ac_compiler_gnu=$ac_cv_c_compiler_gnu 4166 4167 4168 ac_ext=c 4169ac_cpp='$CPP $CPPFLAGS' 4170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4172ac_compiler_gnu=$ac_cv_c_compiler_gnu 4173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4174printf %s "checking whether $CC understands -c and -o together... " >&6; } 4175if test ${am_cv_prog_cc_c_o+y} 4176then : 4177 printf %s "(cached) " >&6 4178else case e in #( 4179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4180/* end confdefs.h. */ 4181 4182int 4183main (void) 4184{ 4185 4186 ; 4187 return 0; 4188} 4189_ACEOF 4190 # Make sure it works both with $CC and with simple cc. 4191 # Following AC_PROG_CC_C_O, we do the test twice because some 4192 # compilers refuse to overwrite an existing .o file with -o, 4193 # though they will create one. 4194 am_cv_prog_cc_c_o=yes 4195 for am_i in 1 2; do 4196 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4197 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4198 ac_status=$? 4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4200 (exit $ac_status); } \ 4201 && test -f conftest2.$ac_objext; then 4202 : OK 4203 else 4204 am_cv_prog_cc_c_o=no 4205 break 4206 fi 4207 done 4208 rm -f core conftest* 4209 unset am_i ;; 4210esac 4211fi 4212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4213printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4214if test "$am_cv_prog_cc_c_o" != yes; then 4215 # Losing compiler, so override with the script. 4216 # FIXME: It is wrong to rewrite CC. 4217 # But if we don't then we get into trouble of one sort or another. 4218 # A longer-term fix would be to have automake use am__CC in this case, 4219 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4220 CC="$am_aux_dir/compile $CC" 4221fi 4222ac_ext=c 4223ac_cpp='$CPP $CPPFLAGS' 4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4226ac_compiler_gnu=$ac_cv_c_compiler_gnu 4227 4228 4229 4230ac_header= ac_cache= 4231for ac_item in $ac_header_c_list 4232do 4233 if test $ac_cache; then 4234 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4235 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4236 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4237 fi 4238 ac_header= ac_cache= 4239 elif test $ac_header; then 4240 ac_cache=$ac_item 4241 else 4242 ac_header=$ac_item 4243 fi 4244done 4245 4246 4247 4248 4249 4250 4251 4252 4253if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4254then : 4255 4256printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4257 4258fi 4259 4260 4261 4262 4263 4264 4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4266printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4267if test ${ac_cv_safe_to_define___extensions__+y} 4268then : 4269 printf %s "(cached) " >&6 4270else case e in #( 4271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273 4274# define __EXTENSIONS__ 1 4275 $ac_includes_default 4276int 4277main (void) 4278{ 4279 4280 ; 4281 return 0; 4282} 4283_ACEOF 4284if ac_fn_c_try_compile "$LINENO" 4285then : 4286 ac_cv_safe_to_define___extensions__=yes 4287else case e in #( 4288 e) ac_cv_safe_to_define___extensions__=no ;; 4289esac 4290fi 4291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4292esac 4293fi 4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4295printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4296 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4298printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4299if test ${ac_cv_should_define__xopen_source+y} 4300then : 4301 printf %s "(cached) " >&6 4302else case e in #( 4303 e) ac_cv_should_define__xopen_source=no 4304 if test $ac_cv_header_wchar_h = yes 4305then : 4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308 4309 #include <wchar.h> 4310 mbstate_t x; 4311int 4312main (void) 4313{ 4314 4315 ; 4316 return 0; 4317} 4318_ACEOF 4319if ac_fn_c_try_compile "$LINENO" 4320then : 4321 4322else case e in #( 4323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324/* end confdefs.h. */ 4325 4326 #define _XOPEN_SOURCE 500 4327 #include <wchar.h> 4328 mbstate_t x; 4329int 4330main (void) 4331{ 4332 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337if ac_fn_c_try_compile "$LINENO" 4338then : 4339 ac_cv_should_define__xopen_source=yes 4340fi 4341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4342esac 4343fi 4344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4345fi ;; 4346esac 4347fi 4348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4349printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4350 4351 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4352 4353 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4354 4355 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4356 4357 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4358 4359 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4360 4361 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4362 4363 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4364 4365 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4366 4367 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4368 4369 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4370 4371 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4372 4373 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4374 4375 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4376 4377 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4378 4379 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4380 4381 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4382 4383 if test $ac_cv_header_minix_config_h = yes 4384then : 4385 MINIX=yes 4386 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4387 4388 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4389 4390 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4391 4392else case e in #( 4393 e) MINIX= ;; 4394esac 4395fi 4396 if test $ac_cv_safe_to_define___extensions__ = yes 4397then : 4398 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4399 4400fi 4401 if test $ac_cv_should_define__xopen_source = yes 4402then : 4403 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4404 4405fi 4406 4407 4408# Initialize Automake 4409am__api_version='1.16' 4410 4411 4412 # Find a good install program. We prefer a C program (faster), 4413# so one script is as good as another. But avoid the broken or 4414# incompatible versions: 4415# SysV /etc/install, /usr/sbin/install 4416# SunOS /usr/etc/install 4417# IRIX /sbin/install 4418# AIX /bin/install 4419# AmigaOS /C/install, which installs bootblocks on floppy discs 4420# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4421# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4422# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4423# OS/2's system install, which has a completely different semantic 4424# ./install, which can be erroneously created by make from ./install.sh. 4425# Reject install programs that cannot install multiple files. 4426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4427printf %s "checking for a BSD-compatible install... " >&6; } 4428if test -z "$INSTALL"; then 4429if test ${ac_cv_path_install+y} 4430then : 4431 printf %s "(cached) " >&6 4432else case e in #( 4433 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 case $as_dir in #((( 4438 '') as_dir=./ ;; 4439 */) ;; 4440 *) as_dir=$as_dir/ ;; 4441 esac 4442 # Account for fact that we put trailing slashes in our PATH walk. 4443case $as_dir in #(( 4444 ./ | /[cC]/* | \ 4445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4447 /usr/ucb/* ) ;; 4448 *) 4449 # OSF1 and SCO ODT 3.0 have their own names for install. 4450 # Don't use installbsd from OSF since it installs stuff as root 4451 # by default. 4452 for ac_prog in ginstall scoinst install; do 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4455 if test $ac_prog = install && 4456 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4457 # AIX install. It has an incompatible calling convention. 4458 : 4459 elif test $ac_prog = install && 4460 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4461 # program-specific install script used by HP pwplus--don't use. 4462 : 4463 else 4464 rm -rf conftest.one conftest.two conftest.dir 4465 echo one > conftest.one 4466 echo two > conftest.two 4467 mkdir conftest.dir 4468 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4469 test -s conftest.one && test -s conftest.two && 4470 test -s conftest.dir/conftest.one && 4471 test -s conftest.dir/conftest.two 4472 then 4473 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4474 break 3 4475 fi 4476 fi 4477 fi 4478 done 4479 done 4480 ;; 4481esac 4482 4483 done 4484IFS=$as_save_IFS 4485 4486rm -rf conftest.one conftest.two conftest.dir 4487 ;; 4488esac 4489fi 4490 if test ${ac_cv_path_install+y}; then 4491 INSTALL=$ac_cv_path_install 4492 else 4493 # As a last resort, use the slow shell script. Don't cache a 4494 # value for INSTALL within a source directory, because that will 4495 # break other packages using the cache if that directory is 4496 # removed, or if the value is a relative name. 4497 INSTALL=$ac_install_sh 4498 fi 4499fi 4500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4501printf "%s\n" "$INSTALL" >&6; } 4502 4503# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4504# It thinks the first close brace ends the variable substitution. 4505test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4506 4507test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4508 4509test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4510 4511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4512printf %s "checking whether build environment is sane... " >&6; } 4513# Reject unsafe characters in $srcdir or the absolute working directory 4514# name. Accept space and tab only in the latter. 4515am_lf=' 4516' 4517case `pwd` in 4518 *[\\\"\#\$\&\'\`$am_lf]*) 4519 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4520esac 4521case $srcdir in 4522 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4523 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4524esac 4525 4526# Do 'set' in a subshell so we don't clobber the current shell's 4527# arguments. Must try -L first in case configure is actually a 4528# symlink; some systems play weird games with the mod time of symlinks 4529# (eg FreeBSD returns the mod time of the symlink's containing 4530# directory). 4531if ( 4532 am_has_slept=no 4533 for am_try in 1 2; do 4534 echo "timestamp, slept: $am_has_slept" > conftest.file 4535 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4536 if test "$*" = "X"; then 4537 # -L didn't work. 4538 set X `ls -t "$srcdir/configure" conftest.file` 4539 fi 4540 if test "$*" != "X $srcdir/configure conftest.file" \ 4541 && test "$*" != "X conftest.file $srcdir/configure"; then 4542 4543 # If neither matched, then we have a broken ls. This can happen 4544 # if, for instance, CONFIG_SHELL is bash and it inherits a 4545 # broken ls alias from the environment. This has actually 4546 # happened. Such a system could not be considered "sane". 4547 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4548 alias in your environment" "$LINENO" 5 4549 fi 4550 if test "$2" = conftest.file || test $am_try -eq 2; then 4551 break 4552 fi 4553 # Just in case. 4554 sleep 1 4555 am_has_slept=yes 4556 done 4557 test "$2" = conftest.file 4558 ) 4559then 4560 # Ok. 4561 : 4562else 4563 as_fn_error $? "newly created file is older than distributed files! 4564Check your system clock" "$LINENO" 5 4565fi 4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4567printf "%s\n" "yes" >&6; } 4568# If we didn't sleep, we still need to ensure time stamps of config.status and 4569# generated files are strictly newer. 4570am_sleep_pid= 4571if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4572 ( sleep 1 ) & 4573 am_sleep_pid=$! 4574fi 4575 4576rm -f conftest.file 4577 4578test "$program_prefix" != NONE && 4579 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4580# Use a double $ so make ignores it. 4581test "$program_suffix" != NONE && 4582 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4583# Double any \ or $. 4584# By default was 's,x,x', remove it if useless. 4585ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4586program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4587 4588 4589 if test x"${MISSING+set}" != xset; then 4590 MISSING="\${SHELL} '$am_aux_dir/missing'" 4591fi 4592# Use eval to expand $SHELL 4593if eval "$MISSING --is-lightweight"; then 4594 am_missing_run="$MISSING " 4595else 4596 am_missing_run= 4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4598printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4599fi 4600 4601if test x"${install_sh+set}" != xset; then 4602 case $am_aux_dir in 4603 *\ * | *\ *) 4604 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4605 *) 4606 install_sh="\${SHELL} $am_aux_dir/install-sh" 4607 esac 4608fi 4609 4610# Installed binaries are usually stripped using 'strip' when the user 4611# run "make install-strip". However 'strip' might not be the right 4612# tool to use in cross-compilation environments, therefore Automake 4613# will honor the 'STRIP' environment variable to overrule this program. 4614if test "$cross_compiling" != no; then 4615 if test -n "$ac_tool_prefix"; then 4616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4617set dummy ${ac_tool_prefix}strip; ac_word=$2 4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4619printf %s "checking for $ac_word... " >&6; } 4620if test ${ac_cv_prog_STRIP+y} 4621then : 4622 printf %s "(cached) " >&6 4623else case e in #( 4624 e) if test -n "$STRIP"; then 4625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4626else 4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 case $as_dir in #((( 4632 '') as_dir=./ ;; 4633 */) ;; 4634 *) as_dir=$as_dir/ ;; 4635 esac 4636 for ac_exec_ext in '' $ac_executable_extensions; do 4637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4638 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4640 break 2 4641 fi 4642done 4643 done 4644IFS=$as_save_IFS 4645 4646fi ;; 4647esac 4648fi 4649STRIP=$ac_cv_prog_STRIP 4650if test -n "$STRIP"; then 4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4652printf "%s\n" "$STRIP" >&6; } 4653else 4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4655printf "%s\n" "no" >&6; } 4656fi 4657 4658 4659fi 4660if test -z "$ac_cv_prog_STRIP"; then 4661 ac_ct_STRIP=$STRIP 4662 # Extract the first word of "strip", so it can be a program name with args. 4663set dummy strip; ac_word=$2 4664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4665printf %s "checking for $ac_word... " >&6; } 4666if test ${ac_cv_prog_ac_ct_STRIP+y} 4667then : 4668 printf %s "(cached) " >&6 4669else case e in #( 4670 e) if test -n "$ac_ct_STRIP"; then 4671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4672else 4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4674for as_dir in $PATH 4675do 4676 IFS=$as_save_IFS 4677 case $as_dir in #((( 4678 '') as_dir=./ ;; 4679 */) ;; 4680 *) as_dir=$as_dir/ ;; 4681 esac 4682 for ac_exec_ext in '' $ac_executable_extensions; do 4683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4684 ac_cv_prog_ac_ct_STRIP="strip" 4685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4686 break 2 4687 fi 4688done 4689 done 4690IFS=$as_save_IFS 4691 4692fi ;; 4693esac 4694fi 4695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4696if test -n "$ac_ct_STRIP"; then 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4698printf "%s\n" "$ac_ct_STRIP" >&6; } 4699else 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4701printf "%s\n" "no" >&6; } 4702fi 4703 4704 if test "x$ac_ct_STRIP" = x; then 4705 STRIP=":" 4706 else 4707 case $cross_compiling:$ac_tool_warned in 4708yes:) 4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4711ac_tool_warned=yes ;; 4712esac 4713 STRIP=$ac_ct_STRIP 4714 fi 4715else 4716 STRIP="$ac_cv_prog_STRIP" 4717fi 4718 4719fi 4720INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4721 4722 4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4724printf %s "checking for a race-free mkdir -p... " >&6; } 4725if test -z "$MKDIR_P"; then 4726 if test ${ac_cv_path_mkdir+y} 4727then : 4728 printf %s "(cached) " >&6 4729else case e in #( 4730 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4732do 4733 IFS=$as_save_IFS 4734 case $as_dir in #((( 4735 '') as_dir=./ ;; 4736 */) ;; 4737 *) as_dir=$as_dir/ ;; 4738 esac 4739 for ac_prog in mkdir gmkdir; do 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4742 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4743 'mkdir ('*'coreutils) '* | \ 4744 *'BusyBox '* | \ 4745 'mkdir (fileutils) '4.1*) 4746 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4747 break 3;; 4748 esac 4749 done 4750 done 4751 done 4752IFS=$as_save_IFS 4753 ;; 4754esac 4755fi 4756 4757 test -d ./--version && rmdir ./--version 4758 if test ${ac_cv_path_mkdir+y}; then 4759 MKDIR_P="$ac_cv_path_mkdir -p" 4760 else 4761 # As a last resort, use plain mkdir -p, 4762 # in the hope it doesn't have the bugs of ancient mkdir. 4763 MKDIR_P='mkdir -p' 4764 fi 4765fi 4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4767printf "%s\n" "$MKDIR_P" >&6; } 4768 4769for ac_prog in gawk mawk nawk awk 4770do 4771 # Extract the first word of "$ac_prog", so it can be a program name with args. 4772set dummy $ac_prog; ac_word=$2 4773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4774printf %s "checking for $ac_word... " >&6; } 4775if test ${ac_cv_prog_AWK+y} 4776then : 4777 printf %s "(cached) " >&6 4778else case e in #( 4779 e) if test -n "$AWK"; then 4780 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4781else 4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783for as_dir in $PATH 4784do 4785 IFS=$as_save_IFS 4786 case $as_dir in #((( 4787 '') as_dir=./ ;; 4788 */) ;; 4789 *) as_dir=$as_dir/ ;; 4790 esac 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4793 ac_cv_prog_AWK="$ac_prog" 4794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4795 break 2 4796 fi 4797done 4798 done 4799IFS=$as_save_IFS 4800 4801fi ;; 4802esac 4803fi 4804AWK=$ac_cv_prog_AWK 4805if test -n "$AWK"; then 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4807printf "%s\n" "$AWK" >&6; } 4808else 4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810printf "%s\n" "no" >&6; } 4811fi 4812 4813 4814 test -n "$AWK" && break 4815done 4816 4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4818printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4819set x ${MAKE-make} 4820ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4821if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4822then : 4823 printf %s "(cached) " >&6 4824else case e in #( 4825 e) cat >conftest.make <<\_ACEOF 4826SHELL = /bin/sh 4827all: 4828 @echo '@@@%%%=$(MAKE)=@@@%%%' 4829_ACEOF 4830# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4831case `${MAKE-make} -f conftest.make 2>/dev/null` in 4832 *@@@%%%=?*=@@@%%%*) 4833 eval ac_cv_prog_make_${ac_make}_set=yes;; 4834 *) 4835 eval ac_cv_prog_make_${ac_make}_set=no;; 4836esac 4837rm -f conftest.make ;; 4838esac 4839fi 4840if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4842printf "%s\n" "yes" >&6; } 4843 SET_MAKE= 4844else 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846printf "%s\n" "no" >&6; } 4847 SET_MAKE="MAKE=${MAKE-make}" 4848fi 4849 4850rm -rf .tst 2>/dev/null 4851mkdir .tst 2>/dev/null 4852if test -d .tst; then 4853 am__leading_dot=. 4854else 4855 am__leading_dot=_ 4856fi 4857rmdir .tst 2>/dev/null 4858 4859DEPDIR="${am__leading_dot}deps" 4860 4861ac_config_commands="$ac_config_commands depfiles" 4862 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4864printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4865cat > confinc.mk << 'END' 4866am__doit: 4867 @echo this is the am__doit target >confinc.out 4868.PHONY: am__doit 4869END 4870am__include="#" 4871am__quote= 4872# BSD make does it like this. 4873echo '.include "confinc.mk" # ignored' > confmf.BSD 4874# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4875echo 'include confinc.mk # ignored' > confmf.GNU 4876_am_result=no 4877for s in GNU BSD; do 4878 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4879 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4880 ac_status=$? 4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4882 (exit $ac_status); } 4883 case $?:`cat confinc.out 2>/dev/null` in #( 4884 '0:this is the am__doit target') : 4885 case $s in #( 4886 BSD) : 4887 am__include='.include' am__quote='"' ;; #( 4888 *) : 4889 am__include='include' am__quote='' ;; 4890esac ;; #( 4891 *) : 4892 ;; 4893esac 4894 if test "$am__include" != "#"; then 4895 _am_result="yes ($s style)" 4896 break 4897 fi 4898done 4899rm -f confinc.* confmf.* 4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4901printf "%s\n" "${_am_result}" >&6; } 4902 4903# Check whether --enable-dependency-tracking was given. 4904if test ${enable_dependency_tracking+y} 4905then : 4906 enableval=$enable_dependency_tracking; 4907fi 4908 4909if test "x$enable_dependency_tracking" != xno; then 4910 am_depcomp="$ac_aux_dir/depcomp" 4911 AMDEPBACKSLASH='\' 4912 am__nodep='_no' 4913fi 4914 if test "x$enable_dependency_tracking" != xno; then 4915 AMDEP_TRUE= 4916 AMDEP_FALSE='#' 4917else 4918 AMDEP_TRUE='#' 4919 AMDEP_FALSE= 4920fi 4921 4922 4923# Check whether --enable-silent-rules was given. 4924if test ${enable_silent_rules+y} 4925then : 4926 enableval=$enable_silent_rules; 4927fi 4928 4929case $enable_silent_rules in # ((( 4930 yes) AM_DEFAULT_VERBOSITY=0;; 4931 no) AM_DEFAULT_VERBOSITY=1;; 4932 *) AM_DEFAULT_VERBOSITY=1;; 4933esac 4934am_make=${MAKE-make} 4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4936printf %s "checking whether $am_make supports nested variables... " >&6; } 4937if test ${am_cv_make_support_nested_variables+y} 4938then : 4939 printf %s "(cached) " >&6 4940else case e in #( 4941 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4942BAR0=false 4943BAR1=true 4944V=1 4945am__doit: 4946 @$(TRUE) 4947.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4948 am_cv_make_support_nested_variables=yes 4949else 4950 am_cv_make_support_nested_variables=no 4951fi ;; 4952esac 4953fi 4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4955printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4956if test $am_cv_make_support_nested_variables = yes; then 4957 AM_V='$(V)' 4958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4959else 4960 AM_V=$AM_DEFAULT_VERBOSITY 4961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4962fi 4963AM_BACKSLASH='\' 4964 4965if test "`cd $srcdir && pwd`" != "`pwd`"; then 4966 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4967 # is not polluted with repeated "-I." 4968 am__isrc=' -I$(srcdir)' 4969 # test to see if srcdir already configured 4970 if test -f $srcdir/config.status; then 4971 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4972 fi 4973fi 4974 4975# test whether we have cygpath 4976if test -z "$CYGPATH_W"; then 4977 if (cygpath --version) >/dev/null 2>/dev/null; then 4978 CYGPATH_W='cygpath -w' 4979 else 4980 CYGPATH_W=echo 4981 fi 4982fi 4983 4984 4985# Define the identity of the package. 4986 PACKAGE='libX11' 4987 VERSION='1.8.9' 4988 4989 4990printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4991 4992 4993printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4994 4995# Some tools Automake needs. 4996 4997ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4998 4999 5000AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5001 5002 5003AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5004 5005 5006AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5007 5008 5009MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5010 5011# For better backward compatibility. To be removed once Automake 1.9.x 5012# dies out for good. For more background, see: 5013# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5014# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5015mkdir_p='$(MKDIR_P)' 5016 5017# We need awk for the "check" target (and possibly the TAP driver). The 5018# system "awk" is bad on some platforms. 5019# Always define AMTAR for backward compatibility. Yes, it's still used 5020# in the wild :-( We should find a proper way to deprecate it ... 5021AMTAR='$${TAR-tar}' 5022 5023 5024# We'll loop over all known methods to create a tar archive until one works. 5025_am_tools='gnutar pax cpio none' 5026 5027am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5028 5029 5030 5031 5032 5033depcc="$CC" am_compiler_list= 5034 5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5036printf %s "checking dependency style of $depcc... " >&6; } 5037if test ${am_cv_CC_dependencies_compiler_type+y} 5038then : 5039 printf %s "(cached) " >&6 5040else case e in #( 5041 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5042 # We make a subdir and do the tests there. Otherwise we can end up 5043 # making bogus files that we don't know about and never remove. For 5044 # instance it was reported that on HP-UX the gcc test will end up 5045 # making a dummy file named 'D' -- because '-MD' means "put the output 5046 # in D". 5047 rm -rf conftest.dir 5048 mkdir conftest.dir 5049 # Copy depcomp to subdir because otherwise we won't find it if we're 5050 # using a relative directory. 5051 cp "$am_depcomp" conftest.dir 5052 cd conftest.dir 5053 # We will build objects and dependencies in a subdirectory because 5054 # it helps to detect inapplicable dependency modes. For instance 5055 # both Tru64's cc and ICC support -MD to output dependencies as a 5056 # side effect of compilation, but ICC will put the dependencies in 5057 # the current directory while Tru64 will put them in the object 5058 # directory. 5059 mkdir sub 5060 5061 am_cv_CC_dependencies_compiler_type=none 5062 if test "$am_compiler_list" = ""; then 5063 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5064 fi 5065 am__universal=false 5066 case " $depcc " in #( 5067 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5068 esac 5069 5070 for depmode in $am_compiler_list; do 5071 # Setup a source with many dependencies, because some compilers 5072 # like to wrap large dependency lists on column 80 (with \), and 5073 # we should not choose a depcomp mode which is confused by this. 5074 # 5075 # We need to recreate these files for each test, as the compiler may 5076 # overwrite some of them when testing with obscure command lines. 5077 # This happens at least with the AIX C compiler. 5078 : > sub/conftest.c 5079 for i in 1 2 3 4 5 6; do 5080 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5081 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5082 # Solaris 10 /bin/sh. 5083 echo '/* dummy */' > sub/conftst$i.h 5084 done 5085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5086 5087 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5088 # mode. It turns out that the SunPro C++ compiler does not properly 5089 # handle '-M -o', and we need to detect this. Also, some Intel 5090 # versions had trouble with output in subdirs. 5091 am__obj=sub/conftest.${OBJEXT-o} 5092 am__minus_obj="-o $am__obj" 5093 case $depmode in 5094 gcc) 5095 # This depmode causes a compiler race in universal mode. 5096 test "$am__universal" = false || continue 5097 ;; 5098 nosideeffect) 5099 # After this tag, mechanisms are not by side-effect, so they'll 5100 # only be used when explicitly requested. 5101 if test "x$enable_dependency_tracking" = xyes; then 5102 continue 5103 else 5104 break 5105 fi 5106 ;; 5107 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5108 # This compiler won't grok '-c -o', but also, the minuso test has 5109 # not run yet. These depmodes are late enough in the game, and 5110 # so weak that their functioning should not be impacted. 5111 am__obj=conftest.${OBJEXT-o} 5112 am__minus_obj= 5113 ;; 5114 none) break ;; 5115 esac 5116 if depmode=$depmode \ 5117 source=sub/conftest.c object=$am__obj \ 5118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5119 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5120 >/dev/null 2>conftest.err && 5121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5123 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5125 # icc doesn't choke on unknown options, it will just issue warnings 5126 # or remarks (even with -Werror). So we grep stderr for any message 5127 # that says an option was ignored or not supported. 5128 # When given -MP, icc 7.0 and 7.1 complain thusly: 5129 # icc: Command line warning: ignoring option '-M'; no argument required 5130 # The diagnosis changed in icc 8.0: 5131 # icc: Command line remark: option '-MP' not supported 5132 if (grep 'ignoring option' conftest.err || 5133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5134 am_cv_CC_dependencies_compiler_type=$depmode 5135 break 5136 fi 5137 fi 5138 done 5139 5140 cd .. 5141 rm -rf conftest.dir 5142else 5143 am_cv_CC_dependencies_compiler_type=none 5144fi 5145 ;; 5146esac 5147fi 5148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5149printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5150CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5151 5152 if 5153 test "x$enable_dependency_tracking" != xno \ 5154 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5155 am__fastdepCC_TRUE= 5156 am__fastdepCC_FALSE='#' 5157else 5158 am__fastdepCC_TRUE='#' 5159 am__fastdepCC_FALSE= 5160fi 5161 5162 5163# Variables for tags utilities; see am/tags.am 5164if test -z "$CTAGS"; then 5165 CTAGS=ctags 5166fi 5167 5168if test -z "$ETAGS"; then 5169 ETAGS=etags 5170fi 5171 5172if test -z "$CSCOPE"; then 5173 CSCOPE=cscope 5174fi 5175 5176 5177 5178# POSIX will say in a future version that running "rm -f" with no argument 5179# is OK; and we want to be able to make that assumption in our Makefile 5180# recipes. So use an aggressive probe to check that the usage we want is 5181# actually supported "in the wild" to an acceptable degree. 5182# See automake bug#10828. 5183# To make any issue more visible, cause the running configure to be aborted 5184# by default if the 'rm' program in use doesn't match our expectations; the 5185# user can still override this though. 5186if rm -f && rm -fr && rm -rf; then : OK; else 5187 cat >&2 <<'END' 5188Oops! 5189 5190Your 'rm' program seems unable to run without file operands specified 5191on the command line, even when the '-f' option is present. This is contrary 5192to the behaviour of most rm programs out there, and not conforming with 5193the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5194 5195Please tell bug-automake@gnu.org about your system, including the value 5196of your $PATH and any error possibly output before this message. This 5197can help us improve future automake versions. 5198 5199END 5200 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 5201 echo 'Configuration will proceed anyway, since you have set the' >&2 5202 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 5203 echo >&2 5204 else 5205 cat >&2 <<'END' 5206Aborting the configuration process, to ensure you take notice of the issue. 5207 5208You can download and install GNU coreutils to get an 'rm' implementation 5209that behaves properly: <https://www.gnu.org/software/coreutils/>. 5210 5211If you want to complete the configuration process using your problematic 5212'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 5213to "yes", and re-run configure. 5214 5215END 5216 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 5217 fi 5218fi 5219 5220 5221# Initialize libtool 5222case `pwd` in 5223 *\ * | *\ *) 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5225printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5226esac 5227 5228 5229 5230macro_version='2.4.7' 5231macro_revision='2.4.7' 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246ltmain=$ac_aux_dir/ltmain.sh 5247 5248# Backslashify metacharacters that are still active within 5249# double-quoted strings. 5250sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5251 5252# Same as above, but do not quote variable references. 5253double_quote_subst='s/\(["`\\]\)/\\\1/g' 5254 5255# Sed substitution to delay expansion of an escaped shell variable in a 5256# double_quote_subst'ed string. 5257delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5258 5259# Sed substitution to delay expansion of an escaped single quote. 5260delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5261 5262# Sed substitution to avoid accidental globbing in evaled expressions 5263no_glob_subst='s/\*/\\\*/g' 5264 5265ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5266ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5267ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5268 5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5270printf %s "checking how to print strings... " >&6; } 5271# Test print first, because it will be a builtin if present. 5272if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5273 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5274 ECHO='print -r --' 5275elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5276 ECHO='printf %s\n' 5277else 5278 # Use this function as a fallback that always works. 5279 func_fallback_echo () 5280 { 5281 eval 'cat <<_LTECHO_EOF 5282$1 5283_LTECHO_EOF' 5284 } 5285 ECHO='func_fallback_echo' 5286fi 5287 5288# func_echo_all arg... 5289# Invoke $ECHO with all args, space-separated. 5290func_echo_all () 5291{ 5292 $ECHO "" 5293} 5294 5295case $ECHO in 5296 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5297printf "%s\n" "printf" >&6; } ;; 5298 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5299printf "%s\n" "print -r" >&6; } ;; 5300 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5301printf "%s\n" "cat" >&6; } ;; 5302esac 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5318printf %s "checking for a sed that does not truncate output... " >&6; } 5319if test ${ac_cv_path_SED+y} 5320then : 5321 printf %s "(cached) " >&6 5322else case e in #( 5323 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5324 for ac_i in 1 2 3 4 5 6 7; do 5325 ac_script="$ac_script$as_nl$ac_script" 5326 done 5327 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5328 { ac_script=; unset ac_script;} 5329 if test -z "$SED"; then 5330 ac_path_SED_found=false 5331 # Loop through the user's path and test for each of PROGNAME-LIST 5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333for as_dir in $PATH 5334do 5335 IFS=$as_save_IFS 5336 case $as_dir in #((( 5337 '') as_dir=./ ;; 5338 */) ;; 5339 *) as_dir=$as_dir/ ;; 5340 esac 5341 for ac_prog in sed gsed 5342 do 5343 for ac_exec_ext in '' $ac_executable_extensions; do 5344 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5345 as_fn_executable_p "$ac_path_SED" || continue 5346# Check for GNU ac_path_SED and select it if it is found. 5347 # Check for GNU $ac_path_SED 5348case `"$ac_path_SED" --version 2>&1` in #( 5349*GNU*) 5350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5351#( 5352*) 5353 ac_count=0 5354 printf %s 0123456789 >"conftest.in" 5355 while : 5356 do 5357 cat "conftest.in" "conftest.in" >"conftest.tmp" 5358 mv "conftest.tmp" "conftest.in" 5359 cp "conftest.in" "conftest.nl" 5360 printf "%s\n" '' >> "conftest.nl" 5361 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5363 as_fn_arith $ac_count + 1 && ac_count=$as_val 5364 if test $ac_count -gt ${ac_path_SED_max-0}; then 5365 # Best one so far, save it but keep looking for a better one 5366 ac_cv_path_SED="$ac_path_SED" 5367 ac_path_SED_max=$ac_count 5368 fi 5369 # 10*(2^10) chars as input seems more than enough 5370 test $ac_count -gt 10 && break 5371 done 5372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5373esac 5374 5375 $ac_path_SED_found && break 3 5376 done 5377 done 5378 done 5379IFS=$as_save_IFS 5380 if test -z "$ac_cv_path_SED"; then 5381 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5382 fi 5383else 5384 ac_cv_path_SED=$SED 5385fi 5386 ;; 5387esac 5388fi 5389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5390printf "%s\n" "$ac_cv_path_SED" >&6; } 5391 SED="$ac_cv_path_SED" 5392 rm -f conftest.sed 5393 5394test -z "$SED" && SED=sed 5395Xsed="$SED -e 1s/^X//" 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5408printf %s "checking for grep that handles long lines and -e... " >&6; } 5409if test ${ac_cv_path_GREP+y} 5410then : 5411 printf %s "(cached) " >&6 5412else case e in #( 5413 e) if test -z "$GREP"; then 5414 ac_path_GREP_found=false 5415 # Loop through the user's path and test for each of PROGNAME-LIST 5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5418do 5419 IFS=$as_save_IFS 5420 case $as_dir in #((( 5421 '') as_dir=./ ;; 5422 */) ;; 5423 *) as_dir=$as_dir/ ;; 5424 esac 5425 for ac_prog in grep ggrep 5426 do 5427 for ac_exec_ext in '' $ac_executable_extensions; do 5428 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5429 as_fn_executable_p "$ac_path_GREP" || continue 5430# Check for GNU ac_path_GREP and select it if it is found. 5431 # Check for GNU $ac_path_GREP 5432case `"$ac_path_GREP" --version 2>&1` in #( 5433*GNU*) 5434 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5435#( 5436*) 5437 ac_count=0 5438 printf %s 0123456789 >"conftest.in" 5439 while : 5440 do 5441 cat "conftest.in" "conftest.in" >"conftest.tmp" 5442 mv "conftest.tmp" "conftest.in" 5443 cp "conftest.in" "conftest.nl" 5444 printf "%s\n" 'GREP' >> "conftest.nl" 5445 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5447 as_fn_arith $ac_count + 1 && ac_count=$as_val 5448 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5449 # Best one so far, save it but keep looking for a better one 5450 ac_cv_path_GREP="$ac_path_GREP" 5451 ac_path_GREP_max=$ac_count 5452 fi 5453 # 10*(2^10) chars as input seems more than enough 5454 test $ac_count -gt 10 && break 5455 done 5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5457esac 5458 5459 $ac_path_GREP_found && break 3 5460 done 5461 done 5462 done 5463IFS=$as_save_IFS 5464 if test -z "$ac_cv_path_GREP"; then 5465 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5466 fi 5467else 5468 ac_cv_path_GREP=$GREP 5469fi 5470 ;; 5471esac 5472fi 5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5474printf "%s\n" "$ac_cv_path_GREP" >&6; } 5475 GREP="$ac_cv_path_GREP" 5476 5477 5478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5479printf %s "checking for egrep... " >&6; } 5480if test ${ac_cv_path_EGREP+y} 5481then : 5482 printf %s "(cached) " >&6 5483else case e in #( 5484 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5485 then ac_cv_path_EGREP="$GREP -E" 5486 else 5487 if test -z "$EGREP"; then 5488 ac_path_EGREP_found=false 5489 # Loop through the user's path and test for each of PROGNAME-LIST 5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5492do 5493 IFS=$as_save_IFS 5494 case $as_dir in #((( 5495 '') as_dir=./ ;; 5496 */) ;; 5497 *) as_dir=$as_dir/ ;; 5498 esac 5499 for ac_prog in egrep 5500 do 5501 for ac_exec_ext in '' $ac_executable_extensions; do 5502 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5503 as_fn_executable_p "$ac_path_EGREP" || continue 5504# Check for GNU ac_path_EGREP and select it if it is found. 5505 # Check for GNU $ac_path_EGREP 5506case `"$ac_path_EGREP" --version 2>&1` in #( 5507*GNU*) 5508 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5509#( 5510*) 5511 ac_count=0 5512 printf %s 0123456789 >"conftest.in" 5513 while : 5514 do 5515 cat "conftest.in" "conftest.in" >"conftest.tmp" 5516 mv "conftest.tmp" "conftest.in" 5517 cp "conftest.in" "conftest.nl" 5518 printf "%s\n" 'EGREP' >> "conftest.nl" 5519 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5521 as_fn_arith $ac_count + 1 && ac_count=$as_val 5522 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5523 # Best one so far, save it but keep looking for a better one 5524 ac_cv_path_EGREP="$ac_path_EGREP" 5525 ac_path_EGREP_max=$ac_count 5526 fi 5527 # 10*(2^10) chars as input seems more than enough 5528 test $ac_count -gt 10 && break 5529 done 5530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5531esac 5532 5533 $ac_path_EGREP_found && break 3 5534 done 5535 done 5536 done 5537IFS=$as_save_IFS 5538 if test -z "$ac_cv_path_EGREP"; then 5539 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5540 fi 5541else 5542 ac_cv_path_EGREP=$EGREP 5543fi 5544 5545 fi ;; 5546esac 5547fi 5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5549printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5550 EGREP="$ac_cv_path_EGREP" 5551 5552 EGREP_TRADITIONAL=$EGREP 5553 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5554 5555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5556printf %s "checking for fgrep... " >&6; } 5557if test ${ac_cv_path_FGREP+y} 5558then : 5559 printf %s "(cached) " >&6 5560else case e in #( 5561 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5562 then ac_cv_path_FGREP="$GREP -F" 5563 else 5564 if test -z "$FGREP"; then 5565 ac_path_FGREP_found=false 5566 # Loop through the user's path and test for each of PROGNAME-LIST 5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5569do 5570 IFS=$as_save_IFS 5571 case $as_dir in #((( 5572 '') as_dir=./ ;; 5573 */) ;; 5574 *) as_dir=$as_dir/ ;; 5575 esac 5576 for ac_prog in fgrep 5577 do 5578 for ac_exec_ext in '' $ac_executable_extensions; do 5579 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5580 as_fn_executable_p "$ac_path_FGREP" || continue 5581# Check for GNU ac_path_FGREP and select it if it is found. 5582 # Check for GNU $ac_path_FGREP 5583case `"$ac_path_FGREP" --version 2>&1` in #( 5584*GNU*) 5585 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5586#( 5587*) 5588 ac_count=0 5589 printf %s 0123456789 >"conftest.in" 5590 while : 5591 do 5592 cat "conftest.in" "conftest.in" >"conftest.tmp" 5593 mv "conftest.tmp" "conftest.in" 5594 cp "conftest.in" "conftest.nl" 5595 printf "%s\n" 'FGREP' >> "conftest.nl" 5596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5598 as_fn_arith $ac_count + 1 && ac_count=$as_val 5599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5600 # Best one so far, save it but keep looking for a better one 5601 ac_cv_path_FGREP="$ac_path_FGREP" 5602 ac_path_FGREP_max=$ac_count 5603 fi 5604 # 10*(2^10) chars as input seems more than enough 5605 test $ac_count -gt 10 && break 5606 done 5607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5608esac 5609 5610 $ac_path_FGREP_found && break 3 5611 done 5612 done 5613 done 5614IFS=$as_save_IFS 5615 if test -z "$ac_cv_path_FGREP"; then 5616 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5617 fi 5618else 5619 ac_cv_path_FGREP=$FGREP 5620fi 5621 5622 fi ;; 5623esac 5624fi 5625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5626printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5627 FGREP="$ac_cv_path_FGREP" 5628 5629 5630test -z "$GREP" && GREP=grep 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650# Check whether --with-gnu-ld was given. 5651if test ${with_gnu_ld+y} 5652then : 5653 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5654else case e in #( 5655 e) with_gnu_ld=no ;; 5656esac 5657fi 5658 5659ac_prog=ld 5660if test yes = "$GCC"; then 5661 # Check if gcc -print-prog-name=ld gives a path. 5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5663printf %s "checking for ld used by $CC... " >&6; } 5664 case $host in 5665 *-*-mingw*) 5666 # gcc leaves a trailing carriage return, which upsets mingw 5667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5668 *) 5669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5670 esac 5671 case $ac_prog in 5672 # Accept absolute paths. 5673 [\\/]* | ?:[\\/]*) 5674 re_direlt='/[^/][^/]*/\.\./' 5675 # Canonicalize the pathname of ld 5676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5679 done 5680 test -z "$LD" && LD=$ac_prog 5681 ;; 5682 "") 5683 # If it fails, then pretend we aren't using GCC. 5684 ac_prog=ld 5685 ;; 5686 *) 5687 # If it is relative, then search for the first ld in PATH. 5688 with_gnu_ld=unknown 5689 ;; 5690 esac 5691elif test yes = "$with_gnu_ld"; then 5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5693printf %s "checking for GNU ld... " >&6; } 5694else 5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5696printf %s "checking for non-GNU ld... " >&6; } 5697fi 5698if test ${lt_cv_path_LD+y} 5699then : 5700 printf %s "(cached) " >&6 5701else case e in #( 5702 e) if test -z "$LD"; then 5703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5704 for ac_dir in $PATH; do 5705 IFS=$lt_save_ifs 5706 test -z "$ac_dir" && ac_dir=. 5707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5708 lt_cv_path_LD=$ac_dir/$ac_prog 5709 # Check to see if the program is GNU ld. I'd rather use --version, 5710 # but apparently some variants of GNU ld only accept -v. 5711 # Break only if it was the GNU/non-GNU ld that we prefer. 5712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5713 *GNU* | *'with BFD'*) 5714 test no != "$with_gnu_ld" && break 5715 ;; 5716 *) 5717 test yes != "$with_gnu_ld" && break 5718 ;; 5719 esac 5720 fi 5721 done 5722 IFS=$lt_save_ifs 5723else 5724 lt_cv_path_LD=$LD # Let the user override the test with a path. 5725fi ;; 5726esac 5727fi 5728 5729LD=$lt_cv_path_LD 5730if test -n "$LD"; then 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5732printf "%s\n" "$LD" >&6; } 5733else 5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735printf "%s\n" "no" >&6; } 5736fi 5737test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5739printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5740if test ${lt_cv_prog_gnu_ld+y} 5741then : 5742 printf %s "(cached) " >&6 5743else case e in #( 5744 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5745case `$LD -v 2>&1 </dev/null` in 5746*GNU* | *'with BFD'*) 5747 lt_cv_prog_gnu_ld=yes 5748 ;; 5749*) 5750 lt_cv_prog_gnu_ld=no 5751 ;; 5752esac ;; 5753esac 5754fi 5755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5756printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5757with_gnu_ld=$lt_cv_prog_gnu_ld 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5768printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5769if test ${lt_cv_path_NM+y} 5770then : 5771 printf %s "(cached) " >&6 5772else case e in #( 5773 e) if test -n "$NM"; then 5774 # Let the user override the test. 5775 lt_cv_path_NM=$NM 5776else 5777 lt_nm_to_check=${ac_tool_prefix}nm 5778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5779 lt_nm_to_check="$lt_nm_to_check nm" 5780 fi 5781 for lt_tmp_nm in $lt_nm_to_check; do 5782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5784 IFS=$lt_save_ifs 5785 test -z "$ac_dir" && ac_dir=. 5786 tmp_nm=$ac_dir/$lt_tmp_nm 5787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5788 # Check to see if the nm accepts a BSD-compat flag. 5789 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5790 # nm: unknown option "B" ignored 5791 # Tru64's nm complains that /dev/null is an invalid object file 5792 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5793 case $build_os in 5794 mingw*) lt_bad_file=conftest.nm/nofile ;; 5795 *) lt_bad_file=/dev/null ;; 5796 esac 5797 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5798 *$lt_bad_file* | *'Invalid file or object type'*) 5799 lt_cv_path_NM="$tmp_nm -B" 5800 break 2 5801 ;; 5802 *) 5803 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5804 */dev/null*) 5805 lt_cv_path_NM="$tmp_nm -p" 5806 break 2 5807 ;; 5808 *) 5809 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5810 continue # so that we can try to find one that supports BSD flags 5811 ;; 5812 esac 5813 ;; 5814 esac 5815 fi 5816 done 5817 IFS=$lt_save_ifs 5818 done 5819 : ${lt_cv_path_NM=no} 5820fi ;; 5821esac 5822fi 5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5824printf "%s\n" "$lt_cv_path_NM" >&6; } 5825if test no != "$lt_cv_path_NM"; then 5826 NM=$lt_cv_path_NM 5827else 5828 # Didn't find any BSD compatible name lister, look for dumpbin. 5829 if test -n "$DUMPBIN"; then : 5830 # Let the user override the test. 5831 else 5832 if test -n "$ac_tool_prefix"; then 5833 for ac_prog in dumpbin "link -dump" 5834 do 5835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5836set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5838printf %s "checking for $ac_word... " >&6; } 5839if test ${ac_cv_prog_DUMPBIN+y} 5840then : 5841 printf %s "(cached) " >&6 5842else case e in #( 5843 e) if test -n "$DUMPBIN"; then 5844 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5845else 5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5847for as_dir in $PATH 5848do 5849 IFS=$as_save_IFS 5850 case $as_dir in #((( 5851 '') as_dir=./ ;; 5852 */) ;; 5853 *) as_dir=$as_dir/ ;; 5854 esac 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5857 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861done 5862 done 5863IFS=$as_save_IFS 5864 5865fi ;; 5866esac 5867fi 5868DUMPBIN=$ac_cv_prog_DUMPBIN 5869if test -n "$DUMPBIN"; then 5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5871printf "%s\n" "$DUMPBIN" >&6; } 5872else 5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874printf "%s\n" "no" >&6; } 5875fi 5876 5877 5878 test -n "$DUMPBIN" && break 5879 done 5880fi 5881if test -z "$DUMPBIN"; then 5882 ac_ct_DUMPBIN=$DUMPBIN 5883 for ac_prog in dumpbin "link -dump" 5884do 5885 # Extract the first word of "$ac_prog", so it can be a program name with args. 5886set dummy $ac_prog; ac_word=$2 5887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5888printf %s "checking for $ac_word... " >&6; } 5889if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5890then : 5891 printf %s "(cached) " >&6 5892else case e in #( 5893 e) if test -n "$ac_ct_DUMPBIN"; then 5894 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5895else 5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897for as_dir in $PATH 5898do 5899 IFS=$as_save_IFS 5900 case $as_dir in #((( 5901 '') as_dir=./ ;; 5902 */) ;; 5903 *) as_dir=$as_dir/ ;; 5904 esac 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5907 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912 done 5913IFS=$as_save_IFS 5914 5915fi ;; 5916esac 5917fi 5918ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5919if test -n "$ac_ct_DUMPBIN"; then 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5921printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5922else 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5924printf "%s\n" "no" >&6; } 5925fi 5926 5927 5928 test -n "$ac_ct_DUMPBIN" && break 5929done 5930 5931 if test "x$ac_ct_DUMPBIN" = x; then 5932 DUMPBIN=":" 5933 else 5934 case $cross_compiling:$ac_tool_warned in 5935yes:) 5936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5937printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5938ac_tool_warned=yes ;; 5939esac 5940 DUMPBIN=$ac_ct_DUMPBIN 5941 fi 5942fi 5943 5944 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5945 *COFF*) 5946 DUMPBIN="$DUMPBIN -symbols -headers" 5947 ;; 5948 *) 5949 DUMPBIN=: 5950 ;; 5951 esac 5952 fi 5953 5954 if test : != "$DUMPBIN"; then 5955 NM=$DUMPBIN 5956 fi 5957fi 5958test -z "$NM" && NM=nm 5959 5960 5961 5962 5963 5964 5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5966printf %s "checking the name lister ($NM) interface... " >&6; } 5967if test ${lt_cv_nm_interface+y} 5968then : 5969 printf %s "(cached) " >&6 5970else case e in #( 5971 e) lt_cv_nm_interface="BSD nm" 5972 echo "int some_variable = 0;" > conftest.$ac_ext 5973 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5974 (eval "$ac_compile" 2>conftest.err) 5975 cat conftest.err >&5 5976 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5977 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5978 cat conftest.err >&5 5979 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5980 cat conftest.out >&5 5981 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5982 lt_cv_nm_interface="MS dumpbin" 5983 fi 5984 rm -f conftest* ;; 5985esac 5986fi 5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5988printf "%s\n" "$lt_cv_nm_interface" >&6; } 5989 5990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5991printf %s "checking whether ln -s works... " >&6; } 5992LN_S=$as_ln_s 5993if test "$LN_S" = "ln -s"; then 5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5995printf "%s\n" "yes" >&6; } 5996else 5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5998printf "%s\n" "no, using $LN_S" >&6; } 5999fi 6000 6001# find the maximum length of command line arguments 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6003printf %s "checking the maximum length of command line arguments... " >&6; } 6004if test ${lt_cv_sys_max_cmd_len+y} 6005then : 6006 printf %s "(cached) " >&6 6007else case e in #( 6008 e) i=0 6009 teststring=ABCD 6010 6011 case $build_os in 6012 msdosdjgpp*) 6013 # On DJGPP, this test can blow up pretty badly due to problems in libc 6014 # (any single argument exceeding 2000 bytes causes a buffer overrun 6015 # during glob expansion). Even if it were fixed, the result of this 6016 # check would be larger than it should be. 6017 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6018 ;; 6019 6020 gnu*) 6021 # Under GNU Hurd, this test is not required because there is 6022 # no limit to the length of command line arguments. 6023 # Libtool will interpret -1 as no limit whatsoever 6024 lt_cv_sys_max_cmd_len=-1; 6025 ;; 6026 6027 cygwin* | mingw* | cegcc*) 6028 # On Win9x/ME, this test blows up -- it succeeds, but takes 6029 # about 5 minutes as the teststring grows exponentially. 6030 # Worse, since 9x/ME are not pre-emptively multitasking, 6031 # you end up with a "frozen" computer, even though with patience 6032 # the test eventually succeeds (with a max line length of 256k). 6033 # Instead, let's just punt: use the minimum linelength reported by 6034 # all of the supported platforms: 8192 (on NT/2K/XP). 6035 lt_cv_sys_max_cmd_len=8192; 6036 ;; 6037 6038 mint*) 6039 # On MiNT this can take a long time and run out of memory. 6040 lt_cv_sys_max_cmd_len=8192; 6041 ;; 6042 6043 amigaos*) 6044 # On AmigaOS with pdksh, this test takes hours, literally. 6045 # So we just punt and use a minimum line length of 8192. 6046 lt_cv_sys_max_cmd_len=8192; 6047 ;; 6048 6049 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6050 # This has been around since 386BSD, at least. Likely further. 6051 if test -x /sbin/sysctl; then 6052 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6053 elif test -x /usr/sbin/sysctl; then 6054 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6055 else 6056 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6057 fi 6058 # And add a safety zone 6059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6061 ;; 6062 6063 interix*) 6064 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6065 lt_cv_sys_max_cmd_len=196608 6066 ;; 6067 6068 os2*) 6069 # The test takes a long time on OS/2. 6070 lt_cv_sys_max_cmd_len=8192 6071 ;; 6072 6073 osf*) 6074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6076 # nice to cause kernel panics so lets avoid the loop below. 6077 # First set a reasonable default. 6078 lt_cv_sys_max_cmd_len=16384 6079 # 6080 if test -x /sbin/sysconfig; then 6081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6082 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6083 esac 6084 fi 6085 ;; 6086 sco3.2v5*) 6087 lt_cv_sys_max_cmd_len=102400 6088 ;; 6089 sysv5* | sco5v6* | sysv4.2uw2*) 6090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6091 if test -n "$kargmax"; then 6092 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6093 else 6094 lt_cv_sys_max_cmd_len=32768 6095 fi 6096 ;; 6097 *) 6098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6099 if test -n "$lt_cv_sys_max_cmd_len" && \ 6100 test undefined != "$lt_cv_sys_max_cmd_len"; then 6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6103 else 6104 # Make teststring a little bigger before we do anything with it. 6105 # a 1K string should be a reasonable start. 6106 for i in 1 2 3 4 5 6 7 8; do 6107 teststring=$teststring$teststring 6108 done 6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6110 # If test is not a shell built-in, we'll probably end up computing a 6111 # maximum length that is only half of the actual maximum length, but 6112 # we can't tell. 6113 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6114 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6115 test 17 != "$i" # 1/2 MB should be enough 6116 do 6117 i=`expr $i + 1` 6118 teststring=$teststring$teststring 6119 done 6120 # Only check the string length outside the loop. 6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6122 teststring= 6123 # Add a significant safety factor because C++ compilers can tack on 6124 # massive amounts of additional arguments before passing them to the 6125 # linker. It appears as though 1/2 is a usable value. 6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6127 fi 6128 ;; 6129 esac 6130 ;; 6131esac 6132fi 6133 6134if test -n "$lt_cv_sys_max_cmd_len"; then 6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6136printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6137else 6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6139printf "%s\n" "none" >&6; } 6140fi 6141max_cmd_len=$lt_cv_sys_max_cmd_len 6142 6143 6144 6145 6146 6147 6148: ${CP="cp -f"} 6149: ${MV="mv -f"} 6150: ${RM="rm -f"} 6151 6152if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6153 lt_unset=unset 6154else 6155 lt_unset=false 6156fi 6157 6158 6159 6160 6161 6162# test EBCDIC or ASCII 6163case `echo X|tr X '\101'` in 6164 A) # ASCII based system 6165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6166 lt_SP2NL='tr \040 \012' 6167 lt_NL2SP='tr \015\012 \040\040' 6168 ;; 6169 *) # EBCDIC based system 6170 lt_SP2NL='tr \100 \n' 6171 lt_NL2SP='tr \r\n \100\100' 6172 ;; 6173esac 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6184printf %s "checking how to convert $build file names to $host format... " >&6; } 6185if test ${lt_cv_to_host_file_cmd+y} 6186then : 6187 printf %s "(cached) " >&6 6188else case e in #( 6189 e) case $host in 6190 *-*-mingw* ) 6191 case $build in 6192 *-*-mingw* ) # actually msys 6193 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6194 ;; 6195 *-*-cygwin* ) 6196 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6197 ;; 6198 * ) # otherwise, assume *nix 6199 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6200 ;; 6201 esac 6202 ;; 6203 *-*-cygwin* ) 6204 case $build in 6205 *-*-mingw* ) # actually msys 6206 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6207 ;; 6208 *-*-cygwin* ) 6209 lt_cv_to_host_file_cmd=func_convert_file_noop 6210 ;; 6211 * ) # otherwise, assume *nix 6212 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6213 ;; 6214 esac 6215 ;; 6216 * ) # unhandled hosts (and "normal" native builds) 6217 lt_cv_to_host_file_cmd=func_convert_file_noop 6218 ;; 6219esac 6220 ;; 6221esac 6222fi 6223 6224to_host_file_cmd=$lt_cv_to_host_file_cmd 6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6226printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6227 6228 6229 6230 6231 6232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6233printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6234if test ${lt_cv_to_tool_file_cmd+y} 6235then : 6236 printf %s "(cached) " >&6 6237else case e in #( 6238 e) #assume ordinary cross tools, or native build. 6239lt_cv_to_tool_file_cmd=func_convert_file_noop 6240case $host in 6241 *-*-mingw* ) 6242 case $build in 6243 *-*-mingw* ) # actually msys 6244 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6245 ;; 6246 esac 6247 ;; 6248esac 6249 ;; 6250esac 6251fi 6252 6253to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6255printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6256 6257 6258 6259 6260 6261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6262printf %s "checking for $LD option to reload object files... " >&6; } 6263if test ${lt_cv_ld_reload_flag+y} 6264then : 6265 printf %s "(cached) " >&6 6266else case e in #( 6267 e) lt_cv_ld_reload_flag='-r' ;; 6268esac 6269fi 6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6271printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6272reload_flag=$lt_cv_ld_reload_flag 6273case $reload_flag in 6274"" | " "*) ;; 6275*) reload_flag=" $reload_flag" ;; 6276esac 6277reload_cmds='$LD$reload_flag -o $output$reload_objs' 6278case $host_os in 6279 cygwin* | mingw* | pw32* | cegcc*) 6280 if test yes != "$GCC"; then 6281 reload_cmds=false 6282 fi 6283 ;; 6284 darwin*) 6285 if test yes = "$GCC"; then 6286 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6287 else 6288 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6289 fi 6290 ;; 6291esac 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301if test -n "$ac_tool_prefix"; then 6302 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6303set dummy ${ac_tool_prefix}file; ac_word=$2 6304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6305printf %s "checking for $ac_word... " >&6; } 6306if test ${ac_cv_prog_FILECMD+y} 6307then : 6308 printf %s "(cached) " >&6 6309else case e in #( 6310 e) if test -n "$FILECMD"; then 6311 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6312else 6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6314for as_dir in $PATH 6315do 6316 IFS=$as_save_IFS 6317 case $as_dir in #((( 6318 '') as_dir=./ ;; 6319 */) ;; 6320 *) as_dir=$as_dir/ ;; 6321 esac 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6324 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6326 break 2 6327 fi 6328done 6329 done 6330IFS=$as_save_IFS 6331 6332fi ;; 6333esac 6334fi 6335FILECMD=$ac_cv_prog_FILECMD 6336if test -n "$FILECMD"; then 6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6338printf "%s\n" "$FILECMD" >&6; } 6339else 6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6341printf "%s\n" "no" >&6; } 6342fi 6343 6344 6345fi 6346if test -z "$ac_cv_prog_FILECMD"; then 6347 ac_ct_FILECMD=$FILECMD 6348 # Extract the first word of "file", so it can be a program name with args. 6349set dummy file; ac_word=$2 6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6351printf %s "checking for $ac_word... " >&6; } 6352if test ${ac_cv_prog_ac_ct_FILECMD+y} 6353then : 6354 printf %s "(cached) " >&6 6355else case e in #( 6356 e) if test -n "$ac_ct_FILECMD"; then 6357 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6358else 6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 case $as_dir in #((( 6364 '') as_dir=./ ;; 6365 */) ;; 6366 *) as_dir=$as_dir/ ;; 6367 esac 6368 for ac_exec_ext in '' $ac_executable_extensions; do 6369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6370 ac_cv_prog_ac_ct_FILECMD="file" 6371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6372 break 2 6373 fi 6374done 6375 done 6376IFS=$as_save_IFS 6377 6378fi ;; 6379esac 6380fi 6381ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6382if test -n "$ac_ct_FILECMD"; then 6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6384printf "%s\n" "$ac_ct_FILECMD" >&6; } 6385else 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6387printf "%s\n" "no" >&6; } 6388fi 6389 6390 if test "x$ac_ct_FILECMD" = x; then 6391 FILECMD=":" 6392 else 6393 case $cross_compiling:$ac_tool_warned in 6394yes:) 6395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6396printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6397ac_tool_warned=yes ;; 6398esac 6399 FILECMD=$ac_ct_FILECMD 6400 fi 6401else 6402 FILECMD="$ac_cv_prog_FILECMD" 6403fi 6404 6405 6406 6407 6408 6409 6410 6411if test -n "$ac_tool_prefix"; then 6412 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6413set dummy ${ac_tool_prefix}objdump; ac_word=$2 6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415printf %s "checking for $ac_word... " >&6; } 6416if test ${ac_cv_prog_OBJDUMP+y} 6417then : 6418 printf %s "(cached) " >&6 6419else case e in #( 6420 e) if test -n "$OBJDUMP"; then 6421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 case $as_dir in #((( 6428 '') as_dir=./ ;; 6429 */) ;; 6430 *) as_dir=$as_dir/ ;; 6431 esac 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6434 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438done 6439 done 6440IFS=$as_save_IFS 6441 6442fi ;; 6443esac 6444fi 6445OBJDUMP=$ac_cv_prog_OBJDUMP 6446if test -n "$OBJDUMP"; then 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6448printf "%s\n" "$OBJDUMP" >&6; } 6449else 6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6451printf "%s\n" "no" >&6; } 6452fi 6453 6454 6455fi 6456if test -z "$ac_cv_prog_OBJDUMP"; then 6457 ac_ct_OBJDUMP=$OBJDUMP 6458 # Extract the first word of "objdump", so it can be a program name with args. 6459set dummy objdump; ac_word=$2 6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6461printf %s "checking for $ac_word... " >&6; } 6462if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6463then : 6464 printf %s "(cached) " >&6 6465else case e in #( 6466 e) if test -n "$ac_ct_OBJDUMP"; then 6467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 case $as_dir in #((( 6474 '') as_dir=./ ;; 6475 */) ;; 6476 *) as_dir=$as_dir/ ;; 6477 esac 6478 for ac_exec_ext in '' $ac_executable_extensions; do 6479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6480 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6482 break 2 6483 fi 6484done 6485 done 6486IFS=$as_save_IFS 6487 6488fi ;; 6489esac 6490fi 6491ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6492if test -n "$ac_ct_OBJDUMP"; then 6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6494printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6495else 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6497printf "%s\n" "no" >&6; } 6498fi 6499 6500 if test "x$ac_ct_OBJDUMP" = x; then 6501 OBJDUMP="false" 6502 else 6503 case $cross_compiling:$ac_tool_warned in 6504yes:) 6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6507ac_tool_warned=yes ;; 6508esac 6509 OBJDUMP=$ac_ct_OBJDUMP 6510 fi 6511else 6512 OBJDUMP="$ac_cv_prog_OBJDUMP" 6513fi 6514 6515test -z "$OBJDUMP" && OBJDUMP=objdump 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6526printf %s "checking how to recognize dependent libraries... " >&6; } 6527if test ${lt_cv_deplibs_check_method+y} 6528then : 6529 printf %s "(cached) " >&6 6530else case e in #( 6531 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6532lt_cv_file_magic_test_file= 6533lt_cv_deplibs_check_method='unknown' 6534# Need to set the preceding variable on all platforms that support 6535# interlibrary dependencies. 6536# 'none' -- dependencies not supported. 6537# 'unknown' -- same as none, but documents that we really don't know. 6538# 'pass_all' -- all dependencies passed with no checks. 6539# 'test_compile' -- check by making test program. 6540# 'file_magic [[regex]]' -- check by looking for files in library path 6541# that responds to the $file_magic_cmd with a given extended regex. 6542# If you have 'file' or equivalent on your system and you're not sure 6543# whether 'pass_all' will *always* work, you probably want this one. 6544 6545case $host_os in 6546aix[4-9]*) 6547 lt_cv_deplibs_check_method=pass_all 6548 ;; 6549 6550beos*) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553 6554bsdi[45]*) 6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6556 lt_cv_file_magic_cmd='$FILECMD -L' 6557 lt_cv_file_magic_test_file=/shlib/libc.so 6558 ;; 6559 6560cygwin*) 6561 # func_win32_libid is a shell function defined in ltmain.sh 6562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6563 lt_cv_file_magic_cmd='func_win32_libid' 6564 ;; 6565 6566mingw* | pw32*) 6567 # Base MSYS/MinGW do not provide the 'file' command needed by 6568 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6569 # unless we find 'file', for example because we are cross-compiling. 6570 if ( file / ) >/dev/null 2>&1; then 6571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6572 lt_cv_file_magic_cmd='func_win32_libid' 6573 else 6574 # Keep this pattern in sync with the one in func_win32_libid. 6575 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6576 lt_cv_file_magic_cmd='$OBJDUMP -f' 6577 fi 6578 ;; 6579 6580cegcc*) 6581 # use the weaker test based on 'objdump'. See mingw*. 6582 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6583 lt_cv_file_magic_cmd='$OBJDUMP -f' 6584 ;; 6585 6586darwin* | rhapsody*) 6587 lt_cv_deplibs_check_method=pass_all 6588 ;; 6589 6590freebsd* | dragonfly* | midnightbsd*) 6591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6592 case $host_cpu in 6593 i*86 ) 6594 # Not sure whether the presence of OpenBSD here was a mistake. 6595 # Let's accept both of them until this is cleared up. 6596 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6597 lt_cv_file_magic_cmd=$FILECMD 6598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6599 ;; 6600 esac 6601 else 6602 lt_cv_deplibs_check_method=pass_all 6603 fi 6604 ;; 6605 6606haiku*) 6607 lt_cv_deplibs_check_method=pass_all 6608 ;; 6609 6610hpux10.20* | hpux11*) 6611 lt_cv_file_magic_cmd=$FILECMD 6612 case $host_cpu in 6613 ia64*) 6614 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6615 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6616 ;; 6617 hppa*64*) 6618 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]' 6619 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6620 ;; 6621 *) 6622 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6623 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6624 ;; 6625 esac 6626 ;; 6627 6628interix[3-9]*) 6629 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6631 ;; 6632 6633irix5* | irix6* | nonstopux*) 6634 case $LD in 6635 *-32|*"-32 ") libmagic=32-bit;; 6636 *-n32|*"-n32 ") libmagic=N32;; 6637 *-64|*"-64 ") libmagic=64-bit;; 6638 *) libmagic=never-match;; 6639 esac 6640 lt_cv_deplibs_check_method=pass_all 6641 ;; 6642 6643# This must be glibc/ELF. 6644linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6645 lt_cv_deplibs_check_method=pass_all 6646 ;; 6647 6648netbsd*) 6649 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6651 else 6652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6653 fi 6654 ;; 6655 6656newos6*) 6657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6658 lt_cv_file_magic_cmd=$FILECMD 6659 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6660 ;; 6661 6662*nto* | *qnx*) 6663 lt_cv_deplibs_check_method=pass_all 6664 ;; 6665 6666openbsd* | bitrig*) 6667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6669 else 6670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6671 fi 6672 ;; 6673 6674osf3* | osf4* | osf5*) 6675 lt_cv_deplibs_check_method=pass_all 6676 ;; 6677 6678rdos*) 6679 lt_cv_deplibs_check_method=pass_all 6680 ;; 6681 6682solaris*) 6683 lt_cv_deplibs_check_method=pass_all 6684 ;; 6685 6686sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6687 lt_cv_deplibs_check_method=pass_all 6688 ;; 6689 6690sysv4 | sysv4.3*) 6691 case $host_vendor in 6692 motorola) 6693 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]' 6694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6695 ;; 6696 ncr) 6697 lt_cv_deplibs_check_method=pass_all 6698 ;; 6699 sequent) 6700 lt_cv_file_magic_cmd='/bin/file' 6701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6702 ;; 6703 sni) 6704 lt_cv_file_magic_cmd='/bin/file' 6705 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6706 lt_cv_file_magic_test_file=/lib/libc.so 6707 ;; 6708 siemens) 6709 lt_cv_deplibs_check_method=pass_all 6710 ;; 6711 pc) 6712 lt_cv_deplibs_check_method=pass_all 6713 ;; 6714 esac 6715 ;; 6716 6717tpf*) 6718 lt_cv_deplibs_check_method=pass_all 6719 ;; 6720os2*) 6721 lt_cv_deplibs_check_method=pass_all 6722 ;; 6723esac 6724 ;; 6725esac 6726fi 6727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6728printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6729 6730file_magic_glob= 6731want_nocaseglob=no 6732if test "$build" = "$host"; then 6733 case $host_os in 6734 mingw* | pw32*) 6735 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6736 want_nocaseglob=yes 6737 else 6738 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6739 fi 6740 ;; 6741 esac 6742fi 6743 6744file_magic_cmd=$lt_cv_file_magic_cmd 6745deplibs_check_method=$lt_cv_deplibs_check_method 6746test -z "$deplibs_check_method" && deplibs_check_method=unknown 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769if test -n "$ac_tool_prefix"; then 6770 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6771set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773printf %s "checking for $ac_word... " >&6; } 6774if test ${ac_cv_prog_DLLTOOL+y} 6775then : 6776 printf %s "(cached) " >&6 6777else case e in #( 6778 e) if test -n "$DLLTOOL"; then 6779 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6780else 6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 case $as_dir in #((( 6786 '') as_dir=./ ;; 6787 */) ;; 6788 *) as_dir=$as_dir/ ;; 6789 esac 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi ;; 6801esac 6802fi 6803DLLTOOL=$ac_cv_prog_DLLTOOL 6804if test -n "$DLLTOOL"; then 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6806printf "%s\n" "$DLLTOOL" >&6; } 6807else 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809printf "%s\n" "no" >&6; } 6810fi 6811 6812 6813fi 6814if test -z "$ac_cv_prog_DLLTOOL"; then 6815 ac_ct_DLLTOOL=$DLLTOOL 6816 # Extract the first word of "dlltool", so it can be a program name with args. 6817set dummy dlltool; ac_word=$2 6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6819printf %s "checking for $ac_word... " >&6; } 6820if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6821then : 6822 printf %s "(cached) " >&6 6823else case e in #( 6824 e) if test -n "$ac_ct_DLLTOOL"; then 6825 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6826else 6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6828for as_dir in $PATH 6829do 6830 IFS=$as_save_IFS 6831 case $as_dir in #((( 6832 '') as_dir=./ ;; 6833 */) ;; 6834 *) as_dir=$as_dir/ ;; 6835 esac 6836 for ac_exec_ext in '' $ac_executable_extensions; do 6837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6838 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6840 break 2 6841 fi 6842done 6843 done 6844IFS=$as_save_IFS 6845 6846fi ;; 6847esac 6848fi 6849ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6850if test -n "$ac_ct_DLLTOOL"; then 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6852printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6853else 6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855printf "%s\n" "no" >&6; } 6856fi 6857 6858 if test "x$ac_ct_DLLTOOL" = x; then 6859 DLLTOOL="false" 6860 else 6861 case $cross_compiling:$ac_tool_warned in 6862yes:) 6863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6864printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6865ac_tool_warned=yes ;; 6866esac 6867 DLLTOOL=$ac_ct_DLLTOOL 6868 fi 6869else 6870 DLLTOOL="$ac_cv_prog_DLLTOOL" 6871fi 6872 6873test -z "$DLLTOOL" && DLLTOOL=dlltool 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6885printf %s "checking how to associate runtime and link libraries... " >&6; } 6886if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6887then : 6888 printf %s "(cached) " >&6 6889else case e in #( 6890 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6891 6892case $host_os in 6893cygwin* | mingw* | pw32* | cegcc*) 6894 # two different shell functions defined in ltmain.sh; 6895 # decide which one to use based on capabilities of $DLLTOOL 6896 case `$DLLTOOL --help 2>&1` in 6897 *--identify-strict*) 6898 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6899 ;; 6900 *) 6901 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6902 ;; 6903 esac 6904 ;; 6905*) 6906 # fallback: assume linklib IS sharedlib 6907 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6908 ;; 6909esac 6910 ;; 6911esac 6912fi 6913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6914printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6915sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6916test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6917 6918 6919 6920 6921 6922 6923 6924if test -n "$ac_tool_prefix"; then 6925 for ac_prog in ar 6926 do 6927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6928set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6930printf %s "checking for $ac_word... " >&6; } 6931if test ${ac_cv_prog_AR+y} 6932then : 6933 printf %s "(cached) " >&6 6934else case e in #( 6935 e) if test -n "$AR"; then 6936 ac_cv_prog_AR="$AR" # Let the user override the test. 6937else 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 case $as_dir in #((( 6943 '') as_dir=./ ;; 6944 */) ;; 6945 *) as_dir=$as_dir/ ;; 6946 esac 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6949 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi ;; 6958esac 6959fi 6960AR=$ac_cv_prog_AR 6961if test -n "$AR"; then 6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6963printf "%s\n" "$AR" >&6; } 6964else 6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6966printf "%s\n" "no" >&6; } 6967fi 6968 6969 6970 test -n "$AR" && break 6971 done 6972fi 6973if test -z "$AR"; then 6974 ac_ct_AR=$AR 6975 for ac_prog in ar 6976do 6977 # Extract the first word of "$ac_prog", so it can be a program name with args. 6978set dummy $ac_prog; ac_word=$2 6979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980printf %s "checking for $ac_word... " >&6; } 6981if test ${ac_cv_prog_ac_ct_AR+y} 6982then : 6983 printf %s "(cached) " >&6 6984else case e in #( 6985 e) if test -n "$ac_ct_AR"; then 6986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6987else 6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6989for as_dir in $PATH 6990do 6991 IFS=$as_save_IFS 6992 case $as_dir in #((( 6993 '') as_dir=./ ;; 6994 */) ;; 6995 *) as_dir=$as_dir/ ;; 6996 esac 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6999 ac_cv_prog_ac_ct_AR="$ac_prog" 7000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003done 7004 done 7005IFS=$as_save_IFS 7006 7007fi ;; 7008esac 7009fi 7010ac_ct_AR=$ac_cv_prog_ac_ct_AR 7011if test -n "$ac_ct_AR"; then 7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7013printf "%s\n" "$ac_ct_AR" >&6; } 7014else 7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7016printf "%s\n" "no" >&6; } 7017fi 7018 7019 7020 test -n "$ac_ct_AR" && break 7021done 7022 7023 if test "x$ac_ct_AR" = x; then 7024 AR="false" 7025 else 7026 case $cross_compiling:$ac_tool_warned in 7027yes:) 7028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7029printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7030ac_tool_warned=yes ;; 7031esac 7032 AR=$ac_ct_AR 7033 fi 7034fi 7035 7036: ${AR=ar} 7037 7038 7039 7040 7041 7042 7043# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7044# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7045# higher priority because thats what people were doing historically (setting 7046# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7047# variable obsoleted/removed. 7048 7049test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7050lt_ar_flags=$AR_FLAGS 7051 7052 7053 7054 7055 7056 7057# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7058# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7059 7060 7061 7062 7063 7064 7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7066printf %s "checking for archiver @FILE support... " >&6; } 7067if test ${lt_cv_ar_at_file+y} 7068then : 7069 printf %s "(cached) " >&6 7070else case e in #( 7071 e) lt_cv_ar_at_file=no 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073/* end confdefs.h. */ 7074 7075int 7076main (void) 7077{ 7078 7079 ; 7080 return 0; 7081} 7082_ACEOF 7083if ac_fn_c_try_compile "$LINENO" 7084then : 7085 echo conftest.$ac_objext > conftest.lst 7086 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7088 (eval $lt_ar_try) 2>&5 7089 ac_status=$? 7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7091 test $ac_status = 0; } 7092 if test 0 -eq "$ac_status"; then 7093 # Ensure the archiver fails upon bogus file names. 7094 rm -f conftest.$ac_objext libconftest.a 7095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7096 (eval $lt_ar_try) 2>&5 7097 ac_status=$? 7098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7099 test $ac_status = 0; } 7100 if test 0 -ne "$ac_status"; then 7101 lt_cv_ar_at_file=@ 7102 fi 7103 fi 7104 rm -f conftest.* libconftest.a 7105 7106fi 7107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7108 ;; 7109esac 7110fi 7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7112printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7113 7114if test no = "$lt_cv_ar_at_file"; then 7115 archiver_list_spec= 7116else 7117 archiver_list_spec=$lt_cv_ar_at_file 7118fi 7119 7120 7121 7122 7123 7124 7125 7126if test -n "$ac_tool_prefix"; then 7127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7128set dummy ${ac_tool_prefix}strip; ac_word=$2 7129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130printf %s "checking for $ac_word... " >&6; } 7131if test ${ac_cv_prog_STRIP+y} 7132then : 7133 printf %s "(cached) " >&6 7134else case e in #( 7135 e) if test -n "$STRIP"; then 7136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7137else 7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139for as_dir in $PATH 7140do 7141 IFS=$as_save_IFS 7142 case $as_dir in #((( 7143 '') as_dir=./ ;; 7144 */) ;; 7145 *) as_dir=$as_dir/ ;; 7146 esac 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7149 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7151 break 2 7152 fi 7153done 7154 done 7155IFS=$as_save_IFS 7156 7157fi ;; 7158esac 7159fi 7160STRIP=$ac_cv_prog_STRIP 7161if test -n "$STRIP"; then 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7163printf "%s\n" "$STRIP" >&6; } 7164else 7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7166printf "%s\n" "no" >&6; } 7167fi 7168 7169 7170fi 7171if test -z "$ac_cv_prog_STRIP"; then 7172 ac_ct_STRIP=$STRIP 7173 # Extract the first word of "strip", so it can be a program name with args. 7174set dummy strip; ac_word=$2 7175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7176printf %s "checking for $ac_word... " >&6; } 7177if test ${ac_cv_prog_ac_ct_STRIP+y} 7178then : 7179 printf %s "(cached) " >&6 7180else case e in #( 7181 e) if test -n "$ac_ct_STRIP"; then 7182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7183else 7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7185for as_dir in $PATH 7186do 7187 IFS=$as_save_IFS 7188 case $as_dir in #((( 7189 '') as_dir=./ ;; 7190 */) ;; 7191 *) as_dir=$as_dir/ ;; 7192 esac 7193 for ac_exec_ext in '' $ac_executable_extensions; do 7194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7195 ac_cv_prog_ac_ct_STRIP="strip" 7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7197 break 2 7198 fi 7199done 7200 done 7201IFS=$as_save_IFS 7202 7203fi ;; 7204esac 7205fi 7206ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7207if test -n "$ac_ct_STRIP"; then 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7209printf "%s\n" "$ac_ct_STRIP" >&6; } 7210else 7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212printf "%s\n" "no" >&6; } 7213fi 7214 7215 if test "x$ac_ct_STRIP" = x; then 7216 STRIP=":" 7217 else 7218 case $cross_compiling:$ac_tool_warned in 7219yes:) 7220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7221printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7222ac_tool_warned=yes ;; 7223esac 7224 STRIP=$ac_ct_STRIP 7225 fi 7226else 7227 STRIP="$ac_cv_prog_STRIP" 7228fi 7229 7230test -z "$STRIP" && STRIP=: 7231 7232 7233 7234 7235 7236 7237if test -n "$ac_tool_prefix"; then 7238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7239set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7241printf %s "checking for $ac_word... " >&6; } 7242if test ${ac_cv_prog_RANLIB+y} 7243then : 7244 printf %s "(cached) " >&6 7245else case e in #( 7246 e) if test -n "$RANLIB"; then 7247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7248else 7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 case $as_dir in #((( 7254 '') as_dir=./ ;; 7255 */) ;; 7256 *) as_dir=$as_dir/ ;; 7257 esac 7258 for ac_exec_ext in '' $ac_executable_extensions; do 7259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7262 break 2 7263 fi 7264done 7265 done 7266IFS=$as_save_IFS 7267 7268fi ;; 7269esac 7270fi 7271RANLIB=$ac_cv_prog_RANLIB 7272if test -n "$RANLIB"; then 7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7274printf "%s\n" "$RANLIB" >&6; } 7275else 7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277printf "%s\n" "no" >&6; } 7278fi 7279 7280 7281fi 7282if test -z "$ac_cv_prog_RANLIB"; then 7283 ac_ct_RANLIB=$RANLIB 7284 # Extract the first word of "ranlib", so it can be a program name with args. 7285set dummy ranlib; ac_word=$2 7286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287printf %s "checking for $ac_word... " >&6; } 7288if test ${ac_cv_prog_ac_ct_RANLIB+y} 7289then : 7290 printf %s "(cached) " >&6 7291else case e in #( 7292 e) if test -n "$ac_ct_RANLIB"; then 7293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 case $as_dir in #((( 7300 '') as_dir=./ ;; 7301 */) ;; 7302 *) as_dir=$as_dir/ ;; 7303 esac 7304 for ac_exec_ext in '' $ac_executable_extensions; do 7305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7306 ac_cv_prog_ac_ct_RANLIB="ranlib" 7307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7308 break 2 7309 fi 7310done 7311 done 7312IFS=$as_save_IFS 7313 7314fi ;; 7315esac 7316fi 7317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7318if test -n "$ac_ct_RANLIB"; then 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7320printf "%s\n" "$ac_ct_RANLIB" >&6; } 7321else 7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323printf "%s\n" "no" >&6; } 7324fi 7325 7326 if test "x$ac_ct_RANLIB" = x; then 7327 RANLIB=":" 7328 else 7329 case $cross_compiling:$ac_tool_warned in 7330yes:) 7331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7333ac_tool_warned=yes ;; 7334esac 7335 RANLIB=$ac_ct_RANLIB 7336 fi 7337else 7338 RANLIB="$ac_cv_prog_RANLIB" 7339fi 7340 7341test -z "$RANLIB" && RANLIB=: 7342 7343 7344 7345 7346 7347 7348# Determine commands to create old-style static archives. 7349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7350old_postinstall_cmds='chmod 644 $oldlib' 7351old_postuninstall_cmds= 7352 7353if test -n "$RANLIB"; then 7354 case $host_os in 7355 bitrig* | openbsd*) 7356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7357 ;; 7358 *) 7359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7360 ;; 7361 esac 7362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7363fi 7364 7365case $host_os in 7366 darwin*) 7367 lock_old_archive_extraction=yes ;; 7368 *) 7369 lock_old_archive_extraction=no ;; 7370esac 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410# If no C compiler was specified, use CC. 7411LTCC=${LTCC-"$CC"} 7412 7413# If no C compiler flags were specified, use CFLAGS. 7414LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7415 7416# Allow CC to be a program name with arguments. 7417compiler=$CC 7418 7419 7420# Check for command to grab the raw symbol name followed by C symbol from nm. 7421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7422printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7423if test ${lt_cv_sys_global_symbol_pipe+y} 7424then : 7425 printf %s "(cached) " >&6 7426else case e in #( 7427 e) 7428# These are sane defaults that work on at least a few old systems. 7429# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7430 7431# Character class describing NM global symbol codes. 7432symcode='[BCDEGRST]' 7433 7434# Regexp to match symbols that can be accessed directly from C. 7435sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7436 7437# Define system-specific variables. 7438case $host_os in 7439aix*) 7440 symcode='[BCDT]' 7441 ;; 7442cygwin* | mingw* | pw32* | cegcc*) 7443 symcode='[ABCDGISTW]' 7444 ;; 7445hpux*) 7446 if test ia64 = "$host_cpu"; then 7447 symcode='[ABCDEGRST]' 7448 fi 7449 ;; 7450irix* | nonstopux*) 7451 symcode='[BCDEGRST]' 7452 ;; 7453osf*) 7454 symcode='[BCDEGQRST]' 7455 ;; 7456solaris*) 7457 symcode='[BDRT]' 7458 ;; 7459sco3.2v5*) 7460 symcode='[DT]' 7461 ;; 7462sysv4.2uw2*) 7463 symcode='[DT]' 7464 ;; 7465sysv5* | sco5v6* | unixware* | OpenUNIX*) 7466 symcode='[ABDT]' 7467 ;; 7468sysv4) 7469 symcode='[DFNSTU]' 7470 ;; 7471esac 7472 7473# If we're using GNU nm, then use its standard symbol codes. 7474case `$NM -V 2>&1` in 7475*GNU* | *'with BFD'*) 7476 symcode='[ABCDGIRSTW]' ;; 7477esac 7478 7479if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7480 # Gets list of data symbols to import. 7481 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7482 # Adjust the below global symbol transforms to fixup imported variables. 7483 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7484 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7485 lt_c_name_lib_hook="\ 7486 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7487 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7488else 7489 # Disable hooks by default. 7490 lt_cv_sys_global_symbol_to_import= 7491 lt_cdecl_hook= 7492 lt_c_name_hook= 7493 lt_c_name_lib_hook= 7494fi 7495 7496# Transform an extracted symbol line into a proper C declaration. 7497# Some systems (esp. on ia64) link data and code symbols differently, 7498# so use this general approach. 7499lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7500$lt_cdecl_hook\ 7501" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7502" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7503 7504# Transform an extracted symbol line into symbol name and symbol address 7505lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7506$lt_c_name_hook\ 7507" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7508" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7509 7510# Transform an extracted symbol line into symbol name with lib prefix and 7511# symbol address. 7512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7513$lt_c_name_lib_hook\ 7514" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7515" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7516" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7517 7518# Handle CRLF in mingw tool chain 7519opt_cr= 7520case $build_os in 7521mingw*) 7522 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7523 ;; 7524esac 7525 7526# Try without a prefix underscore, then with it. 7527for ac_symprfx in "" "_"; do 7528 7529 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7530 symxfrm="\\1 $ac_symprfx\\2 \\2" 7531 7532 # Write the raw and C identifiers. 7533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7534 # Fake it for dumpbin and say T for any non-static function, 7535 # D for any global variable and I for any imported variable. 7536 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7537 # which start with @ or ?. 7538 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7539" {last_section=section; section=\$ 3};"\ 7540" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7541" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7542" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7543" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7544" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7545" \$ 0!~/External *\|/{next};"\ 7546" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7547" {if(hide[section]) next};"\ 7548" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7549" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7550" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7551" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7552" ' prfx=^$ac_symprfx" 7553 else 7554 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7555 fi 7556 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7557 7558 # Check to see that the pipe works correctly. 7559 pipe_works=no 7560 7561 rm -f conftest* 7562 cat > conftest.$ac_ext <<_LT_EOF 7563#ifdef __cplusplus 7564extern "C" { 7565#endif 7566char nm_test_var; 7567void nm_test_func(void); 7568void nm_test_func(void){} 7569#ifdef __cplusplus 7570} 7571#endif 7572int main(){nm_test_var='a';nm_test_func();return(0);} 7573_LT_EOF 7574 7575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7576 (eval $ac_compile) 2>&5 7577 ac_status=$? 7578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7579 test $ac_status = 0; }; then 7580 # Now try to grab the symbols. 7581 nlist=conftest.nm 7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7583 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7584 ac_status=$? 7585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7586 test $ac_status = 0; } && test -s "$nlist"; then 7587 # Try sorting and uniquifying the output. 7588 if sort "$nlist" | uniq > "$nlist"T; then 7589 mv -f "$nlist"T "$nlist" 7590 else 7591 rm -f "$nlist"T 7592 fi 7593 7594 # Make sure that we snagged all the symbols we need. 7595 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7596 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7597 cat <<_LT_EOF > conftest.$ac_ext 7598/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7599#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7600/* DATA imports from DLLs on WIN32 can't be const, because runtime 7601 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7602# define LT_DLSYM_CONST 7603#elif defined __osf__ 7604/* This system does not cope well with relocations in const data. */ 7605# define LT_DLSYM_CONST 7606#else 7607# define LT_DLSYM_CONST const 7608#endif 7609 7610#ifdef __cplusplus 7611extern "C" { 7612#endif 7613 7614_LT_EOF 7615 # Now generate the symbol file. 7616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7617 7618 cat <<_LT_EOF >> conftest.$ac_ext 7619 7620/* The mapping between symbol names and symbols. */ 7621LT_DLSYM_CONST struct { 7622 const char *name; 7623 void *address; 7624} 7625lt__PROGRAM__LTX_preloaded_symbols[] = 7626{ 7627 { "@PROGRAM@", (void *) 0 }, 7628_LT_EOF 7629 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7630 cat <<\_LT_EOF >> conftest.$ac_ext 7631 {0, (void *) 0} 7632}; 7633 7634/* This works around a problem in FreeBSD linker */ 7635#ifdef FREEBSD_WORKAROUND 7636static const void *lt_preloaded_setup() { 7637 return lt__PROGRAM__LTX_preloaded_symbols; 7638} 7639#endif 7640 7641#ifdef __cplusplus 7642} 7643#endif 7644_LT_EOF 7645 # Now try linking the two files. 7646 mv conftest.$ac_objext conftstm.$ac_objext 7647 lt_globsym_save_LIBS=$LIBS 7648 lt_globsym_save_CFLAGS=$CFLAGS 7649 LIBS=conftstm.$ac_objext 7650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7652 (eval $ac_link) 2>&5 7653 ac_status=$? 7654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7655 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7656 pipe_works=yes 7657 fi 7658 LIBS=$lt_globsym_save_LIBS 7659 CFLAGS=$lt_globsym_save_CFLAGS 7660 else 7661 echo "cannot find nm_test_func in $nlist" >&5 7662 fi 7663 else 7664 echo "cannot find nm_test_var in $nlist" >&5 7665 fi 7666 else 7667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7668 fi 7669 else 7670 echo "$progname: failed program was:" >&5 7671 cat conftest.$ac_ext >&5 7672 fi 7673 rm -rf conftest* conftst* 7674 7675 # Do not use the global_symbol_pipe unless it works. 7676 if test yes = "$pipe_works"; then 7677 break 7678 else 7679 lt_cv_sys_global_symbol_pipe= 7680 fi 7681done 7682 ;; 7683esac 7684fi 7685 7686if test -z "$lt_cv_sys_global_symbol_pipe"; then 7687 lt_cv_sys_global_symbol_to_cdecl= 7688fi 7689if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7691printf "%s\n" "failed" >&6; } 7692else 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7694printf "%s\n" "ok" >&6; } 7695fi 7696 7697# Response file support. 7698if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7699 nm_file_list_spec='@' 7700elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7701 nm_file_list_spec='@' 7702fi 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7741printf %s "checking for sysroot... " >&6; } 7742 7743# Check whether --with-sysroot was given. 7744if test ${with_sysroot+y} 7745then : 7746 withval=$with_sysroot; 7747else case e in #( 7748 e) with_sysroot=no ;; 7749esac 7750fi 7751 7752 7753lt_sysroot= 7754case $with_sysroot in #( 7755 yes) 7756 if test yes = "$GCC"; then 7757 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7758 fi 7759 ;; #( 7760 /*) 7761 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7762 ;; #( 7763 no|'') 7764 ;; #( 7765 *) 7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7767printf "%s\n" "$with_sysroot" >&6; } 7768 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7769 ;; 7770esac 7771 7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7773printf "%s\n" "${lt_sysroot:-no}" >&6; } 7774 7775 7776 7777 7778 7779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7780printf %s "checking for a working dd... " >&6; } 7781if test ${ac_cv_path_lt_DD+y} 7782then : 7783 printf %s "(cached) " >&6 7784else case e in #( 7785 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7786cat conftest.i conftest.i >conftest2.i 7787: ${lt_DD:=$DD} 7788if test -z "$lt_DD"; then 7789 ac_path_lt_DD_found=false 7790 # Loop through the user's path and test for each of PROGNAME-LIST 7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7792for as_dir in $PATH 7793do 7794 IFS=$as_save_IFS 7795 case $as_dir in #((( 7796 '') as_dir=./ ;; 7797 */) ;; 7798 *) as_dir=$as_dir/ ;; 7799 esac 7800 for ac_prog in dd 7801 do 7802 for ac_exec_ext in '' $ac_executable_extensions; do 7803 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7804 as_fn_executable_p "$ac_path_lt_DD" || continue 7805if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7806 cmp -s conftest.i conftest.out \ 7807 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7808fi 7809 $ac_path_lt_DD_found && break 3 7810 done 7811 done 7812 done 7813IFS=$as_save_IFS 7814 if test -z "$ac_cv_path_lt_DD"; then 7815 : 7816 fi 7817else 7818 ac_cv_path_lt_DD=$lt_DD 7819fi 7820 7821rm -f conftest.i conftest2.i conftest.out ;; 7822esac 7823fi 7824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7825printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7826 7827 7828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7829printf %s "checking how to truncate binary pipes... " >&6; } 7830if test ${lt_cv_truncate_bin+y} 7831then : 7832 printf %s "(cached) " >&6 7833else case e in #( 7834 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7835cat conftest.i conftest.i >conftest2.i 7836lt_cv_truncate_bin= 7837if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7838 cmp -s conftest.i conftest.out \ 7839 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7840fi 7841rm -f conftest.i conftest2.i conftest.out 7842test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7843esac 7844fi 7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7846printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7847 7848 7849 7850 7851 7852 7853 7854# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7855func_cc_basename () 7856{ 7857 for cc_temp in $*""; do 7858 case $cc_temp in 7859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7861 \-*) ;; 7862 *) break;; 7863 esac 7864 done 7865 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7866} 7867 7868# Check whether --enable-libtool-lock was given. 7869if test ${enable_libtool_lock+y} 7870then : 7871 enableval=$enable_libtool_lock; 7872fi 7873 7874test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7875 7876# Some flags need to be propagated to the compiler or linker for good 7877# libtool support. 7878case $host in 7879ia64-*-hpux*) 7880 # Find out what ABI is being produced by ac_compile, and set mode 7881 # options accordingly. 7882 echo 'int i;' > conftest.$ac_ext 7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7884 (eval $ac_compile) 2>&5 7885 ac_status=$? 7886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7887 test $ac_status = 0; }; then 7888 case `$FILECMD conftest.$ac_objext` in 7889 *ELF-32*) 7890 HPUX_IA64_MODE=32 7891 ;; 7892 *ELF-64*) 7893 HPUX_IA64_MODE=64 7894 ;; 7895 esac 7896 fi 7897 rm -rf conftest* 7898 ;; 7899*-*-irix6*) 7900 # Find out what ABI is being produced by ac_compile, and set linker 7901 # options accordingly. 7902 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7904 (eval $ac_compile) 2>&5 7905 ac_status=$? 7906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7907 test $ac_status = 0; }; then 7908 if test yes = "$lt_cv_prog_gnu_ld"; then 7909 case `$FILECMD conftest.$ac_objext` in 7910 *32-bit*) 7911 LD="${LD-ld} -melf32bsmip" 7912 ;; 7913 *N32*) 7914 LD="${LD-ld} -melf32bmipn32" 7915 ;; 7916 *64-bit*) 7917 LD="${LD-ld} -melf64bmip" 7918 ;; 7919 esac 7920 else 7921 case `$FILECMD conftest.$ac_objext` in 7922 *32-bit*) 7923 LD="${LD-ld} -32" 7924 ;; 7925 *N32*) 7926 LD="${LD-ld} -n32" 7927 ;; 7928 *64-bit*) 7929 LD="${LD-ld} -64" 7930 ;; 7931 esac 7932 fi 7933 fi 7934 rm -rf conftest* 7935 ;; 7936 7937mips64*-*linux*) 7938 # Find out what ABI is being produced by ac_compile, and set linker 7939 # options accordingly. 7940 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7942 (eval $ac_compile) 2>&5 7943 ac_status=$? 7944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7945 test $ac_status = 0; }; then 7946 emul=elf 7947 case `$FILECMD conftest.$ac_objext` in 7948 *32-bit*) 7949 emul="${emul}32" 7950 ;; 7951 *64-bit*) 7952 emul="${emul}64" 7953 ;; 7954 esac 7955 case `$FILECMD conftest.$ac_objext` in 7956 *MSB*) 7957 emul="${emul}btsmip" 7958 ;; 7959 *LSB*) 7960 emul="${emul}ltsmip" 7961 ;; 7962 esac 7963 case `$FILECMD conftest.$ac_objext` in 7964 *N32*) 7965 emul="${emul}n32" 7966 ;; 7967 esac 7968 LD="${LD-ld} -m $emul" 7969 fi 7970 rm -rf conftest* 7971 ;; 7972 7973x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7974s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7975 # Find out what ABI is being produced by ac_compile, and set linker 7976 # options accordingly. Note that the listed cases only cover the 7977 # situations where additional linker options are needed (such as when 7978 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7979 # vice versa); the common cases where no linker options are needed do 7980 # not appear in the list. 7981 echo 'int i;' > conftest.$ac_ext 7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7983 (eval $ac_compile) 2>&5 7984 ac_status=$? 7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7986 test $ac_status = 0; }; then 7987 case `$FILECMD conftest.o` in 7988 *32-bit*) 7989 case $host in 7990 x86_64-*kfreebsd*-gnu) 7991 LD="${LD-ld} -m elf_i386_fbsd" 7992 ;; 7993 x86_64-*linux*) 7994 case `$FILECMD conftest.o` in 7995 *x86-64*) 7996 LD="${LD-ld} -m elf32_x86_64" 7997 ;; 7998 *) 7999 LD="${LD-ld} -m elf_i386" 8000 ;; 8001 esac 8002 ;; 8003 powerpc64le-*linux*) 8004 LD="${LD-ld} -m elf32lppclinux" 8005 ;; 8006 powerpc64-*linux*) 8007 LD="${LD-ld} -m elf32ppclinux" 8008 ;; 8009 s390x-*linux*) 8010 LD="${LD-ld} -m elf_s390" 8011 ;; 8012 sparc64-*linux*) 8013 LD="${LD-ld} -m elf32_sparc" 8014 ;; 8015 esac 8016 ;; 8017 *64-bit*) 8018 case $host in 8019 x86_64-*kfreebsd*-gnu) 8020 LD="${LD-ld} -m elf_x86_64_fbsd" 8021 ;; 8022 x86_64-*linux*) 8023 LD="${LD-ld} -m elf_x86_64" 8024 ;; 8025 powerpcle-*linux*) 8026 LD="${LD-ld} -m elf64lppc" 8027 ;; 8028 powerpc-*linux*) 8029 LD="${LD-ld} -m elf64ppc" 8030 ;; 8031 s390*-*linux*|s390*-*tpf*) 8032 LD="${LD-ld} -m elf64_s390" 8033 ;; 8034 sparc*-*linux*) 8035 LD="${LD-ld} -m elf64_sparc" 8036 ;; 8037 esac 8038 ;; 8039 esac 8040 fi 8041 rm -rf conftest* 8042 ;; 8043 8044*-*-sco3.2v5*) 8045 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8046 SAVE_CFLAGS=$CFLAGS 8047 CFLAGS="$CFLAGS -belf" 8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8049printf %s "checking whether the C compiler needs -belf... " >&6; } 8050if test ${lt_cv_cc_needs_belf+y} 8051then : 8052 printf %s "(cached) " >&6 8053else case e in #( 8054 e) ac_ext=c 8055ac_cpp='$CPP $CPPFLAGS' 8056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8058ac_compiler_gnu=$ac_cv_c_compiler_gnu 8059 8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8061/* end confdefs.h. */ 8062 8063int 8064main (void) 8065{ 8066 8067 ; 8068 return 0; 8069} 8070_ACEOF 8071if ac_fn_c_try_link "$LINENO" 8072then : 8073 lt_cv_cc_needs_belf=yes 8074else case e in #( 8075 e) lt_cv_cc_needs_belf=no ;; 8076esac 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8079 conftest$ac_exeext conftest.$ac_ext 8080 ac_ext=c 8081ac_cpp='$CPP $CPPFLAGS' 8082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8084ac_compiler_gnu=$ac_cv_c_compiler_gnu 8085 ;; 8086esac 8087fi 8088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8089printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8090 if test yes != "$lt_cv_cc_needs_belf"; then 8091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8092 CFLAGS=$SAVE_CFLAGS 8093 fi 8094 ;; 8095*-*solaris*) 8096 # Find out what ABI is being produced by ac_compile, and set linker 8097 # options accordingly. 8098 echo 'int i;' > conftest.$ac_ext 8099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8100 (eval $ac_compile) 2>&5 8101 ac_status=$? 8102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8103 test $ac_status = 0; }; then 8104 case `$FILECMD conftest.o` in 8105 *64-bit*) 8106 case $lt_cv_prog_gnu_ld in 8107 yes*) 8108 case $host in 8109 i?86-*-solaris*|x86_64-*-solaris*) 8110 LD="${LD-ld} -m elf_x86_64" 8111 ;; 8112 sparc*-*-solaris*) 8113 LD="${LD-ld} -m elf64_sparc" 8114 ;; 8115 esac 8116 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8117 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8118 LD=${LD-ld}_sol2 8119 fi 8120 ;; 8121 *) 8122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8123 LD="${LD-ld} -64" 8124 fi 8125 ;; 8126 esac 8127 ;; 8128 esac 8129 fi 8130 rm -rf conftest* 8131 ;; 8132esac 8133 8134need_locks=$enable_libtool_lock 8135 8136if test -n "$ac_tool_prefix"; then 8137 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8138set dummy ${ac_tool_prefix}mt; ac_word=$2 8139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8140printf %s "checking for $ac_word... " >&6; } 8141if test ${ac_cv_prog_MANIFEST_TOOL+y} 8142then : 8143 printf %s "(cached) " >&6 8144else case e in #( 8145 e) if test -n "$MANIFEST_TOOL"; then 8146 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8147else 8148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8149for as_dir in $PATH 8150do 8151 IFS=$as_save_IFS 8152 case $as_dir in #((( 8153 '') as_dir=./ ;; 8154 */) ;; 8155 *) as_dir=$as_dir/ ;; 8156 esac 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8159 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163done 8164 done 8165IFS=$as_save_IFS 8166 8167fi ;; 8168esac 8169fi 8170MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8171if test -n "$MANIFEST_TOOL"; then 8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8173printf "%s\n" "$MANIFEST_TOOL" >&6; } 8174else 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8176printf "%s\n" "no" >&6; } 8177fi 8178 8179 8180fi 8181if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8182 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8183 # Extract the first word of "mt", so it can be a program name with args. 8184set dummy mt; ac_word=$2 8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8186printf %s "checking for $ac_word... " >&6; } 8187if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8188then : 8189 printf %s "(cached) " >&6 8190else case e in #( 8191 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8192 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8193else 8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8195for as_dir in $PATH 8196do 8197 IFS=$as_save_IFS 8198 case $as_dir in #((( 8199 '') as_dir=./ ;; 8200 */) ;; 8201 *) as_dir=$as_dir/ ;; 8202 esac 8203 for ac_exec_ext in '' $ac_executable_extensions; do 8204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8205 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8207 break 2 8208 fi 8209done 8210 done 8211IFS=$as_save_IFS 8212 8213fi ;; 8214esac 8215fi 8216ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8217if test -n "$ac_ct_MANIFEST_TOOL"; then 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8219printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8220else 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222printf "%s\n" "no" >&6; } 8223fi 8224 8225 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8226 MANIFEST_TOOL=":" 8227 else 8228 case $cross_compiling:$ac_tool_warned in 8229yes:) 8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8231printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8232ac_tool_warned=yes ;; 8233esac 8234 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8235 fi 8236else 8237 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8238fi 8239 8240test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8242printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8243if test ${lt_cv_path_mainfest_tool+y} 8244then : 8245 printf %s "(cached) " >&6 8246else case e in #( 8247 e) lt_cv_path_mainfest_tool=no 8248 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8249 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8250 cat conftest.err >&5 8251 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8252 lt_cv_path_mainfest_tool=yes 8253 fi 8254 rm -f conftest* ;; 8255esac 8256fi 8257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8258printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8259if test yes != "$lt_cv_path_mainfest_tool"; then 8260 MANIFEST_TOOL=: 8261fi 8262 8263 8264 8265 8266 8267 8268 case $host_os in 8269 rhapsody* | darwin*) 8270 if test -n "$ac_tool_prefix"; then 8271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8272set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8274printf %s "checking for $ac_word... " >&6; } 8275if test ${ac_cv_prog_DSYMUTIL+y} 8276then : 8277 printf %s "(cached) " >&6 8278else case e in #( 8279 e) if test -n "$DSYMUTIL"; then 8280 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8281else 8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8283for as_dir in $PATH 8284do 8285 IFS=$as_save_IFS 8286 case $as_dir in #((( 8287 '') as_dir=./ ;; 8288 */) ;; 8289 *) as_dir=$as_dir/ ;; 8290 esac 8291 for ac_exec_ext in '' $ac_executable_extensions; do 8292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8293 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8295 break 2 8296 fi 8297done 8298 done 8299IFS=$as_save_IFS 8300 8301fi ;; 8302esac 8303fi 8304DSYMUTIL=$ac_cv_prog_DSYMUTIL 8305if test -n "$DSYMUTIL"; then 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8307printf "%s\n" "$DSYMUTIL" >&6; } 8308else 8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8310printf "%s\n" "no" >&6; } 8311fi 8312 8313 8314fi 8315if test -z "$ac_cv_prog_DSYMUTIL"; then 8316 ac_ct_DSYMUTIL=$DSYMUTIL 8317 # Extract the first word of "dsymutil", so it can be a program name with args. 8318set dummy dsymutil; ac_word=$2 8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8320printf %s "checking for $ac_word... " >&6; } 8321if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8322then : 8323 printf %s "(cached) " >&6 8324else case e in #( 8325 e) if test -n "$ac_ct_DSYMUTIL"; then 8326 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8327else 8328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8329for as_dir in $PATH 8330do 8331 IFS=$as_save_IFS 8332 case $as_dir in #((( 8333 '') as_dir=./ ;; 8334 */) ;; 8335 *) as_dir=$as_dir/ ;; 8336 esac 8337 for ac_exec_ext in '' $ac_executable_extensions; do 8338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8339 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8341 break 2 8342 fi 8343done 8344 done 8345IFS=$as_save_IFS 8346 8347fi ;; 8348esac 8349fi 8350ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8351if test -n "$ac_ct_DSYMUTIL"; then 8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8353printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8354else 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8356printf "%s\n" "no" >&6; } 8357fi 8358 8359 if test "x$ac_ct_DSYMUTIL" = x; then 8360 DSYMUTIL=":" 8361 else 8362 case $cross_compiling:$ac_tool_warned in 8363yes:) 8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8365printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8366ac_tool_warned=yes ;; 8367esac 8368 DSYMUTIL=$ac_ct_DSYMUTIL 8369 fi 8370else 8371 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8372fi 8373 8374 if test -n "$ac_tool_prefix"; then 8375 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8376set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8378printf %s "checking for $ac_word... " >&6; } 8379if test ${ac_cv_prog_NMEDIT+y} 8380then : 8381 printf %s "(cached) " >&6 8382else case e in #( 8383 e) if test -n "$NMEDIT"; then 8384 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8385else 8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8387for as_dir in $PATH 8388do 8389 IFS=$as_save_IFS 8390 case $as_dir in #((( 8391 '') as_dir=./ ;; 8392 */) ;; 8393 *) as_dir=$as_dir/ ;; 8394 esac 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8397 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401done 8402 done 8403IFS=$as_save_IFS 8404 8405fi ;; 8406esac 8407fi 8408NMEDIT=$ac_cv_prog_NMEDIT 8409if test -n "$NMEDIT"; then 8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8411printf "%s\n" "$NMEDIT" >&6; } 8412else 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8414printf "%s\n" "no" >&6; } 8415fi 8416 8417 8418fi 8419if test -z "$ac_cv_prog_NMEDIT"; then 8420 ac_ct_NMEDIT=$NMEDIT 8421 # Extract the first word of "nmedit", so it can be a program name with args. 8422set dummy nmedit; ac_word=$2 8423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8424printf %s "checking for $ac_word... " >&6; } 8425if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8426then : 8427 printf %s "(cached) " >&6 8428else case e in #( 8429 e) if test -n "$ac_ct_NMEDIT"; then 8430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8431else 8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8433for as_dir in $PATH 8434do 8435 IFS=$as_save_IFS 8436 case $as_dir in #((( 8437 '') as_dir=./ ;; 8438 */) ;; 8439 *) as_dir=$as_dir/ ;; 8440 esac 8441 for ac_exec_ext in '' $ac_executable_extensions; do 8442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8443 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8445 break 2 8446 fi 8447done 8448 done 8449IFS=$as_save_IFS 8450 8451fi ;; 8452esac 8453fi 8454ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8455if test -n "$ac_ct_NMEDIT"; then 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8457printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8458else 8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8460printf "%s\n" "no" >&6; } 8461fi 8462 8463 if test "x$ac_ct_NMEDIT" = x; then 8464 NMEDIT=":" 8465 else 8466 case $cross_compiling:$ac_tool_warned in 8467yes:) 8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8469printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8470ac_tool_warned=yes ;; 8471esac 8472 NMEDIT=$ac_ct_NMEDIT 8473 fi 8474else 8475 NMEDIT="$ac_cv_prog_NMEDIT" 8476fi 8477 8478 if test -n "$ac_tool_prefix"; then 8479 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8480set dummy ${ac_tool_prefix}lipo; ac_word=$2 8481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8482printf %s "checking for $ac_word... " >&6; } 8483if test ${ac_cv_prog_LIPO+y} 8484then : 8485 printf %s "(cached) " >&6 8486else case e in #( 8487 e) if test -n "$LIPO"; then 8488 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8489else 8490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8491for as_dir in $PATH 8492do 8493 IFS=$as_save_IFS 8494 case $as_dir in #((( 8495 '') as_dir=./ ;; 8496 */) ;; 8497 *) as_dir=$as_dir/ ;; 8498 esac 8499 for ac_exec_ext in '' $ac_executable_extensions; do 8500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8501 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8503 break 2 8504 fi 8505done 8506 done 8507IFS=$as_save_IFS 8508 8509fi ;; 8510esac 8511fi 8512LIPO=$ac_cv_prog_LIPO 8513if test -n "$LIPO"; then 8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8515printf "%s\n" "$LIPO" >&6; } 8516else 8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518printf "%s\n" "no" >&6; } 8519fi 8520 8521 8522fi 8523if test -z "$ac_cv_prog_LIPO"; then 8524 ac_ct_LIPO=$LIPO 8525 # Extract the first word of "lipo", so it can be a program name with args. 8526set dummy lipo; ac_word=$2 8527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8528printf %s "checking for $ac_word... " >&6; } 8529if test ${ac_cv_prog_ac_ct_LIPO+y} 8530then : 8531 printf %s "(cached) " >&6 8532else case e in #( 8533 e) if test -n "$ac_ct_LIPO"; then 8534 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8535else 8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8537for as_dir in $PATH 8538do 8539 IFS=$as_save_IFS 8540 case $as_dir in #((( 8541 '') as_dir=./ ;; 8542 */) ;; 8543 *) as_dir=$as_dir/ ;; 8544 esac 8545 for ac_exec_ext in '' $ac_executable_extensions; do 8546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8547 ac_cv_prog_ac_ct_LIPO="lipo" 8548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8549 break 2 8550 fi 8551done 8552 done 8553IFS=$as_save_IFS 8554 8555fi ;; 8556esac 8557fi 8558ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8559if test -n "$ac_ct_LIPO"; then 8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8561printf "%s\n" "$ac_ct_LIPO" >&6; } 8562else 8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8564printf "%s\n" "no" >&6; } 8565fi 8566 8567 if test "x$ac_ct_LIPO" = x; then 8568 LIPO=":" 8569 else 8570 case $cross_compiling:$ac_tool_warned in 8571yes:) 8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8573printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8574ac_tool_warned=yes ;; 8575esac 8576 LIPO=$ac_ct_LIPO 8577 fi 8578else 8579 LIPO="$ac_cv_prog_LIPO" 8580fi 8581 8582 if test -n "$ac_tool_prefix"; then 8583 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8584set dummy ${ac_tool_prefix}otool; ac_word=$2 8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8586printf %s "checking for $ac_word... " >&6; } 8587if test ${ac_cv_prog_OTOOL+y} 8588then : 8589 printf %s "(cached) " >&6 8590else case e in #( 8591 e) if test -n "$OTOOL"; then 8592 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8593else 8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8595for as_dir in $PATH 8596do 8597 IFS=$as_save_IFS 8598 case $as_dir in #((( 8599 '') as_dir=./ ;; 8600 */) ;; 8601 *) as_dir=$as_dir/ ;; 8602 esac 8603 for ac_exec_ext in '' $ac_executable_extensions; do 8604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8605 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8607 break 2 8608 fi 8609done 8610 done 8611IFS=$as_save_IFS 8612 8613fi ;; 8614esac 8615fi 8616OTOOL=$ac_cv_prog_OTOOL 8617if test -n "$OTOOL"; then 8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8619printf "%s\n" "$OTOOL" >&6; } 8620else 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8622printf "%s\n" "no" >&6; } 8623fi 8624 8625 8626fi 8627if test -z "$ac_cv_prog_OTOOL"; then 8628 ac_ct_OTOOL=$OTOOL 8629 # Extract the first word of "otool", so it can be a program name with args. 8630set dummy otool; ac_word=$2 8631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8632printf %s "checking for $ac_word... " >&6; } 8633if test ${ac_cv_prog_ac_ct_OTOOL+y} 8634then : 8635 printf %s "(cached) " >&6 8636else case e in #( 8637 e) if test -n "$ac_ct_OTOOL"; then 8638 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8639else 8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8641for as_dir in $PATH 8642do 8643 IFS=$as_save_IFS 8644 case $as_dir in #((( 8645 '') as_dir=./ ;; 8646 */) ;; 8647 *) as_dir=$as_dir/ ;; 8648 esac 8649 for ac_exec_ext in '' $ac_executable_extensions; do 8650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8651 ac_cv_prog_ac_ct_OTOOL="otool" 8652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8653 break 2 8654 fi 8655done 8656 done 8657IFS=$as_save_IFS 8658 8659fi ;; 8660esac 8661fi 8662ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8663if test -n "$ac_ct_OTOOL"; then 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8665printf "%s\n" "$ac_ct_OTOOL" >&6; } 8666else 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8668printf "%s\n" "no" >&6; } 8669fi 8670 8671 if test "x$ac_ct_OTOOL" = x; then 8672 OTOOL=":" 8673 else 8674 case $cross_compiling:$ac_tool_warned in 8675yes:) 8676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8678ac_tool_warned=yes ;; 8679esac 8680 OTOOL=$ac_ct_OTOOL 8681 fi 8682else 8683 OTOOL="$ac_cv_prog_OTOOL" 8684fi 8685 8686 if test -n "$ac_tool_prefix"; then 8687 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8688set dummy ${ac_tool_prefix}otool64; ac_word=$2 8689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8690printf %s "checking for $ac_word... " >&6; } 8691if test ${ac_cv_prog_OTOOL64+y} 8692then : 8693 printf %s "(cached) " >&6 8694else case e in #( 8695 e) if test -n "$OTOOL64"; then 8696 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8697else 8698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8699for as_dir in $PATH 8700do 8701 IFS=$as_save_IFS 8702 case $as_dir in #((( 8703 '') as_dir=./ ;; 8704 */) ;; 8705 *) as_dir=$as_dir/ ;; 8706 esac 8707 for ac_exec_ext in '' $ac_executable_extensions; do 8708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8711 break 2 8712 fi 8713done 8714 done 8715IFS=$as_save_IFS 8716 8717fi ;; 8718esac 8719fi 8720OTOOL64=$ac_cv_prog_OTOOL64 8721if test -n "$OTOOL64"; then 8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8723printf "%s\n" "$OTOOL64" >&6; } 8724else 8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8726printf "%s\n" "no" >&6; } 8727fi 8728 8729 8730fi 8731if test -z "$ac_cv_prog_OTOOL64"; then 8732 ac_ct_OTOOL64=$OTOOL64 8733 # Extract the first word of "otool64", so it can be a program name with args. 8734set dummy otool64; ac_word=$2 8735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8736printf %s "checking for $ac_word... " >&6; } 8737if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8738then : 8739 printf %s "(cached) " >&6 8740else case e in #( 8741 e) if test -n "$ac_ct_OTOOL64"; then 8742 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8743else 8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8745for as_dir in $PATH 8746do 8747 IFS=$as_save_IFS 8748 case $as_dir in #((( 8749 '') as_dir=./ ;; 8750 */) ;; 8751 *) as_dir=$as_dir/ ;; 8752 esac 8753 for ac_exec_ext in '' $ac_executable_extensions; do 8754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8755 ac_cv_prog_ac_ct_OTOOL64="otool64" 8756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8757 break 2 8758 fi 8759done 8760 done 8761IFS=$as_save_IFS 8762 8763fi ;; 8764esac 8765fi 8766ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8767if test -n "$ac_ct_OTOOL64"; then 8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8769printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8770else 8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8772printf "%s\n" "no" >&6; } 8773fi 8774 8775 if test "x$ac_ct_OTOOL64" = x; then 8776 OTOOL64=":" 8777 else 8778 case $cross_compiling:$ac_tool_warned in 8779yes:) 8780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8781printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8782ac_tool_warned=yes ;; 8783esac 8784 OTOOL64=$ac_ct_OTOOL64 8785 fi 8786else 8787 OTOOL64="$ac_cv_prog_OTOOL64" 8788fi 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8817printf %s "checking for -single_module linker flag... " >&6; } 8818if test ${lt_cv_apple_cc_single_mod+y} 8819then : 8820 printf %s "(cached) " >&6 8821else case e in #( 8822 e) lt_cv_apple_cc_single_mod=no 8823 if test -z "$LT_MULTI_MODULE"; then 8824 # By default we will add the -single_module flag. You can override 8825 # by either setting the environment variable LT_MULTI_MODULE 8826 # non-empty at configure time, or by adding -multi_module to the 8827 # link flags. 8828 rm -rf libconftest.dylib* 8829 echo "int foo(void){return 1;}" > conftest.c 8830 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8831-dynamiclib -Wl,-single_module conftest.c" >&5 8832 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8833 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8834 _lt_result=$? 8835 # If there is a non-empty error log, and "single_module" 8836 # appears in it, assume the flag caused a linker warning 8837 if test -s conftest.err && $GREP single_module conftest.err; then 8838 cat conftest.err >&5 8839 # Otherwise, if the output was created with a 0 exit code from 8840 # the compiler, it worked. 8841 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8842 lt_cv_apple_cc_single_mod=yes 8843 else 8844 cat conftest.err >&5 8845 fi 8846 rm -rf libconftest.dylib* 8847 rm -f conftest.* 8848 fi ;; 8849esac 8850fi 8851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8852printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8853 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8855printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8856if test ${lt_cv_ld_exported_symbols_list+y} 8857then : 8858 printf %s "(cached) " >&6 8859else case e in #( 8860 e) lt_cv_ld_exported_symbols_list=no 8861 save_LDFLAGS=$LDFLAGS 8862 echo "_main" > conftest.sym 8863 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866 8867int 8868main (void) 8869{ 8870 8871 ; 8872 return 0; 8873} 8874_ACEOF 8875if ac_fn_c_try_link "$LINENO" 8876then : 8877 lt_cv_ld_exported_symbols_list=yes 8878else case e in #( 8879 e) lt_cv_ld_exported_symbols_list=no ;; 8880esac 8881fi 8882rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8883 conftest$ac_exeext conftest.$ac_ext 8884 LDFLAGS=$save_LDFLAGS 8885 ;; 8886esac 8887fi 8888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8889printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8890 8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8892printf %s "checking for -force_load linker flag... " >&6; } 8893if test ${lt_cv_ld_force_load+y} 8894then : 8895 printf %s "(cached) " >&6 8896else case e in #( 8897 e) lt_cv_ld_force_load=no 8898 cat > conftest.c << _LT_EOF 8899int forced_loaded() { return 2;} 8900_LT_EOF 8901 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8902 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8903 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8904 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8905 echo "$RANLIB libconftest.a" >&5 8906 $RANLIB libconftest.a 2>&5 8907 cat > conftest.c << _LT_EOF 8908int main() { return 0;} 8909_LT_EOF 8910 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8911 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8912 _lt_result=$? 8913 if test -s conftest.err && $GREP force_load conftest.err; then 8914 cat conftest.err >&5 8915 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8916 lt_cv_ld_force_load=yes 8917 else 8918 cat conftest.err >&5 8919 fi 8920 rm -f conftest.err libconftest.a conftest conftest.c 8921 rm -rf conftest.dSYM 8922 ;; 8923esac 8924fi 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8926printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8927 case $host_os in 8928 rhapsody* | darwin1.[012]) 8929 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8930 darwin1.*) 8931 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8932 darwin*) 8933 case $MACOSX_DEPLOYMENT_TARGET,$host in 8934 10.[012],*|,*powerpc*-darwin[5-8]*) 8935 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8936 *) 8937 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8938 esac 8939 ;; 8940 esac 8941 if test yes = "$lt_cv_apple_cc_single_mod"; then 8942 _lt_dar_single_mod='$single_module' 8943 fi 8944 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8945 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8946 else 8947 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8948 fi 8949 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8950 _lt_dsymutil='~$DSYMUTIL $lib || :' 8951 else 8952 _lt_dsymutil= 8953 fi 8954 ;; 8955 esac 8956 8957# func_munge_path_list VARIABLE PATH 8958# ----------------------------------- 8959# VARIABLE is name of variable containing _space_ separated list of 8960# directories to be munged by the contents of PATH, which is string 8961# having a format: 8962# "DIR[:DIR]:" 8963# string "DIR[ DIR]" will be prepended to VARIABLE 8964# ":DIR[:DIR]" 8965# string "DIR[ DIR]" will be appended to VARIABLE 8966# "DIRP[:DIRP]::[DIRA:]DIRA" 8967# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8968# "DIRA[ DIRA]" will be appended to VARIABLE 8969# "DIR[:DIR]" 8970# VARIABLE will be replaced by "DIR[ DIR]" 8971func_munge_path_list () 8972{ 8973 case x$2 in 8974 x) 8975 ;; 8976 *:) 8977 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8978 ;; 8979 x:*) 8980 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8981 ;; 8982 *::*) 8983 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8984 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8985 ;; 8986 *) 8987 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8988 ;; 8989 esac 8990} 8991 8992ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8993" 8994if test "x$ac_cv_header_dlfcn_h" = xyes 8995then : 8996 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8997 8998fi 8999 9000 9001 9002 9003 9004# Set options 9005 9006 9007 9008 enable_dlopen=no 9009 9010 9011 enable_win32_dll=no 9012 9013 9014 # Check whether --enable-shared was given. 9015if test ${enable_shared+y} 9016then : 9017 enableval=$enable_shared; p=${PACKAGE-default} 9018 case $enableval in 9019 yes) enable_shared=yes ;; 9020 no) enable_shared=no ;; 9021 *) 9022 enable_shared=no 9023 # Look at the argument we got. We use all the common list separators. 9024 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9025 for pkg in $enableval; do 9026 IFS=$lt_save_ifs 9027 if test "X$pkg" = "X$p"; then 9028 enable_shared=yes 9029 fi 9030 done 9031 IFS=$lt_save_ifs 9032 ;; 9033 esac 9034else case e in #( 9035 e) enable_shared=yes ;; 9036esac 9037fi 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 # Check whether --enable-static was given. 9048if test ${enable_static+y} 9049then : 9050 enableval=$enable_static; p=${PACKAGE-default} 9051 case $enableval in 9052 yes) enable_static=yes ;; 9053 no) enable_static=no ;; 9054 *) 9055 enable_static=no 9056 # Look at the argument we got. We use all the common list separators. 9057 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9058 for pkg in $enableval; do 9059 IFS=$lt_save_ifs 9060 if test "X$pkg" = "X$p"; then 9061 enable_static=yes 9062 fi 9063 done 9064 IFS=$lt_save_ifs 9065 ;; 9066 esac 9067else case e in #( 9068 e) enable_static=yes ;; 9069esac 9070fi 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081# Check whether --with-pic was given. 9082if test ${with_pic+y} 9083then : 9084 withval=$with_pic; lt_p=${PACKAGE-default} 9085 case $withval in 9086 yes|no) pic_mode=$withval ;; 9087 *) 9088 pic_mode=default 9089 # Look at the argument we got. We use all the common list separators. 9090 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9091 for lt_pkg in $withval; do 9092 IFS=$lt_save_ifs 9093 if test "X$lt_pkg" = "X$lt_p"; then 9094 pic_mode=yes 9095 fi 9096 done 9097 IFS=$lt_save_ifs 9098 ;; 9099 esac 9100else case e in #( 9101 e) pic_mode=default ;; 9102esac 9103fi 9104 9105 9106 9107 9108 9109 9110 9111 9112 # Check whether --enable-fast-install was given. 9113if test ${enable_fast_install+y} 9114then : 9115 enableval=$enable_fast_install; p=${PACKAGE-default} 9116 case $enableval in 9117 yes) enable_fast_install=yes ;; 9118 no) enable_fast_install=no ;; 9119 *) 9120 enable_fast_install=no 9121 # Look at the argument we got. We use all the common list separators. 9122 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9123 for pkg in $enableval; do 9124 IFS=$lt_save_ifs 9125 if test "X$pkg" = "X$p"; then 9126 enable_fast_install=yes 9127 fi 9128 done 9129 IFS=$lt_save_ifs 9130 ;; 9131 esac 9132else case e in #( 9133 e) enable_fast_install=yes ;; 9134esac 9135fi 9136 9137 9138 9139 9140 9141 9142 9143 9144 shared_archive_member_spec= 9145case $host,$enable_shared in 9146power*-*-aix[5-9]*,yes) 9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9148printf %s "checking which variant of shared library versioning to provide... " >&6; } 9149 9150# Check whether --with-aix-soname was given. 9151if test ${with_aix_soname+y} 9152then : 9153 withval=$with_aix_soname; case $withval in 9154 aix|svr4|both) 9155 ;; 9156 *) 9157 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9158 ;; 9159 esac 9160 lt_cv_with_aix_soname=$with_aix_soname 9161else case e in #( 9162 e) if test ${lt_cv_with_aix_soname+y} 9163then : 9164 printf %s "(cached) " >&6 9165else case e in #( 9166 e) lt_cv_with_aix_soname=aix ;; 9167esac 9168fi 9169 9170 with_aix_soname=$lt_cv_with_aix_soname ;; 9171esac 9172fi 9173 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9175printf "%s\n" "$with_aix_soname" >&6; } 9176 if test aix != "$with_aix_soname"; then 9177 # For the AIX way of multilib, we name the shared archive member 9178 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9179 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9180 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9181 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9182 if test 64 = "${OBJECT_MODE-32}"; then 9183 shared_archive_member_spec=shr_64 9184 else 9185 shared_archive_member_spec=shr 9186 fi 9187 fi 9188 ;; 9189*) 9190 with_aix_soname=aix 9191 ;; 9192esac 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203# This can be used to rebuild libtool when needed 9204LIBTOOL_DEPS=$ltmain 9205 9206# Always use our own libtool. 9207LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238test -z "$LN_S" && LN_S="ln -s" 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253if test -n "${ZSH_VERSION+set}"; then 9254 setopt NO_GLOB_SUBST 9255fi 9256 9257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9258printf %s "checking for objdir... " >&6; } 9259if test ${lt_cv_objdir+y} 9260then : 9261 printf %s "(cached) " >&6 9262else case e in #( 9263 e) rm -f .libs 2>/dev/null 9264mkdir .libs 2>/dev/null 9265if test -d .libs; then 9266 lt_cv_objdir=.libs 9267else 9268 # MS-DOS does not allow filenames that begin with a dot. 9269 lt_cv_objdir=_libs 9270fi 9271rmdir .libs 2>/dev/null ;; 9272esac 9273fi 9274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9275printf "%s\n" "$lt_cv_objdir" >&6; } 9276objdir=$lt_cv_objdir 9277 9278 9279 9280 9281 9282printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9283 9284 9285 9286 9287case $host_os in 9288aix3*) 9289 # AIX sometimes has problems with the GCC collect2 program. For some 9290 # reason, if we set the COLLECT_NAMES environment variable, the problems 9291 # vanish in a puff of smoke. 9292 if test set != "${COLLECT_NAMES+set}"; then 9293 COLLECT_NAMES= 9294 export COLLECT_NAMES 9295 fi 9296 ;; 9297esac 9298 9299# Global variables: 9300ofile=libtool 9301can_build_shared=yes 9302 9303# All known linkers require a '.a' archive for static linking (except MSVC and 9304# ICC, which need '.lib'). 9305libext=a 9306 9307with_gnu_ld=$lt_cv_prog_gnu_ld 9308 9309old_CC=$CC 9310old_CFLAGS=$CFLAGS 9311 9312# Set sane defaults for various variables 9313test -z "$CC" && CC=cc 9314test -z "$LTCC" && LTCC=$CC 9315test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9316test -z "$LD" && LD=ld 9317test -z "$ac_objext" && ac_objext=o 9318 9319func_cc_basename $compiler 9320cc_basename=$func_cc_basename_result 9321 9322 9323# Only perform the check for file, if the check method requires it 9324test -z "$MAGIC_CMD" && MAGIC_CMD=file 9325case $deplibs_check_method in 9326file_magic*) 9327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9329printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9330if test ${lt_cv_path_MAGIC_CMD+y} 9331then : 9332 printf %s "(cached) " >&6 9333else case e in #( 9334 e) case $MAGIC_CMD in 9335[\\/*] | ?:[\\/]*) 9336 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9337 ;; 9338*) 9339 lt_save_MAGIC_CMD=$MAGIC_CMD 9340 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9342 for ac_dir in $ac_dummy; do 9343 IFS=$lt_save_ifs 9344 test -z "$ac_dir" && ac_dir=. 9345 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9346 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9347 if test -n "$file_magic_test_file"; then 9348 case $deplibs_check_method in 9349 "file_magic "*) 9350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9351 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9353 $EGREP "$file_magic_regex" > /dev/null; then 9354 : 9355 else 9356 cat <<_LT_EOF 1>&2 9357 9358*** Warning: the command libtool uses to detect shared libraries, 9359*** $file_magic_cmd, produces output that libtool cannot recognize. 9360*** The result is that libtool may fail to recognize shared libraries 9361*** as such. This will affect the creation of libtool libraries that 9362*** depend on shared libraries, but programs linked with such libtool 9363*** libraries will work regardless of this problem. Nevertheless, you 9364*** may want to report the problem to your system manager and/or to 9365*** bug-libtool@gnu.org 9366 9367_LT_EOF 9368 fi ;; 9369 esac 9370 fi 9371 break 9372 fi 9373 done 9374 IFS=$lt_save_ifs 9375 MAGIC_CMD=$lt_save_MAGIC_CMD 9376 ;; 9377esac ;; 9378esac 9379fi 9380 9381MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9382if test -n "$MAGIC_CMD"; then 9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9384printf "%s\n" "$MAGIC_CMD" >&6; } 9385else 9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9387printf "%s\n" "no" >&6; } 9388fi 9389 9390 9391 9392 9393 9394if test -z "$lt_cv_path_MAGIC_CMD"; then 9395 if test -n "$ac_tool_prefix"; then 9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9397printf %s "checking for file... " >&6; } 9398if test ${lt_cv_path_MAGIC_CMD+y} 9399then : 9400 printf %s "(cached) " >&6 9401else case e in #( 9402 e) case $MAGIC_CMD in 9403[\\/*] | ?:[\\/]*) 9404 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9405 ;; 9406*) 9407 lt_save_MAGIC_CMD=$MAGIC_CMD 9408 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9410 for ac_dir in $ac_dummy; do 9411 IFS=$lt_save_ifs 9412 test -z "$ac_dir" && ac_dir=. 9413 if test -f "$ac_dir/file"; then 9414 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9415 if test -n "$file_magic_test_file"; then 9416 case $deplibs_check_method in 9417 "file_magic "*) 9418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9419 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9421 $EGREP "$file_magic_regex" > /dev/null; then 9422 : 9423 else 9424 cat <<_LT_EOF 1>&2 9425 9426*** Warning: the command libtool uses to detect shared libraries, 9427*** $file_magic_cmd, produces output that libtool cannot recognize. 9428*** The result is that libtool may fail to recognize shared libraries 9429*** as such. This will affect the creation of libtool libraries that 9430*** depend on shared libraries, but programs linked with such libtool 9431*** libraries will work regardless of this problem. Nevertheless, you 9432*** may want to report the problem to your system manager and/or to 9433*** bug-libtool@gnu.org 9434 9435_LT_EOF 9436 fi ;; 9437 esac 9438 fi 9439 break 9440 fi 9441 done 9442 IFS=$lt_save_ifs 9443 MAGIC_CMD=$lt_save_MAGIC_CMD 9444 ;; 9445esac ;; 9446esac 9447fi 9448 9449MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9450if test -n "$MAGIC_CMD"; then 9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9452printf "%s\n" "$MAGIC_CMD" >&6; } 9453else 9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9455printf "%s\n" "no" >&6; } 9456fi 9457 9458 9459 else 9460 MAGIC_CMD=: 9461 fi 9462fi 9463 9464 fi 9465 ;; 9466esac 9467 9468# Use C for the default configuration in the libtool script 9469 9470lt_save_CC=$CC 9471ac_ext=c 9472ac_cpp='$CPP $CPPFLAGS' 9473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9475ac_compiler_gnu=$ac_cv_c_compiler_gnu 9476 9477 9478# Source file extension for C test sources. 9479ac_ext=c 9480 9481# Object file extension for compiled C test sources. 9482objext=o 9483objext=$objext 9484 9485# Code to be used in simple compile tests 9486lt_simple_compile_test_code="int some_variable = 0;" 9487 9488# Code to be used in simple link tests 9489lt_simple_link_test_code='int main(){return(0);}' 9490 9491 9492 9493 9494 9495 9496 9497# If no C compiler was specified, use CC. 9498LTCC=${LTCC-"$CC"} 9499 9500# If no C compiler flags were specified, use CFLAGS. 9501LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9502 9503# Allow CC to be a program name with arguments. 9504compiler=$CC 9505 9506# Save the default compiler, since it gets overwritten when the other 9507# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9508compiler_DEFAULT=$CC 9509 9510# save warnings/boilerplate of simple test code 9511ac_outfile=conftest.$ac_objext 9512echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9514_lt_compiler_boilerplate=`cat conftest.err` 9515$RM conftest* 9516 9517ac_outfile=conftest.$ac_objext 9518echo "$lt_simple_link_test_code" >conftest.$ac_ext 9519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9520_lt_linker_boilerplate=`cat conftest.err` 9521$RM -r conftest* 9522 9523 9524## CAVEAT EMPTOR: 9525## There is no encapsulation within the following macros, do not change 9526## the running order or otherwise move them around unless you know exactly 9527## what you are doing... 9528if test -n "$compiler"; then 9529 9530lt_prog_compiler_no_builtin_flag= 9531 9532if test yes = "$GCC"; then 9533 case $cc_basename in 9534 nvcc*) 9535 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9536 *) 9537 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9538 esac 9539 9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9541printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9542if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9543then : 9544 printf %s "(cached) " >&6 9545else case e in #( 9546 e) lt_cv_prog_compiler_rtti_exceptions=no 9547 ac_outfile=conftest.$ac_objext 9548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9549 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9550 # Insert the option either (1) after the last *FLAGS variable, or 9551 # (2) before a word containing "conftest.", or (3) at the end. 9552 # Note that $ac_compile itself does not contain backslashes and begins 9553 # with a dollar sign (not a hyphen), so the echo should work correctly. 9554 # The option is referenced via a variable to avoid confusing sed. 9555 lt_compile=`echo "$ac_compile" | $SED \ 9556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9558 -e 's:$: $lt_compiler_flag:'` 9559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9560 (eval "$lt_compile" 2>conftest.err) 9561 ac_status=$? 9562 cat conftest.err >&5 9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9564 if (exit $ac_status) && test -s "$ac_outfile"; then 9565 # The compiler can only warn and ignore the option if not recognized 9566 # So say no if there are warnings other than the usual output. 9567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9570 lt_cv_prog_compiler_rtti_exceptions=yes 9571 fi 9572 fi 9573 $RM conftest* 9574 ;; 9575esac 9576fi 9577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9578printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9579 9580if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9581 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9582else 9583 : 9584fi 9585 9586fi 9587 9588 9589 9590 9591 9592 9593 lt_prog_compiler_wl= 9594lt_prog_compiler_pic= 9595lt_prog_compiler_static= 9596 9597 9598 if test yes = "$GCC"; then 9599 lt_prog_compiler_wl='-Wl,' 9600 lt_prog_compiler_static='-static' 9601 9602 case $host_os in 9603 aix*) 9604 # All AIX code is PIC. 9605 if test ia64 = "$host_cpu"; then 9606 # AIX 5 now supports IA64 processor 9607 lt_prog_compiler_static='-Bstatic' 9608 fi 9609 lt_prog_compiler_pic='-fPIC' 9610 ;; 9611 9612 amigaos*) 9613 case $host_cpu in 9614 powerpc) 9615 # see comment about AmigaOS4 .so support 9616 lt_prog_compiler_pic='-fPIC' 9617 ;; 9618 m68k) 9619 # FIXME: we need at least 68020 code to build shared libraries, but 9620 # adding the '-m68020' flag to GCC prevents building anything better, 9621 # like '-m68040'. 9622 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9623 ;; 9624 esac 9625 ;; 9626 9627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9628 # PIC is the default for these OSes. 9629 ;; 9630 9631 mingw* | cygwin* | pw32* | os2* | cegcc*) 9632 # This hack is so that the source file can tell whether it is being 9633 # built for inclusion in a dll (and should export symbols for example). 9634 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9635 # (--disable-auto-import) libraries 9636 lt_prog_compiler_pic='-DDLL_EXPORT' 9637 case $host_os in 9638 os2*) 9639 lt_prog_compiler_static='$wl-static' 9640 ;; 9641 esac 9642 ;; 9643 9644 darwin* | rhapsody*) 9645 # PIC is the default on this platform 9646 # Common symbols not allowed in MH_DYLIB files 9647 lt_prog_compiler_pic='-fno-common' 9648 ;; 9649 9650 haiku*) 9651 # PIC is the default for Haiku. 9652 # The "-static" flag exists, but is broken. 9653 lt_prog_compiler_static= 9654 ;; 9655 9656 hpux*) 9657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9659 # sets the default TLS model and affects inlining. 9660 case $host_cpu in 9661 hppa*64*) 9662 # +Z the default 9663 ;; 9664 *) 9665 lt_prog_compiler_pic='-fPIC' 9666 ;; 9667 esac 9668 ;; 9669 9670 interix[3-9]*) 9671 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9672 # Instead, we relocate shared libraries at runtime. 9673 ;; 9674 9675 msdosdjgpp*) 9676 # Just because we use GCC doesn't mean we suddenly get shared libraries 9677 # on systems that don't support them. 9678 lt_prog_compiler_can_build_shared=no 9679 enable_shared=no 9680 ;; 9681 9682 *nto* | *qnx*) 9683 # QNX uses GNU C++, but need to define -shared option too, otherwise 9684 # it will coredump. 9685 lt_prog_compiler_pic='-fPIC -shared' 9686 ;; 9687 9688 sysv4*MP*) 9689 if test -d /usr/nec; then 9690 lt_prog_compiler_pic=-Kconform_pic 9691 fi 9692 ;; 9693 9694 *) 9695 lt_prog_compiler_pic='-fPIC' 9696 ;; 9697 esac 9698 9699 case $cc_basename in 9700 nvcc*) # Cuda Compiler Driver 2.2 9701 lt_prog_compiler_wl='-Xlinker ' 9702 if test -n "$lt_prog_compiler_pic"; then 9703 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9704 fi 9705 ;; 9706 esac 9707 else 9708 # PORTME Check for flag to pass linker flags through the system compiler. 9709 case $host_os in 9710 aix*) 9711 lt_prog_compiler_wl='-Wl,' 9712 if test ia64 = "$host_cpu"; then 9713 # AIX 5 now supports IA64 processor 9714 lt_prog_compiler_static='-Bstatic' 9715 else 9716 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9717 fi 9718 ;; 9719 9720 darwin* | rhapsody*) 9721 # PIC is the default on this platform 9722 # Common symbols not allowed in MH_DYLIB files 9723 lt_prog_compiler_pic='-fno-common' 9724 case $cc_basename in 9725 nagfor*) 9726 # NAG Fortran compiler 9727 lt_prog_compiler_wl='-Wl,-Wl,,' 9728 lt_prog_compiler_pic='-PIC' 9729 lt_prog_compiler_static='-Bstatic' 9730 ;; 9731 esac 9732 ;; 9733 9734 mingw* | cygwin* | pw32* | os2* | cegcc*) 9735 # This hack is so that the source file can tell whether it is being 9736 # built for inclusion in a dll (and should export symbols for example). 9737 lt_prog_compiler_pic='-DDLL_EXPORT' 9738 case $host_os in 9739 os2*) 9740 lt_prog_compiler_static='$wl-static' 9741 ;; 9742 esac 9743 ;; 9744 9745 hpux9* | hpux10* | hpux11*) 9746 lt_prog_compiler_wl='-Wl,' 9747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9748 # not for PA HP-UX. 9749 case $host_cpu in 9750 hppa*64*|ia64*) 9751 # +Z the default 9752 ;; 9753 *) 9754 lt_prog_compiler_pic='+Z' 9755 ;; 9756 esac 9757 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9758 lt_prog_compiler_static='$wl-a ${wl}archive' 9759 ;; 9760 9761 irix5* | irix6* | nonstopux*) 9762 lt_prog_compiler_wl='-Wl,' 9763 # PIC (with -KPIC) is the default. 9764 lt_prog_compiler_static='-non_shared' 9765 ;; 9766 9767 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9768 case $cc_basename in 9769 # old Intel for x86_64, which still supported -KPIC. 9770 ecc*) 9771 lt_prog_compiler_wl='-Wl,' 9772 lt_prog_compiler_pic='-KPIC' 9773 lt_prog_compiler_static='-static' 9774 ;; 9775 # icc used to be incompatible with GCC. 9776 # ICC 10 doesn't accept -KPIC any more. 9777 icc* | ifort*) 9778 lt_prog_compiler_wl='-Wl,' 9779 lt_prog_compiler_pic='-fPIC' 9780 lt_prog_compiler_static='-static' 9781 ;; 9782 # Lahey Fortran 8.1. 9783 lf95*) 9784 lt_prog_compiler_wl='-Wl,' 9785 lt_prog_compiler_pic='--shared' 9786 lt_prog_compiler_static='--static' 9787 ;; 9788 nagfor*) 9789 # NAG Fortran compiler 9790 lt_prog_compiler_wl='-Wl,-Wl,,' 9791 lt_prog_compiler_pic='-PIC' 9792 lt_prog_compiler_static='-Bstatic' 9793 ;; 9794 tcc*) 9795 # Fabrice Bellard et al's Tiny C Compiler 9796 lt_prog_compiler_wl='-Wl,' 9797 lt_prog_compiler_pic='-fPIC' 9798 lt_prog_compiler_static='-static' 9799 ;; 9800 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9801 # Portland Group compilers (*not* the Pentium gcc compiler, 9802 # which looks to be a dead project) 9803 lt_prog_compiler_wl='-Wl,' 9804 lt_prog_compiler_pic='-fpic' 9805 lt_prog_compiler_static='-Bstatic' 9806 ;; 9807 ccc*) 9808 lt_prog_compiler_wl='-Wl,' 9809 # All Alpha code is PIC. 9810 lt_prog_compiler_static='-non_shared' 9811 ;; 9812 xl* | bgxl* | bgf* | mpixl*) 9813 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9814 lt_prog_compiler_wl='-Wl,' 9815 lt_prog_compiler_pic='-qpic' 9816 lt_prog_compiler_static='-qstaticlink' 9817 ;; 9818 *) 9819 case `$CC -V 2>&1 | $SED 5q` in 9820 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9821 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9822 lt_prog_compiler_pic='-KPIC' 9823 lt_prog_compiler_static='-Bstatic' 9824 lt_prog_compiler_wl='' 9825 ;; 9826 *Sun\ F* | *Sun*Fortran*) 9827 lt_prog_compiler_pic='-KPIC' 9828 lt_prog_compiler_static='-Bstatic' 9829 lt_prog_compiler_wl='-Qoption ld ' 9830 ;; 9831 *Sun\ C*) 9832 # Sun C 5.9 9833 lt_prog_compiler_pic='-KPIC' 9834 lt_prog_compiler_static='-Bstatic' 9835 lt_prog_compiler_wl='-Wl,' 9836 ;; 9837 *Intel*\ [CF]*Compiler*) 9838 lt_prog_compiler_wl='-Wl,' 9839 lt_prog_compiler_pic='-fPIC' 9840 lt_prog_compiler_static='-static' 9841 ;; 9842 *Portland\ Group*) 9843 lt_prog_compiler_wl='-Wl,' 9844 lt_prog_compiler_pic='-fpic' 9845 lt_prog_compiler_static='-Bstatic' 9846 ;; 9847 esac 9848 ;; 9849 esac 9850 ;; 9851 9852 newsos6) 9853 lt_prog_compiler_pic='-KPIC' 9854 lt_prog_compiler_static='-Bstatic' 9855 ;; 9856 9857 *nto* | *qnx*) 9858 # QNX uses GNU C++, but need to define -shared option too, otherwise 9859 # it will coredump. 9860 lt_prog_compiler_pic='-fPIC -shared' 9861 ;; 9862 9863 osf3* | osf4* | osf5*) 9864 lt_prog_compiler_wl='-Wl,' 9865 # All OSF/1 code is PIC. 9866 lt_prog_compiler_static='-non_shared' 9867 ;; 9868 9869 rdos*) 9870 lt_prog_compiler_static='-non_shared' 9871 ;; 9872 9873 solaris*) 9874 lt_prog_compiler_pic='-KPIC' 9875 lt_prog_compiler_static='-Bstatic' 9876 case $cc_basename in 9877 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9878 lt_prog_compiler_wl='-Qoption ld ';; 9879 *) 9880 lt_prog_compiler_wl='-Wl,';; 9881 esac 9882 ;; 9883 9884 sunos4*) 9885 lt_prog_compiler_wl='-Qoption ld ' 9886 lt_prog_compiler_pic='-PIC' 9887 lt_prog_compiler_static='-Bstatic' 9888 ;; 9889 9890 sysv4 | sysv4.2uw2* | sysv4.3*) 9891 lt_prog_compiler_wl='-Wl,' 9892 lt_prog_compiler_pic='-KPIC' 9893 lt_prog_compiler_static='-Bstatic' 9894 ;; 9895 9896 sysv4*MP*) 9897 if test -d /usr/nec; then 9898 lt_prog_compiler_pic='-Kconform_pic' 9899 lt_prog_compiler_static='-Bstatic' 9900 fi 9901 ;; 9902 9903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9904 lt_prog_compiler_wl='-Wl,' 9905 lt_prog_compiler_pic='-KPIC' 9906 lt_prog_compiler_static='-Bstatic' 9907 ;; 9908 9909 unicos*) 9910 lt_prog_compiler_wl='-Wl,' 9911 lt_prog_compiler_can_build_shared=no 9912 ;; 9913 9914 uts4*) 9915 lt_prog_compiler_pic='-pic' 9916 lt_prog_compiler_static='-Bstatic' 9917 ;; 9918 9919 *) 9920 lt_prog_compiler_can_build_shared=no 9921 ;; 9922 esac 9923 fi 9924 9925case $host_os in 9926 # For platforms that do not support PIC, -DPIC is meaningless: 9927 *djgpp*) 9928 lt_prog_compiler_pic= 9929 ;; 9930 *) 9931 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9932 ;; 9933esac 9934 9935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9936printf %s "checking for $compiler option to produce PIC... " >&6; } 9937if test ${lt_cv_prog_compiler_pic+y} 9938then : 9939 printf %s "(cached) " >&6 9940else case e in #( 9941 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9942esac 9943fi 9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9945printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9946lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9947 9948# 9949# Check to make sure the PIC flag actually works. 9950# 9951if test -n "$lt_prog_compiler_pic"; then 9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9953printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9954if test ${lt_cv_prog_compiler_pic_works+y} 9955then : 9956 printf %s "(cached) " >&6 9957else case e in #( 9958 e) lt_cv_prog_compiler_pic_works=no 9959 ac_outfile=conftest.$ac_objext 9960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9961 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9962 # Insert the option either (1) after the last *FLAGS variable, or 9963 # (2) before a word containing "conftest.", or (3) at the end. 9964 # Note that $ac_compile itself does not contain backslashes and begins 9965 # with a dollar sign (not a hyphen), so the echo should work correctly. 9966 # The option is referenced via a variable to avoid confusing sed. 9967 lt_compile=`echo "$ac_compile" | $SED \ 9968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9970 -e 's:$: $lt_compiler_flag:'` 9971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9972 (eval "$lt_compile" 2>conftest.err) 9973 ac_status=$? 9974 cat conftest.err >&5 9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9976 if (exit $ac_status) && test -s "$ac_outfile"; then 9977 # The compiler can only warn and ignore the option if not recognized 9978 # So say no if there are warnings other than the usual output. 9979 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9982 lt_cv_prog_compiler_pic_works=yes 9983 fi 9984 fi 9985 $RM conftest* 9986 ;; 9987esac 9988fi 9989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9990printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9991 9992if test yes = "$lt_cv_prog_compiler_pic_works"; then 9993 case $lt_prog_compiler_pic in 9994 "" | " "*) ;; 9995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9996 esac 9997else 9998 lt_prog_compiler_pic= 9999 lt_prog_compiler_can_build_shared=no 10000fi 10001 10002fi 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014# 10015# Check to make sure the static flag actually works. 10016# 10017wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10019printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10020if test ${lt_cv_prog_compiler_static_works+y} 10021then : 10022 printf %s "(cached) " >&6 10023else case e in #( 10024 e) lt_cv_prog_compiler_static_works=no 10025 save_LDFLAGS=$LDFLAGS 10026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10027 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10029 # The linker can only warn and ignore the option if not recognized 10030 # So say no if there are warnings 10031 if test -s conftest.err; then 10032 # Append any errors to the config.log. 10033 cat conftest.err 1>&5 10034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10036 if diff conftest.exp conftest.er2 >/dev/null; then 10037 lt_cv_prog_compiler_static_works=yes 10038 fi 10039 else 10040 lt_cv_prog_compiler_static_works=yes 10041 fi 10042 fi 10043 $RM -r conftest* 10044 LDFLAGS=$save_LDFLAGS 10045 ;; 10046esac 10047fi 10048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10049printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10050 10051if test yes = "$lt_cv_prog_compiler_static_works"; then 10052 : 10053else 10054 lt_prog_compiler_static= 10055fi 10056 10057 10058 10059 10060 10061 10062 10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10064printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10065if test ${lt_cv_prog_compiler_c_o+y} 10066then : 10067 printf %s "(cached) " >&6 10068else case e in #( 10069 e) lt_cv_prog_compiler_c_o=no 10070 $RM -r conftest 2>/dev/null 10071 mkdir conftest 10072 cd conftest 10073 mkdir out 10074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10075 10076 lt_compiler_flag="-o out/conftest2.$ac_objext" 10077 # Insert the option either (1) after the last *FLAGS variable, or 10078 # (2) before a word containing "conftest.", or (3) at the end. 10079 # Note that $ac_compile itself does not contain backslashes and begins 10080 # with a dollar sign (not a hyphen), so the echo should work correctly. 10081 lt_compile=`echo "$ac_compile" | $SED \ 10082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10084 -e 's:$: $lt_compiler_flag:'` 10085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10086 (eval "$lt_compile" 2>out/conftest.err) 10087 ac_status=$? 10088 cat out/conftest.err >&5 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10090 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10091 then 10092 # The compiler can only warn and ignore the option if not recognized 10093 # So say no if there are warnings 10094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10097 lt_cv_prog_compiler_c_o=yes 10098 fi 10099 fi 10100 chmod u+w . 2>&5 10101 $RM conftest* 10102 # SGI C++ compiler will create directory out/ii_files/ for 10103 # template instantiation 10104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10105 $RM out/* && rmdir out 10106 cd .. 10107 $RM -r conftest 10108 $RM conftest* 10109 ;; 10110esac 10111fi 10112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10113printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10114 10115 10116 10117 10118 10119 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10121printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10122if test ${lt_cv_prog_compiler_c_o+y} 10123then : 10124 printf %s "(cached) " >&6 10125else case e in #( 10126 e) lt_cv_prog_compiler_c_o=no 10127 $RM -r conftest 2>/dev/null 10128 mkdir conftest 10129 cd conftest 10130 mkdir out 10131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10132 10133 lt_compiler_flag="-o out/conftest2.$ac_objext" 10134 # Insert the option either (1) after the last *FLAGS variable, or 10135 # (2) before a word containing "conftest.", or (3) at the end. 10136 # Note that $ac_compile itself does not contain backslashes and begins 10137 # with a dollar sign (not a hyphen), so the echo should work correctly. 10138 lt_compile=`echo "$ac_compile" | $SED \ 10139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10141 -e 's:$: $lt_compiler_flag:'` 10142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10143 (eval "$lt_compile" 2>out/conftest.err) 10144 ac_status=$? 10145 cat out/conftest.err >&5 10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10147 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10148 then 10149 # The compiler can only warn and ignore the option if not recognized 10150 # So say no if there are warnings 10151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10154 lt_cv_prog_compiler_c_o=yes 10155 fi 10156 fi 10157 chmod u+w . 2>&5 10158 $RM conftest* 10159 # SGI C++ compiler will create directory out/ii_files/ for 10160 # template instantiation 10161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10162 $RM out/* && rmdir out 10163 cd .. 10164 $RM -r conftest 10165 $RM conftest* 10166 ;; 10167esac 10168fi 10169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10170printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10171 10172 10173 10174 10175hard_links=nottested 10176if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10177 # do not overwrite the value of need_locks provided by the user 10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10179printf %s "checking if we can lock with hard links... " >&6; } 10180 hard_links=yes 10181 $RM conftest* 10182 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10183 touch conftest.a 10184 ln conftest.a conftest.b 2>&5 || hard_links=no 10185 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10187printf "%s\n" "$hard_links" >&6; } 10188 if test no = "$hard_links"; then 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10190printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10191 need_locks=warn 10192 fi 10193else 10194 need_locks=no 10195fi 10196 10197 10198 10199 10200 10201 10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10203printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10204 10205 runpath_var= 10206 allow_undefined_flag= 10207 always_export_symbols=no 10208 archive_cmds= 10209 archive_expsym_cmds= 10210 compiler_needs_object=no 10211 enable_shared_with_static_runtimes=no 10212 export_dynamic_flag_spec= 10213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10214 hardcode_automatic=no 10215 hardcode_direct=no 10216 hardcode_direct_absolute=no 10217 hardcode_libdir_flag_spec= 10218 hardcode_libdir_separator= 10219 hardcode_minus_L=no 10220 hardcode_shlibpath_var=unsupported 10221 inherit_rpath=no 10222 link_all_deplibs=unknown 10223 module_cmds= 10224 module_expsym_cmds= 10225 old_archive_from_new_cmds= 10226 old_archive_from_expsyms_cmds= 10227 thread_safe_flag_spec= 10228 whole_archive_flag_spec= 10229 # include_expsyms should be a list of space-separated symbols to be *always* 10230 # included in the symbol list 10231 include_expsyms= 10232 # exclude_expsyms can be an extended regexp of symbols to exclude 10233 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10234 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10235 # as well as any symbol that contains 'd'. 10236 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10237 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10238 # platforms (ab)use it in PIC code, but their linkers get confused if 10239 # the symbol is explicitly referenced. Since portable code cannot 10240 # rely on this symbol name, it's probably fine to never include it in 10241 # preloaded symbol tables. 10242 # Exclude shared library initialization/finalization symbols. 10243 extract_expsyms_cmds= 10244 10245 case $host_os in 10246 cygwin* | mingw* | pw32* | cegcc*) 10247 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10248 # When not using gcc, we currently assume that we are using 10249 # Microsoft Visual C++ or Intel C++ Compiler. 10250 if test yes != "$GCC"; then 10251 with_gnu_ld=no 10252 fi 10253 ;; 10254 interix*) 10255 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10256 with_gnu_ld=yes 10257 ;; 10258 openbsd* | bitrig*) 10259 with_gnu_ld=no 10260 ;; 10261 esac 10262 10263 ld_shlibs=yes 10264 10265 # On some targets, GNU ld is compatible enough with the native linker 10266 # that we're better off using the native interface for both. 10267 lt_use_gnu_ld_interface=no 10268 if test yes = "$with_gnu_ld"; then 10269 case $host_os in 10270 aix*) 10271 # The AIX port of GNU ld has always aspired to compatibility 10272 # with the native linker. However, as the warning in the GNU ld 10273 # block says, versions before 2.19.5* couldn't really create working 10274 # shared libraries, regardless of the interface used. 10275 case `$LD -v 2>&1` in 10276 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10277 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10278 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10279 *) 10280 lt_use_gnu_ld_interface=yes 10281 ;; 10282 esac 10283 ;; 10284 *) 10285 lt_use_gnu_ld_interface=yes 10286 ;; 10287 esac 10288 fi 10289 10290 if test yes = "$lt_use_gnu_ld_interface"; then 10291 # If archive_cmds runs LD, not CC, wlarc should be empty 10292 wlarc='$wl' 10293 10294 # Set some defaults for GNU ld with shared library support. These 10295 # are reset later if shared libraries are not supported. Putting them 10296 # here allows them to be overridden if necessary. 10297 runpath_var=LD_RUN_PATH 10298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10299 export_dynamic_flag_spec='$wl--export-dynamic' 10300 # ancient GNU ld didn't support --whole-archive et. al. 10301 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10302 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10303 else 10304 whole_archive_flag_spec= 10305 fi 10306 supports_anon_versioning=no 10307 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10308 *GNU\ gold*) supports_anon_versioning=yes ;; 10309 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10312 *\ 2.11.*) ;; # other 2.11 versions 10313 *) supports_anon_versioning=yes ;; 10314 esac 10315 10316 # See if GNU ld supports shared libraries. 10317 case $host_os in 10318 aix[3-9]*) 10319 # On AIX/PPC, the GNU linker is very broken 10320 if test ia64 != "$host_cpu"; then 10321 ld_shlibs=no 10322 cat <<_LT_EOF 1>&2 10323 10324*** Warning: the GNU linker, at least up to release 2.19, is reported 10325*** to be unable to reliably create shared libraries on AIX. 10326*** Therefore, libtool is disabling shared libraries support. If you 10327*** really care for shared libraries, you may want to install binutils 10328*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10329*** You will then need to restart the configuration process. 10330 10331_LT_EOF 10332 fi 10333 ;; 10334 10335 amigaos*) 10336 case $host_cpu in 10337 powerpc) 10338 # see comment about AmigaOS4 .so support 10339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10340 archive_expsym_cmds='' 10341 ;; 10342 m68k) 10343 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)' 10344 hardcode_libdir_flag_spec='-L$libdir' 10345 hardcode_minus_L=yes 10346 ;; 10347 esac 10348 ;; 10349 10350 beos*) 10351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10352 allow_undefined_flag=unsupported 10353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10354 # support --undefined. This deserves some investigation. FIXME 10355 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10356 else 10357 ld_shlibs=no 10358 fi 10359 ;; 10360 10361 cygwin* | mingw* | pw32* | cegcc*) 10362 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10363 # as there is no search path for DLLs. 10364 hardcode_libdir_flag_spec='-L$libdir' 10365 export_dynamic_flag_spec='$wl--export-all-symbols' 10366 allow_undefined_flag=unsupported 10367 always_export_symbols=no 10368 enable_shared_with_static_runtimes=yes 10369 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' 10370 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10371 10372 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10374 # If the export-symbols file already is a .def file, use it as 10375 # is; otherwise, prepend EXPORTS... 10376 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10377 cp $export_symbols $output_objdir/$soname.def; 10378 else 10379 echo EXPORTS > $output_objdir/$soname.def; 10380 cat $export_symbols >> $output_objdir/$soname.def; 10381 fi~ 10382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10383 else 10384 ld_shlibs=no 10385 fi 10386 ;; 10387 10388 haiku*) 10389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10390 link_all_deplibs=yes 10391 ;; 10392 10393 os2*) 10394 hardcode_libdir_flag_spec='-L$libdir' 10395 hardcode_minus_L=yes 10396 allow_undefined_flag=unsupported 10397 shrext_cmds=.dll 10398 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10399 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10400 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10401 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10402 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10404 emximp -o $lib $output_objdir/$libname.def' 10405 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10408 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10409 prefix_cmds="$SED"~ 10410 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10411 prefix_cmds="$prefix_cmds -e 1d"; 10412 fi~ 10413 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10414 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10416 emximp -o $lib $output_objdir/$libname.def' 10417 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10418 enable_shared_with_static_runtimes=yes 10419 file_list_spec='@' 10420 ;; 10421 10422 interix[3-9]*) 10423 hardcode_direct=no 10424 hardcode_shlibpath_var=no 10425 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10426 export_dynamic_flag_spec='$wl-E' 10427 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10428 # Instead, shared libraries are loaded at an image base (0x10000000 by 10429 # default) and relocated if they conflict, which is a slow very memory 10430 # consuming and fragmenting process. To avoid this, we pick a random, 10431 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10432 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10434 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' 10435 ;; 10436 10437 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10438 tmp_diet=no 10439 if test linux-dietlibc = "$host_os"; then 10440 case $cc_basename in 10441 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10442 esac 10443 fi 10444 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10445 && test no = "$tmp_diet" 10446 then 10447 tmp_addflag=' $pic_flag' 10448 tmp_sharedflag='-shared' 10449 case $cc_basename,$host_cpu in 10450 pgcc*) # Portland Group C compiler 10451 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' 10452 tmp_addflag=' $pic_flag' 10453 ;; 10454 pgf77* | pgf90* | pgf95* | pgfortran*) 10455 # Portland Group f77 and f90 compilers 10456 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' 10457 tmp_addflag=' $pic_flag -Mnomain' ;; 10458 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10459 tmp_addflag=' -i_dynamic' ;; 10460 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10461 tmp_addflag=' -i_dynamic -nofor_main' ;; 10462 ifc* | ifort*) # Intel Fortran compiler 10463 tmp_addflag=' -nofor_main' ;; 10464 lf95*) # Lahey Fortran 8.1 10465 whole_archive_flag_spec= 10466 tmp_sharedflag='--shared' ;; 10467 nagfor*) # NAGFOR 5.3 10468 tmp_sharedflag='-Wl,-shared' ;; 10469 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10470 tmp_sharedflag='-qmkshrobj' 10471 tmp_addflag= ;; 10472 nvcc*) # Cuda Compiler Driver 2.2 10473 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' 10474 compiler_needs_object=yes 10475 ;; 10476 esac 10477 case `$CC -V 2>&1 | $SED 5q` in 10478 *Sun\ C*) # Sun C 5.9 10479 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' 10480 compiler_needs_object=yes 10481 tmp_sharedflag='-G' ;; 10482 *Sun\ F*) # Sun Fortran 8.3 10483 tmp_sharedflag='-G' ;; 10484 esac 10485 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10486 10487 if test yes = "$supports_anon_versioning"; then 10488 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10489 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10490 echo "local: *; };" >> $output_objdir/$libname.ver~ 10491 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10492 fi 10493 10494 case $cc_basename in 10495 tcc*) 10496 export_dynamic_flag_spec='-rdynamic' 10497 ;; 10498 xlf* | bgf* | bgxlf* | mpixlf*) 10499 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10500 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10501 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10502 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10503 if test yes = "$supports_anon_versioning"; then 10504 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10505 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10506 echo "local: *; };" >> $output_objdir/$libname.ver~ 10507 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10508 fi 10509 ;; 10510 esac 10511 else 10512 ld_shlibs=no 10513 fi 10514 ;; 10515 10516 netbsd*) 10517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10518 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10519 wlarc= 10520 else 10521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10522 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10523 fi 10524 ;; 10525 10526 solaris*) 10527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10528 ld_shlibs=no 10529 cat <<_LT_EOF 1>&2 10530 10531*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10532*** create shared libraries on Solaris systems. Therefore, libtool 10533*** is disabling shared libraries support. We urge you to upgrade GNU 10534*** binutils to release 2.9.1 or newer. Another option is to modify 10535*** your PATH or compiler configuration so that the native linker is 10536*** used, and then restart. 10537 10538_LT_EOF 10539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10542 else 10543 ld_shlibs=no 10544 fi 10545 ;; 10546 10547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10548 case `$LD -v 2>&1` in 10549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10550 ld_shlibs=no 10551 cat <<_LT_EOF 1>&2 10552 10553*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10554*** reliably create shared libraries on SCO systems. Therefore, libtool 10555*** is disabling shared libraries support. We urge you to upgrade GNU 10556*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10557*** your PATH or compiler configuration so that the native linker is 10558*** used, and then restart. 10559 10560_LT_EOF 10561 ;; 10562 *) 10563 # For security reasons, it is highly recommended that you always 10564 # use absolute paths for naming shared libraries, and exclude the 10565 # DT_RUNPATH tag from executables and libraries. But doing so 10566 # requires that you compile everything twice, which is a pain. 10567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10571 else 10572 ld_shlibs=no 10573 fi 10574 ;; 10575 esac 10576 ;; 10577 10578 sunos4*) 10579 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10580 wlarc= 10581 hardcode_direct=yes 10582 hardcode_shlibpath_var=no 10583 ;; 10584 10585 *) 10586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10589 else 10590 ld_shlibs=no 10591 fi 10592 ;; 10593 esac 10594 10595 if test no = "$ld_shlibs"; then 10596 runpath_var= 10597 hardcode_libdir_flag_spec= 10598 export_dynamic_flag_spec= 10599 whole_archive_flag_spec= 10600 fi 10601 else 10602 # PORTME fill in a description of your system's linker (not GNU ld) 10603 case $host_os in 10604 aix3*) 10605 allow_undefined_flag=unsupported 10606 always_export_symbols=yes 10607 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' 10608 # Note: this linker hardcodes the directories in LIBPATH if there 10609 # are no directories specified by -L. 10610 hardcode_minus_L=yes 10611 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10612 # Neither direct hardcoding nor static linking is supported with a 10613 # broken collect2. 10614 hardcode_direct=unsupported 10615 fi 10616 ;; 10617 10618 aix[4-9]*) 10619 if test ia64 = "$host_cpu"; then 10620 # On IA64, the linker does run time linking by default, so we don't 10621 # have to do anything special. 10622 aix_use_runtimelinking=no 10623 exp_sym_flag='-Bexport' 10624 no_entry_flag= 10625 else 10626 # If we're using GNU nm, then we don't want the "-C" option. 10627 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10628 # Without the "-l" option, or with the "-B" option, AIX nm treats 10629 # weak defined symbols like other global defined symbols, whereas 10630 # GNU nm marks them as "W". 10631 # While the 'weak' keyword is ignored in the Export File, we need 10632 # it in the Import File for the 'aix-soname' feature, so we have 10633 # to replace the "-B" option with "-P" for AIX nm. 10634 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10635 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10636 else 10637 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10638 fi 10639 aix_use_runtimelinking=no 10640 10641 # Test if we are trying to use run time linking or normal 10642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10643 # have runtime linking enabled, and use it for executables. 10644 # For shared libraries, we enable/disable runtime linking 10645 # depending on the kind of the shared library created - 10646 # when "with_aix_soname,aix_use_runtimelinking" is: 10647 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10648 # "aix,yes" lib.so shared, rtl:yes, for executables 10649 # lib.a static archive 10650 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10651 # lib.a(lib.so.V) shared, rtl:no, for executables 10652 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10653 # lib.a(lib.so.V) shared, rtl:no 10654 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10655 # lib.a static archive 10656 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10657 for ld_flag in $LDFLAGS; do 10658 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10659 aix_use_runtimelinking=yes 10660 break 10661 fi 10662 done 10663 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10664 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10665 # so we don't have lib.a shared libs to link our executables. 10666 # We have to force runtime linking in this case. 10667 aix_use_runtimelinking=yes 10668 LDFLAGS="$LDFLAGS -Wl,-brtl" 10669 fi 10670 ;; 10671 esac 10672 10673 exp_sym_flag='-bexport' 10674 no_entry_flag='-bnoentry' 10675 fi 10676 10677 # When large executables or shared objects are built, AIX ld can 10678 # have problems creating the table of contents. If linking a library 10679 # or program results in "error TOC overflow" add -mminimal-toc to 10680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10682 10683 archive_cmds='' 10684 hardcode_direct=yes 10685 hardcode_direct_absolute=yes 10686 hardcode_libdir_separator=':' 10687 link_all_deplibs=yes 10688 file_list_spec='$wl-f,' 10689 case $with_aix_soname,$aix_use_runtimelinking in 10690 aix,*) ;; # traditional, no import file 10691 svr4,* | *,yes) # use import file 10692 # The Import File defines what to hardcode. 10693 hardcode_direct=no 10694 hardcode_direct_absolute=no 10695 ;; 10696 esac 10697 10698 if test yes = "$GCC"; then 10699 case $host_os in aix4.[012]|aix4.[012].*) 10700 # We only want to do this on AIX 4.2 and lower, the check 10701 # below for broken collect2 doesn't work under 4.3+ 10702 collect2name=`$CC -print-prog-name=collect2` 10703 if test -f "$collect2name" && 10704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10705 then 10706 # We have reworked collect2 10707 : 10708 else 10709 # We have old collect2 10710 hardcode_direct=unsupported 10711 # It fails to find uninstalled libraries when the uninstalled 10712 # path is not listed in the libpath. Setting hardcode_minus_L 10713 # to unsupported forces relinking 10714 hardcode_minus_L=yes 10715 hardcode_libdir_flag_spec='-L$libdir' 10716 hardcode_libdir_separator= 10717 fi 10718 ;; 10719 esac 10720 shared_flag='-shared' 10721 if test yes = "$aix_use_runtimelinking"; then 10722 shared_flag="$shared_flag "'$wl-G' 10723 fi 10724 # Need to ensure runtime linking is disabled for the traditional 10725 # shared library, or the linker may eventually find shared libraries 10726 # /with/ Import File - we do not want to mix them. 10727 shared_flag_aix='-shared' 10728 shared_flag_svr4='-shared $wl-G' 10729 else 10730 # not using gcc 10731 if test ia64 = "$host_cpu"; then 10732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10733 # chokes on -Wl,-G. The following line is correct: 10734 shared_flag='-G' 10735 else 10736 if test yes = "$aix_use_runtimelinking"; then 10737 shared_flag='$wl-G' 10738 else 10739 shared_flag='$wl-bM:SRE' 10740 fi 10741 shared_flag_aix='$wl-bM:SRE' 10742 shared_flag_svr4='$wl-G' 10743 fi 10744 fi 10745 10746 export_dynamic_flag_spec='$wl-bexpall' 10747 # It seems that -bexpall does not export symbols beginning with 10748 # underscore (_), so it is better to generate a list of symbols to export. 10749 always_export_symbols=yes 10750 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10751 # Warning - without using the other runtime loading flags (-brtl), 10752 # -berok will link without error, but may produce a broken library. 10753 allow_undefined_flag='-berok' 10754 # Determine the default libpath from the value encoded in an 10755 # empty executable. 10756 if test set = "${lt_cv_aix_libpath+set}"; then 10757 aix_libpath=$lt_cv_aix_libpath 10758else 10759 if test ${lt_cv_aix_libpath_+y} 10760then : 10761 printf %s "(cached) " >&6 10762else case e in #( 10763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10764/* end confdefs.h. */ 10765 10766int 10767main (void) 10768{ 10769 10770 ; 10771 return 0; 10772} 10773_ACEOF 10774if ac_fn_c_try_link "$LINENO" 10775then : 10776 10777 lt_aix_libpath_sed=' 10778 /Import File Strings/,/^$/ { 10779 /^0/ { 10780 s/^0 *\([^ ]*\) *$/\1/ 10781 p 10782 } 10783 }' 10784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10785 # Check for a 64-bit object if we didn't find anything. 10786 if test -z "$lt_cv_aix_libpath_"; then 10787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10788 fi 10789fi 10790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10791 conftest$ac_exeext conftest.$ac_ext 10792 if test -z "$lt_cv_aix_libpath_"; then 10793 lt_cv_aix_libpath_=/usr/lib:/lib 10794 fi 10795 ;; 10796esac 10797fi 10798 10799 aix_libpath=$lt_cv_aix_libpath_ 10800fi 10801 10802 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10803 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10804 else 10805 if test ia64 = "$host_cpu"; then 10806 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10807 allow_undefined_flag="-z nodefs" 10808 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" 10809 else 10810 # Determine the default libpath from the value encoded in an 10811 # empty executable. 10812 if test set = "${lt_cv_aix_libpath+set}"; then 10813 aix_libpath=$lt_cv_aix_libpath 10814else 10815 if test ${lt_cv_aix_libpath_+y} 10816then : 10817 printf %s "(cached) " >&6 10818else case e in #( 10819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821 10822int 10823main (void) 10824{ 10825 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830if ac_fn_c_try_link "$LINENO" 10831then : 10832 10833 lt_aix_libpath_sed=' 10834 /Import File Strings/,/^$/ { 10835 /^0/ { 10836 s/^0 *\([^ ]*\) *$/\1/ 10837 p 10838 } 10839 }' 10840 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10841 # Check for a 64-bit object if we didn't find anything. 10842 if test -z "$lt_cv_aix_libpath_"; then 10843 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10844 fi 10845fi 10846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10847 conftest$ac_exeext conftest.$ac_ext 10848 if test -z "$lt_cv_aix_libpath_"; then 10849 lt_cv_aix_libpath_=/usr/lib:/lib 10850 fi 10851 ;; 10852esac 10853fi 10854 10855 aix_libpath=$lt_cv_aix_libpath_ 10856fi 10857 10858 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10859 # Warning - without using the other run time loading flags, 10860 # -berok will link without error, but may produce a broken library. 10861 no_undefined_flag=' $wl-bernotok' 10862 allow_undefined_flag=' $wl-berok' 10863 if test yes = "$with_gnu_ld"; then 10864 # We only use this code for GNU lds that support --whole-archive. 10865 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10866 else 10867 # Exported symbols can be pulled into shared objects from archives 10868 whole_archive_flag_spec='$convenience' 10869 fi 10870 archive_cmds_need_lc=yes 10871 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10872 # -brtl affects multiple linker settings, -berok does not and is overridden later 10873 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10874 if test svr4 != "$with_aix_soname"; then 10875 # This is similar to how AIX traditionally builds its shared libraries. 10876 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10877 fi 10878 if test aix != "$with_aix_soname"; then 10879 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10880 else 10881 # used by -dlpreopen to get the symbols 10882 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10883 fi 10884 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10885 fi 10886 fi 10887 ;; 10888 10889 amigaos*) 10890 case $host_cpu in 10891 powerpc) 10892 # see comment about AmigaOS4 .so support 10893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10894 archive_expsym_cmds='' 10895 ;; 10896 m68k) 10897 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)' 10898 hardcode_libdir_flag_spec='-L$libdir' 10899 hardcode_minus_L=yes 10900 ;; 10901 esac 10902 ;; 10903 10904 bsdi[45]*) 10905 export_dynamic_flag_spec=-rdynamic 10906 ;; 10907 10908 cygwin* | mingw* | pw32* | cegcc*) 10909 # When not using gcc, we currently assume that we are using 10910 # Microsoft Visual C++ or Intel C++ Compiler. 10911 # hardcode_libdir_flag_spec is actually meaningless, as there is 10912 # no search path for DLLs. 10913 case $cc_basename in 10914 cl* | icl*) 10915 # Native MSVC or ICC 10916 hardcode_libdir_flag_spec=' ' 10917 allow_undefined_flag=unsupported 10918 always_export_symbols=yes 10919 file_list_spec='@' 10920 # Tell ltmain to make .lib files, not .a files. 10921 libext=lib 10922 # Tell ltmain to make .dll files, not .so files. 10923 shrext_cmds=.dll 10924 # FIXME: Setting linknames here is a bad hack. 10925 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10926 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10927 cp "$export_symbols" "$output_objdir/$soname.def"; 10928 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10929 else 10930 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10931 fi~ 10932 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10933 linknames=' 10934 # The linker will not automatically build a static lib if we build a DLL. 10935 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10936 enable_shared_with_static_runtimes=yes 10937 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10939 # Don't use ranlib 10940 old_postinstall_cmds='chmod 644 $oldlib' 10941 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10942 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10943 case $lt_outputfile in 10944 *.exe|*.EXE) ;; 10945 *) 10946 lt_outputfile=$lt_outputfile.exe 10947 lt_tool_outputfile=$lt_tool_outputfile.exe 10948 ;; 10949 esac~ 10950 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10951 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10952 $RM "$lt_outputfile.manifest"; 10953 fi' 10954 ;; 10955 *) 10956 # Assume MSVC and ICC wrapper 10957 hardcode_libdir_flag_spec=' ' 10958 allow_undefined_flag=unsupported 10959 # Tell ltmain to make .lib files, not .a files. 10960 libext=lib 10961 # Tell ltmain to make .dll files, not .so files. 10962 shrext_cmds=.dll 10963 # FIXME: Setting linknames here is a bad hack. 10964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10965 # The linker will automatically build a .lib file if we build a DLL. 10966 old_archive_from_new_cmds='true' 10967 # FIXME: Should let the user specify the lib program. 10968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10969 enable_shared_with_static_runtimes=yes 10970 ;; 10971 esac 10972 ;; 10973 10974 darwin* | rhapsody*) 10975 10976 10977 archive_cmds_need_lc=no 10978 hardcode_direct=no 10979 hardcode_automatic=yes 10980 hardcode_shlibpath_var=unsupported 10981 if test yes = "$lt_cv_ld_force_load"; then 10982 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\"`' 10983 10984 else 10985 whole_archive_flag_spec='' 10986 fi 10987 link_all_deplibs=yes 10988 allow_undefined_flag=$_lt_dar_allow_undefined 10989 case $cc_basename in 10990 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10991 *) _lt_dar_can_shared=$GCC ;; 10992 esac 10993 if test yes = "$_lt_dar_can_shared"; then 10994 output_verbose_link_cmd=func_echo_all 10995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10997 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" 10998 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" 10999 11000 else 11001 ld_shlibs=no 11002 fi 11003 11004 ;; 11005 11006 dgux*) 11007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11008 hardcode_libdir_flag_spec='-L$libdir' 11009 hardcode_shlibpath_var=no 11010 ;; 11011 11012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11013 # support. Future versions do this automatically, but an explicit c++rt0.o 11014 # does not break anything, and helps significantly (at the cost of a little 11015 # extra space). 11016 freebsd2.2*) 11017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11018 hardcode_libdir_flag_spec='-R$libdir' 11019 hardcode_direct=yes 11020 hardcode_shlibpath_var=no 11021 ;; 11022 11023 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11024 freebsd2.*) 11025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11026 hardcode_direct=yes 11027 hardcode_minus_L=yes 11028 hardcode_shlibpath_var=no 11029 ;; 11030 11031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11032 freebsd* | dragonfly* | midnightbsd*) 11033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11034 hardcode_libdir_flag_spec='-R$libdir' 11035 hardcode_direct=yes 11036 hardcode_shlibpath_var=no 11037 ;; 11038 11039 hpux9*) 11040 if test yes = "$GCC"; then 11041 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11042 else 11043 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11044 fi 11045 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11046 hardcode_libdir_separator=: 11047 hardcode_direct=yes 11048 11049 # hardcode_minus_L: Not really in the search PATH, 11050 # but as the default location of the library. 11051 hardcode_minus_L=yes 11052 export_dynamic_flag_spec='$wl-E' 11053 ;; 11054 11055 hpux10*) 11056 if test yes,no = "$GCC,$with_gnu_ld"; then 11057 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11058 else 11059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11060 fi 11061 if test no = "$with_gnu_ld"; then 11062 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11063 hardcode_libdir_separator=: 11064 hardcode_direct=yes 11065 hardcode_direct_absolute=yes 11066 export_dynamic_flag_spec='$wl-E' 11067 # hardcode_minus_L: Not really in the search PATH, 11068 # but as the default location of the library. 11069 hardcode_minus_L=yes 11070 fi 11071 ;; 11072 11073 hpux11*) 11074 if test yes,no = "$GCC,$with_gnu_ld"; then 11075 case $host_cpu in 11076 hppa*64*) 11077 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11078 ;; 11079 ia64*) 11080 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11081 ;; 11082 *) 11083 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11084 ;; 11085 esac 11086 else 11087 case $host_cpu in 11088 hppa*64*) 11089 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11090 ;; 11091 ia64*) 11092 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11093 ;; 11094 *) 11095 11096 # Older versions of the 11.00 compiler do not understand -b yet 11097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11099printf %s "checking if $CC understands -b... " >&6; } 11100if test ${lt_cv_prog_compiler__b+y} 11101then : 11102 printf %s "(cached) " >&6 11103else case e in #( 11104 e) lt_cv_prog_compiler__b=no 11105 save_LDFLAGS=$LDFLAGS 11106 LDFLAGS="$LDFLAGS -b" 11107 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11109 # The linker can only warn and ignore the option if not recognized 11110 # So say no if there are warnings 11111 if test -s conftest.err; then 11112 # Append any errors to the config.log. 11113 cat conftest.err 1>&5 11114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11116 if diff conftest.exp conftest.er2 >/dev/null; then 11117 lt_cv_prog_compiler__b=yes 11118 fi 11119 else 11120 lt_cv_prog_compiler__b=yes 11121 fi 11122 fi 11123 $RM -r conftest* 11124 LDFLAGS=$save_LDFLAGS 11125 ;; 11126esac 11127fi 11128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11129printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11130 11131if test yes = "$lt_cv_prog_compiler__b"; then 11132 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11133else 11134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11135fi 11136 11137 ;; 11138 esac 11139 fi 11140 if test no = "$with_gnu_ld"; then 11141 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11142 hardcode_libdir_separator=: 11143 11144 case $host_cpu in 11145 hppa*64*|ia64*) 11146 hardcode_direct=no 11147 hardcode_shlibpath_var=no 11148 ;; 11149 *) 11150 hardcode_direct=yes 11151 hardcode_direct_absolute=yes 11152 export_dynamic_flag_spec='$wl-E' 11153 11154 # hardcode_minus_L: Not really in the search PATH, 11155 # but as the default location of the library. 11156 hardcode_minus_L=yes 11157 ;; 11158 esac 11159 fi 11160 ;; 11161 11162 irix5* | irix6* | nonstopux*) 11163 if test yes = "$GCC"; then 11164 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' 11165 # Try to use the -exported_symbol ld option, if it does not 11166 # work, assume that -exports_file does not work either and 11167 # implicitly export all symbols. 11168 # This should be the same for all languages, so no per-tag cache variable. 11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11170printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11171if test ${lt_cv_irix_exported_symbol+y} 11172then : 11173 printf %s "(cached) " >&6 11174else case e in #( 11175 e) save_LDFLAGS=$LDFLAGS 11176 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11178/* end confdefs.h. */ 11179int foo (void) { return 0; } 11180_ACEOF 11181if ac_fn_c_try_link "$LINENO" 11182then : 11183 lt_cv_irix_exported_symbol=yes 11184else case e in #( 11185 e) lt_cv_irix_exported_symbol=no ;; 11186esac 11187fi 11188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11189 conftest$ac_exeext conftest.$ac_ext 11190 LDFLAGS=$save_LDFLAGS ;; 11191esac 11192fi 11193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11194printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11195 if test yes = "$lt_cv_irix_exported_symbol"; then 11196 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' 11197 fi 11198 else 11199 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' 11200 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' 11201 fi 11202 archive_cmds_need_lc='no' 11203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11204 hardcode_libdir_separator=: 11205 inherit_rpath=yes 11206 link_all_deplibs=yes 11207 ;; 11208 11209 linux*) 11210 case $cc_basename in 11211 tcc*) 11212 # Fabrice Bellard et al's Tiny C Compiler 11213 ld_shlibs=yes 11214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11215 ;; 11216 esac 11217 ;; 11218 11219 netbsd*) 11220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11222 else 11223 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11224 fi 11225 hardcode_libdir_flag_spec='-R$libdir' 11226 hardcode_direct=yes 11227 hardcode_shlibpath_var=no 11228 ;; 11229 11230 newsos6) 11231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11232 hardcode_direct=yes 11233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11234 hardcode_libdir_separator=: 11235 hardcode_shlibpath_var=no 11236 ;; 11237 11238 *nto* | *qnx*) 11239 ;; 11240 11241 openbsd* | bitrig*) 11242 if test -f /usr/libexec/ld.so; then 11243 hardcode_direct=yes 11244 hardcode_shlibpath_var=no 11245 hardcode_direct_absolute=yes 11246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11248 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11249 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11250 export_dynamic_flag_spec='$wl-E' 11251 else 11252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11253 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11254 fi 11255 else 11256 ld_shlibs=no 11257 fi 11258 ;; 11259 11260 os2*) 11261 hardcode_libdir_flag_spec='-L$libdir' 11262 hardcode_minus_L=yes 11263 allow_undefined_flag=unsupported 11264 shrext_cmds=.dll 11265 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11268 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11271 emximp -o $lib $output_objdir/$libname.def' 11272 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11275 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11276 prefix_cmds="$SED"~ 11277 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11278 prefix_cmds="$prefix_cmds -e 1d"; 11279 fi~ 11280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11283 emximp -o $lib $output_objdir/$libname.def' 11284 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11285 enable_shared_with_static_runtimes=yes 11286 file_list_spec='@' 11287 ;; 11288 11289 osf3*) 11290 if test yes = "$GCC"; then 11291 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11292 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' 11293 else 11294 allow_undefined_flag=' -expect_unresolved \*' 11295 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' 11296 fi 11297 archive_cmds_need_lc='no' 11298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11299 hardcode_libdir_separator=: 11300 ;; 11301 11302 osf4* | osf5*) # as osf3* with the addition of -msym flag 11303 if test yes = "$GCC"; then 11304 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11305 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' 11306 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11307 else 11308 allow_undefined_flag=' -expect_unresolved \*' 11309 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' 11310 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~ 11311 $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' 11312 11313 # Both c and cxx compiler support -rpath directly 11314 hardcode_libdir_flag_spec='-rpath $libdir' 11315 fi 11316 archive_cmds_need_lc='no' 11317 hardcode_libdir_separator=: 11318 ;; 11319 11320 solaris*) 11321 no_undefined_flag=' -z defs' 11322 if test yes = "$GCC"; then 11323 wlarc='$wl' 11324 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11326 $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' 11327 else 11328 case `$CC -V 2>&1` in 11329 *"Compilers 5.0"*) 11330 wlarc='' 11331 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11333 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11334 ;; 11335 *) 11336 wlarc='$wl' 11337 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11339 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11340 ;; 11341 esac 11342 fi 11343 hardcode_libdir_flag_spec='-R$libdir' 11344 hardcode_shlibpath_var=no 11345 case $host_os in 11346 solaris2.[0-5] | solaris2.[0-5].*) ;; 11347 *) 11348 # The compiler driver will combine and reorder linker options, 11349 # but understands '-z linker_flag'. GCC discards it without '$wl', 11350 # but is careful enough not to reorder. 11351 # Supported since Solaris 2.6 (maybe 2.5.1?) 11352 if test yes = "$GCC"; then 11353 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11354 else 11355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11356 fi 11357 ;; 11358 esac 11359 link_all_deplibs=yes 11360 ;; 11361 11362 sunos4*) 11363 if test sequent = "$host_vendor"; then 11364 # Use $CC to link under sequent, because it throws in some extra .o 11365 # files that make .init and .fini sections work. 11366 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11367 else 11368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11369 fi 11370 hardcode_libdir_flag_spec='-L$libdir' 11371 hardcode_direct=yes 11372 hardcode_minus_L=yes 11373 hardcode_shlibpath_var=no 11374 ;; 11375 11376 sysv4) 11377 case $host_vendor in 11378 sni) 11379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11380 hardcode_direct=yes # is this really true??? 11381 ;; 11382 siemens) 11383 ## LD is ld it makes a PLAMLIB 11384 ## CC just makes a GrossModule. 11385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11386 reload_cmds='$CC -r -o $output$reload_objs' 11387 hardcode_direct=no 11388 ;; 11389 motorola) 11390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11392 ;; 11393 esac 11394 runpath_var='LD_RUN_PATH' 11395 hardcode_shlibpath_var=no 11396 ;; 11397 11398 sysv4.3*) 11399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11400 hardcode_shlibpath_var=no 11401 export_dynamic_flag_spec='-Bexport' 11402 ;; 11403 11404 sysv4*MP*) 11405 if test -d /usr/nec; then 11406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11407 hardcode_shlibpath_var=no 11408 runpath_var=LD_RUN_PATH 11409 hardcode_runpath_var=yes 11410 ld_shlibs=yes 11411 fi 11412 ;; 11413 11414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11415 no_undefined_flag='$wl-z,text' 11416 archive_cmds_need_lc=no 11417 hardcode_shlibpath_var=no 11418 runpath_var='LD_RUN_PATH' 11419 11420 if test yes = "$GCC"; then 11421 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11422 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11423 else 11424 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11425 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11426 fi 11427 ;; 11428 11429 sysv5* | sco3.2v5* | sco5v6*) 11430 # Note: We CANNOT use -z defs as we might desire, because we do not 11431 # link with -lc, and that would cause any symbols used from libc to 11432 # always be unresolved, which means just about no library would 11433 # ever link correctly. If we're not using GNU ld we use -z text 11434 # though, which does catch some bad symbols but isn't as heavy-handed 11435 # as -z defs. 11436 no_undefined_flag='$wl-z,text' 11437 allow_undefined_flag='$wl-z,nodefs' 11438 archive_cmds_need_lc=no 11439 hardcode_shlibpath_var=no 11440 hardcode_libdir_flag_spec='$wl-R,$libdir' 11441 hardcode_libdir_separator=':' 11442 link_all_deplibs=yes 11443 export_dynamic_flag_spec='$wl-Bexport' 11444 runpath_var='LD_RUN_PATH' 11445 11446 if test yes = "$GCC"; then 11447 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11448 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11449 else 11450 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11451 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11452 fi 11453 ;; 11454 11455 uts4*) 11456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11457 hardcode_libdir_flag_spec='-L$libdir' 11458 hardcode_shlibpath_var=no 11459 ;; 11460 11461 *) 11462 ld_shlibs=no 11463 ;; 11464 esac 11465 11466 if test sni = "$host_vendor"; then 11467 case $host in 11468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11469 export_dynamic_flag_spec='$wl-Blargedynsym' 11470 ;; 11471 esac 11472 fi 11473 fi 11474 11475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11476printf "%s\n" "$ld_shlibs" >&6; } 11477test no = "$ld_shlibs" && can_build_shared=no 11478 11479with_gnu_ld=$with_gnu_ld 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495# 11496# Do we need to explicitly link libc? 11497# 11498case "x$archive_cmds_need_lc" in 11499x|xyes) 11500 # Assume -lc should be added 11501 archive_cmds_need_lc=yes 11502 11503 if test yes,yes = "$GCC,$enable_shared"; then 11504 case $archive_cmds in 11505 *'~'*) 11506 # FIXME: we may have to deal with multi-command sequences. 11507 ;; 11508 '$CC '*) 11509 # Test whether the compiler implicitly links with -lc since on some 11510 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11511 # to ld, don't add -lc before -lgcc. 11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11513printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11514if test ${lt_cv_archive_cmds_need_lc+y} 11515then : 11516 printf %s "(cached) " >&6 11517else case e in #( 11518 e) $RM conftest* 11519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11520 11521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11522 (eval $ac_compile) 2>&5 11523 ac_status=$? 11524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11525 test $ac_status = 0; } 2>conftest.err; then 11526 soname=conftest 11527 lib=conftest 11528 libobjs=conftest.$ac_objext 11529 deplibs= 11530 wl=$lt_prog_compiler_wl 11531 pic_flag=$lt_prog_compiler_pic 11532 compiler_flags=-v 11533 linker_flags=-v 11534 verstring= 11535 output_objdir=. 11536 libname=conftest 11537 lt_save_allow_undefined_flag=$allow_undefined_flag 11538 allow_undefined_flag= 11539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11540 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11541 ac_status=$? 11542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11543 test $ac_status = 0; } 11544 then 11545 lt_cv_archive_cmds_need_lc=no 11546 else 11547 lt_cv_archive_cmds_need_lc=yes 11548 fi 11549 allow_undefined_flag=$lt_save_allow_undefined_flag 11550 else 11551 cat conftest.err 1>&5 11552 fi 11553 $RM conftest* 11554 ;; 11555esac 11556fi 11557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11558printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11559 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11560 ;; 11561 esac 11562 fi 11563 ;; 11564esac 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11718printf %s "checking dynamic linker characteristics... " >&6; } 11719 11720if test yes = "$GCC"; then 11721 case $host_os in 11722 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11723 *) lt_awk_arg='/^libraries:/' ;; 11724 esac 11725 case $host_os in 11726 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11727 *) lt_sed_strip_eq='s|=/|/|g' ;; 11728 esac 11729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11730 case $lt_search_path_spec in 11731 *\;*) 11732 # if the path contains ";" then we assume it to be the separator 11733 # otherwise default to the standard path separator (i.e. ":") - it is 11734 # assumed that no part of a normal pathname contains ";" but that should 11735 # okay in the real world where ";" in dirpaths is itself problematic. 11736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11737 ;; 11738 *) 11739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11740 ;; 11741 esac 11742 # Ok, now we have the path, separated by spaces, we can step through it 11743 # and add multilib dir if necessary... 11744 lt_tmp_lt_search_path_spec= 11745 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11746 # ...but if some path component already ends with the multilib dir we assume 11747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11748 case "$lt_multi_os_dir; $lt_search_path_spec " in 11749 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11750 lt_multi_os_dir= 11751 ;; 11752 esac 11753 for lt_sys_path in $lt_search_path_spec; do 11754 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11756 elif test -n "$lt_multi_os_dir"; then 11757 test -d "$lt_sys_path" && \ 11758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11759 fi 11760 done 11761 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11762BEGIN {RS = " "; FS = "/|\n";} { 11763 lt_foo = ""; 11764 lt_count = 0; 11765 for (lt_i = NF; lt_i > 0; lt_i--) { 11766 if ($lt_i != "" && $lt_i != ".") { 11767 if ($lt_i == "..") { 11768 lt_count++; 11769 } else { 11770 if (lt_count == 0) { 11771 lt_foo = "/" $lt_i lt_foo; 11772 } else { 11773 lt_count--; 11774 } 11775 } 11776 } 11777 } 11778 if (lt_foo != "") { lt_freq[lt_foo]++; } 11779 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11780}'` 11781 # AWK program above erroneously prepends '/' to C:/dos/paths 11782 # for these hosts. 11783 case $host_os in 11784 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11786 esac 11787 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11788else 11789 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11790fi 11791library_names_spec= 11792libname_spec='lib$name' 11793soname_spec= 11794shrext_cmds=.so 11795postinstall_cmds= 11796postuninstall_cmds= 11797finish_cmds= 11798finish_eval= 11799shlibpath_var= 11800shlibpath_overrides_runpath=unknown 11801version_type=none 11802dynamic_linker="$host_os ld.so" 11803sys_lib_dlsearch_path_spec="/lib /usr/lib" 11804need_lib_prefix=unknown 11805hardcode_into_libs=no 11806 11807# when you set need_version to no, make sure it does not cause -set_version 11808# flags to be left without arguments 11809need_version=unknown 11810 11811 11812 11813case $host_os in 11814aix3*) 11815 version_type=linux # correct to gnu/linux during the next big refactor 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11817 shlibpath_var=LIBPATH 11818 11819 # AIX 3 has no versioning support, so we append a major version to the name. 11820 soname_spec='$libname$release$shared_ext$major' 11821 ;; 11822 11823aix[4-9]*) 11824 version_type=linux # correct to gnu/linux during the next big refactor 11825 need_lib_prefix=no 11826 need_version=no 11827 hardcode_into_libs=yes 11828 if test ia64 = "$host_cpu"; then 11829 # AIX 5 supports IA64 11830 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11831 shlibpath_var=LD_LIBRARY_PATH 11832 else 11833 # With GCC up to 2.95.x, collect2 would create an import file 11834 # for dependence libraries. The import file would start with 11835 # the line '#! .'. This would cause the generated library to 11836 # depend on '.', always an invalid library. This was fixed in 11837 # development snapshots of GCC prior to 3.0. 11838 case $host_os in 11839 aix4 | aix4.[01] | aix4.[01].*) 11840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11841 echo ' yes ' 11842 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11843 : 11844 else 11845 can_build_shared=no 11846 fi 11847 ;; 11848 esac 11849 # Using Import Files as archive members, it is possible to support 11850 # filename-based versioning of shared library archives on AIX. While 11851 # this would work for both with and without runtime linking, it will 11852 # prevent static linking of such archives. So we do filename-based 11853 # shared library versioning with .so extension only, which is used 11854 # when both runtime linking and shared linking is enabled. 11855 # Unfortunately, runtime linking may impact performance, so we do 11856 # not want this to be the default eventually. Also, we use the 11857 # versioned .so libs for executables only if there is the -brtl 11858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11859 # To allow for filename-based versioning support, we need to create 11860 # libNAME.so.V as an archive file, containing: 11861 # *) an Import File, referring to the versioned filename of the 11862 # archive as well as the shared archive member, telling the 11863 # bitwidth (32 or 64) of that shared object, and providing the 11864 # list of exported symbols of that shared object, eventually 11865 # decorated with the 'weak' keyword 11866 # *) the shared object with the F_LOADONLY flag set, to really avoid 11867 # it being seen by the linker. 11868 # At run time we better use the real file rather than another symlink, 11869 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11870 11871 case $with_aix_soname,$aix_use_runtimelinking in 11872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11873 # soname into executable. Probably we can add versioning support to 11874 # collect2, so additional links can be useful in future. 11875 aix,yes) # traditional libtool 11876 dynamic_linker='AIX unversionable lib.so' 11877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11878 # instead of lib<name>.a to let people know that these are not 11879 # typical AIX shared libraries. 11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11881 ;; 11882 aix,no) # traditional AIX only 11883 dynamic_linker='AIX lib.a(lib.so.V)' 11884 # We preserve .a as extension for shared libraries through AIX4.2 11885 # and later when we are not doing run time linking. 11886 library_names_spec='$libname$release.a $libname.a' 11887 soname_spec='$libname$release$shared_ext$major' 11888 ;; 11889 svr4,*) # full svr4 only 11890 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11891 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11892 # We do not specify a path in Import Files, so LIBPATH fires. 11893 shlibpath_overrides_runpath=yes 11894 ;; 11895 *,yes) # both, prefer svr4 11896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11898 # unpreferred sharedlib libNAME.a needs extra handling 11899 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11900 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11901 # We do not specify a path in Import Files, so LIBPATH fires. 11902 shlibpath_overrides_runpath=yes 11903 ;; 11904 *,no) # both, prefer aix 11905 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11906 library_names_spec='$libname$release.a $libname.a' 11907 soname_spec='$libname$release$shared_ext$major' 11908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11909 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11910 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11911 ;; 11912 esac 11913 shlibpath_var=LIBPATH 11914 fi 11915 ;; 11916 11917amigaos*) 11918 case $host_cpu in 11919 powerpc) 11920 # Since July 2007 AmigaOS4 officially supports .so libraries. 11921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11923 ;; 11924 m68k) 11925 library_names_spec='$libname.ixlibrary $libname.a' 11926 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11927 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11928 ;; 11929 esac 11930 ;; 11931 11932beos*) 11933 library_names_spec='$libname$shared_ext' 11934 dynamic_linker="$host_os ld.so" 11935 shlibpath_var=LIBRARY_PATH 11936 ;; 11937 11938bsdi[45]*) 11939 version_type=linux # correct to gnu/linux during the next big refactor 11940 need_version=no 11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11942 soname_spec='$libname$release$shared_ext$major' 11943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11944 shlibpath_var=LD_LIBRARY_PATH 11945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11947 # the default ld.so.conf also contains /usr/contrib/lib and 11948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11949 # libtool to hard-code these into programs 11950 ;; 11951 11952cygwin* | mingw* | pw32* | cegcc*) 11953 version_type=windows 11954 shrext_cmds=.dll 11955 need_version=no 11956 need_lib_prefix=no 11957 11958 case $GCC,$cc_basename in 11959 yes,*) 11960 # gcc 11961 library_names_spec='$libname.dll.a' 11962 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11963 postinstall_cmds='base_file=`basename \$file`~ 11964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11965 dldir=$destdir/`dirname \$dlpath`~ 11966 test -d \$dldir || mkdir -p \$dldir~ 11967 $install_prog $dir/$dlname \$dldir/$dlname~ 11968 chmod a+x \$dldir/$dlname~ 11969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11971 fi' 11972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11973 dlpath=$dir/\$dldll~ 11974 $RM \$dlpath' 11975 shlibpath_overrides_runpath=yes 11976 11977 case $host_os in 11978 cygwin*) 11979 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11980 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11981 11982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11983 ;; 11984 mingw* | cegcc*) 11985 # MinGW DLLs use traditional 'lib' prefix 11986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11987 ;; 11988 pw32*) 11989 # pw32 DLLs use 'pw' prefix rather than 'lib' 11990 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11991 ;; 11992 esac 11993 dynamic_linker='Win32 ld.exe' 11994 ;; 11995 11996 *,cl* | *,icl*) 11997 # Native MSVC or ICC 11998 libname_spec='$name' 11999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12000 library_names_spec='$libname.dll.lib' 12001 12002 case $build_os in 12003 mingw*) 12004 sys_lib_search_path_spec= 12005 lt_save_ifs=$IFS 12006 IFS=';' 12007 for lt_path in $LIB 12008 do 12009 IFS=$lt_save_ifs 12010 # Let DOS variable expansion print the short 8.3 style file name. 12011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12013 done 12014 IFS=$lt_save_ifs 12015 # Convert to MSYS style. 12016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12017 ;; 12018 cygwin*) 12019 # Convert to unix form, then to dos form, then back to unix form 12020 # but this time dos style (no spaces!) so that the unix form looks 12021 # like /cygdrive/c/PROGRA~1:/cygdr... 12022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12025 ;; 12026 *) 12027 sys_lib_search_path_spec=$LIB 12028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12029 # It is most probably a Windows format PATH. 12030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12031 else 12032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12033 fi 12034 # FIXME: find the short name or the path components, as spaces are 12035 # common. (e.g. "Program Files" -> "PROGRA~1") 12036 ;; 12037 esac 12038 12039 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12040 postinstall_cmds='base_file=`basename \$file`~ 12041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12042 dldir=$destdir/`dirname \$dlpath`~ 12043 test -d \$dldir || mkdir -p \$dldir~ 12044 $install_prog $dir/$dlname \$dldir/$dlname' 12045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12046 dlpath=$dir/\$dldll~ 12047 $RM \$dlpath' 12048 shlibpath_overrides_runpath=yes 12049 dynamic_linker='Win32 link.exe' 12050 ;; 12051 12052 *) 12053 # Assume MSVC and ICC wrapper 12054 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12055 dynamic_linker='Win32 ld.exe' 12056 ;; 12057 esac 12058 # FIXME: first we should search . and the directory the executable is in 12059 shlibpath_var=PATH 12060 ;; 12061 12062darwin* | rhapsody*) 12063 dynamic_linker="$host_os dyld" 12064 version_type=darwin 12065 need_lib_prefix=no 12066 need_version=no 12067 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12068 soname_spec='$libname$release$major$shared_ext' 12069 shlibpath_overrides_runpath=yes 12070 shlibpath_var=DYLD_LIBRARY_PATH 12071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12072 12073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12075 ;; 12076 12077dgux*) 12078 version_type=linux # correct to gnu/linux during the next big refactor 12079 need_lib_prefix=no 12080 need_version=no 12081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12082 soname_spec='$libname$release$shared_ext$major' 12083 shlibpath_var=LD_LIBRARY_PATH 12084 ;; 12085 12086freebsd* | dragonfly* | midnightbsd*) 12087 # DragonFly does not have aout. When/if they implement a new 12088 # versioning mechanism, adjust this. 12089 if test -x /usr/bin/objformat; then 12090 objformat=`/usr/bin/objformat` 12091 else 12092 case $host_os in 12093 freebsd[23].*) objformat=aout ;; 12094 *) objformat=elf ;; 12095 esac 12096 fi 12097 version_type=freebsd-$objformat 12098 case $version_type in 12099 freebsd-elf*) 12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12101 soname_spec='$libname$release$shared_ext$major' 12102 need_version=no 12103 need_lib_prefix=no 12104 ;; 12105 freebsd-*) 12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12107 need_version=yes 12108 ;; 12109 esac 12110 shlibpath_var=LD_LIBRARY_PATH 12111 case $host_os in 12112 freebsd2.*) 12113 shlibpath_overrides_runpath=yes 12114 ;; 12115 freebsd3.[01]* | freebsdelf3.[01]*) 12116 shlibpath_overrides_runpath=yes 12117 hardcode_into_libs=yes 12118 ;; 12119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12121 shlibpath_overrides_runpath=no 12122 hardcode_into_libs=yes 12123 ;; 12124 *) # from 4.6 on, and DragonFly 12125 shlibpath_overrides_runpath=yes 12126 hardcode_into_libs=yes 12127 ;; 12128 esac 12129 ;; 12130 12131haiku*) 12132 version_type=linux # correct to gnu/linux during the next big refactor 12133 need_lib_prefix=no 12134 need_version=no 12135 dynamic_linker="$host_os runtime_loader" 12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12137 soname_spec='$libname$release$shared_ext$major' 12138 shlibpath_var=LIBRARY_PATH 12139 shlibpath_overrides_runpath=no 12140 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12141 hardcode_into_libs=yes 12142 ;; 12143 12144hpux9* | hpux10* | hpux11*) 12145 # Give a soname corresponding to the major version so that dld.sl refuses to 12146 # link against other versions. 12147 version_type=sunos 12148 need_lib_prefix=no 12149 need_version=no 12150 case $host_cpu in 12151 ia64*) 12152 shrext_cmds='.so' 12153 hardcode_into_libs=yes 12154 dynamic_linker="$host_os dld.so" 12155 shlibpath_var=LD_LIBRARY_PATH 12156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12158 soname_spec='$libname$release$shared_ext$major' 12159 if test 32 = "$HPUX_IA64_MODE"; then 12160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12161 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12162 else 12163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12164 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12165 fi 12166 ;; 12167 hppa*64*) 12168 shrext_cmds='.sl' 12169 hardcode_into_libs=yes 12170 dynamic_linker="$host_os dld.sl" 12171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12174 soname_spec='$libname$release$shared_ext$major' 12175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12177 ;; 12178 *) 12179 shrext_cmds='.sl' 12180 dynamic_linker="$host_os dld.sl" 12181 shlibpath_var=SHLIB_PATH 12182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12184 soname_spec='$libname$release$shared_ext$major' 12185 ;; 12186 esac 12187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12188 postinstall_cmds='chmod 555 $lib' 12189 # or fails outright, so override atomically: 12190 install_override_mode=555 12191 ;; 12192 12193interix[3-9]*) 12194 version_type=linux # correct to gnu/linux during the next big refactor 12195 need_lib_prefix=no 12196 need_version=no 12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12198 soname_spec='$libname$release$shared_ext$major' 12199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 shlibpath_overrides_runpath=no 12202 hardcode_into_libs=yes 12203 ;; 12204 12205irix5* | irix6* | nonstopux*) 12206 case $host_os in 12207 nonstopux*) version_type=nonstopux ;; 12208 *) 12209 if test yes = "$lt_cv_prog_gnu_ld"; then 12210 version_type=linux # correct to gnu/linux during the next big refactor 12211 else 12212 version_type=irix 12213 fi ;; 12214 esac 12215 need_lib_prefix=no 12216 need_version=no 12217 soname_spec='$libname$release$shared_ext$major' 12218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12219 case $host_os in 12220 irix5* | nonstopux*) 12221 libsuff= shlibsuff= 12222 ;; 12223 *) 12224 case $LD in # libtool.m4 will add one of these switches to LD 12225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12226 libsuff= shlibsuff= libmagic=32-bit;; 12227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12228 libsuff=32 shlibsuff=N32 libmagic=N32;; 12229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12230 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12231 *) libsuff= shlibsuff= libmagic=never-match;; 12232 esac 12233 ;; 12234 esac 12235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12236 shlibpath_overrides_runpath=no 12237 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12238 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12239 hardcode_into_libs=yes 12240 ;; 12241 12242# No shared lib support for Linux oldld, aout, or coff. 12243linux*oldld* | linux*aout* | linux*coff*) 12244 dynamic_linker=no 12245 ;; 12246 12247linux*android*) 12248 version_type=none # Android doesn't support versioned libraries. 12249 need_lib_prefix=no 12250 need_version=no 12251 library_names_spec='$libname$release$shared_ext' 12252 soname_spec='$libname$release$shared_ext' 12253 finish_cmds= 12254 shlibpath_var=LD_LIBRARY_PATH 12255 shlibpath_overrides_runpath=yes 12256 12257 # This implies no fast_install, which is unacceptable. 12258 # Some rework will be needed to allow for fast_install 12259 # before this can be enabled. 12260 hardcode_into_libs=yes 12261 12262 dynamic_linker='Android linker' 12263 # Don't embed -rpath directories since the linker doesn't support them. 12264 hardcode_libdir_flag_spec='-L$libdir' 12265 ;; 12266 12267# This must be glibc/ELF. 12268linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12269 version_type=linux # correct to gnu/linux during the next big refactor 12270 need_lib_prefix=no 12271 need_version=no 12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12273 soname_spec='$libname$release$shared_ext$major' 12274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12275 shlibpath_var=LD_LIBRARY_PATH 12276 shlibpath_overrides_runpath=no 12277 12278 # Some binutils ld are patched to set DT_RUNPATH 12279 if test ${lt_cv_shlibpath_overrides_runpath+y} 12280then : 12281 printf %s "(cached) " >&6 12282else case e in #( 12283 e) lt_cv_shlibpath_overrides_runpath=no 12284 save_LDFLAGS=$LDFLAGS 12285 save_libdir=$libdir 12286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12289/* end confdefs.h. */ 12290 12291int 12292main (void) 12293{ 12294 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299if ac_fn_c_try_link "$LINENO" 12300then : 12301 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12302then : 12303 lt_cv_shlibpath_overrides_runpath=yes 12304fi 12305fi 12306rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12307 conftest$ac_exeext conftest.$ac_ext 12308 LDFLAGS=$save_LDFLAGS 12309 libdir=$save_libdir 12310 ;; 12311esac 12312fi 12313 12314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12315 12316 # This implies no fast_install, which is unacceptable. 12317 # Some rework will be needed to allow for fast_install 12318 # before this can be enabled. 12319 hardcode_into_libs=yes 12320 12321 # Ideally, we could use ldconfig to report *all* directores which are 12322 # searched for libraries, however this is still not possible. Aside from not 12323 # being certain /sbin/ldconfig is available, command 12324 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12325 # even though it is searched at run-time. Try to do the best guess by 12326 # appending ld.so.conf contents (and includes) to the search path. 12327 if test -f /etc/ld.so.conf; then 12328 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' ' '` 12329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12330 fi 12331 12332 # We used to test for /lib/ld.so.1 and disable shared libraries on 12333 # powerpc, because MkLinux only supported shared libraries with the 12334 # GNU dynamic linker. Since this was broken with cross compilers, 12335 # most powerpc-linux boxes support dynamic linking these days and 12336 # people can always --disable-shared, the test was removed, and we 12337 # assume the GNU/Linux dynamic linker is in use. 12338 dynamic_linker='GNU/Linux ld.so' 12339 ;; 12340 12341netbsd*) 12342 version_type=sunos 12343 need_lib_prefix=no 12344 need_version=no 12345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12348 dynamic_linker='NetBSD (a.out) ld.so' 12349 else 12350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12351 soname_spec='$libname$release$shared_ext$major' 12352 dynamic_linker='NetBSD ld.elf_so' 12353 fi 12354 shlibpath_var=LD_LIBRARY_PATH 12355 shlibpath_overrides_runpath=yes 12356 hardcode_into_libs=yes 12357 ;; 12358 12359newsos6) 12360 version_type=linux # correct to gnu/linux during the next big refactor 12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12362 shlibpath_var=LD_LIBRARY_PATH 12363 shlibpath_overrides_runpath=yes 12364 ;; 12365 12366*nto* | *qnx*) 12367 version_type=qnx 12368 need_lib_prefix=no 12369 need_version=no 12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12371 soname_spec='$libname$release$shared_ext$major' 12372 shlibpath_var=LD_LIBRARY_PATH 12373 shlibpath_overrides_runpath=no 12374 hardcode_into_libs=yes 12375 dynamic_linker='ldqnx.so' 12376 ;; 12377 12378openbsd* | bitrig*) 12379 version_type=sunos 12380 sys_lib_dlsearch_path_spec=/usr/lib 12381 need_lib_prefix=no 12382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12383 need_version=no 12384 else 12385 need_version=yes 12386 fi 12387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12389 shlibpath_var=LD_LIBRARY_PATH 12390 shlibpath_overrides_runpath=yes 12391 ;; 12392 12393os2*) 12394 libname_spec='$name' 12395 version_type=windows 12396 shrext_cmds=.dll 12397 need_version=no 12398 need_lib_prefix=no 12399 # OS/2 can only load a DLL with a base name of 8 characters or less. 12400 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12401 v=$($ECHO $release$versuffix | tr -d .-); 12402 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12403 $ECHO $n$v`$shared_ext' 12404 library_names_spec='${libname}_dll.$libext' 12405 dynamic_linker='OS/2 ld.exe' 12406 shlibpath_var=BEGINLIBPATH 12407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12409 postinstall_cmds='base_file=`basename \$file`~ 12410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12411 dldir=$destdir/`dirname \$dlpath`~ 12412 test -d \$dldir || mkdir -p \$dldir~ 12413 $install_prog $dir/$dlname \$dldir/$dlname~ 12414 chmod a+x \$dldir/$dlname~ 12415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12417 fi' 12418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12419 dlpath=$dir/\$dldll~ 12420 $RM \$dlpath' 12421 ;; 12422 12423osf3* | osf4* | osf5*) 12424 version_type=osf 12425 need_lib_prefix=no 12426 need_version=no 12427 soname_spec='$libname$release$shared_ext$major' 12428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12429 shlibpath_var=LD_LIBRARY_PATH 12430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12432 ;; 12433 12434rdos*) 12435 dynamic_linker=no 12436 ;; 12437 12438solaris*) 12439 version_type=linux # correct to gnu/linux during the next big refactor 12440 need_lib_prefix=no 12441 need_version=no 12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12443 soname_spec='$libname$release$shared_ext$major' 12444 shlibpath_var=LD_LIBRARY_PATH 12445 shlibpath_overrides_runpath=yes 12446 hardcode_into_libs=yes 12447 # ldd complains unless libraries are executable 12448 postinstall_cmds='chmod +x $lib' 12449 ;; 12450 12451sunos4*) 12452 version_type=sunos 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=yes 12457 if test yes = "$with_gnu_ld"; then 12458 need_lib_prefix=no 12459 fi 12460 need_version=yes 12461 ;; 12462 12463sysv4 | sysv4.3*) 12464 version_type=linux # correct to gnu/linux during the next big refactor 12465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12466 soname_spec='$libname$release$shared_ext$major' 12467 shlibpath_var=LD_LIBRARY_PATH 12468 case $host_vendor in 12469 sni) 12470 shlibpath_overrides_runpath=no 12471 need_lib_prefix=no 12472 runpath_var=LD_RUN_PATH 12473 ;; 12474 siemens) 12475 need_lib_prefix=no 12476 ;; 12477 motorola) 12478 need_lib_prefix=no 12479 need_version=no 12480 shlibpath_overrides_runpath=no 12481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12482 ;; 12483 esac 12484 ;; 12485 12486sysv4*MP*) 12487 if test -d /usr/nec; then 12488 version_type=linux # correct to gnu/linux during the next big refactor 12489 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12490 soname_spec='$libname$shared_ext.$major' 12491 shlibpath_var=LD_LIBRARY_PATH 12492 fi 12493 ;; 12494 12495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12496 version_type=sco 12497 need_lib_prefix=no 12498 need_version=no 12499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12500 soname_spec='$libname$release$shared_ext$major' 12501 shlibpath_var=LD_LIBRARY_PATH 12502 shlibpath_overrides_runpath=yes 12503 hardcode_into_libs=yes 12504 if test yes = "$with_gnu_ld"; then 12505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12506 else 12507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12508 case $host_os in 12509 sco3.2v5*) 12510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12511 ;; 12512 esac 12513 fi 12514 sys_lib_dlsearch_path_spec='/usr/lib' 12515 ;; 12516 12517tpf*) 12518 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12519 version_type=linux # correct to gnu/linux during the next big refactor 12520 need_lib_prefix=no 12521 need_version=no 12522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12523 shlibpath_var=LD_LIBRARY_PATH 12524 shlibpath_overrides_runpath=no 12525 hardcode_into_libs=yes 12526 ;; 12527 12528uts4*) 12529 version_type=linux # correct to gnu/linux during the next big refactor 12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12531 soname_spec='$libname$release$shared_ext$major' 12532 shlibpath_var=LD_LIBRARY_PATH 12533 ;; 12534 12535*) 12536 dynamic_linker=no 12537 ;; 12538esac 12539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12540printf "%s\n" "$dynamic_linker" >&6; } 12541test no = "$dynamic_linker" && can_build_shared=no 12542 12543variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12544if test yes = "$GCC"; then 12545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12546fi 12547 12548if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12549 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12550fi 12551 12552if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12553 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12554fi 12555 12556# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12557configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12558 12559# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12560func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12561 12562# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12563configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12662printf %s "checking how to hardcode library paths into programs... " >&6; } 12663hardcode_action= 12664if test -n "$hardcode_libdir_flag_spec" || 12665 test -n "$runpath_var" || 12666 test yes = "$hardcode_automatic"; then 12667 12668 # We can hardcode non-existent directories. 12669 if test no != "$hardcode_direct" && 12670 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12671 # have to relink, otherwise we might link with an installed library 12672 # when we should be linking with a yet-to-be-installed one 12673 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12674 test no != "$hardcode_minus_L"; then 12675 # Linking always hardcodes the temporary library directory. 12676 hardcode_action=relink 12677 else 12678 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12679 hardcode_action=immediate 12680 fi 12681else 12682 # We cannot hardcode anything, or else we can only hardcode existing 12683 # directories. 12684 hardcode_action=unsupported 12685fi 12686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12687printf "%s\n" "$hardcode_action" >&6; } 12688 12689if test relink = "$hardcode_action" || 12690 test yes = "$inherit_rpath"; then 12691 # Fast installation is not supported 12692 enable_fast_install=no 12693elif test yes = "$shlibpath_overrides_runpath" || 12694 test no = "$enable_shared"; then 12695 # Fast installation is not necessary 12696 enable_fast_install=needless 12697fi 12698 12699 12700 12701 12702 12703 12704 if test yes != "$enable_dlopen"; then 12705 enable_dlopen=unknown 12706 enable_dlopen_self=unknown 12707 enable_dlopen_self_static=unknown 12708else 12709 lt_cv_dlopen=no 12710 lt_cv_dlopen_libs= 12711 12712 case $host_os in 12713 beos*) 12714 lt_cv_dlopen=load_add_on 12715 lt_cv_dlopen_libs= 12716 lt_cv_dlopen_self=yes 12717 ;; 12718 12719 mingw* | pw32* | cegcc*) 12720 lt_cv_dlopen=LoadLibrary 12721 lt_cv_dlopen_libs= 12722 ;; 12723 12724 cygwin*) 12725 lt_cv_dlopen=dlopen 12726 lt_cv_dlopen_libs= 12727 ;; 12728 12729 darwin*) 12730 # if libdl is installed we need to link against it 12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12732printf %s "checking for dlopen in -ldl... " >&6; } 12733if test ${ac_cv_lib_dl_dlopen+y} 12734then : 12735 printf %s "(cached) " >&6 12736else case e in #( 12737 e) ac_check_lib_save_LIBS=$LIBS 12738LIBS="-ldl $LIBS" 12739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740/* end confdefs.h. */ 12741 12742/* Override any GCC internal prototype to avoid an error. 12743 Use char because int might match the return type of a GCC 12744 builtin and then its argument prototype would still apply. 12745 The 'extern "C"' is for builds by C++ compilers; 12746 although this is not generally supported in C code supporting it here 12747 has little cost and some practical benefit (sr 110532). */ 12748#ifdef __cplusplus 12749extern "C" 12750#endif 12751char dlopen (void); 12752int 12753main (void) 12754{ 12755return dlopen (); 12756 ; 12757 return 0; 12758} 12759_ACEOF 12760if ac_fn_c_try_link "$LINENO" 12761then : 12762 ac_cv_lib_dl_dlopen=yes 12763else case e in #( 12764 e) ac_cv_lib_dl_dlopen=no ;; 12765esac 12766fi 12767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12768 conftest$ac_exeext conftest.$ac_ext 12769LIBS=$ac_check_lib_save_LIBS ;; 12770esac 12771fi 12772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12773printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12774if test "x$ac_cv_lib_dl_dlopen" = xyes 12775then : 12776 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12777else case e in #( 12778 e) 12779 lt_cv_dlopen=dyld 12780 lt_cv_dlopen_libs= 12781 lt_cv_dlopen_self=yes 12782 ;; 12783esac 12784fi 12785 12786 ;; 12787 12788 tpf*) 12789 # Don't try to run any link tests for TPF. We know it's impossible 12790 # because TPF is a cross-compiler, and we know how we open DSOs. 12791 lt_cv_dlopen=dlopen 12792 lt_cv_dlopen_libs= 12793 lt_cv_dlopen_self=no 12794 ;; 12795 12796 *) 12797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12798if test "x$ac_cv_func_shl_load" = xyes 12799then : 12800 lt_cv_dlopen=shl_load 12801else case e in #( 12802 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12803printf %s "checking for shl_load in -ldld... " >&6; } 12804if test ${ac_cv_lib_dld_shl_load+y} 12805then : 12806 printf %s "(cached) " >&6 12807else case e in #( 12808 e) ac_check_lib_save_LIBS=$LIBS 12809LIBS="-ldld $LIBS" 12810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12811/* end confdefs.h. */ 12812 12813/* Override any GCC internal prototype to avoid an error. 12814 Use char because int might match the return type of a GCC 12815 builtin and then its argument prototype would still apply. 12816 The 'extern "C"' is for builds by C++ compilers; 12817 although this is not generally supported in C code supporting it here 12818 has little cost and some practical benefit (sr 110532). */ 12819#ifdef __cplusplus 12820extern "C" 12821#endif 12822char shl_load (void); 12823int 12824main (void) 12825{ 12826return shl_load (); 12827 ; 12828 return 0; 12829} 12830_ACEOF 12831if ac_fn_c_try_link "$LINENO" 12832then : 12833 ac_cv_lib_dld_shl_load=yes 12834else case e in #( 12835 e) ac_cv_lib_dld_shl_load=no ;; 12836esac 12837fi 12838rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12839 conftest$ac_exeext conftest.$ac_ext 12840LIBS=$ac_check_lib_save_LIBS ;; 12841esac 12842fi 12843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12844printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12845if test "x$ac_cv_lib_dld_shl_load" = xyes 12846then : 12847 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12848else case e in #( 12849 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12850if test "x$ac_cv_func_dlopen" = xyes 12851then : 12852 lt_cv_dlopen=dlopen 12853else case e in #( 12854 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12855printf %s "checking for dlopen in -ldl... " >&6; } 12856if test ${ac_cv_lib_dl_dlopen+y} 12857then : 12858 printf %s "(cached) " >&6 12859else case e in #( 12860 e) ac_check_lib_save_LIBS=$LIBS 12861LIBS="-ldl $LIBS" 12862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12863/* end confdefs.h. */ 12864 12865/* Override any GCC internal prototype to avoid an error. 12866 Use char because int might match the return type of a GCC 12867 builtin and then its argument prototype would still apply. 12868 The 'extern "C"' is for builds by C++ compilers; 12869 although this is not generally supported in C code supporting it here 12870 has little cost and some practical benefit (sr 110532). */ 12871#ifdef __cplusplus 12872extern "C" 12873#endif 12874char dlopen (void); 12875int 12876main (void) 12877{ 12878return dlopen (); 12879 ; 12880 return 0; 12881} 12882_ACEOF 12883if ac_fn_c_try_link "$LINENO" 12884then : 12885 ac_cv_lib_dl_dlopen=yes 12886else case e in #( 12887 e) ac_cv_lib_dl_dlopen=no ;; 12888esac 12889fi 12890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12891 conftest$ac_exeext conftest.$ac_ext 12892LIBS=$ac_check_lib_save_LIBS ;; 12893esac 12894fi 12895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12896printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12897if test "x$ac_cv_lib_dl_dlopen" = xyes 12898then : 12899 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12900else case e in #( 12901 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12902printf %s "checking for dlopen in -lsvld... " >&6; } 12903if test ${ac_cv_lib_svld_dlopen+y} 12904then : 12905 printf %s "(cached) " >&6 12906else case e in #( 12907 e) ac_check_lib_save_LIBS=$LIBS 12908LIBS="-lsvld $LIBS" 12909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12910/* end confdefs.h. */ 12911 12912/* Override any GCC internal prototype to avoid an error. 12913 Use char because int might match the return type of a GCC 12914 builtin and then its argument prototype would still apply. 12915 The 'extern "C"' is for builds by C++ compilers; 12916 although this is not generally supported in C code supporting it here 12917 has little cost and some practical benefit (sr 110532). */ 12918#ifdef __cplusplus 12919extern "C" 12920#endif 12921char dlopen (void); 12922int 12923main (void) 12924{ 12925return dlopen (); 12926 ; 12927 return 0; 12928} 12929_ACEOF 12930if ac_fn_c_try_link "$LINENO" 12931then : 12932 ac_cv_lib_svld_dlopen=yes 12933else case e in #( 12934 e) ac_cv_lib_svld_dlopen=no ;; 12935esac 12936fi 12937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12938 conftest$ac_exeext conftest.$ac_ext 12939LIBS=$ac_check_lib_save_LIBS ;; 12940esac 12941fi 12942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12943printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12944if test "x$ac_cv_lib_svld_dlopen" = xyes 12945then : 12946 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12947else case e in #( 12948 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12949printf %s "checking for dld_link in -ldld... " >&6; } 12950if test ${ac_cv_lib_dld_dld_link+y} 12951then : 12952 printf %s "(cached) " >&6 12953else case e in #( 12954 e) ac_check_lib_save_LIBS=$LIBS 12955LIBS="-ldld $LIBS" 12956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12957/* end confdefs.h. */ 12958 12959/* Override any GCC internal prototype to avoid an error. 12960 Use char because int might match the return type of a GCC 12961 builtin and then its argument prototype would still apply. 12962 The 'extern "C"' is for builds by C++ compilers; 12963 although this is not generally supported in C code supporting it here 12964 has little cost and some practical benefit (sr 110532). */ 12965#ifdef __cplusplus 12966extern "C" 12967#endif 12968char dld_link (void); 12969int 12970main (void) 12971{ 12972return dld_link (); 12973 ; 12974 return 0; 12975} 12976_ACEOF 12977if ac_fn_c_try_link "$LINENO" 12978then : 12979 ac_cv_lib_dld_dld_link=yes 12980else case e in #( 12981 e) ac_cv_lib_dld_dld_link=no ;; 12982esac 12983fi 12984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12985 conftest$ac_exeext conftest.$ac_ext 12986LIBS=$ac_check_lib_save_LIBS ;; 12987esac 12988fi 12989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12990printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12991if test "x$ac_cv_lib_dld_dld_link" = xyes 12992then : 12993 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12994fi 12995 12996 ;; 12997esac 12998fi 12999 13000 ;; 13001esac 13002fi 13003 13004 ;; 13005esac 13006fi 13007 13008 ;; 13009esac 13010fi 13011 13012 ;; 13013esac 13014fi 13015 13016 ;; 13017 esac 13018 13019 if test no = "$lt_cv_dlopen"; then 13020 enable_dlopen=no 13021 else 13022 enable_dlopen=yes 13023 fi 13024 13025 case $lt_cv_dlopen in 13026 dlopen) 13027 save_CPPFLAGS=$CPPFLAGS 13028 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13029 13030 save_LDFLAGS=$LDFLAGS 13031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13032 13033 save_LIBS=$LIBS 13034 LIBS="$lt_cv_dlopen_libs $LIBS" 13035 13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13037printf %s "checking whether a program can dlopen itself... " >&6; } 13038if test ${lt_cv_dlopen_self+y} 13039then : 13040 printf %s "(cached) " >&6 13041else case e in #( 13042 e) if test yes = "$cross_compiling"; then : 13043 lt_cv_dlopen_self=cross 13044else 13045 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13046 lt_status=$lt_dlunknown 13047 cat > conftest.$ac_ext <<_LT_EOF 13048#line $LINENO "configure" 13049#include "confdefs.h" 13050 13051#if HAVE_DLFCN_H 13052#include <dlfcn.h> 13053#endif 13054 13055#include <stdio.h> 13056 13057#ifdef RTLD_GLOBAL 13058# define LT_DLGLOBAL RTLD_GLOBAL 13059#else 13060# ifdef DL_GLOBAL 13061# define LT_DLGLOBAL DL_GLOBAL 13062# else 13063# define LT_DLGLOBAL 0 13064# endif 13065#endif 13066 13067/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13068 find out it does not work in some platform. */ 13069#ifndef LT_DLLAZY_OR_NOW 13070# ifdef RTLD_LAZY 13071# define LT_DLLAZY_OR_NOW RTLD_LAZY 13072# else 13073# ifdef DL_LAZY 13074# define LT_DLLAZY_OR_NOW DL_LAZY 13075# else 13076# ifdef RTLD_NOW 13077# define LT_DLLAZY_OR_NOW RTLD_NOW 13078# else 13079# ifdef DL_NOW 13080# define LT_DLLAZY_OR_NOW DL_NOW 13081# else 13082# define LT_DLLAZY_OR_NOW 0 13083# endif 13084# endif 13085# endif 13086# endif 13087#endif 13088 13089/* When -fvisibility=hidden is used, assume the code has been annotated 13090 correspondingly for the symbols needed. */ 13091#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13092int fnord () __attribute__((visibility("default"))); 13093#endif 13094 13095int fnord () { return 42; } 13096int main () 13097{ 13098 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13099 int status = $lt_dlunknown; 13100 13101 if (self) 13102 { 13103 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13104 else 13105 { 13106 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13107 else puts (dlerror ()); 13108 } 13109 /* dlclose (self); */ 13110 } 13111 else 13112 puts (dlerror ()); 13113 13114 return status; 13115} 13116_LT_EOF 13117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13118 (eval $ac_link) 2>&5 13119 ac_status=$? 13120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13121 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13122 (./conftest; exit; ) >&5 2>/dev/null 13123 lt_status=$? 13124 case x$lt_status in 13125 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13126 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13127 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13128 esac 13129 else : 13130 # compilation failed 13131 lt_cv_dlopen_self=no 13132 fi 13133fi 13134rm -fr conftest* 13135 13136 ;; 13137esac 13138fi 13139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13140printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13141 13142 if test yes = "$lt_cv_dlopen_self"; then 13143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13145printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13146if test ${lt_cv_dlopen_self_static+y} 13147then : 13148 printf %s "(cached) " >&6 13149else case e in #( 13150 e) if test yes = "$cross_compiling"; then : 13151 lt_cv_dlopen_self_static=cross 13152else 13153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13154 lt_status=$lt_dlunknown 13155 cat > conftest.$ac_ext <<_LT_EOF 13156#line $LINENO "configure" 13157#include "confdefs.h" 13158 13159#if HAVE_DLFCN_H 13160#include <dlfcn.h> 13161#endif 13162 13163#include <stdio.h> 13164 13165#ifdef RTLD_GLOBAL 13166# define LT_DLGLOBAL RTLD_GLOBAL 13167#else 13168# ifdef DL_GLOBAL 13169# define LT_DLGLOBAL DL_GLOBAL 13170# else 13171# define LT_DLGLOBAL 0 13172# endif 13173#endif 13174 13175/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13176 find out it does not work in some platform. */ 13177#ifndef LT_DLLAZY_OR_NOW 13178# ifdef RTLD_LAZY 13179# define LT_DLLAZY_OR_NOW RTLD_LAZY 13180# else 13181# ifdef DL_LAZY 13182# define LT_DLLAZY_OR_NOW DL_LAZY 13183# else 13184# ifdef RTLD_NOW 13185# define LT_DLLAZY_OR_NOW RTLD_NOW 13186# else 13187# ifdef DL_NOW 13188# define LT_DLLAZY_OR_NOW DL_NOW 13189# else 13190# define LT_DLLAZY_OR_NOW 0 13191# endif 13192# endif 13193# endif 13194# endif 13195#endif 13196 13197/* When -fvisibility=hidden is used, assume the code has been annotated 13198 correspondingly for the symbols needed. */ 13199#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13200int fnord () __attribute__((visibility("default"))); 13201#endif 13202 13203int fnord () { return 42; } 13204int main () 13205{ 13206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13207 int status = $lt_dlunknown; 13208 13209 if (self) 13210 { 13211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13212 else 13213 { 13214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13215 else puts (dlerror ()); 13216 } 13217 /* dlclose (self); */ 13218 } 13219 else 13220 puts (dlerror ()); 13221 13222 return status; 13223} 13224_LT_EOF 13225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13226 (eval $ac_link) 2>&5 13227 ac_status=$? 13228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13229 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13230 (./conftest; exit; ) >&5 2>/dev/null 13231 lt_status=$? 13232 case x$lt_status in 13233 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13234 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13235 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13236 esac 13237 else : 13238 # compilation failed 13239 lt_cv_dlopen_self_static=no 13240 fi 13241fi 13242rm -fr conftest* 13243 13244 ;; 13245esac 13246fi 13247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13248printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13249 fi 13250 13251 CPPFLAGS=$save_CPPFLAGS 13252 LDFLAGS=$save_LDFLAGS 13253 LIBS=$save_LIBS 13254 ;; 13255 esac 13256 13257 case $lt_cv_dlopen_self in 13258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13259 *) enable_dlopen_self=unknown ;; 13260 esac 13261 13262 case $lt_cv_dlopen_self_static in 13263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13264 *) enable_dlopen_self_static=unknown ;; 13265 esac 13266fi 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284striplib= 13285old_striplib= 13286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13287printf %s "checking whether stripping libraries is possible... " >&6; } 13288if test -z "$STRIP"; then 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13290printf "%s\n" "no" >&6; } 13291else 13292 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13293 old_striplib="$STRIP --strip-debug" 13294 striplib="$STRIP --strip-unneeded" 13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13296printf "%s\n" "yes" >&6; } 13297 else 13298 case $host_os in 13299 darwin*) 13300 # FIXME - insert some real tests, host_os isn't really good enough 13301 striplib="$STRIP -x" 13302 old_striplib="$STRIP -S" 13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13304printf "%s\n" "yes" >&6; } 13305 ;; 13306 freebsd*) 13307 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13308 old_striplib="$STRIP --strip-debug" 13309 striplib="$STRIP --strip-unneeded" 13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13311printf "%s\n" "yes" >&6; } 13312 else 13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13314printf "%s\n" "no" >&6; } 13315 fi 13316 ;; 13317 *) 13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13319printf "%s\n" "no" >&6; } 13320 ;; 13321 esac 13322 fi 13323fi 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 # Report what library types will actually be built 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13338printf %s "checking if libtool supports shared libraries... " >&6; } 13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13340printf "%s\n" "$can_build_shared" >&6; } 13341 13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13343printf %s "checking whether to build shared libraries... " >&6; } 13344 test no = "$can_build_shared" && enable_shared=no 13345 13346 # On AIX, shared libraries and static libraries use the same namespace, and 13347 # are all built from PIC. 13348 case $host_os in 13349 aix3*) 13350 test yes = "$enable_shared" && enable_static=no 13351 if test -n "$RANLIB"; then 13352 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13353 postinstall_cmds='$RANLIB $lib' 13354 fi 13355 ;; 13356 13357 aix[4-9]*) 13358 if test ia64 != "$host_cpu"; then 13359 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13360 yes,aix,yes) ;; # shared object as lib.so file only 13361 yes,svr4,*) ;; # shared object as lib.so archive member only 13362 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13363 esac 13364 fi 13365 ;; 13366 esac 13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13368printf "%s\n" "$enable_shared" >&6; } 13369 13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13371printf %s "checking whether to build static libraries... " >&6; } 13372 # Make sure either enable_shared or enable_static is yes. 13373 test yes = "$enable_shared" || enable_static=yes 13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13375printf "%s\n" "$enable_static" >&6; } 13376 13377 13378 13379 13380fi 13381ac_ext=c 13382ac_cpp='$CPP $CPPFLAGS' 13383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13385ac_compiler_gnu=$ac_cv_c_compiler_gnu 13386 13387CC=$lt_save_CC 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 ac_config_commands="$ac_config_commands libtool" 13404 13405 13406 13407 13408# Only expand once: 13409 13410 13411 13412# Check whether --enable-largefile was given. 13413if test ${enable_largefile+y} 13414then : 13415 enableval=$enable_largefile; 13416fi 13417if test "$enable_largefile,$enable_year2038" != no,no 13418then : 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 13420printf %s "checking for $CC option to enable large file support... " >&6; } 13421if test ${ac_cv_sys_largefile_opts+y} 13422then : 13423 printf %s "(cached) " >&6 13424else case e in #( 13425 e) ac_save_CC="$CC" 13426 ac_opt_found=no 13427 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 13428 if test x"$ac_opt" != x"none needed" 13429then : 13430 CC="$ac_save_CC $ac_opt" 13431fi 13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13433/* end confdefs.h. */ 13434#include <sys/types.h> 13435#ifndef FTYPE 13436# define FTYPE off_t 13437#endif 13438 /* Check that FTYPE can represent 2**63 - 1 correctly. 13439 We can't simply define LARGE_FTYPE to be 9223372036854775807, 13440 since some C++ compilers masquerading as C compilers 13441 incorrectly reject 9223372036854775807. */ 13442#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 13443 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 13444 && LARGE_FTYPE % 2147483647 == 1) 13445 ? 1 : -1]; 13446int 13447main (void) 13448{ 13449 13450 ; 13451 return 0; 13452} 13453_ACEOF 13454if ac_fn_c_try_compile "$LINENO" 13455then : 13456 if test x"$ac_opt" = x"none needed" 13457then : 13458 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 13459 CC="$CC -DFTYPE=ino_t" 13460 if ac_fn_c_try_compile "$LINENO" 13461then : 13462 13463else case e in #( 13464 e) CC="$CC -D_FILE_OFFSET_BITS=64" 13465 if ac_fn_c_try_compile "$LINENO" 13466then : 13467 ac_opt='-D_FILE_OFFSET_BITS=64' 13468fi 13469rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 13470esac 13471fi 13472rm -f core conftest.err conftest.$ac_objext conftest.beam 13473fi 13474 ac_cv_sys_largefile_opts=$ac_opt 13475 ac_opt_found=yes 13476fi 13477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13478 test $ac_opt_found = no || break 13479 done 13480 CC="$ac_save_CC" 13481 13482 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 13483esac 13484fi 13485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 13486printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 13487 13488ac_have_largefile=yes 13489case $ac_cv_sys_largefile_opts in #( 13490 "none needed") : 13491 ;; #( 13492 "supported through gnulib") : 13493 ;; #( 13494 "support not detected") : 13495 ac_have_largefile=no ;; #( 13496 "-D_FILE_OFFSET_BITS=64") : 13497 13498printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 13499 ;; #( 13500 "-D_LARGE_FILES=1") : 13501 13502printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 13503 ;; #( 13504 "-n32") : 13505 CC="$CC -n32" ;; #( 13506 *) : 13507 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 13508esac 13509 13510if test "$enable_year2038" != no 13511then : 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 13513printf %s "checking for $CC option for timestamps after 2038... " >&6; } 13514if test ${ac_cv_sys_year2038_opts+y} 13515then : 13516 printf %s "(cached) " >&6 13517else case e in #( 13518 e) ac_save_CPPFLAGS="$CPPFLAGS" 13519 ac_opt_found=no 13520 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 13521 if test x"$ac_opt" != x"none needed" 13522then : 13523 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 13524fi 13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13526/* end confdefs.h. */ 13527 13528 #include <time.h> 13529 /* Check that time_t can represent 2**32 - 1 correctly. */ 13530 #define LARGE_TIME_T \\ 13531 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 13532 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 13533 && LARGE_TIME_T % 65537 == 0) 13534 ? 1 : -1]; 13535 13536int 13537main (void) 13538{ 13539 13540 ; 13541 return 0; 13542} 13543_ACEOF 13544if ac_fn_c_try_compile "$LINENO" 13545then : 13546 ac_cv_sys_year2038_opts="$ac_opt" 13547 ac_opt_found=yes 13548fi 13549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13550 test $ac_opt_found = no || break 13551 done 13552 CPPFLAGS="$ac_save_CPPFLAGS" 13553 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 13554esac 13555fi 13556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 13557printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 13558 13559ac_have_year2038=yes 13560case $ac_cv_sys_year2038_opts in #( 13561 "none needed") : 13562 ;; #( 13563 "support not detected") : 13564 ac_have_year2038=no ;; #( 13565 "-D_TIME_BITS=64") : 13566 13567printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 13568 ;; #( 13569 "-D__MINGW_USE_VC2005_COMPAT") : 13570 13571printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 13572 ;; #( 13573 "-U_USE_32_BIT_TIME_T"*) : 13574 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13575printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13576as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 13577will stop working after mid-January 2038. Remove 13578_USE_32BIT_TIME_T from the compiler flags. 13579See 'config.log' for more details" "$LINENO" 5; } ;; #( 13580 *) : 13581 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 13582esac 13583 13584fi 13585 13586fi 13587 13588# Require xorg-macros minimum of 1.15 for fop minimum version 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13601printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13602if test ${ac_cv_c_undeclared_builtin_options+y} 13603then : 13604 printf %s "(cached) " >&6 13605else case e in #( 13606 e) ac_save_CFLAGS=$CFLAGS 13607 ac_cv_c_undeclared_builtin_options='cannot detect' 13608 for ac_arg in '' -fno-builtin; do 13609 CFLAGS="$ac_save_CFLAGS $ac_arg" 13610 # This test program should *not* compile successfully. 13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613 13614int 13615main (void) 13616{ 13617(void) strchr; 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622if ac_fn_c_try_compile "$LINENO" 13623then : 13624 13625else case e in #( 13626 e) # This test program should compile successfully. 13627 # No library function is consistently available on 13628 # freestanding implementations, so test against a dummy 13629 # declaration. Include always-available headers on the 13630 # off chance that they somehow elicit warnings. 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632/* end confdefs.h. */ 13633#include <float.h> 13634#include <limits.h> 13635#include <stdarg.h> 13636#include <stddef.h> 13637extern void ac_decl (int, char *); 13638 13639int 13640main (void) 13641{ 13642(void) ac_decl (0, (char *) 0); 13643 (void) ac_decl; 13644 13645 ; 13646 return 0; 13647} 13648_ACEOF 13649if ac_fn_c_try_compile "$LINENO" 13650then : 13651 if test x"$ac_arg" = x 13652then : 13653 ac_cv_c_undeclared_builtin_options='none needed' 13654else case e in #( 13655 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13656esac 13657fi 13658 break 13659fi 13660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13661esac 13662fi 13663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13664 done 13665 CFLAGS=$ac_save_CFLAGS 13666 ;; 13667esac 13668fi 13669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13670printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13671 case $ac_cv_c_undeclared_builtin_options in #( 13672 'cannot detect') : 13673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13674printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13675as_fn_error $? "cannot make $CC report undeclared builtins 13676See 'config.log' for more details" "$LINENO" 5; } ;; #( 13677 'none needed') : 13678 ac_c_undeclared_builtin_options='' ;; #( 13679 *) : 13680 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13681esac 13682 13683 13684 13685 13686 13687ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13688if test "x$ac_cv_have_decl___clang__" = xyes 13689then : 13690 CLANGCC="yes" 13691else case e in #( 13692 e) CLANGCC="no" ;; 13693esac 13694fi 13695ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13696if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13697then : 13698 INTELCC="yes" 13699else case e in #( 13700 e) INTELCC="no" ;; 13701esac 13702fi 13703ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13704if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13705then : 13706 SUNCC="yes" 13707else case e in #( 13708 e) SUNCC="no" ;; 13709esac 13710fi 13711 13712 13713 13714 13715 13716 13717 13718 13719if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13720 if test -n "$ac_tool_prefix"; then 13721 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13722set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13724printf %s "checking for $ac_word... " >&6; } 13725if test ${ac_cv_path_PKG_CONFIG+y} 13726then : 13727 printf %s "(cached) " >&6 13728else case e in #( 13729 e) case $PKG_CONFIG in 13730 [\\/]* | ?:[\\/]*) 13731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13732 ;; 13733 *) 13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13735for as_dir in $PATH 13736do 13737 IFS=$as_save_IFS 13738 case $as_dir in #((( 13739 '') as_dir=./ ;; 13740 */) ;; 13741 *) as_dir=$as_dir/ ;; 13742 esac 13743 for ac_exec_ext in '' $ac_executable_extensions; do 13744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13745 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13747 break 2 13748 fi 13749done 13750 done 13751IFS=$as_save_IFS 13752 13753 ;; 13754esac ;; 13755esac 13756fi 13757PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13758if test -n "$PKG_CONFIG"; then 13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13760printf "%s\n" "$PKG_CONFIG" >&6; } 13761else 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13763printf "%s\n" "no" >&6; } 13764fi 13765 13766 13767fi 13768if test -z "$ac_cv_path_PKG_CONFIG"; then 13769 ac_pt_PKG_CONFIG=$PKG_CONFIG 13770 # Extract the first word of "pkg-config", so it can be a program name with args. 13771set dummy pkg-config; ac_word=$2 13772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13773printf %s "checking for $ac_word... " >&6; } 13774if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13775then : 13776 printf %s "(cached) " >&6 13777else case e in #( 13778 e) case $ac_pt_PKG_CONFIG in 13779 [\\/]* | ?:[\\/]*) 13780 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13781 ;; 13782 *) 13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13784for as_dir in $PATH 13785do 13786 IFS=$as_save_IFS 13787 case $as_dir in #((( 13788 '') as_dir=./ ;; 13789 */) ;; 13790 *) as_dir=$as_dir/ ;; 13791 esac 13792 for ac_exec_ext in '' $ac_executable_extensions; do 13793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13794 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13796 break 2 13797 fi 13798done 13799 done 13800IFS=$as_save_IFS 13801 13802 ;; 13803esac ;; 13804esac 13805fi 13806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13807if test -n "$ac_pt_PKG_CONFIG"; then 13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13809printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13810else 13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13812printf "%s\n" "no" >&6; } 13813fi 13814 13815 if test "x$ac_pt_PKG_CONFIG" = x; then 13816 PKG_CONFIG="" 13817 else 13818 case $cross_compiling:$ac_tool_warned in 13819yes:) 13820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13822ac_tool_warned=yes ;; 13823esac 13824 PKG_CONFIG=$ac_pt_PKG_CONFIG 13825 fi 13826else 13827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13828fi 13829 13830fi 13831if test -n "$PKG_CONFIG"; then 13832 _pkg_min_version=0.9.0 13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13834printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13837printf "%s\n" "yes" >&6; } 13838 else 13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13840printf "%s\n" "no" >&6; } 13841 PKG_CONFIG="" 13842 fi 13843fi 13844 13845 13846 13847 13848 13849# Check whether --enable-selective-werror was given. 13850if test ${enable_selective_werror+y} 13851then : 13852 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13853else case e in #( 13854 e) SELECTIVE_WERROR=yes ;; 13855esac 13856fi 13857 13858 13859 13860 13861 13862# -v is too short to test reliably with XORG_TESTSET_CFLAG 13863if test "x$SUNCC" = "xyes"; then 13864 BASE_CFLAGS="-v" 13865else 13866 BASE_CFLAGS="" 13867fi 13868 13869# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883xorg_testset_save_CFLAGS="$CFLAGS" 13884 13885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13890then : 13891 printf %s "(cached) " >&6 13892else case e in #( 13893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13894/* end confdefs.h. */ 13895int i; 13896_ACEOF 13897if ac_fn_c_try_compile "$LINENO" 13898then : 13899 xorg_cv_cc_flag_unknown_warning_option=yes 13900else case e in #( 13901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13902esac 13903fi 13904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13905esac 13906fi 13907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13910 CFLAGS="$xorg_testset_save_CFLAGS" 13911fi 13912 13913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13916 fi 13917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13920if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13921then : 13922 printf %s "(cached) " >&6 13923else case e in #( 13924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926int i; 13927_ACEOF 13928if ac_fn_c_try_compile "$LINENO" 13929then : 13930 xorg_cv_cc_flag_unused_command_line_argument=yes 13931else case e in #( 13932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13933esac 13934fi 13935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13936esac 13937fi 13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13941 CFLAGS="$xorg_testset_save_CFLAGS" 13942fi 13943 13944found="no" 13945 13946 if test $found = "no" ; then 13947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13949 fi 13950 13951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13953 fi 13954 13955 CFLAGS="$CFLAGS -Wall" 13956 13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13958printf %s "checking if $CC supports -Wall... " >&6; } 13959 cacheid=xorg_cv_cc_flag__Wall 13960 if eval test \${$cacheid+y} 13961then : 13962 printf %s "(cached) " >&6 13963else case e in #( 13964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13965/* end confdefs.h. */ 13966int i; 13967int 13968main (void) 13969{ 13970 13971 ; 13972 return 0; 13973} 13974_ACEOF 13975if ac_fn_c_try_link "$LINENO" 13976then : 13977 eval $cacheid=yes 13978else case e in #( 13979 e) eval $cacheid=no ;; 13980esac 13981fi 13982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13983 conftest$ac_exeext conftest.$ac_ext ;; 13984esac 13985fi 13986 13987 13988 CFLAGS="$xorg_testset_save_CFLAGS" 13989 13990 eval supported=\$$cacheid 13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13992printf "%s\n" "$supported" >&6; } 13993 if test "$supported" = "yes" ; then 13994 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13995 found="yes" 13996 fi 13997 fi 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013xorg_testset_save_CFLAGS="$CFLAGS" 14014 14015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14019if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14020then : 14021 printf %s "(cached) " >&6 14022else case e in #( 14023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14024/* end confdefs.h. */ 14025int i; 14026_ACEOF 14027if ac_fn_c_try_compile "$LINENO" 14028then : 14029 xorg_cv_cc_flag_unknown_warning_option=yes 14030else case e in #( 14031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14032esac 14033fi 14034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14035esac 14036fi 14037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14040 CFLAGS="$xorg_testset_save_CFLAGS" 14041fi 14042 14043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14046 fi 14047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14050if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14051then : 14052 printf %s "(cached) " >&6 14053else case e in #( 14054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14055/* end confdefs.h. */ 14056int i; 14057_ACEOF 14058if ac_fn_c_try_compile "$LINENO" 14059then : 14060 xorg_cv_cc_flag_unused_command_line_argument=yes 14061else case e in #( 14062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14063esac 14064fi 14065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14066esac 14067fi 14068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14071 CFLAGS="$xorg_testset_save_CFLAGS" 14072fi 14073 14074found="no" 14075 14076 if test $found = "no" ; then 14077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14079 fi 14080 14081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14083 fi 14084 14085 CFLAGS="$CFLAGS -Wpointer-arith" 14086 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14088printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14089 cacheid=xorg_cv_cc_flag__Wpointer_arith 14090 if eval test \${$cacheid+y} 14091then : 14092 printf %s "(cached) " >&6 14093else case e in #( 14094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095/* end confdefs.h. */ 14096int i; 14097int 14098main (void) 14099{ 14100 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_link "$LINENO" 14106then : 14107 eval $cacheid=yes 14108else case e in #( 14109 e) eval $cacheid=no ;; 14110esac 14111fi 14112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14113 conftest$ac_exeext conftest.$ac_ext ;; 14114esac 14115fi 14116 14117 14118 CFLAGS="$xorg_testset_save_CFLAGS" 14119 14120 eval supported=\$$cacheid 14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14122printf "%s\n" "$supported" >&6; } 14123 if test "$supported" = "yes" ; then 14124 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14125 found="yes" 14126 fi 14127 fi 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143xorg_testset_save_CFLAGS="$CFLAGS" 14144 14145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14148printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14149if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14150then : 14151 printf %s "(cached) " >&6 14152else case e in #( 14153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14154/* end confdefs.h. */ 14155int i; 14156_ACEOF 14157if ac_fn_c_try_compile "$LINENO" 14158then : 14159 xorg_cv_cc_flag_unknown_warning_option=yes 14160else case e in #( 14161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14162esac 14163fi 14164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14165esac 14166fi 14167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14170 CFLAGS="$xorg_testset_save_CFLAGS" 14171fi 14172 14173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14176 fi 14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14181then : 14182 printf %s "(cached) " >&6 14183else case e in #( 14184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14185/* end confdefs.h. */ 14186int i; 14187_ACEOF 14188if ac_fn_c_try_compile "$LINENO" 14189then : 14190 xorg_cv_cc_flag_unused_command_line_argument=yes 14191else case e in #( 14192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14193esac 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14196esac 14197fi 14198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14201 CFLAGS="$xorg_testset_save_CFLAGS" 14202fi 14203 14204found="no" 14205 14206 if test $found = "no" ; then 14207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14209 fi 14210 14211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14213 fi 14214 14215 CFLAGS="$CFLAGS -Wmissing-declarations" 14216 14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14218printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14219 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14220 if eval test \${$cacheid+y} 14221then : 14222 printf %s "(cached) " >&6 14223else case e in #( 14224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14225/* end confdefs.h. */ 14226int i; 14227int 14228main (void) 14229{ 14230 14231 ; 14232 return 0; 14233} 14234_ACEOF 14235if ac_fn_c_try_link "$LINENO" 14236then : 14237 eval $cacheid=yes 14238else case e in #( 14239 e) eval $cacheid=no ;; 14240esac 14241fi 14242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14243 conftest$ac_exeext conftest.$ac_ext ;; 14244esac 14245fi 14246 14247 14248 CFLAGS="$xorg_testset_save_CFLAGS" 14249 14250 eval supported=\$$cacheid 14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14252printf "%s\n" "$supported" >&6; } 14253 if test "$supported" = "yes" ; then 14254 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14255 found="yes" 14256 fi 14257 fi 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273xorg_testset_save_CFLAGS="$CFLAGS" 14274 14275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14280then : 14281 printf %s "(cached) " >&6 14282else case e in #( 14283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14284/* end confdefs.h. */ 14285int i; 14286_ACEOF 14287if ac_fn_c_try_compile "$LINENO" 14288then : 14289 xorg_cv_cc_flag_unknown_warning_option=yes 14290else case e in #( 14291 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14292esac 14293fi 14294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14295esac 14296fi 14297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14298printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14300 CFLAGS="$xorg_testset_save_CFLAGS" 14301fi 14302 14303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14306 fi 14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14309printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14310if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14311then : 14312 printf %s "(cached) " >&6 14313else case e in #( 14314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14315/* end confdefs.h. */ 14316int i; 14317_ACEOF 14318if ac_fn_c_try_compile "$LINENO" 14319then : 14320 xorg_cv_cc_flag_unused_command_line_argument=yes 14321else case e in #( 14322 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14323esac 14324fi 14325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14326esac 14327fi 14328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14329printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14331 CFLAGS="$xorg_testset_save_CFLAGS" 14332fi 14333 14334found="no" 14335 14336 if test $found = "no" ; then 14337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14339 fi 14340 14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14343 fi 14344 14345 CFLAGS="$CFLAGS -Wformat=2" 14346 14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14348printf %s "checking if $CC supports -Wformat=2... " >&6; } 14349 cacheid=xorg_cv_cc_flag__Wformat_2 14350 if eval test \${$cacheid+y} 14351then : 14352 printf %s "(cached) " >&6 14353else case e in #( 14354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356int i; 14357int 14358main (void) 14359{ 14360 14361 ; 14362 return 0; 14363} 14364_ACEOF 14365if ac_fn_c_try_link "$LINENO" 14366then : 14367 eval $cacheid=yes 14368else case e in #( 14369 e) eval $cacheid=no ;; 14370esac 14371fi 14372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14373 conftest$ac_exeext conftest.$ac_ext ;; 14374esac 14375fi 14376 14377 14378 CFLAGS="$xorg_testset_save_CFLAGS" 14379 14380 eval supported=\$$cacheid 14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14382printf "%s\n" "$supported" >&6; } 14383 if test "$supported" = "yes" ; then 14384 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14385 found="yes" 14386 fi 14387 fi 14388 14389 if test $found = "no" ; then 14390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14392 fi 14393 14394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14396 fi 14397 14398 CFLAGS="$CFLAGS -Wformat" 14399 14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14401printf %s "checking if $CC supports -Wformat... " >&6; } 14402 cacheid=xorg_cv_cc_flag__Wformat 14403 if eval test \${$cacheid+y} 14404then : 14405 printf %s "(cached) " >&6 14406else case e in #( 14407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14408/* end confdefs.h. */ 14409int i; 14410int 14411main (void) 14412{ 14413 14414 ; 14415 return 0; 14416} 14417_ACEOF 14418if ac_fn_c_try_link "$LINENO" 14419then : 14420 eval $cacheid=yes 14421else case e in #( 14422 e) eval $cacheid=no ;; 14423esac 14424fi 14425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14426 conftest$ac_exeext conftest.$ac_ext ;; 14427esac 14428fi 14429 14430 14431 CFLAGS="$xorg_testset_save_CFLAGS" 14432 14433 eval supported=\$$cacheid 14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14435printf "%s\n" "$supported" >&6; } 14436 if test "$supported" = "yes" ; then 14437 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14438 found="yes" 14439 fi 14440 fi 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458xorg_testset_save_CFLAGS="$CFLAGS" 14459 14460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14464if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14465then : 14466 printf %s "(cached) " >&6 14467else case e in #( 14468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469/* end confdefs.h. */ 14470int i; 14471_ACEOF 14472if ac_fn_c_try_compile "$LINENO" 14473then : 14474 xorg_cv_cc_flag_unknown_warning_option=yes 14475else case e in #( 14476 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14477esac 14478fi 14479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14480esac 14481fi 14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14485 CFLAGS="$xorg_testset_save_CFLAGS" 14486fi 14487 14488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14491 fi 14492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14495if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14496then : 14497 printf %s "(cached) " >&6 14498else case e in #( 14499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500/* end confdefs.h. */ 14501int i; 14502_ACEOF 14503if ac_fn_c_try_compile "$LINENO" 14504then : 14505 xorg_cv_cc_flag_unused_command_line_argument=yes 14506else case e in #( 14507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14508esac 14509fi 14510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14511esac 14512fi 14513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14516 CFLAGS="$xorg_testset_save_CFLAGS" 14517fi 14518 14519found="no" 14520 14521 if test $found = "no" ; then 14522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14524 fi 14525 14526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14528 fi 14529 14530 CFLAGS="$CFLAGS -Wstrict-prototypes" 14531 14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14533printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14534 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14535 if eval test \${$cacheid+y} 14536then : 14537 printf %s "(cached) " >&6 14538else case e in #( 14539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540/* end confdefs.h. */ 14541int i; 14542int 14543main (void) 14544{ 14545 14546 ; 14547 return 0; 14548} 14549_ACEOF 14550if ac_fn_c_try_link "$LINENO" 14551then : 14552 eval $cacheid=yes 14553else case e in #( 14554 e) eval $cacheid=no ;; 14555esac 14556fi 14557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14558 conftest$ac_exeext conftest.$ac_ext ;; 14559esac 14560fi 14561 14562 14563 CFLAGS="$xorg_testset_save_CFLAGS" 14564 14565 eval supported=\$$cacheid 14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14567printf "%s\n" "$supported" >&6; } 14568 if test "$supported" = "yes" ; then 14569 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14570 found="yes" 14571 fi 14572 fi 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588xorg_testset_save_CFLAGS="$CFLAGS" 14589 14590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14595then : 14596 printf %s "(cached) " >&6 14597else case e in #( 14598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600int i; 14601_ACEOF 14602if ac_fn_c_try_compile "$LINENO" 14603then : 14604 xorg_cv_cc_flag_unknown_warning_option=yes 14605else case e in #( 14606 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14607esac 14608fi 14609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14610esac 14611fi 14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14615 CFLAGS="$xorg_testset_save_CFLAGS" 14616fi 14617 14618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14626then : 14627 printf %s "(cached) " >&6 14628else case e in #( 14629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630/* end confdefs.h. */ 14631int i; 14632_ACEOF 14633if ac_fn_c_try_compile "$LINENO" 14634then : 14635 xorg_cv_cc_flag_unused_command_line_argument=yes 14636else case e in #( 14637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14638esac 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14641esac 14642fi 14643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14646 CFLAGS="$xorg_testset_save_CFLAGS" 14647fi 14648 14649found="no" 14650 14651 if test $found = "no" ; then 14652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14654 fi 14655 14656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14658 fi 14659 14660 CFLAGS="$CFLAGS -Wmissing-prototypes" 14661 14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14663printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14664 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14665 if eval test \${$cacheid+y} 14666then : 14667 printf %s "(cached) " >&6 14668else case e in #( 14669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14670/* end confdefs.h. */ 14671int i; 14672int 14673main (void) 14674{ 14675 14676 ; 14677 return 0; 14678} 14679_ACEOF 14680if ac_fn_c_try_link "$LINENO" 14681then : 14682 eval $cacheid=yes 14683else case e in #( 14684 e) eval $cacheid=no ;; 14685esac 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14688 conftest$ac_exeext conftest.$ac_ext ;; 14689esac 14690fi 14691 14692 14693 CFLAGS="$xorg_testset_save_CFLAGS" 14694 14695 eval supported=\$$cacheid 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14697printf "%s\n" "$supported" >&6; } 14698 if test "$supported" = "yes" ; then 14699 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14700 found="yes" 14701 fi 14702 fi 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718xorg_testset_save_CFLAGS="$CFLAGS" 14719 14720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14725then : 14726 printf %s "(cached) " >&6 14727else case e in #( 14728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14729/* end confdefs.h. */ 14730int i; 14731_ACEOF 14732if ac_fn_c_try_compile "$LINENO" 14733then : 14734 xorg_cv_cc_flag_unknown_warning_option=yes 14735else case e in #( 14736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14737esac 14738fi 14739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14740esac 14741fi 14742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14745 CFLAGS="$xorg_testset_save_CFLAGS" 14746fi 14747 14748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14751 fi 14752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14755if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14756then : 14757 printf %s "(cached) " >&6 14758else case e in #( 14759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14760/* end confdefs.h. */ 14761int i; 14762_ACEOF 14763if ac_fn_c_try_compile "$LINENO" 14764then : 14765 xorg_cv_cc_flag_unused_command_line_argument=yes 14766else case e in #( 14767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14768esac 14769fi 14770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14771esac 14772fi 14773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14776 CFLAGS="$xorg_testset_save_CFLAGS" 14777fi 14778 14779found="no" 14780 14781 if test $found = "no" ; then 14782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14784 fi 14785 14786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14788 fi 14789 14790 CFLAGS="$CFLAGS -Wnested-externs" 14791 14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14793printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14794 cacheid=xorg_cv_cc_flag__Wnested_externs 14795 if eval test \${$cacheid+y} 14796then : 14797 printf %s "(cached) " >&6 14798else case e in #( 14799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801int i; 14802int 14803main (void) 14804{ 14805 14806 ; 14807 return 0; 14808} 14809_ACEOF 14810if ac_fn_c_try_link "$LINENO" 14811then : 14812 eval $cacheid=yes 14813else case e in #( 14814 e) eval $cacheid=no ;; 14815esac 14816fi 14817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14818 conftest$ac_exeext conftest.$ac_ext ;; 14819esac 14820fi 14821 14822 14823 CFLAGS="$xorg_testset_save_CFLAGS" 14824 14825 eval supported=\$$cacheid 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14827printf "%s\n" "$supported" >&6; } 14828 if test "$supported" = "yes" ; then 14829 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14830 found="yes" 14831 fi 14832 fi 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848xorg_testset_save_CFLAGS="$CFLAGS" 14849 14850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14854if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14855then : 14856 printf %s "(cached) " >&6 14857else case e in #( 14858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14859/* end confdefs.h. */ 14860int i; 14861_ACEOF 14862if ac_fn_c_try_compile "$LINENO" 14863then : 14864 xorg_cv_cc_flag_unknown_warning_option=yes 14865else case e in #( 14866 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14867esac 14868fi 14869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14870esac 14871fi 14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876fi 14877 14878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14881 fi 14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14885if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14886then : 14887 printf %s "(cached) " >&6 14888else case e in #( 14889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14890/* end confdefs.h. */ 14891int i; 14892_ACEOF 14893if ac_fn_c_try_compile "$LINENO" 14894then : 14895 xorg_cv_cc_flag_unused_command_line_argument=yes 14896else case e in #( 14897 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14898esac 14899fi 14900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14901esac 14902fi 14903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14906 CFLAGS="$xorg_testset_save_CFLAGS" 14907fi 14908 14909found="no" 14910 14911 if test $found = "no" ; then 14912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14914 fi 14915 14916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14918 fi 14919 14920 CFLAGS="$CFLAGS -Wbad-function-cast" 14921 14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14923printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14924 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14925 if eval test \${$cacheid+y} 14926then : 14927 printf %s "(cached) " >&6 14928else case e in #( 14929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930/* end confdefs.h. */ 14931int i; 14932int 14933main (void) 14934{ 14935 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_link "$LINENO" 14941then : 14942 eval $cacheid=yes 14943else case e in #( 14944 e) eval $cacheid=no ;; 14945esac 14946fi 14947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14948 conftest$ac_exeext conftest.$ac_ext ;; 14949esac 14950fi 14951 14952 14953 CFLAGS="$xorg_testset_save_CFLAGS" 14954 14955 eval supported=\$$cacheid 14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14957printf "%s\n" "$supported" >&6; } 14958 if test "$supported" = "yes" ; then 14959 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14960 found="yes" 14961 fi 14962 fi 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978xorg_testset_save_CFLAGS="$CFLAGS" 14979 14980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14985then : 14986 printf %s "(cached) " >&6 14987else case e in #( 14988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14989/* end confdefs.h. */ 14990int i; 14991_ACEOF 14992if ac_fn_c_try_compile "$LINENO" 14993then : 14994 xorg_cv_cc_flag_unknown_warning_option=yes 14995else case e in #( 14996 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14997esac 14998fi 14999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15000esac 15001fi 15002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15005 CFLAGS="$xorg_testset_save_CFLAGS" 15006fi 15007 15008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15011 fi 15012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15015if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15016then : 15017 printf %s "(cached) " >&6 15018else case e in #( 15019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15020/* end confdefs.h. */ 15021int i; 15022_ACEOF 15023if ac_fn_c_try_compile "$LINENO" 15024then : 15025 xorg_cv_cc_flag_unused_command_line_argument=yes 15026else case e in #( 15027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15028esac 15029fi 15030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15031esac 15032fi 15033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15036 CFLAGS="$xorg_testset_save_CFLAGS" 15037fi 15038 15039found="no" 15040 15041 if test $found = "no" ; then 15042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15044 fi 15045 15046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15048 fi 15049 15050 CFLAGS="$CFLAGS -Wold-style-definition" 15051 15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15053printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15054 cacheid=xorg_cv_cc_flag__Wold_style_definition 15055 if eval test \${$cacheid+y} 15056then : 15057 printf %s "(cached) " >&6 15058else case e in #( 15059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15060/* end confdefs.h. */ 15061int i; 15062int 15063main (void) 15064{ 15065 15066 ; 15067 return 0; 15068} 15069_ACEOF 15070if ac_fn_c_try_link "$LINENO" 15071then : 15072 eval $cacheid=yes 15073else case e in #( 15074 e) eval $cacheid=no ;; 15075esac 15076fi 15077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15078 conftest$ac_exeext conftest.$ac_ext ;; 15079esac 15080fi 15081 15082 15083 CFLAGS="$xorg_testset_save_CFLAGS" 15084 15085 eval supported=\$$cacheid 15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15087printf "%s\n" "$supported" >&6; } 15088 if test "$supported" = "yes" ; then 15089 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15090 found="yes" 15091 fi 15092 fi 15093 15094 if test $found = "no" ; then 15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 fi 15098 15099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15101 fi 15102 15103 CFLAGS="$CFLAGS -fd" 15104 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15106printf %s "checking if $CC supports -fd... " >&6; } 15107 cacheid=xorg_cv_cc_flag__fd 15108 if eval test \${$cacheid+y} 15109then : 15110 printf %s "(cached) " >&6 15111else case e in #( 15112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114int i; 15115int 15116main (void) 15117{ 15118 15119 ; 15120 return 0; 15121} 15122_ACEOF 15123if ac_fn_c_try_link "$LINENO" 15124then : 15125 eval $cacheid=yes 15126else case e in #( 15127 e) eval $cacheid=no ;; 15128esac 15129fi 15130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15131 conftest$ac_exeext conftest.$ac_ext ;; 15132esac 15133fi 15134 15135 15136 CFLAGS="$xorg_testset_save_CFLAGS" 15137 15138 eval supported=\$$cacheid 15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15140printf "%s\n" "$supported" >&6; } 15141 if test "$supported" = "yes" ; then 15142 BASE_CFLAGS="$BASE_CFLAGS -fd" 15143 found="yes" 15144 fi 15145 fi 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161xorg_testset_save_CFLAGS="$CFLAGS" 15162 15163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15167if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15168then : 15169 printf %s "(cached) " >&6 15170else case e in #( 15171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15172/* end confdefs.h. */ 15173int i; 15174_ACEOF 15175if ac_fn_c_try_compile "$LINENO" 15176then : 15177 xorg_cv_cc_flag_unknown_warning_option=yes 15178else case e in #( 15179 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15180esac 15181fi 15182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15183esac 15184fi 15185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15188 CFLAGS="$xorg_testset_save_CFLAGS" 15189fi 15190 15191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15194 fi 15195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15198if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15199then : 15200 printf %s "(cached) " >&6 15201else case e in #( 15202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203/* end confdefs.h. */ 15204int i; 15205_ACEOF 15206if ac_fn_c_try_compile "$LINENO" 15207then : 15208 xorg_cv_cc_flag_unused_command_line_argument=yes 15209else case e in #( 15210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15211esac 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15214esac 15215fi 15216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15219 CFLAGS="$xorg_testset_save_CFLAGS" 15220fi 15221 15222found="no" 15223 15224 if test $found = "no" ; then 15225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15227 fi 15228 15229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15231 fi 15232 15233 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15234 15235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15236printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15237 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15238 if eval test \${$cacheid+y} 15239then : 15240 printf %s "(cached) " >&6 15241else case e in #( 15242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15243/* end confdefs.h. */ 15244int i; 15245int 15246main (void) 15247{ 15248 15249 ; 15250 return 0; 15251} 15252_ACEOF 15253if ac_fn_c_try_link "$LINENO" 15254then : 15255 eval $cacheid=yes 15256else case e in #( 15257 e) eval $cacheid=no ;; 15258esac 15259fi 15260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15261 conftest$ac_exeext conftest.$ac_ext ;; 15262esac 15263fi 15264 15265 15266 CFLAGS="$xorg_testset_save_CFLAGS" 15267 15268 eval supported=\$$cacheid 15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15270printf "%s\n" "$supported" >&6; } 15271 if test "$supported" = "yes" ; then 15272 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15273 found="yes" 15274 fi 15275 fi 15276 15277 15278 15279 15280 15281# This chunk adds additional warnings that could catch undesired effects. 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295xorg_testset_save_CFLAGS="$CFLAGS" 15296 15297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15302then : 15303 printf %s "(cached) " >&6 15304else case e in #( 15305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15306/* end confdefs.h. */ 15307int i; 15308_ACEOF 15309if ac_fn_c_try_compile "$LINENO" 15310then : 15311 xorg_cv_cc_flag_unknown_warning_option=yes 15312else case e in #( 15313 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15314esac 15315fi 15316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15317esac 15318fi 15319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15322 CFLAGS="$xorg_testset_save_CFLAGS" 15323fi 15324 15325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15328 fi 15329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15333then : 15334 printf %s "(cached) " >&6 15335else case e in #( 15336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337/* end confdefs.h. */ 15338int i; 15339_ACEOF 15340if ac_fn_c_try_compile "$LINENO" 15341then : 15342 xorg_cv_cc_flag_unused_command_line_argument=yes 15343else case e in #( 15344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15345esac 15346fi 15347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15348esac 15349fi 15350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354fi 15355 15356found="no" 15357 15358 if test $found = "no" ; then 15359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 fi 15362 15363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 fi 15366 15367 CFLAGS="$CFLAGS -Wunused" 15368 15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15370printf %s "checking if $CC supports -Wunused... " >&6; } 15371 cacheid=xorg_cv_cc_flag__Wunused 15372 if eval test \${$cacheid+y} 15373then : 15374 printf %s "(cached) " >&6 15375else case e in #( 15376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15377/* end confdefs.h. */ 15378int i; 15379int 15380main (void) 15381{ 15382 15383 ; 15384 return 0; 15385} 15386_ACEOF 15387if ac_fn_c_try_link "$LINENO" 15388then : 15389 eval $cacheid=yes 15390else case e in #( 15391 e) eval $cacheid=no ;; 15392esac 15393fi 15394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15395 conftest$ac_exeext conftest.$ac_ext ;; 15396esac 15397fi 15398 15399 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401 15402 eval supported=\$$cacheid 15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15404printf "%s\n" "$supported" >&6; } 15405 if test "$supported" = "yes" ; then 15406 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15407 found="yes" 15408 fi 15409 fi 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425xorg_testset_save_CFLAGS="$CFLAGS" 15426 15427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15431if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15432then : 15433 printf %s "(cached) " >&6 15434else case e in #( 15435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436/* end confdefs.h. */ 15437int i; 15438_ACEOF 15439if ac_fn_c_try_compile "$LINENO" 15440then : 15441 xorg_cv_cc_flag_unknown_warning_option=yes 15442else case e in #( 15443 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15444esac 15445fi 15446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15447esac 15448fi 15449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15452 CFLAGS="$xorg_testset_save_CFLAGS" 15453fi 15454 15455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15458 fi 15459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15462if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15463then : 15464 printf %s "(cached) " >&6 15465else case e in #( 15466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15467/* end confdefs.h. */ 15468int i; 15469_ACEOF 15470if ac_fn_c_try_compile "$LINENO" 15471then : 15472 xorg_cv_cc_flag_unused_command_line_argument=yes 15473else case e in #( 15474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15475esac 15476fi 15477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15478esac 15479fi 15480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15483 CFLAGS="$xorg_testset_save_CFLAGS" 15484fi 15485 15486found="no" 15487 15488 if test $found = "no" ; then 15489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15491 fi 15492 15493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15495 fi 15496 15497 CFLAGS="$CFLAGS -Wuninitialized" 15498 15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15500printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15501 cacheid=xorg_cv_cc_flag__Wuninitialized 15502 if eval test \${$cacheid+y} 15503then : 15504 printf %s "(cached) " >&6 15505else case e in #( 15506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508int i; 15509int 15510main (void) 15511{ 15512 15513 ; 15514 return 0; 15515} 15516_ACEOF 15517if ac_fn_c_try_link "$LINENO" 15518then : 15519 eval $cacheid=yes 15520else case e in #( 15521 e) eval $cacheid=no ;; 15522esac 15523fi 15524rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15525 conftest$ac_exeext conftest.$ac_ext ;; 15526esac 15527fi 15528 15529 15530 CFLAGS="$xorg_testset_save_CFLAGS" 15531 15532 eval supported=\$$cacheid 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15534printf "%s\n" "$supported" >&6; } 15535 if test "$supported" = "yes" ; then 15536 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15537 found="yes" 15538 fi 15539 fi 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555xorg_testset_save_CFLAGS="$CFLAGS" 15556 15557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15560printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15561if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15562then : 15563 printf %s "(cached) " >&6 15564else case e in #( 15565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15566/* end confdefs.h. */ 15567int i; 15568_ACEOF 15569if ac_fn_c_try_compile "$LINENO" 15570then : 15571 xorg_cv_cc_flag_unknown_warning_option=yes 15572else case e in #( 15573 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15574esac 15575fi 15576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15577esac 15578fi 15579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15580printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15582 CFLAGS="$xorg_testset_save_CFLAGS" 15583fi 15584 15585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15588 fi 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15591printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15592if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15593then : 15594 printf %s "(cached) " >&6 15595else case e in #( 15596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597/* end confdefs.h. */ 15598int i; 15599_ACEOF 15600if ac_fn_c_try_compile "$LINENO" 15601then : 15602 xorg_cv_cc_flag_unused_command_line_argument=yes 15603else case e in #( 15604 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15605esac 15606fi 15607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15608esac 15609fi 15610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15613 CFLAGS="$xorg_testset_save_CFLAGS" 15614fi 15615 15616found="no" 15617 15618 if test $found = "no" ; then 15619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15621 fi 15622 15623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15625 fi 15626 15627 CFLAGS="$CFLAGS -Wshadow" 15628 15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15630printf %s "checking if $CC supports -Wshadow... " >&6; } 15631 cacheid=xorg_cv_cc_flag__Wshadow 15632 if eval test \${$cacheid+y} 15633then : 15634 printf %s "(cached) " >&6 15635else case e in #( 15636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637/* end confdefs.h. */ 15638int i; 15639int 15640main (void) 15641{ 15642 15643 ; 15644 return 0; 15645} 15646_ACEOF 15647if ac_fn_c_try_link "$LINENO" 15648then : 15649 eval $cacheid=yes 15650else case e in #( 15651 e) eval $cacheid=no ;; 15652esac 15653fi 15654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15655 conftest$ac_exeext conftest.$ac_ext ;; 15656esac 15657fi 15658 15659 15660 CFLAGS="$xorg_testset_save_CFLAGS" 15661 15662 eval supported=\$$cacheid 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15664printf "%s\n" "$supported" >&6; } 15665 if test "$supported" = "yes" ; then 15666 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15667 found="yes" 15668 fi 15669 fi 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685xorg_testset_save_CFLAGS="$CFLAGS" 15686 15687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15691if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15692then : 15693 printf %s "(cached) " >&6 15694else case e in #( 15695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15696/* end confdefs.h. */ 15697int i; 15698_ACEOF 15699if ac_fn_c_try_compile "$LINENO" 15700then : 15701 xorg_cv_cc_flag_unknown_warning_option=yes 15702else case e in #( 15703 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15704esac 15705fi 15706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15707esac 15708fi 15709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15712 CFLAGS="$xorg_testset_save_CFLAGS" 15713fi 15714 15715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15718 fi 15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15722if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15723then : 15724 printf %s "(cached) " >&6 15725else case e in #( 15726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728int i; 15729_ACEOF 15730if ac_fn_c_try_compile "$LINENO" 15731then : 15732 xorg_cv_cc_flag_unused_command_line_argument=yes 15733else case e in #( 15734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15735esac 15736fi 15737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15738esac 15739fi 15740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15743 CFLAGS="$xorg_testset_save_CFLAGS" 15744fi 15745 15746found="no" 15747 15748 if test $found = "no" ; then 15749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 fi 15752 15753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15755 fi 15756 15757 CFLAGS="$CFLAGS -Wmissing-noreturn" 15758 15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15760printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15761 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15762 if eval test \${$cacheid+y} 15763then : 15764 printf %s "(cached) " >&6 15765else case e in #( 15766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15767/* end confdefs.h. */ 15768int i; 15769int 15770main (void) 15771{ 15772 15773 ; 15774 return 0; 15775} 15776_ACEOF 15777if ac_fn_c_try_link "$LINENO" 15778then : 15779 eval $cacheid=yes 15780else case e in #( 15781 e) eval $cacheid=no ;; 15782esac 15783fi 15784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15785 conftest$ac_exeext conftest.$ac_ext ;; 15786esac 15787fi 15788 15789 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791 15792 eval supported=\$$cacheid 15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15794printf "%s\n" "$supported" >&6; } 15795 if test "$supported" = "yes" ; then 15796 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15797 found="yes" 15798 fi 15799 fi 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815xorg_testset_save_CFLAGS="$CFLAGS" 15816 15817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15821if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15822then : 15823 printf %s "(cached) " >&6 15824else case e in #( 15825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826/* end confdefs.h. */ 15827int i; 15828_ACEOF 15829if ac_fn_c_try_compile "$LINENO" 15830then : 15831 xorg_cv_cc_flag_unknown_warning_option=yes 15832else case e in #( 15833 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15834esac 15835fi 15836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15837esac 15838fi 15839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15842 CFLAGS="$xorg_testset_save_CFLAGS" 15843fi 15844 15845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15848 fi 15849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15853then : 15854 printf %s "(cached) " >&6 15855else case e in #( 15856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15857/* end confdefs.h. */ 15858int i; 15859_ACEOF 15860if ac_fn_c_try_compile "$LINENO" 15861then : 15862 xorg_cv_cc_flag_unused_command_line_argument=yes 15863else case e in #( 15864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15865esac 15866fi 15867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15868esac 15869fi 15870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15873 CFLAGS="$xorg_testset_save_CFLAGS" 15874fi 15875 15876found="no" 15877 15878 if test $found = "no" ; then 15879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15881 fi 15882 15883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15885 fi 15886 15887 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15888 15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15890printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15891 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15892 if eval test \${$cacheid+y} 15893then : 15894 printf %s "(cached) " >&6 15895else case e in #( 15896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15897/* end confdefs.h. */ 15898int i; 15899int 15900main (void) 15901{ 15902 15903 ; 15904 return 0; 15905} 15906_ACEOF 15907if ac_fn_c_try_link "$LINENO" 15908then : 15909 eval $cacheid=yes 15910else case e in #( 15911 e) eval $cacheid=no ;; 15912esac 15913fi 15914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15915 conftest$ac_exeext conftest.$ac_ext ;; 15916esac 15917fi 15918 15919 15920 CFLAGS="$xorg_testset_save_CFLAGS" 15921 15922 eval supported=\$$cacheid 15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15924printf "%s\n" "$supported" >&6; } 15925 if test "$supported" = "yes" ; then 15926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15927 found="yes" 15928 fi 15929 fi 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945xorg_testset_save_CFLAGS="$CFLAGS" 15946 15947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15952then : 15953 printf %s "(cached) " >&6 15954else case e in #( 15955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957int i; 15958_ACEOF 15959if ac_fn_c_try_compile "$LINENO" 15960then : 15961 xorg_cv_cc_flag_unknown_warning_option=yes 15962else case e in #( 15963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15964esac 15965fi 15966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15967esac 15968fi 15969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15972 CFLAGS="$xorg_testset_save_CFLAGS" 15973fi 15974 15975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15978 fi 15979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15983then : 15984 printf %s "(cached) " >&6 15985else case e in #( 15986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15987/* end confdefs.h. */ 15988int i; 15989_ACEOF 15990if ac_fn_c_try_compile "$LINENO" 15991then : 15992 xorg_cv_cc_flag_unused_command_line_argument=yes 15993else case e in #( 15994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15995esac 15996fi 15997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15998esac 15999fi 16000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16003 CFLAGS="$xorg_testset_save_CFLAGS" 16004fi 16005 16006found="no" 16007 16008 if test $found = "no" ; then 16009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16011 fi 16012 16013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16015 fi 16016 16017 CFLAGS="$CFLAGS -Wredundant-decls" 16018 16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16020printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16021 cacheid=xorg_cv_cc_flag__Wredundant_decls 16022 if eval test \${$cacheid+y} 16023then : 16024 printf %s "(cached) " >&6 16025else case e in #( 16026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16027/* end confdefs.h. */ 16028int i; 16029int 16030main (void) 16031{ 16032 16033 ; 16034 return 0; 16035} 16036_ACEOF 16037if ac_fn_c_try_link "$LINENO" 16038then : 16039 eval $cacheid=yes 16040else case e in #( 16041 e) eval $cacheid=no ;; 16042esac 16043fi 16044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16045 conftest$ac_exeext conftest.$ac_ext ;; 16046esac 16047fi 16048 16049 16050 CFLAGS="$xorg_testset_save_CFLAGS" 16051 16052 eval supported=\$$cacheid 16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16054printf "%s\n" "$supported" >&6; } 16055 if test "$supported" = "yes" ; then 16056 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16057 found="yes" 16058 fi 16059 fi 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075xorg_testset_save_CFLAGS="$CFLAGS" 16076 16077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16082then : 16083 printf %s "(cached) " >&6 16084else case e in #( 16085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087int i; 16088_ACEOF 16089if ac_fn_c_try_compile "$LINENO" 16090then : 16091 xorg_cv_cc_flag_unknown_warning_option=yes 16092else case e in #( 16093 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16094esac 16095fi 16096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16097esac 16098fi 16099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16102 CFLAGS="$xorg_testset_save_CFLAGS" 16103fi 16104 16105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16108 fi 16109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16112if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16113then : 16114 printf %s "(cached) " >&6 16115else case e in #( 16116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16117/* end confdefs.h. */ 16118int i; 16119_ACEOF 16120if ac_fn_c_try_compile "$LINENO" 16121then : 16122 xorg_cv_cc_flag_unused_command_line_argument=yes 16123else case e in #( 16124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16125esac 16126fi 16127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16128esac 16129fi 16130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16133 CFLAGS="$xorg_testset_save_CFLAGS" 16134fi 16135 16136found="no" 16137 16138 if test $found = "no" ; then 16139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16141 fi 16142 16143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16145 fi 16146 16147 CFLAGS="$CFLAGS -Wlogical-op" 16148 16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16150printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16151 cacheid=xorg_cv_cc_flag__Wlogical_op 16152 if eval test \${$cacheid+y} 16153then : 16154 printf %s "(cached) " >&6 16155else case e in #( 16156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16157/* end confdefs.h. */ 16158int i; 16159int 16160main (void) 16161{ 16162 16163 ; 16164 return 0; 16165} 16166_ACEOF 16167if ac_fn_c_try_link "$LINENO" 16168then : 16169 eval $cacheid=yes 16170else case e in #( 16171 e) eval $cacheid=no ;; 16172esac 16173fi 16174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16175 conftest$ac_exeext conftest.$ac_ext ;; 16176esac 16177fi 16178 16179 16180 CFLAGS="$xorg_testset_save_CFLAGS" 16181 16182 eval supported=\$$cacheid 16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16184printf "%s\n" "$supported" >&6; } 16185 if test "$supported" = "yes" ; then 16186 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16187 found="yes" 16188 fi 16189 fi 16190 16191 16192 16193# These are currently disabled because they are noisy. They will be enabled 16194# in the future once the codebase is sufficiently modernized to silence 16195# them. For now, I don't want them to drown out the other warnings. 16196# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16197# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16198# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16199 16200# Turn some warnings into errors, so we don't accidentally get successful builds 16201# when there are problems that should be fixed. 16202 16203if test "x$SELECTIVE_WERROR" = "xyes" ; then 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217xorg_testset_save_CFLAGS="$CFLAGS" 16218 16219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16223if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16224then : 16225 printf %s "(cached) " >&6 16226else case e in #( 16227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16228/* end confdefs.h. */ 16229int i; 16230_ACEOF 16231if ac_fn_c_try_compile "$LINENO" 16232then : 16233 xorg_cv_cc_flag_unknown_warning_option=yes 16234else case e in #( 16235 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16236esac 16237fi 16238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16239esac 16240fi 16241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16244 CFLAGS="$xorg_testset_save_CFLAGS" 16245fi 16246 16247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16250 fi 16251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16254if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16255then : 16256 printf %s "(cached) " >&6 16257else case e in #( 16258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16259/* end confdefs.h. */ 16260int i; 16261_ACEOF 16262if ac_fn_c_try_compile "$LINENO" 16263then : 16264 xorg_cv_cc_flag_unused_command_line_argument=yes 16265else case e in #( 16266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16267esac 16268fi 16269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16270esac 16271fi 16272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16275 CFLAGS="$xorg_testset_save_CFLAGS" 16276fi 16277 16278found="no" 16279 16280 if test $found = "no" ; then 16281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16283 fi 16284 16285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16287 fi 16288 16289 CFLAGS="$CFLAGS -Werror=implicit" 16290 16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16292printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16293 cacheid=xorg_cv_cc_flag__Werror_implicit 16294 if eval test \${$cacheid+y} 16295then : 16296 printf %s "(cached) " >&6 16297else case e in #( 16298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300int i; 16301int 16302main (void) 16303{ 16304 16305 ; 16306 return 0; 16307} 16308_ACEOF 16309if ac_fn_c_try_link "$LINENO" 16310then : 16311 eval $cacheid=yes 16312else case e in #( 16313 e) eval $cacheid=no ;; 16314esac 16315fi 16316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16317 conftest$ac_exeext conftest.$ac_ext ;; 16318esac 16319fi 16320 16321 16322 CFLAGS="$xorg_testset_save_CFLAGS" 16323 16324 eval supported=\$$cacheid 16325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16326printf "%s\n" "$supported" >&6; } 16327 if test "$supported" = "yes" ; then 16328 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16329 found="yes" 16330 fi 16331 fi 16332 16333 if test $found = "no" ; then 16334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16336 fi 16337 16338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16340 fi 16341 16342 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16343 16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 16345printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16346 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16347 if eval test \${$cacheid+y} 16348then : 16349 printf %s "(cached) " >&6 16350else case e in #( 16351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353int i; 16354int 16355main (void) 16356{ 16357 16358 ; 16359 return 0; 16360} 16361_ACEOF 16362if ac_fn_c_try_link "$LINENO" 16363then : 16364 eval $cacheid=yes 16365else case e in #( 16366 e) eval $cacheid=no ;; 16367esac 16368fi 16369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16370 conftest$ac_exeext conftest.$ac_ext ;; 16371esac 16372fi 16373 16374 16375 CFLAGS="$xorg_testset_save_CFLAGS" 16376 16377 eval supported=\$$cacheid 16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16379printf "%s\n" "$supported" >&6; } 16380 if test "$supported" = "yes" ; then 16381 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16382 found="yes" 16383 fi 16384 fi 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400xorg_testset_save_CFLAGS="$CFLAGS" 16401 16402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16406if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16407then : 16408 printf %s "(cached) " >&6 16409else case e in #( 16410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411/* end confdefs.h. */ 16412int i; 16413_ACEOF 16414if ac_fn_c_try_compile "$LINENO" 16415then : 16416 xorg_cv_cc_flag_unknown_warning_option=yes 16417else case e in #( 16418 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16419esac 16420fi 16421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16422esac 16423fi 16424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16427 CFLAGS="$xorg_testset_save_CFLAGS" 16428fi 16429 16430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16438then : 16439 printf %s "(cached) " >&6 16440else case e in #( 16441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16442/* end confdefs.h. */ 16443int i; 16444_ACEOF 16445if ac_fn_c_try_compile "$LINENO" 16446then : 16447 xorg_cv_cc_flag_unused_command_line_argument=yes 16448else case e in #( 16449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16450esac 16451fi 16452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16453esac 16454fi 16455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16458 CFLAGS="$xorg_testset_save_CFLAGS" 16459fi 16460 16461found="no" 16462 16463 if test $found = "no" ; then 16464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16466 fi 16467 16468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16470 fi 16471 16472 CFLAGS="$CFLAGS -Werror=nonnull" 16473 16474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16475printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16476 cacheid=xorg_cv_cc_flag__Werror_nonnull 16477 if eval test \${$cacheid+y} 16478then : 16479 printf %s "(cached) " >&6 16480else case e in #( 16481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16482/* end confdefs.h. */ 16483int i; 16484int 16485main (void) 16486{ 16487 16488 ; 16489 return 0; 16490} 16491_ACEOF 16492if ac_fn_c_try_link "$LINENO" 16493then : 16494 eval $cacheid=yes 16495else case e in #( 16496 e) eval $cacheid=no ;; 16497esac 16498fi 16499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16500 conftest$ac_exeext conftest.$ac_ext ;; 16501esac 16502fi 16503 16504 16505 CFLAGS="$xorg_testset_save_CFLAGS" 16506 16507 eval supported=\$$cacheid 16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16509printf "%s\n" "$supported" >&6; } 16510 if test "$supported" = "yes" ; then 16511 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16512 found="yes" 16513 fi 16514 fi 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530xorg_testset_save_CFLAGS="$CFLAGS" 16531 16532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16536if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16537then : 16538 printf %s "(cached) " >&6 16539else case e in #( 16540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16541/* end confdefs.h. */ 16542int i; 16543_ACEOF 16544if ac_fn_c_try_compile "$LINENO" 16545then : 16546 xorg_cv_cc_flag_unknown_warning_option=yes 16547else case e in #( 16548 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16549esac 16550fi 16551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16552esac 16553fi 16554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16557 CFLAGS="$xorg_testset_save_CFLAGS" 16558fi 16559 16560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16563 fi 16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16568then : 16569 printf %s "(cached) " >&6 16570else case e in #( 16571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572/* end confdefs.h. */ 16573int i; 16574_ACEOF 16575if ac_fn_c_try_compile "$LINENO" 16576then : 16577 xorg_cv_cc_flag_unused_command_line_argument=yes 16578else case e in #( 16579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16580esac 16581fi 16582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16583esac 16584fi 16585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16588 CFLAGS="$xorg_testset_save_CFLAGS" 16589fi 16590 16591found="no" 16592 16593 if test $found = "no" ; then 16594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16596 fi 16597 16598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16600 fi 16601 16602 CFLAGS="$CFLAGS -Werror=init-self" 16603 16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16605printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16606 cacheid=xorg_cv_cc_flag__Werror_init_self 16607 if eval test \${$cacheid+y} 16608then : 16609 printf %s "(cached) " >&6 16610else case e in #( 16611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16612/* end confdefs.h. */ 16613int i; 16614int 16615main (void) 16616{ 16617 16618 ; 16619 return 0; 16620} 16621_ACEOF 16622if ac_fn_c_try_link "$LINENO" 16623then : 16624 eval $cacheid=yes 16625else case e in #( 16626 e) eval $cacheid=no ;; 16627esac 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16630 conftest$ac_exeext conftest.$ac_ext ;; 16631esac 16632fi 16633 16634 16635 CFLAGS="$xorg_testset_save_CFLAGS" 16636 16637 eval supported=\$$cacheid 16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16639printf "%s\n" "$supported" >&6; } 16640 if test "$supported" = "yes" ; then 16641 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16642 found="yes" 16643 fi 16644 fi 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660xorg_testset_save_CFLAGS="$CFLAGS" 16661 16662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16666if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16667then : 16668 printf %s "(cached) " >&6 16669else case e in #( 16670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16671/* end confdefs.h. */ 16672int i; 16673_ACEOF 16674if ac_fn_c_try_compile "$LINENO" 16675then : 16676 xorg_cv_cc_flag_unknown_warning_option=yes 16677else case e in #( 16678 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16679esac 16680fi 16681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16682esac 16683fi 16684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16687 CFLAGS="$xorg_testset_save_CFLAGS" 16688fi 16689 16690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16693 fi 16694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16697if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16698then : 16699 printf %s "(cached) " >&6 16700else case e in #( 16701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16702/* end confdefs.h. */ 16703int i; 16704_ACEOF 16705if ac_fn_c_try_compile "$LINENO" 16706then : 16707 xorg_cv_cc_flag_unused_command_line_argument=yes 16708else case e in #( 16709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16710esac 16711fi 16712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16713esac 16714fi 16715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16718 CFLAGS="$xorg_testset_save_CFLAGS" 16719fi 16720 16721found="no" 16722 16723 if test $found = "no" ; then 16724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16726 fi 16727 16728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16730 fi 16731 16732 CFLAGS="$CFLAGS -Werror=main" 16733 16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16735printf %s "checking if $CC supports -Werror=main... " >&6; } 16736 cacheid=xorg_cv_cc_flag__Werror_main 16737 if eval test \${$cacheid+y} 16738then : 16739 printf %s "(cached) " >&6 16740else case e in #( 16741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16742/* end confdefs.h. */ 16743int i; 16744int 16745main (void) 16746{ 16747 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752if ac_fn_c_try_link "$LINENO" 16753then : 16754 eval $cacheid=yes 16755else case e in #( 16756 e) eval $cacheid=no ;; 16757esac 16758fi 16759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16760 conftest$ac_exeext conftest.$ac_ext ;; 16761esac 16762fi 16763 16764 16765 CFLAGS="$xorg_testset_save_CFLAGS" 16766 16767 eval supported=\$$cacheid 16768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16769printf "%s\n" "$supported" >&6; } 16770 if test "$supported" = "yes" ; then 16771 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16772 found="yes" 16773 fi 16774 fi 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790xorg_testset_save_CFLAGS="$CFLAGS" 16791 16792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16796if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16797then : 16798 printf %s "(cached) " >&6 16799else case e in #( 16800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802int i; 16803_ACEOF 16804if ac_fn_c_try_compile "$LINENO" 16805then : 16806 xorg_cv_cc_flag_unknown_warning_option=yes 16807else case e in #( 16808 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16809esac 16810fi 16811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16812esac 16813fi 16814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16817 CFLAGS="$xorg_testset_save_CFLAGS" 16818fi 16819 16820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16823 fi 16824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16828then : 16829 printf %s "(cached) " >&6 16830else case e in #( 16831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832/* end confdefs.h. */ 16833int i; 16834_ACEOF 16835if ac_fn_c_try_compile "$LINENO" 16836then : 16837 xorg_cv_cc_flag_unused_command_line_argument=yes 16838else case e in #( 16839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16840esac 16841fi 16842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16843esac 16844fi 16845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16848 CFLAGS="$xorg_testset_save_CFLAGS" 16849fi 16850 16851found="no" 16852 16853 if test $found = "no" ; then 16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16856 fi 16857 16858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16860 fi 16861 16862 CFLAGS="$CFLAGS -Werror=missing-braces" 16863 16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16865printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16866 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16867 if eval test \${$cacheid+y} 16868then : 16869 printf %s "(cached) " >&6 16870else case e in #( 16871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16872/* end confdefs.h. */ 16873int i; 16874int 16875main (void) 16876{ 16877 16878 ; 16879 return 0; 16880} 16881_ACEOF 16882if ac_fn_c_try_link "$LINENO" 16883then : 16884 eval $cacheid=yes 16885else case e in #( 16886 e) eval $cacheid=no ;; 16887esac 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16890 conftest$ac_exeext conftest.$ac_ext ;; 16891esac 16892fi 16893 16894 16895 CFLAGS="$xorg_testset_save_CFLAGS" 16896 16897 eval supported=\$$cacheid 16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16899printf "%s\n" "$supported" >&6; } 16900 if test "$supported" = "yes" ; then 16901 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16902 found="yes" 16903 fi 16904 fi 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920xorg_testset_save_CFLAGS="$CFLAGS" 16921 16922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16926if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16927then : 16928 printf %s "(cached) " >&6 16929else case e in #( 16930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16931/* end confdefs.h. */ 16932int i; 16933_ACEOF 16934if ac_fn_c_try_compile "$LINENO" 16935then : 16936 xorg_cv_cc_flag_unknown_warning_option=yes 16937else case e in #( 16938 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16939esac 16940fi 16941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16942esac 16943fi 16944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16947 CFLAGS="$xorg_testset_save_CFLAGS" 16948fi 16949 16950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16953 fi 16954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16957if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16958then : 16959 printf %s "(cached) " >&6 16960else case e in #( 16961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16962/* end confdefs.h. */ 16963int i; 16964_ACEOF 16965if ac_fn_c_try_compile "$LINENO" 16966then : 16967 xorg_cv_cc_flag_unused_command_line_argument=yes 16968else case e in #( 16969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16970esac 16971fi 16972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16973esac 16974fi 16975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16978 CFLAGS="$xorg_testset_save_CFLAGS" 16979fi 16980 16981found="no" 16982 16983 if test $found = "no" ; then 16984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16986 fi 16987 16988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16990 fi 16991 16992 CFLAGS="$CFLAGS -Werror=sequence-point" 16993 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16995printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16996 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16997 if eval test \${$cacheid+y} 16998then : 16999 printf %s "(cached) " >&6 17000else case e in #( 17001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004int 17005main (void) 17006{ 17007 17008 ; 17009 return 0; 17010} 17011_ACEOF 17012if ac_fn_c_try_link "$LINENO" 17013then : 17014 eval $cacheid=yes 17015else case e in #( 17016 e) eval $cacheid=no ;; 17017esac 17018fi 17019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17020 conftest$ac_exeext conftest.$ac_ext ;; 17021esac 17022fi 17023 17024 17025 CFLAGS="$xorg_testset_save_CFLAGS" 17026 17027 eval supported=\$$cacheid 17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17029printf "%s\n" "$supported" >&6; } 17030 if test "$supported" = "yes" ; then 17031 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17032 found="yes" 17033 fi 17034 fi 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050xorg_testset_save_CFLAGS="$CFLAGS" 17051 17052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17056if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17057then : 17058 printf %s "(cached) " >&6 17059else case e in #( 17060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17061/* end confdefs.h. */ 17062int i; 17063_ACEOF 17064if ac_fn_c_try_compile "$LINENO" 17065then : 17066 xorg_cv_cc_flag_unknown_warning_option=yes 17067else case e in #( 17068 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17069esac 17070fi 17071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17072esac 17073fi 17074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17077 CFLAGS="$xorg_testset_save_CFLAGS" 17078fi 17079 17080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17083 fi 17084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17088then : 17089 printf %s "(cached) " >&6 17090else case e in #( 17091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093int i; 17094_ACEOF 17095if ac_fn_c_try_compile "$LINENO" 17096then : 17097 xorg_cv_cc_flag_unused_command_line_argument=yes 17098else case e in #( 17099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17100esac 17101fi 17102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17103esac 17104fi 17105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17108 CFLAGS="$xorg_testset_save_CFLAGS" 17109fi 17110 17111found="no" 17112 17113 if test $found = "no" ; then 17114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17116 fi 17117 17118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17120 fi 17121 17122 CFLAGS="$CFLAGS -Werror=return-type" 17123 17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17125printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17126 cacheid=xorg_cv_cc_flag__Werror_return_type 17127 if eval test \${$cacheid+y} 17128then : 17129 printf %s "(cached) " >&6 17130else case e in #( 17131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17132/* end confdefs.h. */ 17133int i; 17134int 17135main (void) 17136{ 17137 17138 ; 17139 return 0; 17140} 17141_ACEOF 17142if ac_fn_c_try_link "$LINENO" 17143then : 17144 eval $cacheid=yes 17145else case e in #( 17146 e) eval $cacheid=no ;; 17147esac 17148fi 17149rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17150 conftest$ac_exeext conftest.$ac_ext ;; 17151esac 17152fi 17153 17154 17155 CFLAGS="$xorg_testset_save_CFLAGS" 17156 17157 eval supported=\$$cacheid 17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17159printf "%s\n" "$supported" >&6; } 17160 if test "$supported" = "yes" ; then 17161 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17162 found="yes" 17163 fi 17164 fi 17165 17166 if test $found = "no" ; then 17167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17169 fi 17170 17171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17173 fi 17174 17175 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17176 17177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17178printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17179 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17180 if eval test \${$cacheid+y} 17181then : 17182 printf %s "(cached) " >&6 17183else case e in #( 17184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185/* end confdefs.h. */ 17186int i; 17187int 17188main (void) 17189{ 17190 17191 ; 17192 return 0; 17193} 17194_ACEOF 17195if ac_fn_c_try_link "$LINENO" 17196then : 17197 eval $cacheid=yes 17198else case e in #( 17199 e) eval $cacheid=no ;; 17200esac 17201fi 17202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17203 conftest$ac_exeext conftest.$ac_ext ;; 17204esac 17205fi 17206 17207 17208 CFLAGS="$xorg_testset_save_CFLAGS" 17209 17210 eval supported=\$$cacheid 17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17212printf "%s\n" "$supported" >&6; } 17213 if test "$supported" = "yes" ; then 17214 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17215 found="yes" 17216 fi 17217 fi 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233xorg_testset_save_CFLAGS="$CFLAGS" 17234 17235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17240then : 17241 printf %s "(cached) " >&6 17242else case e in #( 17243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245int i; 17246_ACEOF 17247if ac_fn_c_try_compile "$LINENO" 17248then : 17249 xorg_cv_cc_flag_unknown_warning_option=yes 17250else case e in #( 17251 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17252esac 17253fi 17254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17255esac 17256fi 17257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17260 CFLAGS="$xorg_testset_save_CFLAGS" 17261fi 17262 17263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17266 fi 17267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17270if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17271then : 17272 printf %s "(cached) " >&6 17273else case e in #( 17274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17275/* end confdefs.h. */ 17276int i; 17277_ACEOF 17278if ac_fn_c_try_compile "$LINENO" 17279then : 17280 xorg_cv_cc_flag_unused_command_line_argument=yes 17281else case e in #( 17282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17283esac 17284fi 17285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17286esac 17287fi 17288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17291 CFLAGS="$xorg_testset_save_CFLAGS" 17292fi 17293 17294found="no" 17295 17296 if test $found = "no" ; then 17297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17299 fi 17300 17301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17303 fi 17304 17305 CFLAGS="$CFLAGS -Werror=trigraphs" 17306 17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17308printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17309 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17310 if eval test \${$cacheid+y} 17311then : 17312 printf %s "(cached) " >&6 17313else case e in #( 17314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17315/* end confdefs.h. */ 17316int i; 17317int 17318main (void) 17319{ 17320 17321 ; 17322 return 0; 17323} 17324_ACEOF 17325if ac_fn_c_try_link "$LINENO" 17326then : 17327 eval $cacheid=yes 17328else case e in #( 17329 e) eval $cacheid=no ;; 17330esac 17331fi 17332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17333 conftest$ac_exeext conftest.$ac_ext ;; 17334esac 17335fi 17336 17337 17338 CFLAGS="$xorg_testset_save_CFLAGS" 17339 17340 eval supported=\$$cacheid 17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17342printf "%s\n" "$supported" >&6; } 17343 if test "$supported" = "yes" ; then 17344 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17345 found="yes" 17346 fi 17347 fi 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363xorg_testset_save_CFLAGS="$CFLAGS" 17364 17365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17369if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17370then : 17371 printf %s "(cached) " >&6 17372else case e in #( 17373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17374/* end confdefs.h. */ 17375int i; 17376_ACEOF 17377if ac_fn_c_try_compile "$LINENO" 17378then : 17379 xorg_cv_cc_flag_unknown_warning_option=yes 17380else case e in #( 17381 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17382esac 17383fi 17384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17385esac 17386fi 17387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17390 CFLAGS="$xorg_testset_save_CFLAGS" 17391fi 17392 17393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17396 fi 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17401then : 17402 printf %s "(cached) " >&6 17403else case e in #( 17404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406int i; 17407_ACEOF 17408if ac_fn_c_try_compile "$LINENO" 17409then : 17410 xorg_cv_cc_flag_unused_command_line_argument=yes 17411else case e in #( 17412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17413esac 17414fi 17415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17416esac 17417fi 17418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17421 CFLAGS="$xorg_testset_save_CFLAGS" 17422fi 17423 17424found="no" 17425 17426 if test $found = "no" ; then 17427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17429 fi 17430 17431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17433 fi 17434 17435 CFLAGS="$CFLAGS -Werror=array-bounds" 17436 17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17438printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17439 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17440 if eval test \${$cacheid+y} 17441then : 17442 printf %s "(cached) " >&6 17443else case e in #( 17444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17445/* end confdefs.h. */ 17446int i; 17447int 17448main (void) 17449{ 17450 17451 ; 17452 return 0; 17453} 17454_ACEOF 17455if ac_fn_c_try_link "$LINENO" 17456then : 17457 eval $cacheid=yes 17458else case e in #( 17459 e) eval $cacheid=no ;; 17460esac 17461fi 17462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17463 conftest$ac_exeext conftest.$ac_ext ;; 17464esac 17465fi 17466 17467 17468 CFLAGS="$xorg_testset_save_CFLAGS" 17469 17470 eval supported=\$$cacheid 17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17472printf "%s\n" "$supported" >&6; } 17473 if test "$supported" = "yes" ; then 17474 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17475 found="yes" 17476 fi 17477 fi 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493xorg_testset_save_CFLAGS="$CFLAGS" 17494 17495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17500then : 17501 printf %s "(cached) " >&6 17502else case e in #( 17503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17504/* end confdefs.h. */ 17505int i; 17506_ACEOF 17507if ac_fn_c_try_compile "$LINENO" 17508then : 17509 xorg_cv_cc_flag_unknown_warning_option=yes 17510else case e in #( 17511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17512esac 17513fi 17514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17515esac 17516fi 17517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17520 CFLAGS="$xorg_testset_save_CFLAGS" 17521fi 17522 17523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17526 fi 17527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17530if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17531then : 17532 printf %s "(cached) " >&6 17533else case e in #( 17534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17535/* end confdefs.h. */ 17536int i; 17537_ACEOF 17538if ac_fn_c_try_compile "$LINENO" 17539then : 17540 xorg_cv_cc_flag_unused_command_line_argument=yes 17541else case e in #( 17542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17543esac 17544fi 17545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17546esac 17547fi 17548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17551 CFLAGS="$xorg_testset_save_CFLAGS" 17552fi 17553 17554found="no" 17555 17556 if test $found = "no" ; then 17557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17559 fi 17560 17561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17563 fi 17564 17565 CFLAGS="$CFLAGS -Werror=write-strings" 17566 17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17568printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17569 cacheid=xorg_cv_cc_flag__Werror_write_strings 17570 if eval test \${$cacheid+y} 17571then : 17572 printf %s "(cached) " >&6 17573else case e in #( 17574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17575/* end confdefs.h. */ 17576int i; 17577int 17578main (void) 17579{ 17580 17581 ; 17582 return 0; 17583} 17584_ACEOF 17585if ac_fn_c_try_link "$LINENO" 17586then : 17587 eval $cacheid=yes 17588else case e in #( 17589 e) eval $cacheid=no ;; 17590esac 17591fi 17592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17593 conftest$ac_exeext conftest.$ac_ext ;; 17594esac 17595fi 17596 17597 17598 CFLAGS="$xorg_testset_save_CFLAGS" 17599 17600 eval supported=\$$cacheid 17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17602printf "%s\n" "$supported" >&6; } 17603 if test "$supported" = "yes" ; then 17604 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17605 found="yes" 17606 fi 17607 fi 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623xorg_testset_save_CFLAGS="$CFLAGS" 17624 17625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17630then : 17631 printf %s "(cached) " >&6 17632else case e in #( 17633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17634/* end confdefs.h. */ 17635int i; 17636_ACEOF 17637if ac_fn_c_try_compile "$LINENO" 17638then : 17639 xorg_cv_cc_flag_unknown_warning_option=yes 17640else case e in #( 17641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17642esac 17643fi 17644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17645esac 17646fi 17647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17650 CFLAGS="$xorg_testset_save_CFLAGS" 17651fi 17652 17653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17656 fi 17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17661then : 17662 printf %s "(cached) " >&6 17663else case e in #( 17664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17665/* end confdefs.h. */ 17666int i; 17667_ACEOF 17668if ac_fn_c_try_compile "$LINENO" 17669then : 17670 xorg_cv_cc_flag_unused_command_line_argument=yes 17671else case e in #( 17672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17673esac 17674fi 17675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17676esac 17677fi 17678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17681 CFLAGS="$xorg_testset_save_CFLAGS" 17682fi 17683 17684found="no" 17685 17686 if test $found = "no" ; then 17687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17689 fi 17690 17691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17693 fi 17694 17695 CFLAGS="$CFLAGS -Werror=address" 17696 17697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17698printf %s "checking if $CC supports -Werror=address... " >&6; } 17699 cacheid=xorg_cv_cc_flag__Werror_address 17700 if eval test \${$cacheid+y} 17701then : 17702 printf %s "(cached) " >&6 17703else case e in #( 17704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17705/* end confdefs.h. */ 17706int i; 17707int 17708main (void) 17709{ 17710 17711 ; 17712 return 0; 17713} 17714_ACEOF 17715if ac_fn_c_try_link "$LINENO" 17716then : 17717 eval $cacheid=yes 17718else case e in #( 17719 e) eval $cacheid=no ;; 17720esac 17721fi 17722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17723 conftest$ac_exeext conftest.$ac_ext ;; 17724esac 17725fi 17726 17727 17728 CFLAGS="$xorg_testset_save_CFLAGS" 17729 17730 eval supported=\$$cacheid 17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17732printf "%s\n" "$supported" >&6; } 17733 if test "$supported" = "yes" ; then 17734 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17735 found="yes" 17736 fi 17737 fi 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753xorg_testset_save_CFLAGS="$CFLAGS" 17754 17755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17760then : 17761 printf %s "(cached) " >&6 17762else case e in #( 17763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17764/* end confdefs.h. */ 17765int i; 17766_ACEOF 17767if ac_fn_c_try_compile "$LINENO" 17768then : 17769 xorg_cv_cc_flag_unknown_warning_option=yes 17770else case e in #( 17771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17772esac 17773fi 17774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17775esac 17776fi 17777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17780 CFLAGS="$xorg_testset_save_CFLAGS" 17781fi 17782 17783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17786 fi 17787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17791then : 17792 printf %s "(cached) " >&6 17793else case e in #( 17794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17795/* end confdefs.h. */ 17796int i; 17797_ACEOF 17798if ac_fn_c_try_compile "$LINENO" 17799then : 17800 xorg_cv_cc_flag_unused_command_line_argument=yes 17801else case e in #( 17802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17803esac 17804fi 17805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17806esac 17807fi 17808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812fi 17813 17814found="no" 17815 17816 if test $found = "no" ; then 17817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17819 fi 17820 17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17823 fi 17824 17825 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17826 17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17828printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17829 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17830 if eval test \${$cacheid+y} 17831then : 17832 printf %s "(cached) " >&6 17833else case e in #( 17834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17835/* end confdefs.h. */ 17836int i; 17837int 17838main (void) 17839{ 17840 17841 ; 17842 return 0; 17843} 17844_ACEOF 17845if ac_fn_c_try_link "$LINENO" 17846then : 17847 eval $cacheid=yes 17848else case e in #( 17849 e) eval $cacheid=no ;; 17850esac 17851fi 17852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17853 conftest$ac_exeext conftest.$ac_ext ;; 17854esac 17855fi 17856 17857 17858 CFLAGS="$xorg_testset_save_CFLAGS" 17859 17860 eval supported=\$$cacheid 17861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17862printf "%s\n" "$supported" >&6; } 17863 if test "$supported" = "yes" ; then 17864 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17865 found="yes" 17866 fi 17867 fi 17868 17869 if test $found = "no" ; then 17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17872 fi 17873 17874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17876 fi 17877 17878 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17879 17880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17881printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17882 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17883 if eval test \${$cacheid+y} 17884then : 17885 printf %s "(cached) " >&6 17886else case e in #( 17887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17888/* end confdefs.h. */ 17889int i; 17890int 17891main (void) 17892{ 17893 17894 ; 17895 return 0; 17896} 17897_ACEOF 17898if ac_fn_c_try_link "$LINENO" 17899then : 17900 eval $cacheid=yes 17901else case e in #( 17902 e) eval $cacheid=no ;; 17903esac 17904fi 17905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17906 conftest$ac_exeext conftest.$ac_ext ;; 17907esac 17908fi 17909 17910 17911 CFLAGS="$xorg_testset_save_CFLAGS" 17912 17913 eval supported=\$$cacheid 17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17915printf "%s\n" "$supported" >&6; } 17916 if test "$supported" = "yes" ; then 17917 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17918 found="yes" 17919 fi 17920 fi 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936xorg_testset_save_CFLAGS="$CFLAGS" 17937 17938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17942if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17943then : 17944 printf %s "(cached) " >&6 17945else case e in #( 17946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17947/* end confdefs.h. */ 17948int i; 17949_ACEOF 17950if ac_fn_c_try_compile "$LINENO" 17951then : 17952 xorg_cv_cc_flag_unknown_warning_option=yes 17953else case e in #( 17954 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17955esac 17956fi 17957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17958esac 17959fi 17960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17963 CFLAGS="$xorg_testset_save_CFLAGS" 17964fi 17965 17966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17969 fi 17970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17974then : 17975 printf %s "(cached) " >&6 17976else case e in #( 17977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17978/* end confdefs.h. */ 17979int i; 17980_ACEOF 17981if ac_fn_c_try_compile "$LINENO" 17982then : 17983 xorg_cv_cc_flag_unused_command_line_argument=yes 17984else case e in #( 17985 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17986esac 17987fi 17988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17989esac 17990fi 17991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17992printf "%s\n" "$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=pointer-to-int-cast" 18009 18010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18011printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18012 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18013 if eval test \${$cacheid+y} 18014then : 18015 printf %s "(cached) " >&6 18016else case e in #( 18017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18018/* end confdefs.h. */ 18019int i; 18020int 18021main (void) 18022{ 18023 18024 ; 18025 return 0; 18026} 18027_ACEOF 18028if ac_fn_c_try_link "$LINENO" 18029then : 18030 eval $cacheid=yes 18031else case e in #( 18032 e) eval $cacheid=no ;; 18033esac 18034fi 18035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18036 conftest$ac_exeext conftest.$ac_ext ;; 18037esac 18038fi 18039 18040 18041 CFLAGS="$xorg_testset_save_CFLAGS" 18042 18043 eval supported=\$$cacheid 18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18045printf "%s\n" "$supported" >&6; } 18046 if test "$supported" = "yes" ; then 18047 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18048 found="yes" 18049 fi 18050 fi 18051 18052 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18053else 18054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 18055printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069xorg_testset_save_CFLAGS="$CFLAGS" 18070 18071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18076then : 18077 printf %s "(cached) " >&6 18078else case e in #( 18079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18080/* end confdefs.h. */ 18081int i; 18082_ACEOF 18083if ac_fn_c_try_compile "$LINENO" 18084then : 18085 xorg_cv_cc_flag_unknown_warning_option=yes 18086else case e in #( 18087 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18088esac 18089fi 18090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18091esac 18092fi 18093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18096 CFLAGS="$xorg_testset_save_CFLAGS" 18097fi 18098 18099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18102 fi 18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18107then : 18108 printf %s "(cached) " >&6 18109else case e in #( 18110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18111/* end confdefs.h. */ 18112int i; 18113_ACEOF 18114if ac_fn_c_try_compile "$LINENO" 18115then : 18116 xorg_cv_cc_flag_unused_command_line_argument=yes 18117else case e in #( 18118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18119esac 18120fi 18121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18122esac 18123fi 18124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18127 CFLAGS="$xorg_testset_save_CFLAGS" 18128fi 18129 18130found="no" 18131 18132 if test $found = "no" ; then 18133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18135 fi 18136 18137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18139 fi 18140 18141 CFLAGS="$CFLAGS -Wimplicit" 18142 18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18144printf %s "checking if $CC supports -Wimplicit... " >&6; } 18145 cacheid=xorg_cv_cc_flag__Wimplicit 18146 if eval test \${$cacheid+y} 18147then : 18148 printf %s "(cached) " >&6 18149else case e in #( 18150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18151/* end confdefs.h. */ 18152int i; 18153int 18154main (void) 18155{ 18156 18157 ; 18158 return 0; 18159} 18160_ACEOF 18161if ac_fn_c_try_link "$LINENO" 18162then : 18163 eval $cacheid=yes 18164else case e in #( 18165 e) eval $cacheid=no ;; 18166esac 18167fi 18168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18169 conftest$ac_exeext conftest.$ac_ext ;; 18170esac 18171fi 18172 18173 18174 CFLAGS="$xorg_testset_save_CFLAGS" 18175 18176 eval supported=\$$cacheid 18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18178printf "%s\n" "$supported" >&6; } 18179 if test "$supported" = "yes" ; then 18180 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18181 found="yes" 18182 fi 18183 fi 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199xorg_testset_save_CFLAGS="$CFLAGS" 18200 18201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18205if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18206then : 18207 printf %s "(cached) " >&6 18208else case e in #( 18209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18210/* end confdefs.h. */ 18211int i; 18212_ACEOF 18213if ac_fn_c_try_compile "$LINENO" 18214then : 18215 xorg_cv_cc_flag_unknown_warning_option=yes 18216else case e in #( 18217 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18218esac 18219fi 18220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18221esac 18222fi 18223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18226 CFLAGS="$xorg_testset_save_CFLAGS" 18227fi 18228 18229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18232 fi 18233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18236if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18237then : 18238 printf %s "(cached) " >&6 18239else case e in #( 18240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18241/* end confdefs.h. */ 18242int i; 18243_ACEOF 18244if ac_fn_c_try_compile "$LINENO" 18245then : 18246 xorg_cv_cc_flag_unused_command_line_argument=yes 18247else case e in #( 18248 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18249esac 18250fi 18251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18252esac 18253fi 18254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18257 CFLAGS="$xorg_testset_save_CFLAGS" 18258fi 18259 18260found="no" 18261 18262 if test $found = "no" ; then 18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18265 fi 18266 18267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18269 fi 18270 18271 CFLAGS="$CFLAGS -Wnonnull" 18272 18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18274printf %s "checking if $CC supports -Wnonnull... " >&6; } 18275 cacheid=xorg_cv_cc_flag__Wnonnull 18276 if eval test \${$cacheid+y} 18277then : 18278 printf %s "(cached) " >&6 18279else case e in #( 18280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18281/* end confdefs.h. */ 18282int i; 18283int 18284main (void) 18285{ 18286 18287 ; 18288 return 0; 18289} 18290_ACEOF 18291if ac_fn_c_try_link "$LINENO" 18292then : 18293 eval $cacheid=yes 18294else case e in #( 18295 e) eval $cacheid=no ;; 18296esac 18297fi 18298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18299 conftest$ac_exeext conftest.$ac_ext ;; 18300esac 18301fi 18302 18303 18304 CFLAGS="$xorg_testset_save_CFLAGS" 18305 18306 eval supported=\$$cacheid 18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18308printf "%s\n" "$supported" >&6; } 18309 if test "$supported" = "yes" ; then 18310 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18311 found="yes" 18312 fi 18313 fi 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329xorg_testset_save_CFLAGS="$CFLAGS" 18330 18331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18335if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18336then : 18337 printf %s "(cached) " >&6 18338else case e in #( 18339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18340/* end confdefs.h. */ 18341int i; 18342_ACEOF 18343if ac_fn_c_try_compile "$LINENO" 18344then : 18345 xorg_cv_cc_flag_unknown_warning_option=yes 18346else case e in #( 18347 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18348esac 18349fi 18350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18351esac 18352fi 18353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18356 CFLAGS="$xorg_testset_save_CFLAGS" 18357fi 18358 18359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18362 fi 18363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18366if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18367then : 18368 printf %s "(cached) " >&6 18369else case e in #( 18370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18371/* end confdefs.h. */ 18372int i; 18373_ACEOF 18374if ac_fn_c_try_compile "$LINENO" 18375then : 18376 xorg_cv_cc_flag_unused_command_line_argument=yes 18377else case e in #( 18378 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18379esac 18380fi 18381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18382esac 18383fi 18384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18387 CFLAGS="$xorg_testset_save_CFLAGS" 18388fi 18389 18390found="no" 18391 18392 if test $found = "no" ; then 18393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18395 fi 18396 18397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18399 fi 18400 18401 CFLAGS="$CFLAGS -Winit-self" 18402 18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18404printf %s "checking if $CC supports -Winit-self... " >&6; } 18405 cacheid=xorg_cv_cc_flag__Winit_self 18406 if eval test \${$cacheid+y} 18407then : 18408 printf %s "(cached) " >&6 18409else case e in #( 18410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18411/* end confdefs.h. */ 18412int i; 18413int 18414main (void) 18415{ 18416 18417 ; 18418 return 0; 18419} 18420_ACEOF 18421if ac_fn_c_try_link "$LINENO" 18422then : 18423 eval $cacheid=yes 18424else case e in #( 18425 e) eval $cacheid=no ;; 18426esac 18427fi 18428rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18429 conftest$ac_exeext conftest.$ac_ext ;; 18430esac 18431fi 18432 18433 18434 CFLAGS="$xorg_testset_save_CFLAGS" 18435 18436 eval supported=\$$cacheid 18437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18438printf "%s\n" "$supported" >&6; } 18439 if test "$supported" = "yes" ; then 18440 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18441 found="yes" 18442 fi 18443 fi 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459xorg_testset_save_CFLAGS="$CFLAGS" 18460 18461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18465if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18466then : 18467 printf %s "(cached) " >&6 18468else case e in #( 18469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18470/* end confdefs.h. */ 18471int i; 18472_ACEOF 18473if ac_fn_c_try_compile "$LINENO" 18474then : 18475 xorg_cv_cc_flag_unknown_warning_option=yes 18476else case e in #( 18477 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18478esac 18479fi 18480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18481esac 18482fi 18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18486 CFLAGS="$xorg_testset_save_CFLAGS" 18487fi 18488 18489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18492 fi 18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18497then : 18498 printf %s "(cached) " >&6 18499else case e in #( 18500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18501/* end confdefs.h. */ 18502int i; 18503_ACEOF 18504if ac_fn_c_try_compile "$LINENO" 18505then : 18506 xorg_cv_cc_flag_unused_command_line_argument=yes 18507else case e in #( 18508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18509esac 18510fi 18511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18512esac 18513fi 18514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18517 CFLAGS="$xorg_testset_save_CFLAGS" 18518fi 18519 18520found="no" 18521 18522 if test $found = "no" ; then 18523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18525 fi 18526 18527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18529 fi 18530 18531 CFLAGS="$CFLAGS -Wmain" 18532 18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18534printf %s "checking if $CC supports -Wmain... " >&6; } 18535 cacheid=xorg_cv_cc_flag__Wmain 18536 if eval test \${$cacheid+y} 18537then : 18538 printf %s "(cached) " >&6 18539else case e in #( 18540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541/* end confdefs.h. */ 18542int i; 18543int 18544main (void) 18545{ 18546 18547 ; 18548 return 0; 18549} 18550_ACEOF 18551if ac_fn_c_try_link "$LINENO" 18552then : 18553 eval $cacheid=yes 18554else case e in #( 18555 e) eval $cacheid=no ;; 18556esac 18557fi 18558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18559 conftest$ac_exeext conftest.$ac_ext ;; 18560esac 18561fi 18562 18563 18564 CFLAGS="$xorg_testset_save_CFLAGS" 18565 18566 eval supported=\$$cacheid 18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18568printf "%s\n" "$supported" >&6; } 18569 if test "$supported" = "yes" ; then 18570 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18571 found="yes" 18572 fi 18573 fi 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589xorg_testset_save_CFLAGS="$CFLAGS" 18590 18591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18595if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18596then : 18597 printf %s "(cached) " >&6 18598else case e in #( 18599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18600/* end confdefs.h. */ 18601int i; 18602_ACEOF 18603if ac_fn_c_try_compile "$LINENO" 18604then : 18605 xorg_cv_cc_flag_unknown_warning_option=yes 18606else case e in #( 18607 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18608esac 18609fi 18610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18611esac 18612fi 18613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18614printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18616 CFLAGS="$xorg_testset_save_CFLAGS" 18617fi 18618 18619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18622 fi 18623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18625printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18626if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18627then : 18628 printf %s "(cached) " >&6 18629else case e in #( 18630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18631/* end confdefs.h. */ 18632int i; 18633_ACEOF 18634if ac_fn_c_try_compile "$LINENO" 18635then : 18636 xorg_cv_cc_flag_unused_command_line_argument=yes 18637else case e in #( 18638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18639esac 18640fi 18641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18642esac 18643fi 18644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18647 CFLAGS="$xorg_testset_save_CFLAGS" 18648fi 18649 18650found="no" 18651 18652 if test $found = "no" ; then 18653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18655 fi 18656 18657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18659 fi 18660 18661 CFLAGS="$CFLAGS -Wmissing-braces" 18662 18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18664printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18665 cacheid=xorg_cv_cc_flag__Wmissing_braces 18666 if eval test \${$cacheid+y} 18667then : 18668 printf %s "(cached) " >&6 18669else case e in #( 18670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672int i; 18673int 18674main (void) 18675{ 18676 18677 ; 18678 return 0; 18679} 18680_ACEOF 18681if ac_fn_c_try_link "$LINENO" 18682then : 18683 eval $cacheid=yes 18684else case e in #( 18685 e) eval $cacheid=no ;; 18686esac 18687fi 18688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18689 conftest$ac_exeext conftest.$ac_ext ;; 18690esac 18691fi 18692 18693 18694 CFLAGS="$xorg_testset_save_CFLAGS" 18695 18696 eval supported=\$$cacheid 18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18698printf "%s\n" "$supported" >&6; } 18699 if test "$supported" = "yes" ; then 18700 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18701 found="yes" 18702 fi 18703 fi 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719xorg_testset_save_CFLAGS="$CFLAGS" 18720 18721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18724printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18725if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18726then : 18727 printf %s "(cached) " >&6 18728else case e in #( 18729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18730/* end confdefs.h. */ 18731int i; 18732_ACEOF 18733if ac_fn_c_try_compile "$LINENO" 18734then : 18735 xorg_cv_cc_flag_unknown_warning_option=yes 18736else case e in #( 18737 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18738esac 18739fi 18740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18741esac 18742fi 18743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18744printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18746 CFLAGS="$xorg_testset_save_CFLAGS" 18747fi 18748 18749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18752 fi 18753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18755printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18756if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18757then : 18758 printf %s "(cached) " >&6 18759else case e in #( 18760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18761/* end confdefs.h. */ 18762int i; 18763_ACEOF 18764if ac_fn_c_try_compile "$LINENO" 18765then : 18766 xorg_cv_cc_flag_unused_command_line_argument=yes 18767else case e in #( 18768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18769esac 18770fi 18771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18772esac 18773fi 18774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18777 CFLAGS="$xorg_testset_save_CFLAGS" 18778fi 18779 18780found="no" 18781 18782 if test $found = "no" ; then 18783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18785 fi 18786 18787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18789 fi 18790 18791 CFLAGS="$CFLAGS -Wsequence-point" 18792 18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18794printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18795 cacheid=xorg_cv_cc_flag__Wsequence_point 18796 if eval test \${$cacheid+y} 18797then : 18798 printf %s "(cached) " >&6 18799else case e in #( 18800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801/* end confdefs.h. */ 18802int i; 18803int 18804main (void) 18805{ 18806 18807 ; 18808 return 0; 18809} 18810_ACEOF 18811if ac_fn_c_try_link "$LINENO" 18812then : 18813 eval $cacheid=yes 18814else case e in #( 18815 e) eval $cacheid=no ;; 18816esac 18817fi 18818rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18819 conftest$ac_exeext conftest.$ac_ext ;; 18820esac 18821fi 18822 18823 18824 CFLAGS="$xorg_testset_save_CFLAGS" 18825 18826 eval supported=\$$cacheid 18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18828printf "%s\n" "$supported" >&6; } 18829 if test "$supported" = "yes" ; then 18830 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18831 found="yes" 18832 fi 18833 fi 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849xorg_testset_save_CFLAGS="$CFLAGS" 18850 18851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18855if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18856then : 18857 printf %s "(cached) " >&6 18858else case e in #( 18859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18860/* end confdefs.h. */ 18861int i; 18862_ACEOF 18863if ac_fn_c_try_compile "$LINENO" 18864then : 18865 xorg_cv_cc_flag_unknown_warning_option=yes 18866else case e in #( 18867 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18868esac 18869fi 18870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18871esac 18872fi 18873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18876 CFLAGS="$xorg_testset_save_CFLAGS" 18877fi 18878 18879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18882 fi 18883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18887then : 18888 printf %s "(cached) " >&6 18889else case e in #( 18890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18891/* end confdefs.h. */ 18892int i; 18893_ACEOF 18894if ac_fn_c_try_compile "$LINENO" 18895then : 18896 xorg_cv_cc_flag_unused_command_line_argument=yes 18897else case e in #( 18898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18899esac 18900fi 18901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18902esac 18903fi 18904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18907 CFLAGS="$xorg_testset_save_CFLAGS" 18908fi 18909 18910found="no" 18911 18912 if test $found = "no" ; then 18913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18915 fi 18916 18917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18919 fi 18920 18921 CFLAGS="$CFLAGS -Wreturn-type" 18922 18923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18924printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18925 cacheid=xorg_cv_cc_flag__Wreturn_type 18926 if eval test \${$cacheid+y} 18927then : 18928 printf %s "(cached) " >&6 18929else case e in #( 18930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18931/* end confdefs.h. */ 18932int i; 18933int 18934main (void) 18935{ 18936 18937 ; 18938 return 0; 18939} 18940_ACEOF 18941if ac_fn_c_try_link "$LINENO" 18942then : 18943 eval $cacheid=yes 18944else case e in #( 18945 e) eval $cacheid=no ;; 18946esac 18947fi 18948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18949 conftest$ac_exeext conftest.$ac_ext ;; 18950esac 18951fi 18952 18953 18954 CFLAGS="$xorg_testset_save_CFLAGS" 18955 18956 eval supported=\$$cacheid 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18958printf "%s\n" "$supported" >&6; } 18959 if test "$supported" = "yes" ; then 18960 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18961 found="yes" 18962 fi 18963 fi 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979xorg_testset_save_CFLAGS="$CFLAGS" 18980 18981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18985if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18986then : 18987 printf %s "(cached) " >&6 18988else case e in #( 18989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18990/* end confdefs.h. */ 18991int i; 18992_ACEOF 18993if ac_fn_c_try_compile "$LINENO" 18994then : 18995 xorg_cv_cc_flag_unknown_warning_option=yes 18996else case e in #( 18997 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18998esac 18999fi 19000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19001esac 19002fi 19003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19006 CFLAGS="$xorg_testset_save_CFLAGS" 19007fi 19008 19009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19012 fi 19013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19016if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19017then : 19018 printf %s "(cached) " >&6 19019else case e in #( 19020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19021/* end confdefs.h. */ 19022int i; 19023_ACEOF 19024if ac_fn_c_try_compile "$LINENO" 19025then : 19026 xorg_cv_cc_flag_unused_command_line_argument=yes 19027else case e in #( 19028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19029esac 19030fi 19031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19032esac 19033fi 19034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038fi 19039 19040found="no" 19041 19042 if test $found = "no" ; then 19043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19045 fi 19046 19047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19049 fi 19050 19051 CFLAGS="$CFLAGS -Wtrigraphs" 19052 19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19054printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19055 cacheid=xorg_cv_cc_flag__Wtrigraphs 19056 if eval test \${$cacheid+y} 19057then : 19058 printf %s "(cached) " >&6 19059else case e in #( 19060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19061/* end confdefs.h. */ 19062int i; 19063int 19064main (void) 19065{ 19066 19067 ; 19068 return 0; 19069} 19070_ACEOF 19071if ac_fn_c_try_link "$LINENO" 19072then : 19073 eval $cacheid=yes 19074else case e in #( 19075 e) eval $cacheid=no ;; 19076esac 19077fi 19078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19079 conftest$ac_exeext conftest.$ac_ext ;; 19080esac 19081fi 19082 19083 19084 CFLAGS="$xorg_testset_save_CFLAGS" 19085 19086 eval supported=\$$cacheid 19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19088printf "%s\n" "$supported" >&6; } 19089 if test "$supported" = "yes" ; then 19090 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19091 found="yes" 19092 fi 19093 fi 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109xorg_testset_save_CFLAGS="$CFLAGS" 19110 19111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19116then : 19117 printf %s "(cached) " >&6 19118else case e in #( 19119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19120/* end confdefs.h. */ 19121int i; 19122_ACEOF 19123if ac_fn_c_try_compile "$LINENO" 19124then : 19125 xorg_cv_cc_flag_unknown_warning_option=yes 19126else case e in #( 19127 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19128esac 19129fi 19130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19131esac 19132fi 19133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19134printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19136 CFLAGS="$xorg_testset_save_CFLAGS" 19137fi 19138 19139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19142 fi 19143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19145printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19146if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19147then : 19148 printf %s "(cached) " >&6 19149else case e in #( 19150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19151/* end confdefs.h. */ 19152int i; 19153_ACEOF 19154if ac_fn_c_try_compile "$LINENO" 19155then : 19156 xorg_cv_cc_flag_unused_command_line_argument=yes 19157else case e in #( 19158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19159esac 19160fi 19161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19162esac 19163fi 19164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19167 CFLAGS="$xorg_testset_save_CFLAGS" 19168fi 19169 19170found="no" 19171 19172 if test $found = "no" ; then 19173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19175 fi 19176 19177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19179 fi 19180 19181 CFLAGS="$CFLAGS -Warray-bounds" 19182 19183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19184printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19185 cacheid=xorg_cv_cc_flag__Warray_bounds 19186 if eval test \${$cacheid+y} 19187then : 19188 printf %s "(cached) " >&6 19189else case e in #( 19190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19191/* end confdefs.h. */ 19192int i; 19193int 19194main (void) 19195{ 19196 19197 ; 19198 return 0; 19199} 19200_ACEOF 19201if ac_fn_c_try_link "$LINENO" 19202then : 19203 eval $cacheid=yes 19204else case e in #( 19205 e) eval $cacheid=no ;; 19206esac 19207fi 19208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19209 conftest$ac_exeext conftest.$ac_ext ;; 19210esac 19211fi 19212 19213 19214 CFLAGS="$xorg_testset_save_CFLAGS" 19215 19216 eval supported=\$$cacheid 19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19218printf "%s\n" "$supported" >&6; } 19219 if test "$supported" = "yes" ; then 19220 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19221 found="yes" 19222 fi 19223 fi 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239xorg_testset_save_CFLAGS="$CFLAGS" 19240 19241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19245if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19246then : 19247 printf %s "(cached) " >&6 19248else case e in #( 19249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19250/* end confdefs.h. */ 19251int i; 19252_ACEOF 19253if ac_fn_c_try_compile "$LINENO" 19254then : 19255 xorg_cv_cc_flag_unknown_warning_option=yes 19256else case e in #( 19257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19258esac 19259fi 19260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19261esac 19262fi 19263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19266 CFLAGS="$xorg_testset_save_CFLAGS" 19267fi 19268 19269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19272 fi 19273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19277then : 19278 printf %s "(cached) " >&6 19279else case e in #( 19280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19281/* end confdefs.h. */ 19282int i; 19283_ACEOF 19284if ac_fn_c_try_compile "$LINENO" 19285then : 19286 xorg_cv_cc_flag_unused_command_line_argument=yes 19287else case e in #( 19288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19289esac 19290fi 19291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19292esac 19293fi 19294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19297 CFLAGS="$xorg_testset_save_CFLAGS" 19298fi 19299 19300found="no" 19301 19302 if test $found = "no" ; then 19303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19305 fi 19306 19307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19309 fi 19310 19311 CFLAGS="$CFLAGS -Wwrite-strings" 19312 19313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19314printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19315 cacheid=xorg_cv_cc_flag__Wwrite_strings 19316 if eval test \${$cacheid+y} 19317then : 19318 printf %s "(cached) " >&6 19319else case e in #( 19320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19321/* end confdefs.h. */ 19322int i; 19323int 19324main (void) 19325{ 19326 19327 ; 19328 return 0; 19329} 19330_ACEOF 19331if ac_fn_c_try_link "$LINENO" 19332then : 19333 eval $cacheid=yes 19334else case e in #( 19335 e) eval $cacheid=no ;; 19336esac 19337fi 19338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19339 conftest$ac_exeext conftest.$ac_ext ;; 19340esac 19341fi 19342 19343 19344 CFLAGS="$xorg_testset_save_CFLAGS" 19345 19346 eval supported=\$$cacheid 19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19348printf "%s\n" "$supported" >&6; } 19349 if test "$supported" = "yes" ; then 19350 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19351 found="yes" 19352 fi 19353 fi 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369xorg_testset_save_CFLAGS="$CFLAGS" 19370 19371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19376then : 19377 printf %s "(cached) " >&6 19378else case e in #( 19379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381int i; 19382_ACEOF 19383if ac_fn_c_try_compile "$LINENO" 19384then : 19385 xorg_cv_cc_flag_unknown_warning_option=yes 19386else case e in #( 19387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19388esac 19389fi 19390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19391esac 19392fi 19393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19396 CFLAGS="$xorg_testset_save_CFLAGS" 19397fi 19398 19399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19402 fi 19403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19406if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19407then : 19408 printf %s "(cached) " >&6 19409else case e in #( 19410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19411/* end confdefs.h. */ 19412int i; 19413_ACEOF 19414if ac_fn_c_try_compile "$LINENO" 19415then : 19416 xorg_cv_cc_flag_unused_command_line_argument=yes 19417else case e in #( 19418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19419esac 19420fi 19421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19422esac 19423fi 19424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19427 CFLAGS="$xorg_testset_save_CFLAGS" 19428fi 19429 19430found="no" 19431 19432 if test $found = "no" ; then 19433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19435 fi 19436 19437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19439 fi 19440 19441 CFLAGS="$CFLAGS -Waddress" 19442 19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19444printf %s "checking if $CC supports -Waddress... " >&6; } 19445 cacheid=xorg_cv_cc_flag__Waddress 19446 if eval test \${$cacheid+y} 19447then : 19448 printf %s "(cached) " >&6 19449else case e in #( 19450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19451/* end confdefs.h. */ 19452int i; 19453int 19454main (void) 19455{ 19456 19457 ; 19458 return 0; 19459} 19460_ACEOF 19461if ac_fn_c_try_link "$LINENO" 19462then : 19463 eval $cacheid=yes 19464else case e in #( 19465 e) eval $cacheid=no ;; 19466esac 19467fi 19468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19469 conftest$ac_exeext conftest.$ac_ext ;; 19470esac 19471fi 19472 19473 19474 CFLAGS="$xorg_testset_save_CFLAGS" 19475 19476 eval supported=\$$cacheid 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19478printf "%s\n" "$supported" >&6; } 19479 if test "$supported" = "yes" ; then 19480 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19481 found="yes" 19482 fi 19483 fi 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499xorg_testset_save_CFLAGS="$CFLAGS" 19500 19501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19506then : 19507 printf %s "(cached) " >&6 19508else case e in #( 19509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19510/* end confdefs.h. */ 19511int i; 19512_ACEOF 19513if ac_fn_c_try_compile "$LINENO" 19514then : 19515 xorg_cv_cc_flag_unknown_warning_option=yes 19516else case e in #( 19517 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19518esac 19519fi 19520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19521esac 19522fi 19523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19526 CFLAGS="$xorg_testset_save_CFLAGS" 19527fi 19528 19529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19532 fi 19533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19537then : 19538 printf %s "(cached) " >&6 19539else case e in #( 19540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19541/* end confdefs.h. */ 19542int i; 19543_ACEOF 19544if ac_fn_c_try_compile "$LINENO" 19545then : 19546 xorg_cv_cc_flag_unused_command_line_argument=yes 19547else case e in #( 19548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19549esac 19550fi 19551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19552esac 19553fi 19554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19557 CFLAGS="$xorg_testset_save_CFLAGS" 19558fi 19559 19560found="no" 19561 19562 if test $found = "no" ; then 19563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19565 fi 19566 19567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19569 fi 19570 19571 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19572 19573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19574printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19575 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19576 if eval test \${$cacheid+y} 19577then : 19578 printf %s "(cached) " >&6 19579else case e in #( 19580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19581/* end confdefs.h. */ 19582int i; 19583int 19584main (void) 19585{ 19586 19587 ; 19588 return 0; 19589} 19590_ACEOF 19591if ac_fn_c_try_link "$LINENO" 19592then : 19593 eval $cacheid=yes 19594else case e in #( 19595 e) eval $cacheid=no ;; 19596esac 19597fi 19598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19599 conftest$ac_exeext conftest.$ac_ext ;; 19600esac 19601fi 19602 19603 19604 CFLAGS="$xorg_testset_save_CFLAGS" 19605 19606 eval supported=\$$cacheid 19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19608printf "%s\n" "$supported" >&6; } 19609 if test "$supported" = "yes" ; then 19610 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19611 found="yes" 19612 fi 19613 fi 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629xorg_testset_save_CFLAGS="$CFLAGS" 19630 19631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19636then : 19637 printf %s "(cached) " >&6 19638else case e in #( 19639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19640/* end confdefs.h. */ 19641int i; 19642_ACEOF 19643if ac_fn_c_try_compile "$LINENO" 19644then : 19645 xorg_cv_cc_flag_unknown_warning_option=yes 19646else case e in #( 19647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19648esac 19649fi 19650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19651esac 19652fi 19653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19656 CFLAGS="$xorg_testset_save_CFLAGS" 19657fi 19658 19659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19662 fi 19663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19667then : 19668 printf %s "(cached) " >&6 19669else case e in #( 19670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19671/* end confdefs.h. */ 19672int i; 19673_ACEOF 19674if ac_fn_c_try_compile "$LINENO" 19675then : 19676 xorg_cv_cc_flag_unused_command_line_argument=yes 19677else case e in #( 19678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19679esac 19680fi 19681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19682esac 19683fi 19684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19687 CFLAGS="$xorg_testset_save_CFLAGS" 19688fi 19689 19690found="no" 19691 19692 if test $found = "no" ; then 19693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19695 fi 19696 19697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19699 fi 19700 19701 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19702 19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19704printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19705 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19706 if eval test \${$cacheid+y} 19707then : 19708 printf %s "(cached) " >&6 19709else case e in #( 19710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19711/* end confdefs.h. */ 19712int i; 19713int 19714main (void) 19715{ 19716 19717 ; 19718 return 0; 19719} 19720_ACEOF 19721if ac_fn_c_try_link "$LINENO" 19722then : 19723 eval $cacheid=yes 19724else case e in #( 19725 e) eval $cacheid=no ;; 19726esac 19727fi 19728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19729 conftest$ac_exeext conftest.$ac_ext ;; 19730esac 19731fi 19732 19733 19734 CFLAGS="$xorg_testset_save_CFLAGS" 19735 19736 eval supported=\$$cacheid 19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19738printf "%s\n" "$supported" >&6; } 19739 if test "$supported" = "yes" ; then 19740 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19741 found="yes" 19742 fi 19743 fi 19744 19745 19746fi 19747 19748 19749 19750 19751 19752 19753 19754 CWARNFLAGS="$BASE_CFLAGS" 19755 if test "x$GCC" = xyes ; then 19756 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19757 fi 19758 19759 19760 19761 19762 19763 19764 19765 19766# Check whether --enable-strict-compilation was given. 19767if test ${enable_strict_compilation+y} 19768then : 19769 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19770else case e in #( 19771 e) STRICT_COMPILE=no ;; 19772esac 19773fi 19774 19775 19776 19777 19778 19779 19780STRICT_CFLAGS="" 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794xorg_testset_save_CFLAGS="$CFLAGS" 19795 19796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19799printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19800if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19801then : 19802 printf %s "(cached) " >&6 19803else case e in #( 19804 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19805/* end confdefs.h. */ 19806int i; 19807_ACEOF 19808if ac_fn_c_try_compile "$LINENO" 19809then : 19810 xorg_cv_cc_flag_unknown_warning_option=yes 19811else case e in #( 19812 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19813esac 19814fi 19815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19816esac 19817fi 19818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19821 CFLAGS="$xorg_testset_save_CFLAGS" 19822fi 19823 19824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19827 fi 19828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19831if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19832then : 19833 printf %s "(cached) " >&6 19834else case e in #( 19835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19836/* end confdefs.h. */ 19837int i; 19838_ACEOF 19839if ac_fn_c_try_compile "$LINENO" 19840then : 19841 xorg_cv_cc_flag_unused_command_line_argument=yes 19842else case e in #( 19843 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19844esac 19845fi 19846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19847esac 19848fi 19849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19850printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19852 CFLAGS="$xorg_testset_save_CFLAGS" 19853fi 19854 19855found="no" 19856 19857 if test $found = "no" ; then 19858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19860 fi 19861 19862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19864 fi 19865 19866 CFLAGS="$CFLAGS -pedantic" 19867 19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19869printf %s "checking if $CC supports -pedantic... " >&6; } 19870 cacheid=xorg_cv_cc_flag__pedantic 19871 if eval test \${$cacheid+y} 19872then : 19873 printf %s "(cached) " >&6 19874else case e in #( 19875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19876/* end confdefs.h. */ 19877int i; 19878int 19879main (void) 19880{ 19881 19882 ; 19883 return 0; 19884} 19885_ACEOF 19886if ac_fn_c_try_link "$LINENO" 19887then : 19888 eval $cacheid=yes 19889else case e in #( 19890 e) eval $cacheid=no ;; 19891esac 19892fi 19893rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19894 conftest$ac_exeext conftest.$ac_ext ;; 19895esac 19896fi 19897 19898 19899 CFLAGS="$xorg_testset_save_CFLAGS" 19900 19901 eval supported=\$$cacheid 19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19903printf "%s\n" "$supported" >&6; } 19904 if test "$supported" = "yes" ; then 19905 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19906 found="yes" 19907 fi 19908 fi 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924xorg_testset_save_CFLAGS="$CFLAGS" 19925 19926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19929printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19930if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19931then : 19932 printf %s "(cached) " >&6 19933else case e in #( 19934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19935/* end confdefs.h. */ 19936int i; 19937_ACEOF 19938if ac_fn_c_try_compile "$LINENO" 19939then : 19940 xorg_cv_cc_flag_unknown_warning_option=yes 19941else case e in #( 19942 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19943esac 19944fi 19945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19946esac 19947fi 19948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19951 CFLAGS="$xorg_testset_save_CFLAGS" 19952fi 19953 19954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19957 fi 19958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19961if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19962then : 19963 printf %s "(cached) " >&6 19964else case e in #( 19965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19966/* end confdefs.h. */ 19967int i; 19968_ACEOF 19969if ac_fn_c_try_compile "$LINENO" 19970then : 19971 xorg_cv_cc_flag_unused_command_line_argument=yes 19972else case e in #( 19973 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19974esac 19975fi 19976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19977esac 19978fi 19979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19982 CFLAGS="$xorg_testset_save_CFLAGS" 19983fi 19984 19985found="no" 19986 19987 if test $found = "no" ; then 19988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19990 fi 19991 19992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19994 fi 19995 19996 CFLAGS="$CFLAGS -Werror" 19997 19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19999printf %s "checking if $CC supports -Werror... " >&6; } 20000 cacheid=xorg_cv_cc_flag__Werror 20001 if eval test \${$cacheid+y} 20002then : 20003 printf %s "(cached) " >&6 20004else case e in #( 20005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20006/* end confdefs.h. */ 20007int i; 20008int 20009main (void) 20010{ 20011 20012 ; 20013 return 0; 20014} 20015_ACEOF 20016if ac_fn_c_try_link "$LINENO" 20017then : 20018 eval $cacheid=yes 20019else case e in #( 20020 e) eval $cacheid=no ;; 20021esac 20022fi 20023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20024 conftest$ac_exeext conftest.$ac_ext ;; 20025esac 20026fi 20027 20028 20029 CFLAGS="$xorg_testset_save_CFLAGS" 20030 20031 eval supported=\$$cacheid 20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20033printf "%s\n" "$supported" >&6; } 20034 if test "$supported" = "yes" ; then 20035 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20036 found="yes" 20037 fi 20038 fi 20039 20040 if test $found = "no" ; then 20041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20043 fi 20044 20045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20047 fi 20048 20049 CFLAGS="$CFLAGS -errwarn" 20050 20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20052printf %s "checking if $CC supports -errwarn... " >&6; } 20053 cacheid=xorg_cv_cc_flag__errwarn 20054 if eval test \${$cacheid+y} 20055then : 20056 printf %s "(cached) " >&6 20057else case e in #( 20058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20059/* end confdefs.h. */ 20060int i; 20061int 20062main (void) 20063{ 20064 20065 ; 20066 return 0; 20067} 20068_ACEOF 20069if ac_fn_c_try_link "$LINENO" 20070then : 20071 eval $cacheid=yes 20072else case e in #( 20073 e) eval $cacheid=no ;; 20074esac 20075fi 20076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20077 conftest$ac_exeext conftest.$ac_ext ;; 20078esac 20079fi 20080 20081 20082 CFLAGS="$xorg_testset_save_CFLAGS" 20083 20084 eval supported=\$$cacheid 20085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20086printf "%s\n" "$supported" >&6; } 20087 if test "$supported" = "yes" ; then 20088 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20089 found="yes" 20090 fi 20091 fi 20092 20093 20094 20095# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20096# activate it with -Werror, so we add it here explicitly. 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110xorg_testset_save_CFLAGS="$CFLAGS" 20111 20112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20115printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20116if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20117then : 20118 printf %s "(cached) " >&6 20119else case e in #( 20120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20121/* end confdefs.h. */ 20122int i; 20123_ACEOF 20124if ac_fn_c_try_compile "$LINENO" 20125then : 20126 xorg_cv_cc_flag_unknown_warning_option=yes 20127else case e in #( 20128 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20129esac 20130fi 20131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20132esac 20133fi 20134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20135printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20137 CFLAGS="$xorg_testset_save_CFLAGS" 20138fi 20139 20140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20143 fi 20144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20146printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20147if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20148then : 20149 printf %s "(cached) " >&6 20150else case e in #( 20151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20152/* end confdefs.h. */ 20153int i; 20154_ACEOF 20155if ac_fn_c_try_compile "$LINENO" 20156then : 20157 xorg_cv_cc_flag_unused_command_line_argument=yes 20158else case e in #( 20159 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20160esac 20161fi 20162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20163esac 20164fi 20165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20168 CFLAGS="$xorg_testset_save_CFLAGS" 20169fi 20170 20171found="no" 20172 20173 if test $found = "no" ; then 20174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20176 fi 20177 20178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20180 fi 20181 20182 CFLAGS="$CFLAGS -Werror=attributes" 20183 20184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20185printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20186 cacheid=xorg_cv_cc_flag__Werror_attributes 20187 if eval test \${$cacheid+y} 20188then : 20189 printf %s "(cached) " >&6 20190else case e in #( 20191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20192/* end confdefs.h. */ 20193int i; 20194int 20195main (void) 20196{ 20197 20198 ; 20199 return 0; 20200} 20201_ACEOF 20202if ac_fn_c_try_link "$LINENO" 20203then : 20204 eval $cacheid=yes 20205else case e in #( 20206 e) eval $cacheid=no ;; 20207esac 20208fi 20209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20210 conftest$ac_exeext conftest.$ac_ext ;; 20211esac 20212fi 20213 20214 20215 CFLAGS="$xorg_testset_save_CFLAGS" 20216 20217 eval supported=\$$cacheid 20218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20219printf "%s\n" "$supported" >&6; } 20220 if test "$supported" = "yes" ; then 20221 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20222 found="yes" 20223 fi 20224 fi 20225 20226 20227 20228if test "x$STRICT_COMPILE" = "xyes"; then 20229 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20230 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20231fi 20232 20233 20234 20235 20236 20237 20238 20239 20240cat >>confdefs.h <<_ACEOF 20241#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20242_ACEOF 20243 20244 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20245 if test "x$PVM" = "x"; then 20246 PVM="0" 20247 fi 20248 20249printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20250 20251 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20252 if test "x$PVP" = "x"; then 20253 PVP="0" 20254 fi 20255 20256printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20257 20258 20259 20260CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20261mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20262|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20263touch \$(top_srcdir)/ChangeLog; \ 20264echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20265 20266 20267 20268 20269macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20270INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20271mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20272|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20273touch \$(top_srcdir)/INSTALL; \ 20274echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20275 20276 20277 20278 20279 20280 20281case $host_os in 20282 solaris*) 20283 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20284 # check for a man page file found in later versions that use 20285 # traditional section numbers instead 20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20287printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20288if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20289then : 20290 printf %s "(cached) " >&6 20291else case e in #( 20292 e) test "$cross_compiling" = yes && 20293 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20294if test -r "/usr/share/man/man7/attributes.7"; then 20295 ac_cv_file__usr_share_man_man7_attributes_7=yes 20296else 20297 ac_cv_file__usr_share_man_man7_attributes_7=no 20298fi ;; 20299esac 20300fi 20301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20302printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20303if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20304then : 20305 SYSV_MAN_SECTIONS=false 20306else case e in #( 20307 e) SYSV_MAN_SECTIONS=true ;; 20308esac 20309fi 20310 20311 ;; 20312 *) SYSV_MAN_SECTIONS=false ;; 20313esac 20314 20315if test x$APP_MAN_SUFFIX = x ; then 20316 APP_MAN_SUFFIX=1 20317fi 20318if test x$APP_MAN_DIR = x ; then 20319 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20320fi 20321 20322if test x$LIB_MAN_SUFFIX = x ; then 20323 LIB_MAN_SUFFIX=3 20324fi 20325if test x$LIB_MAN_DIR = x ; then 20326 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20327fi 20328 20329if test x$FILE_MAN_SUFFIX = x ; then 20330 case $SYSV_MAN_SECTIONS in 20331 true) FILE_MAN_SUFFIX=4 ;; 20332 *) FILE_MAN_SUFFIX=5 ;; 20333 esac 20334fi 20335if test x$FILE_MAN_DIR = x ; then 20336 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20337fi 20338 20339if test x$MISC_MAN_SUFFIX = x ; then 20340 case $SYSV_MAN_SECTIONS in 20341 true) MISC_MAN_SUFFIX=5 ;; 20342 *) MISC_MAN_SUFFIX=7 ;; 20343 esac 20344fi 20345if test x$MISC_MAN_DIR = x ; then 20346 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20347fi 20348 20349if test x$DRIVER_MAN_SUFFIX = x ; then 20350 case $SYSV_MAN_SECTIONS in 20351 true) DRIVER_MAN_SUFFIX=7 ;; 20352 *) DRIVER_MAN_SUFFIX=4 ;; 20353 esac 20354fi 20355if test x$DRIVER_MAN_DIR = x ; then 20356 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20357fi 20358 20359if test x$ADMIN_MAN_SUFFIX = x ; then 20360 case $SYSV_MAN_SECTIONS in 20361 true) ADMIN_MAN_SUFFIX=1m ;; 20362 *) ADMIN_MAN_SUFFIX=8 ;; 20363 esac 20364fi 20365if test x$ADMIN_MAN_DIR = x ; then 20366 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20367fi 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383XORG_MAN_PAGE="X Version 11" 20384 20385MAN_SUBSTS="\ 20386 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20387 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20388 -e 's|__xservername__|Xorg|g' \ 20389 -e 's|__xconfigfile__|xorg.conf|g' \ 20390 -e 's|__projectroot__|\$(prefix)|g' \ 20391 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20392 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20393 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20394 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20395 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20396 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20397 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20398 20399 20400 20401# Check whether --enable-silent-rules was given. 20402if test ${enable_silent_rules+y} 20403then : 20404 enableval=$enable_silent_rules; 20405fi 20406 20407case $enable_silent_rules in # ((( 20408 yes) AM_DEFAULT_VERBOSITY=0;; 20409 no) AM_DEFAULT_VERBOSITY=1;; 20410 *) AM_DEFAULT_VERBOSITY=0;; 20411esac 20412am_make=${MAKE-make} 20413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 20414printf %s "checking whether $am_make supports nested variables... " >&6; } 20415if test ${am_cv_make_support_nested_variables+y} 20416then : 20417 printf %s "(cached) " >&6 20418else case e in #( 20419 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 20420BAR0=false 20421BAR1=true 20422V=1 20423am__doit: 20424 @$(TRUE) 20425.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 20426 am_cv_make_support_nested_variables=yes 20427else 20428 am_cv_make_support_nested_variables=no 20429fi ;; 20430esac 20431fi 20432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 20433printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 20434if test $am_cv_make_support_nested_variables = yes; then 20435 AM_V='$(V)' 20436 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20437else 20438 AM_V=$AM_DEFAULT_VERBOSITY 20439 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20440fi 20441AM_BACKSLASH='\' 20442 20443 20444 20445 20446 20447# Check whether --enable-specs was given. 20448if test ${enable_specs+y} 20449then : 20450 enableval=$enable_specs; build_specs=$enableval 20451else case e in #( 20452 e) build_specs=yes ;; 20453esac 20454fi 20455 20456 20457 if test x$build_specs = xyes; then 20458 ENABLE_SPECS_TRUE= 20459 ENABLE_SPECS_FALSE='#' 20460else 20461 ENABLE_SPECS_TRUE='#' 20462 ENABLE_SPECS_FALSE= 20463fi 20464 20465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20466printf %s "checking whether to build functional specifications... " >&6; } 20467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20468printf "%s\n" "$build_specs" >&6; } 20469 20470 20471 20472 20473 20474# Check whether --with-xmlto was given. 20475if test ${with_xmlto+y} 20476then : 20477 withval=$with_xmlto; use_xmlto=$withval 20478else case e in #( 20479 e) use_xmlto=auto ;; 20480esac 20481fi 20482 20483 20484 20485if test "x$use_xmlto" = x"auto"; then 20486 # Extract the first word of "xmlto", so it can be a program name with args. 20487set dummy xmlto; ac_word=$2 20488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20489printf %s "checking for $ac_word... " >&6; } 20490if test ${ac_cv_path_XMLTO+y} 20491then : 20492 printf %s "(cached) " >&6 20493else case e in #( 20494 e) case $XMLTO in 20495 [\\/]* | ?:[\\/]*) 20496 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20497 ;; 20498 *) 20499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20500for as_dir in $PATH 20501do 20502 IFS=$as_save_IFS 20503 case $as_dir in #((( 20504 '') as_dir=./ ;; 20505 */) ;; 20506 *) as_dir=$as_dir/ ;; 20507 esac 20508 for ac_exec_ext in '' $ac_executable_extensions; do 20509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20510 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20512 break 2 20513 fi 20514done 20515 done 20516IFS=$as_save_IFS 20517 20518 ;; 20519esac ;; 20520esac 20521fi 20522XMLTO=$ac_cv_path_XMLTO 20523if test -n "$XMLTO"; then 20524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20525printf "%s\n" "$XMLTO" >&6; } 20526else 20527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20528printf "%s\n" "no" >&6; } 20529fi 20530 20531 20532 if test "x$XMLTO" = "x"; then 20533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20534printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20535 have_xmlto=no 20536 else 20537 have_xmlto=yes 20538 fi 20539elif test "x$use_xmlto" = x"yes" ; then 20540 # Extract the first word of "xmlto", so it can be a program name with args. 20541set dummy xmlto; ac_word=$2 20542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20543printf %s "checking for $ac_word... " >&6; } 20544if test ${ac_cv_path_XMLTO+y} 20545then : 20546 printf %s "(cached) " >&6 20547else case e in #( 20548 e) case $XMLTO in 20549 [\\/]* | ?:[\\/]*) 20550 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20551 ;; 20552 *) 20553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20554for as_dir in $PATH 20555do 20556 IFS=$as_save_IFS 20557 case $as_dir in #((( 20558 '') as_dir=./ ;; 20559 */) ;; 20560 *) as_dir=$as_dir/ ;; 20561 esac 20562 for ac_exec_ext in '' $ac_executable_extensions; do 20563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20564 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20566 break 2 20567 fi 20568done 20569 done 20570IFS=$as_save_IFS 20571 20572 ;; 20573esac ;; 20574esac 20575fi 20576XMLTO=$ac_cv_path_XMLTO 20577if test -n "$XMLTO"; then 20578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20579printf "%s\n" "$XMLTO" >&6; } 20580else 20581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20582printf "%s\n" "no" >&6; } 20583fi 20584 20585 20586 if test "x$XMLTO" = "x"; then 20587 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20588 fi 20589 have_xmlto=yes 20590elif test "x$use_xmlto" = x"no" ; then 20591 if test "x$XMLTO" != "x"; then 20592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20593printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20594 fi 20595 have_xmlto=no 20596else 20597 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20598fi 20599 20600# Test for a minimum version of xmlto, if provided. 20601if test "$have_xmlto" = yes; then 20602 # scrape the xmlto version 20603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20604printf %s "checking the xmlto version... " >&6; } 20605 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20607printf "%s\n" "$xmlto_version" >&6; } 20608 as_arg_v1=$xmlto_version 20609as_arg_v2=0.0.22 20610awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20611case $? in #( 20612 1) : 20613 if test "x$use_xmlto" = xauto; then 20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20615printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20616 have_xmlto=no 20617 else 20618 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20619 fi ;; #( 20620 0) : 20621 ;; #( 20622 2) : 20623 ;; #( 20624 *) : 20625 ;; 20626esac 20627fi 20628 20629# Test for the ability of xmlto to generate a text target 20630# 20631# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20632# following test for empty XML docbook files. 20633# For compatibility reasons use the following empty XML docbook file and if 20634# it fails try it again with a non-empty XML file. 20635have_xmlto_text=no 20636cat > conftest.xml << "EOF" 20637EOF 20638if test "$have_xmlto" = yes 20639then : 20640 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20641then : 20642 have_xmlto_text=yes 20643else case e in #( 20644 e) # Try it again with a non-empty XML file. 20645 cat > conftest.xml << "EOF" 20646<x></x> 20647EOF 20648 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20649then : 20650 have_xmlto_text=yes 20651else case e in #( 20652 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20653printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20654esac 20655fi ;; 20656esac 20657fi 20658fi 20659rm -f conftest.xml 20660 if test $have_xmlto_text = yes; then 20661 HAVE_XMLTO_TEXT_TRUE= 20662 HAVE_XMLTO_TEXT_FALSE='#' 20663else 20664 HAVE_XMLTO_TEXT_TRUE='#' 20665 HAVE_XMLTO_TEXT_FALSE= 20666fi 20667 20668 if test "$have_xmlto" = yes; then 20669 HAVE_XMLTO_TRUE= 20670 HAVE_XMLTO_FALSE='#' 20671else 20672 HAVE_XMLTO_TRUE='#' 20673 HAVE_XMLTO_FALSE= 20674fi 20675 20676 20677 20678 20679 20680 20681# Check whether --with-fop was given. 20682if test ${with_fop+y} 20683then : 20684 withval=$with_fop; use_fop=$withval 20685else case e in #( 20686 e) use_fop=no ;; 20687esac 20688fi 20689 20690 20691 20692if test "x$use_fop" = x"auto"; then 20693 # Extract the first word of "fop", so it can be a program name with args. 20694set dummy fop; ac_word=$2 20695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20696printf %s "checking for $ac_word... " >&6; } 20697if test ${ac_cv_path_FOP+y} 20698then : 20699 printf %s "(cached) " >&6 20700else case e in #( 20701 e) case $FOP in 20702 [\\/]* | ?:[\\/]*) 20703 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20704 ;; 20705 *) 20706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20707for as_dir in $PATH 20708do 20709 IFS=$as_save_IFS 20710 case $as_dir in #((( 20711 '') as_dir=./ ;; 20712 */) ;; 20713 *) as_dir=$as_dir/ ;; 20714 esac 20715 for ac_exec_ext in '' $ac_executable_extensions; do 20716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20717 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20719 break 2 20720 fi 20721done 20722 done 20723IFS=$as_save_IFS 20724 20725 ;; 20726esac ;; 20727esac 20728fi 20729FOP=$ac_cv_path_FOP 20730if test -n "$FOP"; then 20731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20732printf "%s\n" "$FOP" >&6; } 20733else 20734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20735printf "%s\n" "no" >&6; } 20736fi 20737 20738 20739 if test "x$FOP" = "x"; then 20740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20741printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20742 have_fop=no 20743 else 20744 have_fop=yes 20745 fi 20746elif test "x$use_fop" = x"yes" ; then 20747 # Extract the first word of "fop", so it can be a program name with args. 20748set dummy fop; ac_word=$2 20749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20750printf %s "checking for $ac_word... " >&6; } 20751if test ${ac_cv_path_FOP+y} 20752then : 20753 printf %s "(cached) " >&6 20754else case e in #( 20755 e) case $FOP in 20756 [\\/]* | ?:[\\/]*) 20757 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20758 ;; 20759 *) 20760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20761for as_dir in $PATH 20762do 20763 IFS=$as_save_IFS 20764 case $as_dir in #((( 20765 '') as_dir=./ ;; 20766 */) ;; 20767 *) as_dir=$as_dir/ ;; 20768 esac 20769 for ac_exec_ext in '' $ac_executable_extensions; do 20770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20771 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20773 break 2 20774 fi 20775done 20776 done 20777IFS=$as_save_IFS 20778 20779 ;; 20780esac ;; 20781esac 20782fi 20783FOP=$ac_cv_path_FOP 20784if test -n "$FOP"; then 20785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20786printf "%s\n" "$FOP" >&6; } 20787else 20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20789printf "%s\n" "no" >&6; } 20790fi 20791 20792 20793 if test "x$FOP" = "x"; then 20794 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20795 fi 20796 have_fop=yes 20797elif test "x$use_fop" = x"no" ; then 20798 if test "x$FOP" != "x"; then 20799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20800printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20801 fi 20802 have_fop=no 20803else 20804 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20805fi 20806 20807# Test for a minimum version of fop, if provided. 20808 20809 if test "$have_fop" = yes; then 20810 HAVE_FOP_TRUE= 20811 HAVE_FOP_FALSE='#' 20812else 20813 HAVE_FOP_TRUE='#' 20814 HAVE_FOP_FALSE= 20815fi 20816 20817 20818 20819 20820# Preserves the interface, should it be implemented later 20821 20822 20823 20824# Check whether --with-xsltproc was given. 20825if test ${with_xsltproc+y} 20826then : 20827 withval=$with_xsltproc; use_xsltproc=$withval 20828else case e in #( 20829 e) use_xsltproc=auto ;; 20830esac 20831fi 20832 20833 20834 20835if test "x$use_xsltproc" = x"auto"; then 20836 # Extract the first word of "xsltproc", so it can be a program name with args. 20837set dummy xsltproc; ac_word=$2 20838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20839printf %s "checking for $ac_word... " >&6; } 20840if test ${ac_cv_path_XSLTPROC+y} 20841then : 20842 printf %s "(cached) " >&6 20843else case e in #( 20844 e) case $XSLTPROC in 20845 [\\/]* | ?:[\\/]*) 20846 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20847 ;; 20848 *) 20849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20850for as_dir in $PATH 20851do 20852 IFS=$as_save_IFS 20853 case $as_dir in #((( 20854 '') as_dir=./ ;; 20855 */) ;; 20856 *) as_dir=$as_dir/ ;; 20857 esac 20858 for ac_exec_ext in '' $ac_executable_extensions; do 20859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20860 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20862 break 2 20863 fi 20864done 20865 done 20866IFS=$as_save_IFS 20867 20868 ;; 20869esac ;; 20870esac 20871fi 20872XSLTPROC=$ac_cv_path_XSLTPROC 20873if test -n "$XSLTPROC"; then 20874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20875printf "%s\n" "$XSLTPROC" >&6; } 20876else 20877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20878printf "%s\n" "no" >&6; } 20879fi 20880 20881 20882 if test "x$XSLTPROC" = "x"; then 20883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20884printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20885 have_xsltproc=no 20886 else 20887 have_xsltproc=yes 20888 fi 20889elif test "x$use_xsltproc" = x"yes" ; then 20890 # Extract the first word of "xsltproc", so it can be a program name with args. 20891set dummy xsltproc; ac_word=$2 20892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20893printf %s "checking for $ac_word... " >&6; } 20894if test ${ac_cv_path_XSLTPROC+y} 20895then : 20896 printf %s "(cached) " >&6 20897else case e in #( 20898 e) case $XSLTPROC in 20899 [\\/]* | ?:[\\/]*) 20900 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20901 ;; 20902 *) 20903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20904for as_dir in $PATH 20905do 20906 IFS=$as_save_IFS 20907 case $as_dir in #((( 20908 '') as_dir=./ ;; 20909 */) ;; 20910 *) as_dir=$as_dir/ ;; 20911 esac 20912 for ac_exec_ext in '' $ac_executable_extensions; do 20913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20914 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20916 break 2 20917 fi 20918done 20919 done 20920IFS=$as_save_IFS 20921 20922 ;; 20923esac ;; 20924esac 20925fi 20926XSLTPROC=$ac_cv_path_XSLTPROC 20927if test -n "$XSLTPROC"; then 20928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20929printf "%s\n" "$XSLTPROC" >&6; } 20930else 20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20932printf "%s\n" "no" >&6; } 20933fi 20934 20935 20936 if test "x$XSLTPROC" = "x"; then 20937 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 20938 fi 20939 have_xsltproc=yes 20940elif test "x$use_xsltproc" = x"no" ; then 20941 if test "x$XSLTPROC" != "x"; then 20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 20943printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 20944 fi 20945 have_xsltproc=no 20946else 20947 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 20948fi 20949 20950 if test "$have_xsltproc" = yes; then 20951 HAVE_XSLTPROC_TRUE= 20952 HAVE_XSLTPROC_FALSE='#' 20953else 20954 HAVE_XSLTPROC_TRUE='#' 20955 HAVE_XSLTPROC_FALSE= 20956fi 20957 20958 20959 20960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 20961printf %s "checking for X.Org SGML entities >= 1.10... " >&6; } 20962XORG_SGML_PATH= 20963if test -n "$PKG_CONFIG" && \ 20964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 20965 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 20966 ac_status=$? 20967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20968 test $ac_status = 0; }; then 20969 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20970else 20971 : 20972 20973fi 20974 20975# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20976# the path and the name of the doc stylesheet 20977if test "x$XORG_SGML_PATH" != "x" ; then 20978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20979printf "%s\n" "$XORG_SGML_PATH" >&6; } 20980 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20981 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20982else 20983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20984printf "%s\n" "no" >&6; } 20985fi 20986 20987 20988 20989 20990 if test "x$XSL_STYLESHEET" != "x"; then 20991 HAVE_STYLESHEETS_TRUE= 20992 HAVE_STYLESHEETS_FALSE='#' 20993else 20994 HAVE_STYLESHEETS_TRUE='#' 20995 HAVE_STYLESHEETS_FALSE= 20996fi 20997 20998 20999ac_ext=c 21000ac_cpp='$CPP $CPPFLAGS' 21001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21003ac_compiler_gnu=$ac_cv_c_compiler_gnu 21004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 21005printf %s "checking how to run the C preprocessor... " >&6; } 21006# On Suns, sometimes $CPP names a directory. 21007if test -n "$CPP" && test -d "$CPP"; then 21008 CPP= 21009fi 21010if test -z "$CPP"; then 21011 if test ${ac_cv_prog_CPP+y} 21012then : 21013 printf %s "(cached) " >&6 21014else case e in #( 21015 e) # Double quotes because $CC needs to be expanded 21016 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 21017 do 21018 ac_preproc_ok=false 21019for ac_c_preproc_warn_flag in '' yes 21020do 21021 # Use a header file that comes with gcc, so configuring glibc 21022 # with a fresh cross-compiler works. 21023 # On the NeXT, cc -E runs the code through the compiler's parser, 21024 # not just through cpp. "Syntax error" is here to catch this case. 21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21026/* end confdefs.h. */ 21027#include <limits.h> 21028 Syntax error 21029_ACEOF 21030if ac_fn_c_try_cpp "$LINENO" 21031then : 21032 21033else case e in #( 21034 e) # Broken: fails on valid input. 21035continue ;; 21036esac 21037fi 21038rm -f conftest.err conftest.i conftest.$ac_ext 21039 21040 # OK, works on sane cases. Now check whether nonexistent headers 21041 # can be detected and how. 21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21043/* end confdefs.h. */ 21044#include <ac_nonexistent.h> 21045_ACEOF 21046if ac_fn_c_try_cpp "$LINENO" 21047then : 21048 # Broken: success on invalid input. 21049continue 21050else case e in #( 21051 e) # Passes both tests. 21052ac_preproc_ok=: 21053break ;; 21054esac 21055fi 21056rm -f conftest.err conftest.i conftest.$ac_ext 21057 21058done 21059# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 21060rm -f conftest.i conftest.err conftest.$ac_ext 21061if $ac_preproc_ok 21062then : 21063 break 21064fi 21065 21066 done 21067 ac_cv_prog_CPP=$CPP 21068 ;; 21069esac 21070fi 21071 CPP=$ac_cv_prog_CPP 21072else 21073 ac_cv_prog_CPP=$CPP 21074fi 21075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 21076printf "%s\n" "$CPP" >&6; } 21077ac_preproc_ok=false 21078for ac_c_preproc_warn_flag in '' yes 21079do 21080 # Use a header file that comes with gcc, so configuring glibc 21081 # with a fresh cross-compiler works. 21082 # On the NeXT, cc -E runs the code through the compiler's parser, 21083 # not just through cpp. "Syntax error" is here to catch this case. 21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21085/* end confdefs.h. */ 21086#include <limits.h> 21087 Syntax error 21088_ACEOF 21089if ac_fn_c_try_cpp "$LINENO" 21090then : 21091 21092else case e in #( 21093 e) # Broken: fails on valid input. 21094continue ;; 21095esac 21096fi 21097rm -f conftest.err conftest.i conftest.$ac_ext 21098 21099 # OK, works on sane cases. Now check whether nonexistent headers 21100 # can be detected and how. 21101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21102/* end confdefs.h. */ 21103#include <ac_nonexistent.h> 21104_ACEOF 21105if ac_fn_c_try_cpp "$LINENO" 21106then : 21107 # Broken: success on invalid input. 21108continue 21109else case e in #( 21110 e) # Passes both tests. 21111ac_preproc_ok=: 21112break ;; 21113esac 21114fi 21115rm -f conftest.err conftest.i conftest.$ac_ext 21116 21117done 21118# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 21119rm -f conftest.i conftest.err conftest.$ac_ext 21120if $ac_preproc_ok 21121then : 21122 21123else case e in #( 21124 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21125printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21126as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 21127See 'config.log' for more details" "$LINENO" 5; } ;; 21128esac 21129fi 21130 21131ac_ext=c 21132ac_cpp='$CPP $CPPFLAGS' 21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21135ac_compiler_gnu=$ac_cv_c_compiler_gnu 21136 21137 21138 21139if test -n "$ac_tool_prefix"; then 21140 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 21141set dummy ${ac_tool_prefix}cpp; ac_word=$2 21142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21143printf %s "checking for $ac_word... " >&6; } 21144if test ${ac_cv_path_RAWCPP+y} 21145then : 21146 printf %s "(cached) " >&6 21147else case e in #( 21148 e) case $RAWCPP in 21149 [\\/]* | ?:[\\/]*) 21150 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21151 ;; 21152 *) 21153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21154as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21155for as_dir in $as_dummy 21156do 21157 IFS=$as_save_IFS 21158 case $as_dir in #((( 21159 '') as_dir=./ ;; 21160 */) ;; 21161 *) as_dir=$as_dir/ ;; 21162 esac 21163 for ac_exec_ext in '' $ac_executable_extensions; do 21164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21165 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 21166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21167 break 2 21168 fi 21169done 21170 done 21171IFS=$as_save_IFS 21172 21173 ;; 21174esac ;; 21175esac 21176fi 21177RAWCPP=$ac_cv_path_RAWCPP 21178if test -n "$RAWCPP"; then 21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21180printf "%s\n" "$RAWCPP" >&6; } 21181else 21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21183printf "%s\n" "no" >&6; } 21184fi 21185 21186 21187fi 21188if test -z "$ac_cv_path_RAWCPP"; then 21189 ac_pt_RAWCPP=$RAWCPP 21190 # Extract the first word of "cpp", so it can be a program name with args. 21191set dummy cpp; ac_word=$2 21192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21193printf %s "checking for $ac_word... " >&6; } 21194if test ${ac_cv_path_ac_pt_RAWCPP+y} 21195then : 21196 printf %s "(cached) " >&6 21197else case e in #( 21198 e) case $ac_pt_RAWCPP in 21199 [\\/]* | ?:[\\/]*) 21200 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 21201 ;; 21202 *) 21203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21204as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21205for as_dir in $as_dummy 21206do 21207 IFS=$as_save_IFS 21208 case $as_dir in #((( 21209 '') as_dir=./ ;; 21210 */) ;; 21211 *) as_dir=$as_dir/ ;; 21212 esac 21213 for ac_exec_ext in '' $ac_executable_extensions; do 21214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21215 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 21216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21217 break 2 21218 fi 21219done 21220 done 21221IFS=$as_save_IFS 21222 21223 ;; 21224esac ;; 21225esac 21226fi 21227ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 21228if test -n "$ac_pt_RAWCPP"; then 21229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 21230printf "%s\n" "$ac_pt_RAWCPP" >&6; } 21231else 21232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21233printf "%s\n" "no" >&6; } 21234fi 21235 21236 if test "x$ac_pt_RAWCPP" = x; then 21237 RAWCPP="${CPP}" 21238 else 21239 case $cross_compiling:$ac_tool_warned in 21240yes:) 21241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21243ac_tool_warned=yes ;; 21244esac 21245 RAWCPP=$ac_pt_RAWCPP 21246 fi 21247else 21248 RAWCPP="$ac_cv_path_RAWCPP" 21249fi 21250 21251 21252# Check for flag to avoid builtin definitions - assumes unix is predefined, 21253# which is not the best choice for supporting other OS'es, but covers most 21254# of the ones we need for now. 21255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21256printf %s "checking if $RAWCPP requires -undef... " >&6; } 21257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21258/* end confdefs.h. */ 21259Does cpp redefine unix ? 21260_ACEOF 21261if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21263printf "%s\n" "no" >&6; } 21264else 21265 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21266 RAWCPPFLAGS=-undef 21267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21268printf "%s\n" "yes" >&6; } 21269 # under Cygwin unix is still defined even with -undef 21270 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21271 RAWCPPFLAGS="-undef -ansi" 21272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21273printf "%s\n" "yes, with -ansi" >&6; } 21274 else 21275 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21276 fi 21277fi 21278rm -f conftest.$ac_ext 21279 21280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21281printf %s "checking if $RAWCPP requires -traditional... " >&6; } 21282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21283/* end confdefs.h. */ 21284Does cpp preserve "whitespace"? 21285_ACEOF 21286if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 21287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21288printf "%s\n" "no" >&6; } 21289else 21290 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 21291 TRADITIONALCPPFLAGS="-traditional" 21292 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21294printf "%s\n" "yes" >&6; } 21295 else 21296 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21297 fi 21298fi 21299rm -f conftest.$ac_ext 21300 21301 21302 21303 21304 21305# Preserves the interface, should it be implemented later 21306 21307 21308 21309# Check whether --with-perl was given. 21310if test ${with_perl+y} 21311then : 21312 withval=$with_perl; use_perl=$withval 21313else case e in #( 21314 e) use_perl=auto ;; 21315esac 21316fi 21317 21318 21319 21320if test "x$use_perl" = x"auto"; then 21321 # Extract the first word of "perl", so it can be a program name with args. 21322set dummy perl; ac_word=$2 21323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21324printf %s "checking for $ac_word... " >&6; } 21325if test ${ac_cv_path_PERL+y} 21326then : 21327 printf %s "(cached) " >&6 21328else case e in #( 21329 e) case $PERL in 21330 [\\/]* | ?:[\\/]*) 21331 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 21332 ;; 21333 *) 21334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21335for as_dir in $PATH 21336do 21337 IFS=$as_save_IFS 21338 case $as_dir in #((( 21339 '') as_dir=./ ;; 21340 */) ;; 21341 *) as_dir=$as_dir/ ;; 21342 esac 21343 for ac_exec_ext in '' $ac_executable_extensions; do 21344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21345 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 21346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21347 break 2 21348 fi 21349done 21350 done 21351IFS=$as_save_IFS 21352 21353 ;; 21354esac ;; 21355esac 21356fi 21357PERL=$ac_cv_path_PERL 21358if test -n "$PERL"; then 21359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21360printf "%s\n" "$PERL" >&6; } 21361else 21362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21363printf "%s\n" "no" >&6; } 21364fi 21365 21366 21367 if test "x$PERL" = "x"; then 21368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 21369printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 21370 have_perl=no 21371 else 21372 have_perl=yes 21373 fi 21374elif test "x$use_perl" = x"yes" ; then 21375 # Extract the first word of "perl", so it can be a program name with args. 21376set dummy perl; ac_word=$2 21377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21378printf %s "checking for $ac_word... " >&6; } 21379if test ${ac_cv_path_PERL+y} 21380then : 21381 printf %s "(cached) " >&6 21382else case e in #( 21383 e) case $PERL in 21384 [\\/]* | ?:[\\/]*) 21385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 21386 ;; 21387 *) 21388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21389for as_dir in $PATH 21390do 21391 IFS=$as_save_IFS 21392 case $as_dir in #((( 21393 '') as_dir=./ ;; 21394 */) ;; 21395 *) as_dir=$as_dir/ ;; 21396 esac 21397 for ac_exec_ext in '' $ac_executable_extensions; do 21398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21399 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 21400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21401 break 2 21402 fi 21403done 21404 done 21405IFS=$as_save_IFS 21406 21407 ;; 21408esac ;; 21409esac 21410fi 21411PERL=$ac_cv_path_PERL 21412if test -n "$PERL"; then 21413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21414printf "%s\n" "$PERL" >&6; } 21415else 21416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21417printf "%s\n" "no" >&6; } 21418fi 21419 21420 21421 if test "x$PERL" = "x"; then 21422 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 21423 fi 21424 have_perl=yes 21425elif test "x$use_perl" = x"no" ; then 21426 if test "x$PERL" != "x"; then 21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 21428printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 21429 fi 21430 have_perl=no 21431else 21432 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 21433fi 21434 21435 if test "$have_perl" = yes; then 21436 HAVE_PERL_TRUE= 21437 HAVE_PERL_FALSE='#' 21438else 21439 HAVE_PERL_TRUE='#' 21440 HAVE_PERL_FALSE= 21441fi 21442 21443 21444 21445# Required when PKG_CHECK_MODULES called within an if statement 21446 21447 21448 21449 21450 21451 21452 21453if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21454 if test -n "$ac_tool_prefix"; then 21455 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21456set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21458printf %s "checking for $ac_word... " >&6; } 21459if test ${ac_cv_path_PKG_CONFIG+y} 21460then : 21461 printf %s "(cached) " >&6 21462else case e in #( 21463 e) case $PKG_CONFIG in 21464 [\\/]* | ?:[\\/]*) 21465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21466 ;; 21467 *) 21468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21469for as_dir in $PATH 21470do 21471 IFS=$as_save_IFS 21472 case $as_dir in #((( 21473 '') as_dir=./ ;; 21474 */) ;; 21475 *) as_dir=$as_dir/ ;; 21476 esac 21477 for ac_exec_ext in '' $ac_executable_extensions; do 21478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21479 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21481 break 2 21482 fi 21483done 21484 done 21485IFS=$as_save_IFS 21486 21487 ;; 21488esac ;; 21489esac 21490fi 21491PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21492if test -n "$PKG_CONFIG"; then 21493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21494printf "%s\n" "$PKG_CONFIG" >&6; } 21495else 21496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21497printf "%s\n" "no" >&6; } 21498fi 21499 21500 21501fi 21502if test -z "$ac_cv_path_PKG_CONFIG"; then 21503 ac_pt_PKG_CONFIG=$PKG_CONFIG 21504 # Extract the first word of "pkg-config", so it can be a program name with args. 21505set dummy pkg-config; ac_word=$2 21506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21507printf %s "checking for $ac_word... " >&6; } 21508if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21509then : 21510 printf %s "(cached) " >&6 21511else case e in #( 21512 e) case $ac_pt_PKG_CONFIG in 21513 [\\/]* | ?:[\\/]*) 21514 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21515 ;; 21516 *) 21517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21518for as_dir in $PATH 21519do 21520 IFS=$as_save_IFS 21521 case $as_dir in #((( 21522 '') as_dir=./ ;; 21523 */) ;; 21524 *) as_dir=$as_dir/ ;; 21525 esac 21526 for ac_exec_ext in '' $ac_executable_extensions; do 21527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21528 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21530 break 2 21531 fi 21532done 21533 done 21534IFS=$as_save_IFS 21535 21536 ;; 21537esac ;; 21538esac 21539fi 21540ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21541if test -n "$ac_pt_PKG_CONFIG"; then 21542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21543printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21544else 21545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21546printf "%s\n" "no" >&6; } 21547fi 21548 21549 if test "x$ac_pt_PKG_CONFIG" = x; then 21550 PKG_CONFIG="" 21551 else 21552 case $cross_compiling:$ac_tool_warned in 21553yes:) 21554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21555printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21556ac_tool_warned=yes ;; 21557esac 21558 PKG_CONFIG=$ac_pt_PKG_CONFIG 21559 fi 21560else 21561 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21562fi 21563 21564fi 21565if test -n "$PKG_CONFIG"; then 21566 _pkg_min_version=0.9.0 21567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21568printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21569 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21571printf "%s\n" "yes" >&6; } 21572 else 21573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21574printf "%s\n" "no" >&6; } 21575 PKG_CONFIG="" 21576 fi 21577fi 21578 21579if test x"$CC_FOR_BUILD" = x; then 21580 if test x"$cross_compiling" = xyes; then 21581 for ac_prog in gcc cc 21582do 21583 # Extract the first word of "$ac_prog", so it can be a program name with args. 21584set dummy $ac_prog; ac_word=$2 21585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21586printf %s "checking for $ac_word... " >&6; } 21587if test ${ac_cv_prog_CC_FOR_BUILD+y} 21588then : 21589 printf %s "(cached) " >&6 21590else case e in #( 21591 e) if test -n "$CC_FOR_BUILD"; then 21592 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 21593else 21594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21595for as_dir in $PATH 21596do 21597 IFS=$as_save_IFS 21598 case $as_dir in #((( 21599 '') as_dir=./ ;; 21600 */) ;; 21601 *) as_dir=$as_dir/ ;; 21602 esac 21603 for ac_exec_ext in '' $ac_executable_extensions; do 21604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21605 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 21606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21607 break 2 21608 fi 21609done 21610 done 21611IFS=$as_save_IFS 21612 21613fi ;; 21614esac 21615fi 21616CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 21617if test -n "$CC_FOR_BUILD"; then 21618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 21619printf "%s\n" "$CC_FOR_BUILD" >&6; } 21620else 21621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21622printf "%s\n" "no" >&6; } 21623fi 21624 21625 21626 test -n "$CC_FOR_BUILD" && break 21627done 21628 21629 else 21630 CC_FOR_BUILD="$CC" 21631 fi 21632fi 21633 21634 21635if test x"$CPPFLAGS_FOR_BUILD" = x; then 21636 if test ! x"$cross_compiling" = xyes; then 21637 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 21638 fi 21639fi 21640 21641 21642if test x"$CFLAGS_FOR_BUILD" = x; then 21643 if test ! x"$cross_compiling" = xyes; then 21644 CFLAGS_FOR_BUILD=${CFLAGS} 21645 fi 21646fi 21647 21648 21649if test x"$LDFLAGS_FOR_BUILD" = x; then 21650 if test ! x"$cross_compiling" = xyes; then 21651 LDFLAGS_FOR_BUILD=${LDFLAGS} 21652 fi 21653fi 21654 21655 21656if test x"$EXEEXT_FOR_BUILD" = x; then 21657 if test x"$cross_compiling" = xno; then 21658 EXEEXT_FOR_BUILD=${EXEEXT} 21659 fi 21660 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty 21661fi 21662 21663 21664# Checks for pkg-config packages 21665 21666# Always required 21667X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1' 21668X11_EXTRA_DEPS="xcb >= 1.11.1" 21669 21670 21671 21672 21673 21674 21675 21676 21677if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21678 if test -n "$ac_tool_prefix"; then 21679 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21680set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21682printf %s "checking for $ac_word... " >&6; } 21683if test ${ac_cv_path_PKG_CONFIG+y} 21684then : 21685 printf %s "(cached) " >&6 21686else case e in #( 21687 e) case $PKG_CONFIG in 21688 [\\/]* | ?:[\\/]*) 21689 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21690 ;; 21691 *) 21692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21693for as_dir in $PATH 21694do 21695 IFS=$as_save_IFS 21696 case $as_dir in #((( 21697 '') as_dir=./ ;; 21698 */) ;; 21699 *) as_dir=$as_dir/ ;; 21700 esac 21701 for ac_exec_ext in '' $ac_executable_extensions; do 21702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21703 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21705 break 2 21706 fi 21707done 21708 done 21709IFS=$as_save_IFS 21710 21711 ;; 21712esac ;; 21713esac 21714fi 21715PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21716if test -n "$PKG_CONFIG"; then 21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21718printf "%s\n" "$PKG_CONFIG" >&6; } 21719else 21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21721printf "%s\n" "no" >&6; } 21722fi 21723 21724 21725fi 21726if test -z "$ac_cv_path_PKG_CONFIG"; then 21727 ac_pt_PKG_CONFIG=$PKG_CONFIG 21728 # Extract the first word of "pkg-config", so it can be a program name with args. 21729set dummy pkg-config; ac_word=$2 21730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21731printf %s "checking for $ac_word... " >&6; } 21732if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21733then : 21734 printf %s "(cached) " >&6 21735else case e in #( 21736 e) case $ac_pt_PKG_CONFIG in 21737 [\\/]* | ?:[\\/]*) 21738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21739 ;; 21740 *) 21741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21742for as_dir in $PATH 21743do 21744 IFS=$as_save_IFS 21745 case $as_dir in #((( 21746 '') as_dir=./ ;; 21747 */) ;; 21748 *) as_dir=$as_dir/ ;; 21749 esac 21750 for ac_exec_ext in '' $ac_executable_extensions; do 21751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21754 break 2 21755 fi 21756done 21757 done 21758IFS=$as_save_IFS 21759 21760 ;; 21761esac ;; 21762esac 21763fi 21764ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21765if test -n "$ac_pt_PKG_CONFIG"; then 21766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21767printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21768else 21769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21770printf "%s\n" "no" >&6; } 21771fi 21772 21773 if test "x$ac_pt_PKG_CONFIG" = x; then 21774 PKG_CONFIG="" 21775 else 21776 case $cross_compiling:$ac_tool_warned in 21777yes:) 21778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21779printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21780ac_tool_warned=yes ;; 21781esac 21782 PKG_CONFIG=$ac_pt_PKG_CONFIG 21783 fi 21784else 21785 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21786fi 21787 21788fi 21789if test -n "$PKG_CONFIG"; then 21790 _pkg_min_version=0.9.0 21791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21792printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21793 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21795printf "%s\n" "yes" >&6; } 21796 else 21797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21798printf "%s\n" "no" >&6; } 21799 PKG_CONFIG="" 21800 fi 21801fi 21802 21803 21804 21805# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 21806# was not expanded, since libX11 with no transport types is rather useless. 21807# 21808# If you're seeing an error here, be sure you installed the lib/xtrans module 21809# first and if it's not in the default location, that you set the ACLOCAL 21810# environment variable to find it, such as: 21811# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 21812 21813 21814# Transport selection macro from xtrans.m4 21815 21816 21817 case $host_os in 21818 mingw*) unixdef="no" ;; 21819 *) unixdef="yes" ;; 21820 esac 21821 # Check whether --enable-unix-transport was given. 21822if test ${enable_unix_transport+y} 21823then : 21824 enableval=$enable_unix_transport; UNIXCONN=$enableval 21825else case e in #( 21826 e) UNIXCONN=$unixdef ;; 21827esac 21828fi 21829 21830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21831printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21832 if test "$UNIXCONN" = "yes"; then 21833 21834printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21835 21836 fi 21837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21838printf "%s\n" "$UNIXCONN" >&6; } 21839 # Check whether --enable-tcp-transport was given. 21840if test ${enable_tcp_transport+y} 21841then : 21842 enableval=$enable_tcp_transport; TCPCONN=$enableval 21843else case e in #( 21844 e) TCPCONN=yes ;; 21845esac 21846fi 21847 21848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21849printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21851printf "%s\n" "$TCPCONN" >&6; } 21852 if test "$TCPCONN" = "yes"; then 21853 21854printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21855 21856 21857 # SVR4 hides these in libraries other than libc 21858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21859printf %s "checking for library containing socket... " >&6; } 21860if test ${ac_cv_search_socket+y} 21861then : 21862 printf %s "(cached) " >&6 21863else case e in #( 21864 e) ac_func_search_save_LIBS=$LIBS 21865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21866/* end confdefs.h. */ 21867 21868/* Override any GCC internal prototype to avoid an error. 21869 Use char because int might match the return type of a GCC 21870 builtin and then its argument prototype would still apply. 21871 The 'extern "C"' is for builds by C++ compilers; 21872 although this is not generally supported in C code supporting it here 21873 has little cost and some practical benefit (sr 110532). */ 21874#ifdef __cplusplus 21875extern "C" 21876#endif 21877char socket (void); 21878int 21879main (void) 21880{ 21881return socket (); 21882 ; 21883 return 0; 21884} 21885_ACEOF 21886for ac_lib in '' socket 21887do 21888 if test -z "$ac_lib"; then 21889 ac_res="none required" 21890 else 21891 ac_res=-l$ac_lib 21892 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21893 fi 21894 if ac_fn_c_try_link "$LINENO" 21895then : 21896 ac_cv_search_socket=$ac_res 21897fi 21898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21899 conftest$ac_exeext 21900 if test ${ac_cv_search_socket+y} 21901then : 21902 break 21903fi 21904done 21905if test ${ac_cv_search_socket+y} 21906then : 21907 21908else case e in #( 21909 e) ac_cv_search_socket=no ;; 21910esac 21911fi 21912rm conftest.$ac_ext 21913LIBS=$ac_func_search_save_LIBS ;; 21914esac 21915fi 21916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21917printf "%s\n" "$ac_cv_search_socket" >&6; } 21918ac_res=$ac_cv_search_socket 21919if test "$ac_res" != no 21920then : 21921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21922 21923fi 21924 21925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21926printf %s "checking for library containing gethostbyname... " >&6; } 21927if test ${ac_cv_search_gethostbyname+y} 21928then : 21929 printf %s "(cached) " >&6 21930else case e in #( 21931 e) ac_func_search_save_LIBS=$LIBS 21932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21933/* end confdefs.h. */ 21934 21935/* Override any GCC internal prototype to avoid an error. 21936 Use char because int might match the return type of a GCC 21937 builtin and then its argument prototype would still apply. 21938 The 'extern "C"' is for builds by C++ compilers; 21939 although this is not generally supported in C code supporting it here 21940 has little cost and some practical benefit (sr 110532). */ 21941#ifdef __cplusplus 21942extern "C" 21943#endif 21944char gethostbyname (void); 21945int 21946main (void) 21947{ 21948return gethostbyname (); 21949 ; 21950 return 0; 21951} 21952_ACEOF 21953for ac_lib in '' nsl 21954do 21955 if test -z "$ac_lib"; then 21956 ac_res="none required" 21957 else 21958 ac_res=-l$ac_lib 21959 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21960 fi 21961 if ac_fn_c_try_link "$LINENO" 21962then : 21963 ac_cv_search_gethostbyname=$ac_res 21964fi 21965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21966 conftest$ac_exeext 21967 if test ${ac_cv_search_gethostbyname+y} 21968then : 21969 break 21970fi 21971done 21972if test ${ac_cv_search_gethostbyname+y} 21973then : 21974 21975else case e in #( 21976 e) ac_cv_search_gethostbyname=no ;; 21977esac 21978fi 21979rm conftest.$ac_ext 21980LIBS=$ac_func_search_save_LIBS ;; 21981esac 21982fi 21983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21984printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 21985ac_res=$ac_cv_search_gethostbyname 21986if test "$ac_res" != no 21987then : 21988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21989 21990fi 21991 21992 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21994printf %s "checking for main in -lws2_32... " >&6; } 21995if test ${ac_cv_lib_ws2_32_main+y} 21996then : 21997 printf %s "(cached) " >&6 21998else case e in #( 21999 e) ac_check_lib_save_LIBS=$LIBS 22000LIBS="-lws2_32 $LIBS" 22001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22002/* end confdefs.h. */ 22003 22004 22005int 22006main (void) 22007{ 22008return main (); 22009 ; 22010 return 0; 22011} 22012_ACEOF 22013if ac_fn_c_try_link "$LINENO" 22014then : 22015 ac_cv_lib_ws2_32_main=yes 22016else case e in #( 22017 e) ac_cv_lib_ws2_32_main=no ;; 22018esac 22019fi 22020rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22021 conftest$ac_exeext conftest.$ac_ext 22022LIBS=$ac_check_lib_save_LIBS ;; 22023esac 22024fi 22025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 22026printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 22027if test "x$ac_cv_lib_ws2_32_main" = xyes 22028then : 22029 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 22030 22031 LIBS="-lws2_32 $LIBS" 22032 22033fi 22034 22035 fi 22036 22037 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 22038 # Check whether --enable-ipv6 was given. 22039if test ${enable_ipv6+y} 22040then : 22041 enableval=$enable_ipv6; IPV6CONN=$enableval 22042else case e in #( 22043 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22044if test "x$ac_cv_func_getaddrinfo" = xyes 22045then : 22046 IPV6CONN=yes 22047else case e in #( 22048 e) IPV6CONN=no ;; 22049esac 22050fi 22051 ;; 22052esac 22053fi 22054 22055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 22056printf %s "checking if IPv6 support should be built... " >&6; } 22057 if test "$IPV6CONN" = "yes"; then 22058 22059printf "%s\n" "#define IPv6 1" >>confdefs.h 22060 22061 fi 22062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 22063printf "%s\n" "$IPV6CONN" >&6; } 22064 22065 # 4.3BSD-Reno added a new member to struct sockaddr_in 22066 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 22067#include <sys/types.h> 22068#include <sys/socket.h> 22069#include <netinet/in.h> 22070 22071" 22072if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 22073then : 22074 22075printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 22076 22077fi 22078 22079 22080 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 22081 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 22082$ac_includes_default 22083#include <sys/socket.h> 22084" 22085if test "x$ac_cv_type_socklen_t" = xyes 22086then : 22087 22088printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 22089 22090 22091fi 22092 22093 22094 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 22095 # _XOPEN_SOURCE to get it (such as on Solaris) 22096 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22097$ac_includes_default 22098#include <sys/socket.h> 22099 22100" 22101if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22102then : 22103 22104fi 22105 22106 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 22107 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22108 unset ac_cv_member_struct_msghdr_msg_control 22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 22110printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 22111 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22112#define _XOPEN_SOURCE 600 22113$ac_includes_default 22114#include <sys/socket.h> 22115 22116" 22117if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22118then : 22119 22120printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 22121 22122 22123fi 22124 22125 fi 22126 # If that didn't work, fall back to XPG5/UNIX98 with C89 22127 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22128 unset ac_cv_member_struct_msghdr_msg_control 22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 22130printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22131 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22132#define _XOPEN_SOURCE 500 22133$ac_includes_default 22134#include <sys/socket.h> 22135 22136" 22137if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22138then : 22139 22140printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22141 22142 22143fi 22144 22145 fi 22146 22147 22148 22149 fi 22150 case $host_os in 22151 solaris*) localdef="yes" ;; 22152 *) localdef="no" ;; 22153 esac 22154 # Check whether --enable-local-transport was given. 22155if test ${enable_local_transport+y} 22156then : 22157 enableval=$enable_local_transport; LOCALCONN=$enableval 22158else case e in #( 22159 e) LOCALCONN=$localdef ;; 22160esac 22161fi 22162 22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22164printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22166printf "%s\n" "$LOCALCONN" >&6; } 22167 if test "$LOCALCONN" = "yes"; then 22168 22169printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22170 22171 fi 22172 22173 # Other functions Xtrans may need 22174 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22175if test "x$ac_cv_func_strcasecmp" = xyes 22176then : 22177 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22178 22179fi 22180ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22181if test "x$ac_cv_func_strlcpy" = xyes 22182then : 22183 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22184 22185fi 22186 22187 22188 22189 22190# Check for dlopen 22191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 22192printf %s "checking for library containing dlopen... " >&6; } 22193if test ${ac_cv_search_dlopen+y} 22194then : 22195 printf %s "(cached) " >&6 22196else case e in #( 22197 e) ac_func_search_save_LIBS=$LIBS 22198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22199/* end confdefs.h. */ 22200 22201/* Override any GCC internal prototype to avoid an error. 22202 Use char because int might match the return type of a GCC 22203 builtin and then its argument prototype would still apply. 22204 The 'extern "C"' is for builds by C++ compilers; 22205 although this is not generally supported in C code supporting it here 22206 has little cost and some practical benefit (sr 110532). */ 22207#ifdef __cplusplus 22208extern "C" 22209#endif 22210char dlopen (void); 22211int 22212main (void) 22213{ 22214return dlopen (); 22215 ; 22216 return 0; 22217} 22218_ACEOF 22219for ac_lib in '' dl svld 22220do 22221 if test -z "$ac_lib"; then 22222 ac_res="none required" 22223 else 22224 ac_res=-l$ac_lib 22225 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22226 fi 22227 if ac_fn_c_try_link "$LINENO" 22228then : 22229 ac_cv_search_dlopen=$ac_res 22230fi 22231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22232 conftest$ac_exeext 22233 if test ${ac_cv_search_dlopen+y} 22234then : 22235 break 22236fi 22237done 22238if test ${ac_cv_search_dlopen+y} 22239then : 22240 22241else case e in #( 22242 e) ac_cv_search_dlopen=no ;; 22243esac 22244fi 22245rm conftest.$ac_ext 22246LIBS=$ac_func_search_save_LIBS ;; 22247esac 22248fi 22249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 22250printf "%s\n" "$ac_cv_search_dlopen" >&6; } 22251ac_res=$ac_cv_search_dlopen 22252if test "$ac_res" != no 22253then : 22254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22255 22256fi 22257 22258if test "x$ac_cv_search_dlopen" != xno; then 22259 22260printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 22261 22262 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 22263if test "x$ac_cv_header_dlfcn_h" = xyes 22264then : 22265 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 22266 22267fi 22268 22269fi 22270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 22271printf %s "checking if run-time linking is supported... " >&6; } 22272if test "x$ac_cv_header_dlfcn_h" = xyes; then 22273 HAVE_LOADABLE_MODULES=yes 22274else 22275 HAVE_LOADABLE_MODULES=no 22276fi 22277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 22278printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; } 22279 22280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 22281printf %s "checking if loadable i18n module support should be enabled... " >&6; } 22282# Check whether --enable-loadable-i18n was given. 22283if test ${enable_loadable_i18n+y} 22284then : 22285 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 22286else case e in #( 22287 e) XLIB_LOADABLE_I18N="no" ;; 22288esac 22289fi 22290 22291if test x$XLIB_LOADABLE_I18N = xyes; then 22292 if test x$HAVE_LOADABLE_MODULES = xno; then 22293 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 22294 fi 22295 22296printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h 22297 22298 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 22299 22300fi 22301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 22302printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; } 22303 22304 if test x$XLIB_LOADABLE_I18N = xyes; then 22305 XLIB_LOADABLE_I18N_TRUE= 22306 XLIB_LOADABLE_I18N_FALSE='#' 22307else 22308 XLIB_LOADABLE_I18N_TRUE='#' 22309 XLIB_LOADABLE_I18N_FALSE= 22310fi 22311 22312 22313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 22314printf %s "checking if loadable Xcursor library support should be enabled... " >&6; } 22315# Check whether --enable-loadable-xcursor was given. 22316if test ${enable_loadable_xcursor+y} 22317then : 22318 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 22319else case e in #( 22320 e) XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES ;; 22321esac 22322fi 22323 22324if test x$XLIB_LOADABLE_XCURSOR = xyes; then 22325 22326printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 22327 22328fi 22329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 22330printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; } 22331 22332# Check whether --enable-thread-safety-constructor was given. 22333if test ${enable_thread_safety_constructor+y} 22334then : 22335 enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval 22336else case e in #( 22337 e) USE_THREAD_SAFETY_CONSTRUCTOR="yes" ;; 22338esac 22339fi 22340 22341if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then 22342 22343printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h 22344 22345fi 22346 22347# Checks for header files. 22348ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 22349if test "x$ac_cv_header_sys_filio_h" = xyes 22350then : 22351 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 22352 22353fi 22354ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 22355if test "x$ac_cv_header_sys_select_h" = xyes 22356then : 22357 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 22358 22359fi 22360ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 22361if test "x$ac_cv_header_sys_ioctl_h" = xyes 22362then : 22363 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 22364 22365fi 22366ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 22367if test "x$ac_cv_header_sys_socket_h" = xyes 22368then : 22369 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 22370 22371fi 22372 22373 22374# Checks for typedefs, structures, and compiler characteristics. 22375 22376 22377 22378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5 22379printf %s "checking for __builtin_popcountl... " >&6; } 22380if test ${ax_cv_have___builtin_popcountl+y} 22381then : 22382 printf %s "(cached) " >&6 22383else case e in #( 22384 e) 22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22386/* end confdefs.h. */ 22387 22388int 22389main (void) 22390{ 22391 22392 __builtin_popcountl(0) 22393 22394 ; 22395 return 0; 22396} 22397_ACEOF 22398if ac_fn_c_try_link "$LINENO" 22399then : 22400 ax_cv_have___builtin_popcountl=yes 22401else case e in #( 22402 e) ax_cv_have___builtin_popcountl=no ;; 22403esac 22404fi 22405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22406 conftest$ac_exeext conftest.$ac_ext 22407 ;; 22408esac 22409fi 22410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5 22411printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; } 22412 22413 if test yes = $ax_cv_have___builtin_popcountl 22414then : 22415 22416printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h 22417 22418fi 22419 22420 22421 22422 22423# Checks for library functions. 22424ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 22425if test "x$ac_cv_func_strtol" = xyes 22426then : 22427 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h 22428 22429fi 22430ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 22431if test "x$ac_cv_func_seteuid" = xyes 22432then : 22433 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 22434 22435fi 22436 22437ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 22438if test "x$ac_cv_func_reallocarray" = xyes 22439then : 22440 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22441 22442else case e in #( 22443 e) case " $LIBOBJS " in 22444 *" reallocarray.$ac_objext "* ) ;; 22445 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22446 ;; 22447esac 22448 ;; 22449esac 22450fi 22451 22452# Used in lcFile.c (see also --enable-xlocaledir settings below) 22453XLOCALEDIR_IS_SAFE="no" 22454ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 22455if test "x$ac_cv_have_decl_issetugid" = xyes 22456then : 22457 22458fi 22459ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 22460if test "x$ac_cv_func_issetugid" = xyes 22461then : 22462 22463fi 22464 22465if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 22466 XLOCALEDIR_IS_SAFE="yes" 22467 22468printf "%s\n" "#define HASSETUGID 1" >>confdefs.h 22469 22470fi 22471ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 22472if test "x$ac_cv_func_getresuid" = xyes 22473then : 22474 XLOCALEDIR_IS_SAFE="yes" 22475 22476printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h 22477 22478fi 22479 22480# Used in Font.c 22481ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 22482if test "x$ac_cv_func_shmat" = xyes 22483then : 22484 22485printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 22486 22487fi 22488 22489 22490# Checks for system services 22491# AC_PATH_XTRA 22492 22493# arch specific things 22494WCHAR32="1" 22495case $host_os in 22496 os2*) os2="true" ; WCHAR32="0" ;; 22497 *) ;; 22498esac 22499 22500 22501 if test x$os2 = xtrue; then 22502 OS2_TRUE= 22503 OS2_FALSE='#' 22504else 22505 OS2_TRUE='#' 22506 OS2_FALSE= 22507fi 22508 22509 22510 22511# Check whether --with-launchd was given. 22512if test ${with_launchd+y} 22513then : 22514 withval=$with_launchd; LAUNCHD=$withval 22515else case e in #( 22516 e) LAUNCHD=auto ;; 22517esac 22518fi 22519 22520if test "x$LAUNCHD" = xauto; then 22521 unset LAUNCHD 22522 # Extract the first word of "launchd", so it can be a program name with args. 22523set dummy launchd; ac_word=$2 22524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22525printf %s "checking for $ac_word... " >&6; } 22526if test ${ac_cv_prog_LAUNCHD+y} 22527then : 22528 printf %s "(cached) " >&6 22529else case e in #( 22530 e) if test -n "$LAUNCHD"; then 22531 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 22532else 22533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22534for as_dir in $PATH$PATH_SEPARATOR/sbin 22535do 22536 IFS=$as_save_IFS 22537 case $as_dir in #((( 22538 '') as_dir=./ ;; 22539 */) ;; 22540 *) as_dir=$as_dir/ ;; 22541 esac 22542 for ac_exec_ext in '' $ac_executable_extensions; do 22543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22544 ac_cv_prog_LAUNCHD="yes" 22545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22546 break 2 22547 fi 22548done 22549 done 22550IFS=$as_save_IFS 22551 22552 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 22553fi ;; 22554esac 22555fi 22556LAUNCHD=$ac_cv_prog_LAUNCHD 22557if test -n "$LAUNCHD"; then 22558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 22559printf "%s\n" "$LAUNCHD" >&6; } 22560else 22561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22562printf "%s\n" "no" >&6; } 22563fi 22564 22565 22566fi 22567 22568if test "x$LAUNCHD" = xyes ; then 22569 22570printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h 22571 22572 22573printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h 22574 22575fi 22576 22577# Check whether --enable-xthreads was given. 22578if test ${enable_xthreads+y} 22579then : 22580 enableval=$enable_xthreads; xthreads=$enableval 22581else case e in #( 22582 e) xthreads=yes ;; 22583esac 22584fi 22585 22586 22587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 22588printf %s "checking for getpwuid_r in -lc... " >&6; } 22589if test ${ac_cv_lib_c_getpwuid_r+y} 22590then : 22591 printf %s "(cached) " >&6 22592else case e in #( 22593 e) ac_check_lib_save_LIBS=$LIBS 22594LIBS="-lc $LIBS" 22595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22596/* end confdefs.h. */ 22597 22598/* Override any GCC internal prototype to avoid an error. 22599 Use char because int might match the return type of a GCC 22600 builtin and then its argument prototype would still apply. 22601 The 'extern "C"' is for builds by C++ compilers; 22602 although this is not generally supported in C code supporting it here 22603 has little cost and some practical benefit (sr 110532). */ 22604#ifdef __cplusplus 22605extern "C" 22606#endif 22607char getpwuid_r (void); 22608int 22609main (void) 22610{ 22611return getpwuid_r (); 22612 ; 22613 return 0; 22614} 22615_ACEOF 22616if ac_fn_c_try_link "$LINENO" 22617then : 22618 ac_cv_lib_c_getpwuid_r=yes 22619else case e in #( 22620 e) ac_cv_lib_c_getpwuid_r=no ;; 22621esac 22622fi 22623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22624 conftest$ac_exeext conftest.$ac_ext 22625LIBS=$ac_check_lib_save_LIBS ;; 22626esac 22627fi 22628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 22629printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; } 22630if test "x$ac_cv_lib_c_getpwuid_r" = xyes 22631then : 22632 mtsafeapi="yes" 22633else case e in #( 22634 e) mtsafeapi="no" ;; 22635esac 22636fi 22637 22638 22639case x$xthreads in 22640xyes) 22641 22642printf "%s\n" "#define XTHREADS 1" >>confdefs.h 22643 22644 if test x$mtsafeapi = xyes 22645 then 22646 22647printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h 22648 22649 fi 22650 ;; 22651*) 22652 ;; 22653esac 22654 22655# XXX incomplete, please fill this in 22656if test x$xthreads = xyes ; then 22657 case $host_os in 22658 linux*|gnu*|k*bsd*-gnu) 22659 XTHREADLIB=-lpthread ;; 22660 netbsd*) 22661 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 22662 XTHREADLIB="-lpthread" ;; 22663 freebsd*) 22664 XTHREAD_CFLAGS="-D_THREAD_SAFE" 22665 XTHREADLIB="-pthread" ;; 22666 dragonfly*|openbsd*) 22667 XTHREADLIB="-pthread" ;; 22668 solaris*) 22669 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 22670 esac 22671fi 22672 22673 22674 22675if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then 22676 USE_THREAD_LIBS="$XTHREADLIB" 22677else 22678 # This should be kept in sync with libxcb 22679 case $host_os in 22680 linux*|darwin*|solaris*) ;; 22681 *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;; 22682 esac 22683fi 22684 22685 22686ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 22687if test "x$ac_cv_func_poll" = xyes 22688then : 22689 22690printf "%s\n" "#define USE_POLL 1" >>confdefs.h 22691 22692fi 22693 22694 22695# 22696# Find keysymdef.h 22697# 22698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 22699printf %s "checking keysym definitions... " >&6; } 22700 22701# Check whether --with-keysymdefdir was given. 22702if test ${with_keysymdefdir+y} 22703then : 22704 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 22705else case e in #( 22706 e) KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 ;; 22707esac 22708fi 22709 22710 22711if test ! -d "$KEYSYMDEFDIR"; then 22712 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 22713fi 22714 22715FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 22716for i in $FILES; do 22717 if test -f "$KEYSYMDEFDIR/$i"; then 22718 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 22719 elif test "x$i" = "xkeysymdef.h"; then 22720 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 22721 fi 22722done 22723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 22724printf "%s\n" "$KEYSYMDEFS" >&6; } 22725 22726 22727# Check whether --enable-xcms was given. 22728if test ${enable_xcms+y} 22729then : 22730 enableval=$enable_xcms; XCMS=$enableval 22731else case e in #( 22732 e) XCMS=yes ;; 22733esac 22734fi 22735 22736 if test x$XCMS = xyes ; then 22737 XCMS_TRUE= 22738 XCMS_FALSE='#' 22739else 22740 XCMS_TRUE='#' 22741 XCMS_FALSE= 22742fi 22743 22744if test x"$XCMS" = "xyes"; then 22745 22746printf "%s\n" "#define XCMS 1" >>confdefs.h 22747 22748fi 22749 22750# Check whether --enable-xlocale was given. 22751if test ${enable_xlocale+y} 22752then : 22753 enableval=$enable_xlocale; XLOCALE=$enableval 22754else case e in #( 22755 e) XLOCALE=yes ;; 22756esac 22757fi 22758 22759 22760 if test x$XLOCALE = xyes ; then 22761 XLOCALE_TRUE= 22762 XLOCALE_FALSE='#' 22763else 22764 XLOCALE_TRUE='#' 22765 XLOCALE_FALSE= 22766fi 22767 22768if test x"$XLOCALE" = "xyes"; then 22769 22770printf "%s\n" "#define XLOCALE 1" >>confdefs.h 22771 22772fi 22773 22774# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 22775# don't have either issetugid() or getresuid(), and you need to protect 22776# clients that are setgid or setuid to an id other than 0. 22777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 22778printf %s "checking if XLOCALEDIR support should be enabled... " >&6; } 22779# Check whether --enable-xlocaledir was given. 22780if test ${enable_xlocaledir+y} 22781then : 22782 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 22783else case e in #( 22784 e) ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE ;; 22785esac 22786fi 22787 22788if test "x$ENABLE_XLOCALEDIR" = "xno"; then 22789 22790printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h 22791 22792fi 22793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 22794printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; } 22795 22796# Check whether --enable-xf86bigfont was given. 22797if test ${enable_xf86bigfont+y} 22798then : 22799 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 22800else case e in #( 22801 e) XF86BIGFONT="yes" ;; 22802esac 22803fi 22804 22805if test "x$XF86BIGFONT" = "xyes"; then 22806 22807pkg_failed=no 22808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 22809printf %s "checking for BIGFONT... " >&6; } 22810 22811if test -n "$BIGFONT_CFLAGS"; then 22812 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 22813 elif test -n "$PKG_CONFIG"; then 22814 if test -n "$PKG_CONFIG" && \ 22815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 22816 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 22817 ac_status=$? 22818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22819 test $ac_status = 0; }; then 22820 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 22821 test "x$?" != "x0" && pkg_failed=yes 22822else 22823 pkg_failed=yes 22824fi 22825 else 22826 pkg_failed=untried 22827fi 22828if test -n "$BIGFONT_LIBS"; then 22829 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 22830 elif test -n "$PKG_CONFIG"; then 22831 if test -n "$PKG_CONFIG" && \ 22832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 22833 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 22834 ac_status=$? 22835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22836 test $ac_status = 0; }; then 22837 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 22838 test "x$?" != "x0" && pkg_failed=yes 22839else 22840 pkg_failed=yes 22841fi 22842 else 22843 pkg_failed=untried 22844fi 22845 22846 22847 22848if test $pkg_failed = yes; then 22849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22850printf "%s\n" "no" >&6; } 22851 22852if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22853 _pkg_short_errors_supported=yes 22854else 22855 _pkg_short_errors_supported=no 22856fi 22857 if test $_pkg_short_errors_supported = yes; then 22858 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 22859 else 22860 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 22861 fi 22862 # Put the nasty error message in config.log where it belongs 22863 echo "$BIGFONT_PKG_ERRORS" >&5 22864 22865 XF86BIGFONT="no" 22866elif test $pkg_failed = untried; then 22867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22868printf "%s\n" "no" >&6; } 22869 XF86BIGFONT="no" 22870else 22871 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 22872 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 22873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22874printf "%s\n" "yes" >&6; } 22875 22876printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 22877 22878fi 22879fi 22880 22881# Check whether --enable-xkb was given. 22882if test ${enable_xkb+y} 22883then : 22884 enableval=$enable_xkb; XKB=$enableval 22885else case e in #( 22886 e) XKB=yes ;; 22887esac 22888fi 22889 22890 22891 if test x$XKB = xyes ; then 22892 XKB_TRUE= 22893 XKB_FALSE='#' 22894else 22895 XKB_TRUE='#' 22896 XKB_FALSE= 22897fi 22898 22899if test x"$XKB" = "xyes"; then 22900 XKBPROTO_REQUIRES="kbproto" 22901 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 22902 22903printf "%s\n" "#define XKB 1" >>confdefs.h 22904 22905else 22906 XKBPROTO_REQUIRES="" 22907fi 22908 22909 22910 22911ac_func= 22912for ac_item in $ac_func_c_list 22913do 22914 if test $ac_func; then 22915 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 22916 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 22917 echo "#define $ac_item 1" >> confdefs.h 22918 fi 22919 ac_func= 22920 else 22921 ac_func=$ac_item 22922 fi 22923done 22924 22925 22926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 22927printf %s "checking for working mmap... " >&6; } 22928if test ${ac_cv_func_mmap_fixed_mapped+y} 22929then : 22930 printf %s "(cached) " >&6 22931else case e in #( 22932 e) if test "$cross_compiling" = yes 22933then : 22934 case "$host_os" in # (( 22935 # Guess yes on platforms where we know the result. 22936 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 22937 # If we don't know, assume the worst. 22938 *) ac_cv_func_mmap_fixed_mapped=no ;; 22939 esac 22940else case e in #( 22941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22942/* end confdefs.h. */ 22943$ac_includes_default 22944/* malloc might have been renamed as rpl_malloc. */ 22945#undef malloc 22946 22947/* Thanks to Mike Haertel and Jim Avera for this test. 22948 Here is a matrix of mmap possibilities: 22949 mmap private not fixed 22950 mmap private fixed at somewhere currently unmapped 22951 mmap private fixed at somewhere already mapped 22952 mmap shared not fixed 22953 mmap shared fixed at somewhere currently unmapped 22954 mmap shared fixed at somewhere already mapped 22955 For private mappings, we should verify that changes cannot be read() 22956 back from the file, nor mmap's back from the file at a different 22957 address. (There have been systems where private was not correctly 22958 implemented like the infamous i386 svr4.0, and systems where the 22959 VM page cache was not coherent with the file system buffer cache 22960 like early versions of FreeBSD and possibly contemporary NetBSD.) 22961 For shared mappings, we should conversely verify that changes get 22962 propagated back to all the places they're supposed to be. */ 22963 22964#include <fcntl.h> 22965#include <sys/mman.h> 22966 22967#ifndef getpagesize 22968/* Prefer sysconf to the legacy getpagesize function, as getpagesize has 22969 been removed from POSIX and is limited to page sizes that fit in 'int'. */ 22970# ifdef _SC_PAGESIZE 22971# define getpagesize() sysconf (_SC_PAGESIZE) 22972# elif defined _SC_PAGE_SIZE 22973# define getpagesize() sysconf (_SC_PAGE_SIZE) 22974# elif HAVE_GETPAGESIZE 22975int getpagesize (); 22976# else 22977# ifdef HAVE_SYS_PARAM_H 22978# include <sys/param.h> 22979# ifdef EXEC_PAGESIZE 22980# define getpagesize() EXEC_PAGESIZE 22981# else /* no EXEC_PAGESIZE */ 22982# ifdef NBPG 22983# define getpagesize() NBPG * CLSIZE 22984# ifndef CLSIZE 22985# define CLSIZE 1 22986# endif /* no CLSIZE */ 22987# else /* no NBPG */ 22988# ifdef NBPC 22989# define getpagesize() NBPC 22990# else /* no NBPC */ 22991# ifdef PAGESIZE 22992# define getpagesize() PAGESIZE 22993# endif /* PAGESIZE */ 22994# endif /* no NBPC */ 22995# endif /* no NBPG */ 22996# endif /* no EXEC_PAGESIZE */ 22997# else /* no HAVE_SYS_PARAM_H */ 22998# define getpagesize() 8192 /* punt totally */ 22999# endif /* no HAVE_SYS_PARAM_H */ 23000# endif 23001#endif 23002 23003int 23004main (void) 23005{ 23006 char *data, *data2, *data3; 23007 const char *cdata2; 23008 long i, pagesize; 23009 int fd, fd2; 23010 23011 pagesize = getpagesize (); 23012 23013 /* First, make a file with some known garbage in it. */ 23014 data = (char *) malloc (pagesize); 23015 if (!data) 23016 return 1; 23017 for (i = 0; i < pagesize; ++i) 23018 *(data + i) = rand (); 23019 umask (0); 23020 fd = creat ("conftest.mmap", 0600); 23021 if (fd < 0) 23022 return 2; 23023 if (write (fd, data, pagesize) != pagesize) 23024 return 3; 23025 close (fd); 23026 23027 /* Next, check that the tail of a page is zero-filled. File must have 23028 non-zero length, otherwise we risk SIGBUS for entire page. */ 23029 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 23030 if (fd2 < 0) 23031 return 4; 23032 cdata2 = ""; 23033 if (write (fd2, cdata2, 1) != 1) 23034 return 5; 23035 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 23036 if (data2 == MAP_FAILED) 23037 return 6; 23038 for (i = 0; i < pagesize; ++i) 23039 if (*(data2 + i)) 23040 return 7; 23041 close (fd2); 23042 /* 'return 8;' not currently used. */ 23043 23044 /* Next, try to mmap the file at a fixed address which already has 23045 something else allocated at it. If we can, also make sure that 23046 we see the same garbage. */ 23047 fd = open ("conftest.mmap", O_RDWR); 23048 if (fd < 0) 23049 return 9; 23050 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 23051 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 23052 return 10; 23053 for (i = 0; i < pagesize; ++i) 23054 if (*(data + i) != *(data2 + i)) 23055 return 11; 23056 23057 /* Finally, make sure that changes to the mapped area do not 23058 percolate back to the file as seen by read(). (This is a bug on 23059 some variants of i386 svr4.0.) */ 23060 for (i = 0; i < pagesize; ++i) 23061 *(data2 + i) = *(data2 + i) + 1; 23062 data3 = (char *) malloc (pagesize); 23063 if (!data3) 23064 return 12; 23065 if (read (fd, data3, pagesize) != pagesize) 23066 return 13; 23067 for (i = 0; i < pagesize; ++i) 23068 if (*(data + i) != *(data3 + i)) 23069 return 14; 23070 close (fd); 23071 free (data); 23072 free (data3); 23073 return 0; 23074} 23075_ACEOF 23076if ac_fn_c_try_run "$LINENO" 23077then : 23078 ac_cv_func_mmap_fixed_mapped=yes 23079else case e in #( 23080 e) ac_cv_func_mmap_fixed_mapped=no ;; 23081esac 23082fi 23083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23084 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 23085esac 23086fi 23087 ;; 23088esac 23089fi 23090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 23091printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 23092if test $ac_cv_func_mmap_fixed_mapped = yes; then 23093 23094printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 23095 23096fi 23097rm -f conftest.mmap conftest.txt 23098 23099composecache_default=$ac_cv_func_mmap_fixed_mapped 23100ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 23101if test "x$ac_cv_func_nl_langinfo" = xyes 23102then : 23103 23104else case e in #( 23105 e) composecache_default=no ;; 23106esac 23107fi 23108 23109# Check whether --enable-composecache was given. 23110if test ${enable_composecache+y} 23111then : 23112 enableval=$enable_composecache; COMPOSECACHE=$enableval 23113else case e in #( 23114 e) COMPOSECACHE=$composecache_default ;; 23115esac 23116fi 23117 23118if test x"$COMPOSECACHE" = "xyes"; then 23119 23120printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h 23121 23122fi 23123 23124# Allow checking code with lint, sparse, etc. 23125 23126 23127 23128 23129 23130# Check whether --with-lint was given. 23131if test ${with_lint+y} 23132then : 23133 withval=$with_lint; use_lint=$withval 23134else case e in #( 23135 e) use_lint=no ;; 23136esac 23137fi 23138 23139 23140# Obtain platform specific info like program name and options 23141# The lint program on FreeBSD and NetBSD is different from the one on Solaris 23142case $host_os in 23143 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 23144 lint_name=splint 23145 lint_options="-badflag" 23146 ;; 23147 *freebsd* | *netbsd*) 23148 lint_name=lint 23149 lint_options="-u -b" 23150 ;; 23151 *solaris*) 23152 lint_name=lint 23153 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 23154 ;; 23155esac 23156 23157# Test for the presence of the program (either guessed by the code or spelled out by the user) 23158if test "x$use_lint" = x"yes" ; then 23159 # Extract the first word of "$lint_name", so it can be a program name with args. 23160set dummy $lint_name; ac_word=$2 23161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23162printf %s "checking for $ac_word... " >&6; } 23163if test ${ac_cv_path_LINT+y} 23164then : 23165 printf %s "(cached) " >&6 23166else case e in #( 23167 e) case $LINT in 23168 [\\/]* | ?:[\\/]*) 23169 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 23170 ;; 23171 *) 23172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23173for as_dir in $PATH 23174do 23175 IFS=$as_save_IFS 23176 case $as_dir in #((( 23177 '') as_dir=./ ;; 23178 */) ;; 23179 *) as_dir=$as_dir/ ;; 23180 esac 23181 for ac_exec_ext in '' $ac_executable_extensions; do 23182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23183 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 23184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23185 break 2 23186 fi 23187done 23188 done 23189IFS=$as_save_IFS 23190 23191 ;; 23192esac ;; 23193esac 23194fi 23195LINT=$ac_cv_path_LINT 23196if test -n "$LINT"; then 23197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 23198printf "%s\n" "$LINT" >&6; } 23199else 23200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23201printf "%s\n" "no" >&6; } 23202fi 23203 23204 23205 if test "x$LINT" = "x"; then 23206 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 23207 fi 23208elif test "x$use_lint" = x"no" ; then 23209 if test "x$LINT" != "x"; then 23210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 23211printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 23212 fi 23213else 23214 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 23215fi 23216 23217# User supplied flags override default flags 23218if test "x$LINT_FLAGS" != "x"; then 23219 lint_options=$LINT_FLAGS 23220fi 23221 23222LINT_FLAGS=$lint_options 23223 23224 if test "x$LINT" != x; then 23225 LINT_TRUE= 23226 LINT_FALSE='#' 23227else 23228 LINT_TRUE='#' 23229 LINT_FALSE= 23230fi 23231 23232 23233 23234 23235 23236# Check whether --enable-lint-library was given. 23237if test ${enable_lint_library+y} 23238then : 23239 enableval=$enable_lint_library; make_lint_lib=$enableval 23240else case e in #( 23241 e) make_lint_lib=no ;; 23242esac 23243fi 23244 23245 23246if test "x$make_lint_lib" = x"yes" ; then 23247 LINTLIB=llib-lX11.ln 23248 if test "x$LINT" = "x"; then 23249 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 23250 fi 23251elif test "x$make_lint_lib" != x"no" ; then 23252 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 23253fi 23254 23255 23256 if test x$make_lint_lib != xno; then 23257 MAKE_LINT_LIB_TRUE= 23258 MAKE_LINT_LIB_FALSE='#' 23259else 23260 MAKE_LINT_LIB_TRUE='#' 23261 MAKE_LINT_LIB_FALSE= 23262fi 23263 23264 23265 23266 23267X11_DATADIR="${datadir}/X11" 23268 23269 prefix_NONE= 23270 exec_prefix_NONE= 23271 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23272 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23273 eval ax_define_dir="\"$X11_DATADIR\"" 23274 eval ax_define_dir="\"$ax_define_dir\"" 23275 X11_DATADIR="$ax_define_dir" 23276 23277 23278printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h 23279 23280 test "$prefix_NONE" && prefix=NONE 23281 test "$exec_prefix_NONE" && exec_prefix=NONE 23282 23283 23284 23285X11_LIBDIR="${libdir}/X11" 23286 23287 prefix_NONE= 23288 exec_prefix_NONE= 23289 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23290 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23291 eval ax_define_dir="\"$X11_LIBDIR\"" 23292 eval ax_define_dir="\"$ax_define_dir\"" 23293 X11_LIBDIR="$ax_define_dir" 23294 23295 23296printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h 23297 23298 test "$prefix_NONE" && prefix=NONE 23299 test "$exec_prefix_NONE" && exec_prefix=NONE 23300 23301 23302 23303 23304pkg_failed=no 23305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 23306printf %s "checking for X11... " >&6; } 23307 23308if test -n "$X11_CFLAGS"; then 23309 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 23310 elif test -n "$PKG_CONFIG"; then 23311 if test -n "$PKG_CONFIG" && \ 23312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 23313 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 23314 ac_status=$? 23315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23316 test $ac_status = 0; }; then 23317 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 23318 test "x$?" != "x0" && pkg_failed=yes 23319else 23320 pkg_failed=yes 23321fi 23322 else 23323 pkg_failed=untried 23324fi 23325if test -n "$X11_LIBS"; then 23326 pkg_cv_X11_LIBS="$X11_LIBS" 23327 elif test -n "$PKG_CONFIG"; then 23328 if test -n "$PKG_CONFIG" && \ 23329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 23330 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 23331 ac_status=$? 23332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23333 test $ac_status = 0; }; then 23334 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 23335 test "x$?" != "x0" && pkg_failed=yes 23336else 23337 pkg_failed=yes 23338fi 23339 else 23340 pkg_failed=untried 23341fi 23342 23343 23344 23345if test $pkg_failed = yes; then 23346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23347printf "%s\n" "no" >&6; } 23348 23349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23350 _pkg_short_errors_supported=yes 23351else 23352 _pkg_short_errors_supported=no 23353fi 23354 if test $_pkg_short_errors_supported = yes; then 23355 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 23356 else 23357 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 23358 fi 23359 # Put the nasty error message in config.log where it belongs 23360 echo "$X11_PKG_ERRORS" >&5 23361 23362 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 23363 23364$X11_PKG_ERRORS 23365 23366Consider adjusting the PKG_CONFIG_PATH environment variable if you 23367installed software in a non-standard prefix. 23368 23369Alternatively, you may set the environment variables X11_CFLAGS 23370and X11_LIBS to avoid the need to call pkg-config. 23371See the pkg-config man page for more details." "$LINENO" 5 23372elif test $pkg_failed = untried; then 23373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23374printf "%s\n" "no" >&6; } 23375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23376printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23377as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23378is in your PATH or set the PKG_CONFIG environment variable to the full 23379path to pkg-config. 23380 23381Alternatively, you may set the environment variables X11_CFLAGS 23382and X11_LIBS to avoid the need to call pkg-config. 23383See the pkg-config man page for more details. 23384 23385To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23386See 'config.log' for more details" "$LINENO" 5; } 23387else 23388 X11_CFLAGS=$pkg_cv_X11_CFLAGS 23389 X11_LIBS=$pkg_cv_X11_LIBS 23390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23391printf "%s\n" "yes" >&6; } 23392 23393fi 23394X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 23395 23396# 23397# Yes, it would be nice to put the locale data in 23398# /usr/share, but the locale stuff includes loadable 23399# libraries which must be located in the same directory 23400# as the other locale data, so for now, everything lives 23401# in ${libdir} 23402# 23403 23404X11_LOCALEDATADIR="${X11_DATADIR}/locale" 23405 23406 prefix_NONE= 23407 exec_prefix_NONE= 23408 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23409 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23410 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 23411 eval ax_define_dir="\"$ax_define_dir\"" 23412 XLOCALEDATADIR="$ax_define_dir" 23413 23414 23415printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h 23416 23417 test "$prefix_NONE" && prefix=NONE 23418 test "$exec_prefix_NONE" && exec_prefix=NONE 23419 23420 23421 23422 23423# Check whether --with-locale-lib-dir was given. 23424if test ${with_locale_lib_dir+y} 23425then : 23426 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 23427else case e in #( 23428 e) X11_LOCALELIBDIR="${X11_LIBDIR}/locale" ;; 23429esac 23430fi 23431 23432 23433 prefix_NONE= 23434 exec_prefix_NONE= 23435 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23436 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23437 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 23438 eval ax_define_dir="\"$ax_define_dir\"" 23439 XLOCALELIBDIR="$ax_define_dir" 23440 23441 23442printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h 23443 23444 test "$prefix_NONE" && prefix=NONE 23445 test "$exec_prefix_NONE" && exec_prefix=NONE 23446 23447 23448 23449X11_LOCALEDIR="${X11_LOCALEDATADIR}" 23450 23451 prefix_NONE= 23452 exec_prefix_NONE= 23453 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23454 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23455 eval ax_define_dir="\"$X11_LOCALEDIR\"" 23456 eval ax_define_dir="\"$ax_define_dir\"" 23457 XLOCALEDIR="$ax_define_dir" 23458 23459 23460printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h 23461 23462 test "$prefix_NONE" && prefix=NONE 23463 test "$exec_prefix_NONE" && exec_prefix=NONE 23464 23465 23466 23467locales="\ 23468 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \ 23469 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \ 23470 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \ 23471 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ 23472 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \ 23473 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \ 23474 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 23475 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \ 23476 ru_RU.UTF-8 sr_RS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \ 23477 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \ 23478 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \ 23479 zh_TW zh_TW.big5 zh_TW.UTF-8" 23480 23481 23482XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 23483 23484 prefix_NONE= 23485 exec_prefix_NONE= 23486 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23487 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23488 eval ax_define_dir="\"$XKEYSYMDB\"" 23489 eval ax_define_dir="\"$ax_define_dir\"" 23490 XKEYSYMDB="$ax_define_dir" 23491 23492 23493printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h 23494 23495 test "$prefix_NONE" && prefix=NONE 23496 test "$exec_prefix_NONE" && exec_prefix=NONE 23497 23498 23499XERRORDB="${X11_DATADIR}/XErrorDB" 23500 23501 prefix_NONE= 23502 exec_prefix_NONE= 23503 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23504 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23505 eval ax_define_dir="\"$XERRORDB\"" 23506 eval ax_define_dir="\"$ax_define_dir\"" 23507 XERRORDB="$ax_define_dir" 23508 23509 23510printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h 23511 23512 test "$prefix_NONE" && prefix=NONE 23513 test "$exec_prefix_NONE" && exec_prefix=NONE 23514 23515 23516 23517# Check whether --enable-malloc0returnsnull was given. 23518if test ${enable_malloc0returnsnull+y} 23519then : 23520 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 23521else case e in #( 23522 e) MALLOC_ZERO_RETURNS_NULL=auto ;; 23523esac 23524fi 23525 23526 23527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 23528printf %s "checking whether malloc(0) returns NULL... " >&6; } 23529if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 23530if test ${xorg_cv_malloc0_returns_null+y} 23531then : 23532 printf %s "(cached) " >&6 23533else case e in #( 23534 e) if test "$cross_compiling" = yes 23535then : 23536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23537printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23538as_fn_error $? "cannot run test program while cross compiling 23539See 'config.log' for more details" "$LINENO" 5; } 23540else case e in #( 23541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23542/* end confdefs.h. */ 23543 23544#include <stdlib.h> 23545 23546int 23547main (void) 23548{ 23549 23550 char *m0, *r0, *c0, *p; 23551 m0 = malloc(0); 23552 p = malloc(10); 23553 r0 = realloc(p,0); 23554 c0 = calloc(0,10); 23555 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 23556 23557 ; 23558 return 0; 23559} 23560_ACEOF 23561if ac_fn_c_try_run "$LINENO" 23562then : 23563 xorg_cv_malloc0_returns_null=yes 23564else case e in #( 23565 e) xorg_cv_malloc0_returns_null=no ;; 23566esac 23567fi 23568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23569 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 23570esac 23571fi 23572 ;; 23573esac 23574fi 23575 23576MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 23577fi 23578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 23579printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 23580 23581if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 23582 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 23583 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 23584 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 23585else 23586 MALLOC_ZERO_CFLAGS="" 23587 XMALLOC_ZERO_CFLAGS="" 23588 XTMALLOC_ZERO_CFLAGS="" 23589fi 23590 23591 23592 23593 23594 23595 23596ac_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" 23597 23598cat >confcache <<\_ACEOF 23599# This file is a shell script that caches the results of configure 23600# tests run on this system so they can be shared between configure 23601# scripts and configure runs, see configure's option --config-cache. 23602# It is not useful on other systems. If it contains results you don't 23603# want to keep, you may remove or edit it. 23604# 23605# config.status only pays attention to the cache file if you give it 23606# the --recheck option to rerun configure. 23607# 23608# 'ac_cv_env_foo' variables (set or unset) will be overridden when 23609# loading this file, other *unset* 'ac_cv_foo' will be assigned the 23610# following values. 23611 23612_ACEOF 23613 23614# The following way of writing the cache mishandles newlines in values, 23615# but we know of no workaround that is simple, portable, and efficient. 23616# So, we kill variables containing newlines. 23617# Ultrix sh set writes to stderr and can't be redirected directly, 23618# and sets the high bit in the cache file unless we assign to the vars. 23619( 23620 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23621 eval ac_val=\$$ac_var 23622 case $ac_val in #( 23623 *${as_nl}*) 23624 case $ac_var in #( 23625 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23626printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23627 esac 23628 case $ac_var in #( 23629 _ | IFS | as_nl) ;; #( 23630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23631 *) { eval $ac_var=; unset $ac_var;} ;; 23632 esac ;; 23633 esac 23634 done 23635 23636 (set) 2>&1 | 23637 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23638 *${as_nl}ac_space=\ *) 23639 # 'set' does not quote correctly, so add quotes: double-quote 23640 # substitution turns \\\\ into \\, and sed turns \\ into \. 23641 sed -n \ 23642 "s/'/'\\\\''/g; 23643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23644 ;; #( 23645 *) 23646 # 'set' quotes correctly as required by POSIX, so do not add quotes. 23647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23648 ;; 23649 esac | 23650 sort 23651) | 23652 sed ' 23653 /^ac_cv_env_/b end 23654 t clear 23655 :clear 23656 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 23657 t end 23658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23659 :end' >>confcache 23660if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23661 if test -w "$cache_file"; then 23662 if test "x$cache_file" != "x/dev/null"; then 23663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23664printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 23665 if test ! -f "$cache_file" || test -h "$cache_file"; then 23666 cat confcache >"$cache_file" 23667 else 23668 case $cache_file in #( 23669 */* | ?:*) 23670 mv -f confcache "$cache_file"$$ && 23671 mv -f "$cache_file"$$ "$cache_file" ;; #( 23672 *) 23673 mv -f confcache "$cache_file" ;; 23674 esac 23675 fi 23676 fi 23677 else 23678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23679printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 23680 fi 23681fi 23682rm -f confcache 23683 23684test "x$prefix" = xNONE && prefix=$ac_default_prefix 23685# Let make expand exec_prefix. 23686test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23687 23688DEFS=-DHAVE_CONFIG_H 23689 23690ac_libobjs= 23691ac_ltlibobjs= 23692U= 23693for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23694 # 1. Remove the extension, and $U if already installed. 23695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23696 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 23697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23698 # will be set to the directory where LIBOBJS objects are built. 23699 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23700 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23701done 23702LIBOBJS=$ac_libobjs 23703 23704LTLIBOBJS=$ac_ltlibobjs 23705 23706 23707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 23708printf %s "checking that generated files are newer than configure... " >&6; } 23709 if test -n "$am_sleep_pid"; then 23710 # Hide warnings about reused PIDs. 23711 wait $am_sleep_pid 2>/dev/null 23712 fi 23713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 23714printf "%s\n" "done" >&6; } 23715if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23716 as_fn_error $? "conditional \"AMDEP\" was never defined. 23717Usually this means the macro was only invoked conditionally." "$LINENO" 5 23718fi 23719if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23720 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23721Usually this means the macro was only invoked conditionally." "$LINENO" 5 23722fi 23723 if test -n "$EXEEXT"; then 23724 am__EXEEXT_TRUE= 23725 am__EXEEXT_FALSE='#' 23726else 23727 am__EXEEXT_TRUE='#' 23728 am__EXEEXT_FALSE= 23729fi 23730 23731# Check whether --enable-year2038 was given. 23732if test ${enable_year2038+y} 23733then : 23734 enableval=$enable_year2038; 23735fi 23736 23737if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 23738 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 23739Usually this means the macro was only invoked conditionally." "$LINENO" 5 23740fi 23741if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 23742 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 23743Usually this means the macro was only invoked conditionally." "$LINENO" 5 23744fi 23745if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 23746 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 23747Usually this means the macro was only invoked conditionally." "$LINENO" 5 23748fi 23749if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 23750 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 23751Usually this means the macro was only invoked conditionally." "$LINENO" 5 23752fi 23753if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 23754 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 23755Usually this means the macro was only invoked conditionally." "$LINENO" 5 23756fi 23757if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 23758 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 23759Usually this means the macro was only invoked conditionally." "$LINENO" 5 23760fi 23761if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 23762 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 23763Usually this means the macro was only invoked conditionally." "$LINENO" 5 23764fi 23765if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 23766 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 23767Usually this means the macro was only invoked conditionally." "$LINENO" 5 23768fi 23769if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 23770 as_fn_error $? "conditional \"OS2\" was never defined. 23771Usually this means the macro was only invoked conditionally." "$LINENO" 5 23772fi 23773if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 23774 as_fn_error $? "conditional \"XCMS\" was never defined. 23775Usually this means the macro was only invoked conditionally." "$LINENO" 5 23776fi 23777if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 23778 as_fn_error $? "conditional \"XLOCALE\" was never defined. 23779Usually this means the macro was only invoked conditionally." "$LINENO" 5 23780fi 23781if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 23782 as_fn_error $? "conditional \"XKB\" was never defined. 23783Usually this means the macro was only invoked conditionally." "$LINENO" 5 23784fi 23785if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 23786 as_fn_error $? "conditional \"LINT\" was never defined. 23787Usually this means the macro was only invoked conditionally." "$LINENO" 5 23788fi 23789if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 23790 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 23791Usually this means the macro was only invoked conditionally." "$LINENO" 5 23792fi 23793 23794: "${CONFIG_STATUS=./config.status}" 23795ac_write_fail=0 23796ac_clean_files_save=$ac_clean_files 23797ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23799printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 23800as_write_fail=0 23801cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23802#! $SHELL 23803# Generated by $as_me. 23804# Run this file to recreate the current configuration. 23805# Compiler output produced by configure, useful for debugging 23806# configure, is in config.log if it exists. 23807 23808debug=false 23809ac_cs_recheck=false 23810ac_cs_silent=false 23811 23812SHELL=\${CONFIG_SHELL-$SHELL} 23813export SHELL 23814_ASEOF 23815cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23816## -------------------- ## 23817## M4sh Initialization. ## 23818## -------------------- ## 23819 23820# Be more Bourne compatible 23821DUALCASE=1; export DUALCASE # for MKS sh 23822if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23823then : 23824 emulate sh 23825 NULLCMD=: 23826 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23827 # is contrary to our usage. Disable this feature. 23828 alias -g '${1+"$@"}'='"$@"' 23829 setopt NO_GLOB_SUBST 23830else case e in #( 23831 e) case `(set -o) 2>/dev/null` in #( 23832 *posix*) : 23833 set -o posix ;; #( 23834 *) : 23835 ;; 23836esac ;; 23837esac 23838fi 23839 23840 23841 23842# Reset variables that may have inherited troublesome values from 23843# the environment. 23844 23845# IFS needs to be set, to space, tab, and newline, in precisely that order. 23846# (If _AS_PATH_WALK were called with IFS unset, it would have the 23847# side effect of setting IFS to empty, thus disabling word splitting.) 23848# Quoting is to prevent editors from complaining about space-tab. 23849as_nl=' 23850' 23851export as_nl 23852IFS=" "" $as_nl" 23853 23854PS1='$ ' 23855PS2='> ' 23856PS4='+ ' 23857 23858# Ensure predictable behavior from utilities with locale-dependent output. 23859LC_ALL=C 23860export LC_ALL 23861LANGUAGE=C 23862export LANGUAGE 23863 23864# We cannot yet rely on "unset" to work, but we need these variables 23865# to be unset--not just set to an empty or harmless value--now, to 23866# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 23867# also avoids known problems related to "unset" and subshell syntax 23868# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 23869for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 23870do eval test \${$as_var+y} \ 23871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23872done 23873 23874# Ensure that fds 0, 1, and 2 are open. 23875if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 23876if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 23877if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 23878 23879# The user is always right. 23880if ${PATH_SEPARATOR+false} :; then 23881 PATH_SEPARATOR=: 23882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23883 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23884 PATH_SEPARATOR=';' 23885 } 23886fi 23887 23888 23889# Find who we are. Look in the path if we contain no directory separator. 23890as_myself= 23891case $0 in #(( 23892 *[\\/]* ) as_myself=$0 ;; 23893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23894for as_dir in $PATH 23895do 23896 IFS=$as_save_IFS 23897 case $as_dir in #((( 23898 '') as_dir=./ ;; 23899 */) ;; 23900 *) as_dir=$as_dir/ ;; 23901 esac 23902 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 23903 done 23904IFS=$as_save_IFS 23905 23906 ;; 23907esac 23908# We did not find ourselves, most probably we were run as 'sh COMMAND' 23909# in which case we are not to be found in the path. 23910if test "x$as_myself" = x; then 23911 as_myself=$0 23912fi 23913if test ! -f "$as_myself"; then 23914 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23915 exit 1 23916fi 23917 23918 23919 23920# as_fn_error STATUS ERROR [LINENO LOG_FD] 23921# ---------------------------------------- 23922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23924# script with STATUS, using 1 if that was 0. 23925as_fn_error () 23926{ 23927 as_status=$1; test $as_status -eq 0 && as_status=1 23928 if test "$4"; then 23929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23931 fi 23932 printf "%s\n" "$as_me: error: $2" >&2 23933 as_fn_exit $as_status 23934} # as_fn_error 23935 23936 23937# as_fn_set_status STATUS 23938# ----------------------- 23939# Set $? to STATUS, without forking. 23940as_fn_set_status () 23941{ 23942 return $1 23943} # as_fn_set_status 23944 23945# as_fn_exit STATUS 23946# ----------------- 23947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23948as_fn_exit () 23949{ 23950 set +e 23951 as_fn_set_status $1 23952 exit $1 23953} # as_fn_exit 23954 23955# as_fn_unset VAR 23956# --------------- 23957# Portably unset VAR. 23958as_fn_unset () 23959{ 23960 { eval $1=; unset $1;} 23961} 23962as_unset=as_fn_unset 23963 23964# as_fn_append VAR VALUE 23965# ---------------------- 23966# Append the text in VALUE to the end of the definition contained in VAR. Take 23967# advantage of any shell optimizations that allow amortized linear growth over 23968# repeated appends, instead of the typical quadratic growth present in naive 23969# implementations. 23970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 23971then : 23972 eval 'as_fn_append () 23973 { 23974 eval $1+=\$2 23975 }' 23976else case e in #( 23977 e) as_fn_append () 23978 { 23979 eval $1=\$$1\$2 23980 } ;; 23981esac 23982fi # as_fn_append 23983 23984# as_fn_arith ARG... 23985# ------------------ 23986# Perform arithmetic evaluation on the ARGs, and store the result in the 23987# global $as_val. Take advantage of shells that can avoid forks. The arguments 23988# must be portable across $(()) and expr. 23989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 23990then : 23991 eval 'as_fn_arith () 23992 { 23993 as_val=$(( $* )) 23994 }' 23995else case e in #( 23996 e) as_fn_arith () 23997 { 23998 as_val=`expr "$@" || test $? -eq 1` 23999 } ;; 24000esac 24001fi # as_fn_arith 24002 24003 24004if expr a : '\(a\)' >/dev/null 2>&1 && 24005 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24006 as_expr=expr 24007else 24008 as_expr=false 24009fi 24010 24011if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24012 as_basename=basename 24013else 24014 as_basename=false 24015fi 24016 24017if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24018 as_dirname=dirname 24019else 24020 as_dirname=false 24021fi 24022 24023as_me=`$as_basename -- "$0" || 24024$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24025 X"$0" : 'X\(//\)$' \| \ 24026 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24027printf "%s\n" X/"$0" | 24028 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24029 s//\1/ 24030 q 24031 } 24032 /^X\/\(\/\/\)$/{ 24033 s//\1/ 24034 q 24035 } 24036 /^X\/\(\/\).*/{ 24037 s//\1/ 24038 q 24039 } 24040 s/.*/./; q'` 24041 24042# Avoid depending upon Character Ranges. 24043as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24044as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24045as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24046as_cr_digits='0123456789' 24047as_cr_alnum=$as_cr_Letters$as_cr_digits 24048 24049 24050# Determine whether it's possible to make 'echo' print without a newline. 24051# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 24052# for compatibility with existing Makefiles. 24053ECHO_C= ECHO_N= ECHO_T= 24054case `echo -n x` in #((((( 24055-n*) 24056 case `echo 'xy\c'` in 24057 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24058 xy) ECHO_C='\c';; 24059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24060 ECHO_T=' ';; 24061 esac;; 24062*) 24063 ECHO_N='-n';; 24064esac 24065 24066# For backward compatibility with old third-party macros, we provide 24067# the shell variables $as_echo and $as_echo_n. New code should use 24068# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 24069as_echo='printf %s\n' 24070as_echo_n='printf %s' 24071 24072rm -f conf$$ conf$$.exe conf$$.file 24073if test -d conf$$.dir; then 24074 rm -f conf$$.dir/conf$$.file 24075else 24076 rm -f conf$$.dir 24077 mkdir conf$$.dir 2>/dev/null 24078fi 24079if (echo >conf$$.file) 2>/dev/null; then 24080 if ln -s conf$$.file conf$$ 2>/dev/null; then 24081 as_ln_s='ln -s' 24082 # ... but there are two gotchas: 24083 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 24084 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 24085 # In both cases, we have to default to 'cp -pR'. 24086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24087 as_ln_s='cp -pR' 24088 elif ln conf$$.file conf$$ 2>/dev/null; then 24089 as_ln_s=ln 24090 else 24091 as_ln_s='cp -pR' 24092 fi 24093else 24094 as_ln_s='cp -pR' 24095fi 24096rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24097rmdir conf$$.dir 2>/dev/null 24098 24099 24100# as_fn_mkdir_p 24101# ------------- 24102# Create "$as_dir" as a directory, including parents if necessary. 24103as_fn_mkdir_p () 24104{ 24105 24106 case $as_dir in #( 24107 -*) as_dir=./$as_dir;; 24108 esac 24109 test -d "$as_dir" || eval $as_mkdir_p || { 24110 as_dirs= 24111 while :; do 24112 case $as_dir in #( 24113 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24114 *) as_qdir=$as_dir;; 24115 esac 24116 as_dirs="'$as_qdir' $as_dirs" 24117 as_dir=`$as_dirname -- "$as_dir" || 24118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24119 X"$as_dir" : 'X\(//\)[^/]' \| \ 24120 X"$as_dir" : 'X\(//\)$' \| \ 24121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24122printf "%s\n" X"$as_dir" | 24123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24124 s//\1/ 24125 q 24126 } 24127 /^X\(\/\/\)[^/].*/{ 24128 s//\1/ 24129 q 24130 } 24131 /^X\(\/\/\)$/{ 24132 s//\1/ 24133 q 24134 } 24135 /^X\(\/\).*/{ 24136 s//\1/ 24137 q 24138 } 24139 s/.*/./; q'` 24140 test -d "$as_dir" && break 24141 done 24142 test -z "$as_dirs" || eval "mkdir $as_dirs" 24143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24144 24145 24146} # as_fn_mkdir_p 24147if mkdir -p . 2>/dev/null; then 24148 as_mkdir_p='mkdir -p "$as_dir"' 24149else 24150 test -d ./-p && rmdir ./-p 24151 as_mkdir_p=false 24152fi 24153 24154 24155# as_fn_executable_p FILE 24156# ----------------------- 24157# Test if FILE is an executable regular file. 24158as_fn_executable_p () 24159{ 24160 test -f "$1" && test -x "$1" 24161} # as_fn_executable_p 24162as_test_x='test -x' 24163as_executable_p=as_fn_executable_p 24164 24165# Sed expression to map a string onto a valid CPP name. 24166as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 24167as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 24168 24169# Sed expression to map a string onto a valid variable name. 24170as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 24171as_tr_sh="eval sed '$as_sed_sh'" # deprecated 24172 24173 24174exec 6>&1 24175## ----------------------------------- ## 24176## Main body of $CONFIG_STATUS script. ## 24177## ----------------------------------- ## 24178_ASEOF 24179test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24180 24181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24182# Save the log message, to keep $0 and so on meaningful, and to 24183# report actual input values of CONFIG_FILES etc. instead of their 24184# values after options handling. 24185ac_log=" 24186This file was extended by libX11 $as_me 1.8.9, which was 24187generated by GNU Autoconf 2.72. Invocation command line was 24188 24189 CONFIG_FILES = $CONFIG_FILES 24190 CONFIG_HEADERS = $CONFIG_HEADERS 24191 CONFIG_LINKS = $CONFIG_LINKS 24192 CONFIG_COMMANDS = $CONFIG_COMMANDS 24193 $ $0 $@ 24194 24195on `(hostname || uname -n) 2>/dev/null | sed 1q` 24196" 24197 24198_ACEOF 24199 24200case $ac_config_files in *" 24201"*) set x $ac_config_files; shift; ac_config_files=$*;; 24202esac 24203 24204case $ac_config_headers in *" 24205"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24206esac 24207 24208 24209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24210# Files that config.status was made for. 24211config_files="$ac_config_files" 24212config_headers="$ac_config_headers" 24213config_commands="$ac_config_commands" 24214 24215_ACEOF 24216 24217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24218ac_cs_usage="\ 24219'$as_me' instantiates files and other configuration actions 24220from templates according to the current configuration. Unless the files 24221and actions are specified as TAGs, all are instantiated by default. 24222 24223Usage: $0 [OPTION]... [TAG]... 24224 24225 -h, --help print this help, then exit 24226 -V, --version print version number and configuration settings, then exit 24227 --config print configuration, then exit 24228 -q, --quiet, --silent 24229 do not print progress messages 24230 -d, --debug don't remove temporary files 24231 --recheck update $as_me by reconfiguring in the same conditions 24232 --file=FILE[:TEMPLATE] 24233 instantiate the configuration file FILE 24234 --header=FILE[:TEMPLATE] 24235 instantiate the configuration header FILE 24236 24237Configuration files: 24238$config_files 24239 24240Configuration headers: 24241$config_headers 24242 24243Configuration commands: 24244$config_commands 24245 24246Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>." 24247 24248_ACEOF 24249ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 24250ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 24251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24252ac_cs_config='$ac_cs_config_escaped' 24253ac_cs_version="\\ 24254libX11 config.status 1.8.9 24255configured by $0, generated by GNU Autoconf 2.72, 24256 with options \\"\$ac_cs_config\\" 24257 24258Copyright (C) 2023 Free Software Foundation, Inc. 24259This config.status script is free software; the Free Software Foundation 24260gives unlimited permission to copy, distribute and modify it." 24261 24262ac_pwd='$ac_pwd' 24263srcdir='$srcdir' 24264INSTALL='$INSTALL' 24265MKDIR_P='$MKDIR_P' 24266AWK='$AWK' 24267test -n "\$AWK" || AWK=awk 24268_ACEOF 24269 24270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24271# The default lists apply if the user does not specify any file. 24272ac_need_defaults=: 24273while test $# != 0 24274do 24275 case $1 in 24276 --*=?*) 24277 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24279 ac_shift=: 24280 ;; 24281 --*=) 24282 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24283 ac_optarg= 24284 ac_shift=: 24285 ;; 24286 *) 24287 ac_option=$1 24288 ac_optarg=$2 24289 ac_shift=shift 24290 ;; 24291 esac 24292 24293 case $ac_option in 24294 # Handling of the options. 24295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24296 ac_cs_recheck=: ;; 24297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24298 printf "%s\n" "$ac_cs_version"; exit ;; 24299 --config | --confi | --conf | --con | --co | --c ) 24300 printf "%s\n" "$ac_cs_config"; exit ;; 24301 --debug | --debu | --deb | --de | --d | -d ) 24302 debug=: ;; 24303 --file | --fil | --fi | --f ) 24304 $ac_shift 24305 case $ac_optarg in 24306 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24307 '') as_fn_error $? "missing file argument" ;; 24308 esac 24309 as_fn_append CONFIG_FILES " '$ac_optarg'" 24310 ac_need_defaults=false;; 24311 --header | --heade | --head | --hea ) 24312 $ac_shift 24313 case $ac_optarg in 24314 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24315 esac 24316 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24317 ac_need_defaults=false;; 24318 --he | --h) 24319 # Conflict between --help and --header 24320 as_fn_error $? "ambiguous option: '$1' 24321Try '$0 --help' for more information.";; 24322 --help | --hel | -h ) 24323 printf "%s\n" "$ac_cs_usage"; exit ;; 24324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24325 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24326 ac_cs_silent=: ;; 24327 24328 # This is an error. 24329 -*) as_fn_error $? "unrecognized option: '$1' 24330Try '$0 --help' for more information." ;; 24331 24332 *) as_fn_append ac_config_targets " $1" 24333 ac_need_defaults=false ;; 24334 24335 esac 24336 shift 24337done 24338 24339ac_configure_extra_args= 24340 24341if $ac_cs_silent; then 24342 exec 6>/dev/null 24343 ac_configure_extra_args="$ac_configure_extra_args --silent" 24344fi 24345 24346_ACEOF 24347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24348if \$ac_cs_recheck; then 24349 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24350 shift 24351 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 24352 CONFIG_SHELL='$SHELL' 24353 export CONFIG_SHELL 24354 exec "\$@" 24355fi 24356 24357_ACEOF 24358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24359exec 5>>config.log 24360{ 24361 echo 24362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24363## Running $as_me. ## 24364_ASBOX 24365 printf "%s\n" "$ac_log" 24366} >&5 24367 24368_ACEOF 24369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24370# 24371# INIT-COMMANDS 24372# 24373AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 24374 24375 24376# The HP-UX ksh and POSIX shell print the target directory to stdout 24377# if CDPATH is set. 24378(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24379 24380sed_quote_subst='$sed_quote_subst' 24381double_quote_subst='$double_quote_subst' 24382delay_variable_subst='$delay_variable_subst' 24383macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24384macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24385enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24386enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24387pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24388enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24389shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 24390SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24391ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24392PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24393host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24394host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24395host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24396build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24397build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24398build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24399SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24400Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24401GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24402EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24403FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24404LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24405NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24406LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24407max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24408ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24409exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24410lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24411lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24412lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24413lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24414lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24415reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24416reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24417FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 24418OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24419deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24420file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24421file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24422want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24423DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24424sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24425AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24426lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 24427AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24428archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24429STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24430RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24431old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24432old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24433old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24434lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24435CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24436CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24437compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24438GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24439lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24440lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24441lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 24442lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24443lt_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"`' 24444lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 24445nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24446lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24447lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 24448objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24449MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24450lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24451lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24452lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24453lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24454lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24455need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24456MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24457DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24458NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24459LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24460OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24461OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24462libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24463shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24464extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24465archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24466enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 24467export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 24468whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 24469compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 24470old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 24471old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24472archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24473archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24474module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24475module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24476with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24477allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24478no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24479hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24480hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24481hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24482hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24483hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24484hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24485hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24486inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24487link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24488always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24489export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24490exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24491include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24492prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24493postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24494file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24495variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24496need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24497need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24498version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24499runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24500shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24501shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24502libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24503library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24504soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24505install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24506postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24507postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24508finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24509finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24510hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24511sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24512configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 24513configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 24514hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24515enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24516enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24517enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24518old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24519striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24520 24521LTCC='$LTCC' 24522LTCFLAGS='$LTCFLAGS' 24523compiler='$compiler_DEFAULT' 24524 24525# A function that is used when there is no print builtin or printf. 24526func_fallback_echo () 24527{ 24528 eval 'cat <<_LTECHO_EOF 24529\$1 24530_LTECHO_EOF' 24531} 24532 24533# Quote evaled strings. 24534for var in SHELL \ 24535ECHO \ 24536PATH_SEPARATOR \ 24537SED \ 24538GREP \ 24539EGREP \ 24540FGREP \ 24541LD \ 24542NM \ 24543LN_S \ 24544lt_SP2NL \ 24545lt_NL2SP \ 24546reload_flag \ 24547FILECMD \ 24548OBJDUMP \ 24549deplibs_check_method \ 24550file_magic_cmd \ 24551file_magic_glob \ 24552want_nocaseglob \ 24553DLLTOOL \ 24554sharedlib_from_linklib_cmd \ 24555AR \ 24556archiver_list_spec \ 24557STRIP \ 24558RANLIB \ 24559CC \ 24560CFLAGS \ 24561compiler \ 24562lt_cv_sys_global_symbol_pipe \ 24563lt_cv_sys_global_symbol_to_cdecl \ 24564lt_cv_sys_global_symbol_to_import \ 24565lt_cv_sys_global_symbol_to_c_name_address \ 24566lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24567lt_cv_nm_interface \ 24568nm_file_list_spec \ 24569lt_cv_truncate_bin \ 24570lt_prog_compiler_no_builtin_flag \ 24571lt_prog_compiler_pic \ 24572lt_prog_compiler_wl \ 24573lt_prog_compiler_static \ 24574lt_cv_prog_compiler_c_o \ 24575need_locks \ 24576MANIFEST_TOOL \ 24577DSYMUTIL \ 24578NMEDIT \ 24579LIPO \ 24580OTOOL \ 24581OTOOL64 \ 24582shrext_cmds \ 24583export_dynamic_flag_spec \ 24584whole_archive_flag_spec \ 24585compiler_needs_object \ 24586with_gnu_ld \ 24587allow_undefined_flag \ 24588no_undefined_flag \ 24589hardcode_libdir_flag_spec \ 24590hardcode_libdir_separator \ 24591exclude_expsyms \ 24592include_expsyms \ 24593file_list_spec \ 24594variables_saved_for_relink \ 24595libname_spec \ 24596library_names_spec \ 24597soname_spec \ 24598install_override_mode \ 24599finish_eval \ 24600old_striplib \ 24601striplib; do 24602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24603 *[\\\\\\\`\\"\\\$]*) 24604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24605 ;; 24606 *) 24607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24608 ;; 24609 esac 24610done 24611 24612# Double-quote double-evaled strings. 24613for var in reload_cmds \ 24614old_postinstall_cmds \ 24615old_postuninstall_cmds \ 24616old_archive_cmds \ 24617extract_expsyms_cmds \ 24618old_archive_from_new_cmds \ 24619old_archive_from_expsyms_cmds \ 24620archive_cmds \ 24621archive_expsym_cmds \ 24622module_cmds \ 24623module_expsym_cmds \ 24624export_symbols_cmds \ 24625prelink_cmds \ 24626postlink_cmds \ 24627postinstall_cmds \ 24628postuninstall_cmds \ 24629finish_cmds \ 24630sys_lib_search_path_spec \ 24631configure_time_dlsearch_path \ 24632configure_time_lt_sys_library_path; do 24633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24634 *[\\\\\\\`\\"\\\$]*) 24635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24636 ;; 24637 *) 24638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24639 ;; 24640 esac 24641done 24642 24643ac_aux_dir='$ac_aux_dir' 24644 24645# See if we are running on zsh, and set the options that allow our 24646# commands through without removal of \ escapes INIT. 24647if test -n "\${ZSH_VERSION+set}"; then 24648 setopt NO_GLOB_SUBST 24649fi 24650 24651 24652 PACKAGE='$PACKAGE' 24653 VERSION='$VERSION' 24654 RM='$RM' 24655 ofile='$ofile' 24656 24657 24658 24659 24660_ACEOF 24661 24662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24663 24664# Handling of arguments. 24665for ac_config_target in $ac_config_targets 24666do 24667 case $ac_config_target in 24668 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 24669 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 24670 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24671 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24673 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24674 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 24675 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 24676 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24677 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 24678 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 24679 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 24680 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 24681 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 24682 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 24683 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 24684 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 24685 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 24686 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 24687 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 24688 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 24689 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 24690 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 24691 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 24692 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 24693 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 24694 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 24695 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 24696 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 24697 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 24698 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 24699 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 24700 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 24701 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 24702 24703 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 24704 esac 24705done 24706 24707 24708# If the user did not use the arguments to specify the items to instantiate, 24709# then the envvar interface is used. Set only those that are not. 24710# We use the long form for the default assignment because of an extremely 24711# bizarre bug on SunOS 4.1.3. 24712if $ac_need_defaults; then 24713 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 24714 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 24715 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 24716fi 24717 24718# Have a temporary directory for convenience. Make it in the build tree 24719# simply because there is no reason against having it here, and in addition, 24720# creating and moving files from /tmp can sometimes cause problems. 24721# Hook for its removal unless debugging. 24722# Note that there is a small window in which the directory will not be cleaned: 24723# after its creation but before its name has been assigned to '$tmp'. 24724$debug || 24725{ 24726 tmp= ac_tmp= 24727 trap 'exit_status=$? 24728 : "${ac_tmp:=$tmp}" 24729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24730' 0 24731 trap 'as_fn_exit 1' 1 2 13 15 24732} 24733# Create a (secure) tmp directory for tmp files. 24734 24735{ 24736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24737 test -d "$tmp" 24738} || 24739{ 24740 tmp=./conf$$-$RANDOM 24741 (umask 077 && mkdir "$tmp") 24742} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24743ac_tmp=$tmp 24744 24745# Set up the scripts for CONFIG_FILES section. 24746# No need to generate them if there are no CONFIG_FILES. 24747# This happens for instance with './config.status config.h'. 24748if test -n "$CONFIG_FILES"; then 24749 24750 24751ac_cr=`echo X | tr X '\015'` 24752# On cygwin, bash can eat \r inside `` if the user requested igncr. 24753# But we know of no other shell where ac_cr would be empty at this 24754# point, so we can use a bashism as a fallback. 24755if test "x$ac_cr" = x; then 24756 eval ac_cr=\$\'\\r\' 24757fi 24758ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24759if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24760 ac_cs_awk_cr='\\r' 24761else 24762 ac_cs_awk_cr=$ac_cr 24763fi 24764 24765echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24766_ACEOF 24767 24768 24769{ 24770 echo "cat >conf$$subs.awk <<_ACEOF" && 24771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24772 echo "_ACEOF" 24773} >conf$$subs.sh || 24774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24775ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24776ac_delim='%!_!# ' 24777for ac_last_try in false false false false false :; do 24778 . ./conf$$subs.sh || 24779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24780 24781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24782 if test $ac_delim_n = $ac_delim_num; then 24783 break 24784 elif $ac_last_try; then 24785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24786 else 24787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24788 fi 24789done 24790rm -f conf$$subs.sh 24791 24792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24793cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24794_ACEOF 24795sed -n ' 24796h 24797s/^/S["/; s/!.*/"]=/ 24798p 24799g 24800s/^[^!]*!// 24801:repl 24802t repl 24803s/'"$ac_delim"'$// 24804t delim 24805:nl 24806h 24807s/\(.\{148\}\)..*/\1/ 24808t more1 24809s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24810p 24811n 24812b repl 24813:more1 24814s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24815p 24816g 24817s/.\{148\}// 24818t nl 24819:delim 24820h 24821s/\(.\{148\}\)..*/\1/ 24822t more2 24823s/["\\]/\\&/g; s/^/"/; s/$/"/ 24824p 24825b 24826:more2 24827s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24828p 24829g 24830s/.\{148\}// 24831t delim 24832' <conf$$subs.awk | sed ' 24833/^[^""]/{ 24834 N 24835 s/\n// 24836} 24837' >>$CONFIG_STATUS || ac_write_fail=1 24838rm -f conf$$subs.awk 24839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24840_ACAWK 24841cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24842 for (key in S) S_is_set[key] = 1 24843 FS = "" 24844 24845} 24846{ 24847 line = $ 0 24848 nfields = split(line, field, "@") 24849 substed = 0 24850 len = length(field[1]) 24851 for (i = 2; i < nfields; i++) { 24852 key = field[i] 24853 keylen = length(key) 24854 if (S_is_set[key]) { 24855 value = S[key] 24856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24857 len += length(value) + length(field[++i]) 24858 substed = 1 24859 } else 24860 len += 1 + keylen 24861 } 24862 24863 print line 24864} 24865 24866_ACAWK 24867_ACEOF 24868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24869if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24871else 24872 cat 24873fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24875_ACEOF 24876 24877# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24878# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24879# trailing colons and then remove the whole line if VPATH becomes empty 24880# (actually we leave an empty line to preserve line numbers). 24881if test "x$srcdir" = x.; then 24882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24883h 24884s/// 24885s/^/:/ 24886s/[ ]*$/:/ 24887s/:\$(srcdir):/:/g 24888s/:\${srcdir}:/:/g 24889s/:@srcdir@:/:/g 24890s/^:*// 24891s/:*$// 24892x 24893s/\(=[ ]*\).*/\1/ 24894G 24895s/\n// 24896s/^[^=]*=[ ]*$// 24897}' 24898fi 24899 24900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24901fi # test -n "$CONFIG_FILES" 24902 24903# Set up the scripts for CONFIG_HEADERS section. 24904# No need to generate them if there are no CONFIG_HEADERS. 24905# This happens for instance with './config.status Makefile'. 24906if test -n "$CONFIG_HEADERS"; then 24907cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24908BEGIN { 24909_ACEOF 24910 24911# Transform confdefs.h into an awk script 'defines.awk', embedded as 24912# here-document in config.status, that substitutes the proper values into 24913# config.h.in to produce config.h. 24914 24915# Create a delimiter string that does not exist in confdefs.h, to ease 24916# handling of long lines. 24917ac_delim='%!_!# ' 24918for ac_last_try in false false :; do 24919 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24920 if test -z "$ac_tt"; then 24921 break 24922 elif $ac_last_try; then 24923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24924 else 24925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24926 fi 24927done 24928 24929# For the awk script, D is an array of macro values keyed by name, 24930# likewise P contains macro parameters if any. Preserve backslash 24931# newline sequences. 24932 24933ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24934sed -n ' 24935s/.\{148\}/&'"$ac_delim"'/g 24936t rset 24937:rset 24938s/^[ ]*#[ ]*define[ ][ ]*/ / 24939t def 24940d 24941:def 24942s/\\$// 24943t bsnl 24944s/["\\]/\\&/g 24945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24946D["\1"]=" \3"/p 24947s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24948d 24949:bsnl 24950s/["\\]/\\&/g 24951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24952D["\1"]=" \3\\\\\\n"\\/p 24953t cont 24954s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24955t cont 24956d 24957:cont 24958n 24959s/.\{148\}/&'"$ac_delim"'/g 24960t clear 24961:clear 24962s/\\$// 24963t bsnlc 24964s/["\\]/\\&/g; s/^/"/; s/$/"/p 24965d 24966:bsnlc 24967s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24968b cont 24969' <confdefs.h | sed ' 24970s/'"$ac_delim"'/"\\\ 24971"/g' >>$CONFIG_STATUS || ac_write_fail=1 24972 24973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24974 for (key in D) D_is_set[key] = 1 24975 FS = "" 24976} 24977/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24978 line = \$ 0 24979 split(line, arg, " ") 24980 if (arg[1] == "#") { 24981 defundef = arg[2] 24982 mac1 = arg[3] 24983 } else { 24984 defundef = substr(arg[1], 2) 24985 mac1 = arg[2] 24986 } 24987 split(mac1, mac2, "(") #) 24988 macro = mac2[1] 24989 prefix = substr(line, 1, index(line, defundef) - 1) 24990 if (D_is_set[macro]) { 24991 # Preserve the white space surrounding the "#". 24992 print prefix "define", macro P[macro] D[macro] 24993 next 24994 } else { 24995 # Replace #undef with comments. This is necessary, for example, 24996 # in the case of _POSIX_SOURCE, which is predefined and required 24997 # on some systems where configure will not decide to define it. 24998 if (defundef == "undef") { 24999 print "/*", prefix defundef, macro, "*/" 25000 next 25001 } 25002 } 25003} 25004{ print } 25005_ACAWK 25006_ACEOF 25007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25009fi # test -n "$CONFIG_HEADERS" 25010 25011 25012eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25013shift 25014for ac_tag 25015do 25016 case $ac_tag in 25017 :[FHLC]) ac_mode=$ac_tag; continue;; 25018 esac 25019 case $ac_mode$ac_tag in 25020 :[FHL]*:*);; 25021 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 25022 :[FH]-) ac_tag=-:-;; 25023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25024 esac 25025 ac_save_IFS=$IFS 25026 IFS=: 25027 set x $ac_tag 25028 IFS=$ac_save_IFS 25029 shift 25030 ac_file=$1 25031 shift 25032 25033 case $ac_mode in 25034 :L) ac_source=$1;; 25035 :[FH]) 25036 ac_file_inputs= 25037 for ac_f 25038 do 25039 case $ac_f in 25040 -) ac_f="$ac_tmp/stdin";; 25041 *) # Look for the file first in the build tree, then in the source tree 25042 # (if the path is not absolute). The absolute path cannot be DOS-style, 25043 # because $ac_f cannot contain ':'. 25044 test -f "$ac_f" || 25045 case $ac_f in 25046 [\\/$]*) false;; 25047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25048 esac || 25049 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 25050 esac 25051 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25052 as_fn_append ac_file_inputs " '$ac_f'" 25053 done 25054 25055 # Let's still pretend it is 'configure' which instantiates (i.e., don't 25056 # use $as_me), people would be surprised to read: 25057 # /* config.h. Generated by config.status. */ 25058 configure_input='Generated from '` 25059 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25060 `' by configure.' 25061 if test x"$ac_file" != x-; then 25062 configure_input="$ac_file. $configure_input" 25063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25064printf "%s\n" "$as_me: creating $ac_file" >&6;} 25065 fi 25066 # Neutralize special characters interpreted by sed in replacement strings. 25067 case $configure_input in #( 25068 *\&* | *\|* | *\\* ) 25069 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 25070 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25071 *) ac_sed_conf_input=$configure_input;; 25072 esac 25073 25074 case $ac_tag in 25075 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25077 esac 25078 ;; 25079 esac 25080 25081 ac_dir=`$as_dirname -- "$ac_file" || 25082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25083 X"$ac_file" : 'X\(//\)[^/]' \| \ 25084 X"$ac_file" : 'X\(//\)$' \| \ 25085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25086printf "%s\n" X"$ac_file" | 25087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25088 s//\1/ 25089 q 25090 } 25091 /^X\(\/\/\)[^/].*/{ 25092 s//\1/ 25093 q 25094 } 25095 /^X\(\/\/\)$/{ 25096 s//\1/ 25097 q 25098 } 25099 /^X\(\/\).*/{ 25100 s//\1/ 25101 q 25102 } 25103 s/.*/./; q'` 25104 as_dir="$ac_dir"; as_fn_mkdir_p 25105 ac_builddir=. 25106 25107case "$ac_dir" in 25108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25109*) 25110 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 25111 # A ".." for each directory in $ac_dir_suffix. 25112 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25113 case $ac_top_builddir_sub in 25114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25116 esac ;; 25117esac 25118ac_abs_top_builddir=$ac_pwd 25119ac_abs_builddir=$ac_pwd$ac_dir_suffix 25120# for backward compatibility: 25121ac_top_builddir=$ac_top_build_prefix 25122 25123case $srcdir in 25124 .) # We are building in place. 25125 ac_srcdir=. 25126 ac_top_srcdir=$ac_top_builddir_sub 25127 ac_abs_top_srcdir=$ac_pwd ;; 25128 [\\/]* | ?:[\\/]* ) # Absolute name. 25129 ac_srcdir=$srcdir$ac_dir_suffix; 25130 ac_top_srcdir=$srcdir 25131 ac_abs_top_srcdir=$srcdir ;; 25132 *) # Relative name. 25133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25134 ac_top_srcdir=$ac_top_build_prefix$srcdir 25135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25136esac 25137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25138 25139 25140 case $ac_mode in 25141 :F) 25142 # 25143 # CONFIG_FILE 25144 # 25145 25146 case $INSTALL in 25147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25149 esac 25150 ac_MKDIR_P=$MKDIR_P 25151 case $MKDIR_P in 25152 [\\/$]* | ?:[\\/]* ) ;; 25153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 25154 esac 25155_ACEOF 25156 25157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25158# If the template does not know about datarootdir, expand it. 25159# FIXME: This hack should be removed a few years after 2.60. 25160ac_datarootdir_hack=; ac_datarootdir_seen= 25161ac_sed_dataroot=' 25162/datarootdir/ { 25163 p 25164 q 25165} 25166/@datadir@/p 25167/@docdir@/p 25168/@infodir@/p 25169/@localedir@/p 25170/@mandir@/p' 25171case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25172*datarootdir*) ac_datarootdir_seen=yes;; 25173*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25175printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25176_ACEOF 25177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25178 ac_datarootdir_hack=' 25179 s&@datadir@&$datadir&g 25180 s&@docdir@&$docdir&g 25181 s&@infodir@&$infodir&g 25182 s&@localedir@&$localedir&g 25183 s&@mandir@&$mandir&g 25184 s&\\\${datarootdir}&$datarootdir&g' ;; 25185esac 25186_ACEOF 25187 25188# Neutralize VPATH when '$srcdir' = '.'. 25189# Shell code in configure.ac might set extrasub. 25190# FIXME: do we really want to maintain this feature? 25191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25192ac_sed_extra="$ac_vpsub 25193$extrasub 25194_ACEOF 25195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25196:t 25197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25198s|@configure_input@|$ac_sed_conf_input|;t t 25199s&@top_builddir@&$ac_top_builddir_sub&;t t 25200s&@top_build_prefix@&$ac_top_build_prefix&;t t 25201s&@srcdir@&$ac_srcdir&;t t 25202s&@abs_srcdir@&$ac_abs_srcdir&;t t 25203s&@top_srcdir@&$ac_top_srcdir&;t t 25204s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25205s&@builddir@&$ac_builddir&;t t 25206s&@abs_builddir@&$ac_abs_builddir&;t t 25207s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25208s&@INSTALL@&$ac_INSTALL&;t t 25209s&@MKDIR_P@&$ac_MKDIR_P&;t t 25210$ac_datarootdir_hack 25211" 25212eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25213 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25214 25215test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25216 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25217 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25218 "$ac_tmp/out"`; test -z "$ac_out"; } && 25219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 25220which seems to be undefined. Please make sure it is defined" >&5 25221printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 25222which seems to be undefined. Please make sure it is defined" >&2;} 25223 25224 rm -f "$ac_tmp/stdin" 25225 case $ac_file in 25226 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25227 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25228 esac \ 25229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25230 ;; 25231 :H) 25232 # 25233 # CONFIG_HEADER 25234 # 25235 if test x"$ac_file" != x-; then 25236 { 25237 printf "%s\n" "/* $configure_input */" >&1 \ 25238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25239 } >"$ac_tmp/config.h" \ 25240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25241 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25243printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 25244 else 25245 rm -f "$ac_file" 25246 mv "$ac_tmp/config.h" "$ac_file" \ 25247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25248 fi 25249 else 25250 printf "%s\n" "/* $configure_input */" >&1 \ 25251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25252 || as_fn_error $? "could not create -" "$LINENO" 5 25253 fi 25254# Compute "$ac_file"'s index in $config_headers. 25255_am_arg="$ac_file" 25256_am_stamp_count=1 25257for _am_header in $config_headers :; do 25258 case $_am_header in 25259 $_am_arg | $_am_arg:* ) 25260 break ;; 25261 * ) 25262 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25263 esac 25264done 25265echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 25266$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25267 X"$_am_arg" : 'X\(//\)[^/]' \| \ 25268 X"$_am_arg" : 'X\(//\)$' \| \ 25269 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 25270printf "%s\n" X"$_am_arg" | 25271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25272 s//\1/ 25273 q 25274 } 25275 /^X\(\/\/\)[^/].*/{ 25276 s//\1/ 25277 q 25278 } 25279 /^X\(\/\/\)$/{ 25280 s//\1/ 25281 q 25282 } 25283 /^X\(\/\).*/{ 25284 s//\1/ 25285 q 25286 } 25287 s/.*/./; q'`/stamp-h$_am_stamp_count 25288 ;; 25289 25290 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25291printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 25292 ;; 25293 esac 25294 25295 25296 case $ac_file$ac_mode in 25297 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 25298 # Older Autoconf quotes --file arguments for eval, but not when files 25299 # are listed without --file. Let's play safe and only enable the eval 25300 # if we detect the quoting. 25301 # TODO: see whether this extra hack can be removed once we start 25302 # requiring Autoconf 2.70 or later. 25303 case $CONFIG_FILES in #( 25304 *\'*) : 25305 eval set x "$CONFIG_FILES" ;; #( 25306 *) : 25307 set x $CONFIG_FILES ;; #( 25308 *) : 25309 ;; 25310esac 25311 shift 25312 # Used to flag and report bootstrapping failures. 25313 am_rc=0 25314 for am_mf 25315 do 25316 # Strip MF so we end up with the name of the file. 25317 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 25318 # Check whether this is an Automake generated Makefile which includes 25319 # dependency-tracking related rules and includes. 25320 # Grep'ing the whole file directly is not great: AIX grep has a line 25321 # limit of 2048, but all sed's we know have understand at least 4000. 25322 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 25323 || continue 25324 am_dirpart=`$as_dirname -- "$am_mf" || 25325$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25326 X"$am_mf" : 'X\(//\)[^/]' \| \ 25327 X"$am_mf" : 'X\(//\)$' \| \ 25328 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25329printf "%s\n" X"$am_mf" | 25330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25331 s//\1/ 25332 q 25333 } 25334 /^X\(\/\/\)[^/].*/{ 25335 s//\1/ 25336 q 25337 } 25338 /^X\(\/\/\)$/{ 25339 s//\1/ 25340 q 25341 } 25342 /^X\(\/\).*/{ 25343 s//\1/ 25344 q 25345 } 25346 s/.*/./; q'` 25347 am_filepart=`$as_basename -- "$am_mf" || 25348$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 25349 X"$am_mf" : 'X\(//\)$' \| \ 25350 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25351printf "%s\n" X/"$am_mf" | 25352 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25353 s//\1/ 25354 q 25355 } 25356 /^X\/\(\/\/\)$/{ 25357 s//\1/ 25358 q 25359 } 25360 /^X\/\(\/\).*/{ 25361 s//\1/ 25362 q 25363 } 25364 s/.*/./; q'` 25365 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 25366 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25367 | $MAKE -f - am--depfiles" >&5 25368 (cd "$am_dirpart" \ 25369 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25370 | $MAKE -f - am--depfiles) >&5 2>&5 25371 ac_status=$? 25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25373 (exit $ac_status); } || am_rc=$? 25374 done 25375 if test $am_rc -ne 0; then 25376 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25377printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25378as_fn_error $? "Something went wrong bootstrapping makefile fragments 25379 for automatic dependency tracking. If GNU make was not used, consider 25380 re-running the configure script with MAKE=\"gmake\" (or whatever is 25381 necessary). You can also try re-running configure with the 25382 '--disable-dependency-tracking' option to at least be able to build 25383 the package (albeit without support for automatic dependency tracking). 25384See 'config.log' for more details" "$LINENO" 5; } 25385 fi 25386 { am_dirpart=; unset am_dirpart;} 25387 { am_filepart=; unset am_filepart;} 25388 { am_mf=; unset am_mf;} 25389 { am_rc=; unset am_rc;} 25390 rm -f conftest-deps.mk 25391} 25392 ;; 25393 "libtool":C) 25394 25395 # See if we are running on zsh, and set the options that allow our 25396 # commands through without removal of \ escapes. 25397 if test -n "${ZSH_VERSION+set}"; then 25398 setopt NO_GLOB_SUBST 25399 fi 25400 25401 cfgfile=${ofile}T 25402 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25403 $RM "$cfgfile" 25404 25405 cat <<_LT_EOF >> "$cfgfile" 25406#! $SHELL 25407# Generated automatically by $as_me ($PACKAGE) $VERSION 25408# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25409# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25410 25411# Provide generalized library-building support services. 25412# Written by Gordon Matzigkeit, 1996 25413 25414# Copyright (C) 2014 Free Software Foundation, Inc. 25415# This is free software; see the source for copying conditions. There is NO 25416# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 25417 25418# GNU Libtool is free software; you can redistribute it and/or modify 25419# it under the terms of the GNU General Public License as published by 25420# the Free Software Foundation; either version 2 of of the License, or 25421# (at your option) any later version. 25422# 25423# As a special exception to the GNU General Public License, if you 25424# distribute this file as part of a program or library that is built 25425# using GNU Libtool, you may include this file under the same 25426# distribution terms that you use for the rest of that program. 25427# 25428# GNU Libtool is distributed in the hope that it will be useful, but 25429# WITHOUT ANY WARRANTY; without even the implied warranty of 25430# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25431# GNU General Public License for more details. 25432# 25433# You should have received a copy of the GNU General Public License 25434# along with this program. If not, see <http://www.gnu.org/licenses/>. 25435 25436 25437# The names of the tagged configurations supported by this script. 25438available_tags='' 25439 25440# Configured defaults for sys_lib_dlsearch_path munging. 25441: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 25442 25443# ### BEGIN LIBTOOL CONFIG 25444 25445# Which release of libtool.m4 was used? 25446macro_version=$macro_version 25447macro_revision=$macro_revision 25448 25449# Whether or not to build shared libraries. 25450build_libtool_libs=$enable_shared 25451 25452# Whether or not to build static libraries. 25453build_old_libs=$enable_static 25454 25455# What type of objects to build. 25456pic_mode=$pic_mode 25457 25458# Whether or not to optimize for fast installation. 25459fast_install=$enable_fast_install 25460 25461# Shared archive member basename,for filename based shared library versioning on AIX. 25462shared_archive_member_spec=$shared_archive_member_spec 25463 25464# Shell to use when invoking shell scripts. 25465SHELL=$lt_SHELL 25466 25467# An echo program that protects backslashes. 25468ECHO=$lt_ECHO 25469 25470# The PATH separator for the build system. 25471PATH_SEPARATOR=$lt_PATH_SEPARATOR 25472 25473# The host system. 25474host_alias=$host_alias 25475host=$host 25476host_os=$host_os 25477 25478# The build system. 25479build_alias=$build_alias 25480build=$build 25481build_os=$build_os 25482 25483# A sed program that does not truncate output. 25484SED=$lt_SED 25485 25486# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25487Xsed="\$SED -e 1s/^X//" 25488 25489# A grep program that handles long lines. 25490GREP=$lt_GREP 25491 25492# An ERE matcher. 25493EGREP=$lt_EGREP 25494 25495# A literal string matcher. 25496FGREP=$lt_FGREP 25497 25498# A BSD- or MS-compatible name lister. 25499NM=$lt_NM 25500 25501# Whether we need soft or hard links. 25502LN_S=$lt_LN_S 25503 25504# What is the maximum length of a command? 25505max_cmd_len=$max_cmd_len 25506 25507# Object file suffix (normally "o"). 25508objext=$ac_objext 25509 25510# Executable file suffix (normally ""). 25511exeext=$exeext 25512 25513# whether the shell understands "unset". 25514lt_unset=$lt_unset 25515 25516# turn spaces into newlines. 25517SP2NL=$lt_lt_SP2NL 25518 25519# turn newlines into spaces. 25520NL2SP=$lt_lt_NL2SP 25521 25522# convert \$build file names to \$host format. 25523to_host_file_cmd=$lt_cv_to_host_file_cmd 25524 25525# convert \$build files to toolchain format. 25526to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25527 25528# A file(cmd) program that detects file types. 25529FILECMD=$lt_FILECMD 25530 25531# An object symbol dumper. 25532OBJDUMP=$lt_OBJDUMP 25533 25534# Method to check whether dependent libraries are shared objects. 25535deplibs_check_method=$lt_deplibs_check_method 25536 25537# Command to use when deplibs_check_method = "file_magic". 25538file_magic_cmd=$lt_file_magic_cmd 25539 25540# How to find potential files when deplibs_check_method = "file_magic". 25541file_magic_glob=$lt_file_magic_glob 25542 25543# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25544want_nocaseglob=$lt_want_nocaseglob 25545 25546# DLL creation program. 25547DLLTOOL=$lt_DLLTOOL 25548 25549# Command to associate shared and link libraries. 25550sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25551 25552# The archiver. 25553AR=$lt_AR 25554 25555# Flags to create an archive (by configure). 25556lt_ar_flags=$lt_ar_flags 25557 25558# Flags to create an archive. 25559AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 25560 25561# How to feed a file listing to the archiver. 25562archiver_list_spec=$lt_archiver_list_spec 25563 25564# A symbol stripping program. 25565STRIP=$lt_STRIP 25566 25567# Commands used to install an old-style archive. 25568RANLIB=$lt_RANLIB 25569old_postinstall_cmds=$lt_old_postinstall_cmds 25570old_postuninstall_cmds=$lt_old_postuninstall_cmds 25571 25572# Whether to use a lock for old archive extraction. 25573lock_old_archive_extraction=$lock_old_archive_extraction 25574 25575# A C compiler. 25576LTCC=$lt_CC 25577 25578# LTCC compiler flags. 25579LTCFLAGS=$lt_CFLAGS 25580 25581# Take the output of nm and produce a listing of raw symbols and C names. 25582global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25583 25584# Transform the output of nm in a proper C declaration. 25585global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25586 25587# Transform the output of nm into a list of symbols to manually relocate. 25588global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 25589 25590# Transform the output of nm in a C name address pair. 25591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25592 25593# Transform the output of nm in a C name address pair when lib prefix is needed. 25594global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25595 25596# The name lister interface. 25597nm_interface=$lt_lt_cv_nm_interface 25598 25599# Specify filename containing input files for \$NM. 25600nm_file_list_spec=$lt_nm_file_list_spec 25601 25602# The root where to search for dependent libraries,and where our libraries should be installed. 25603lt_sysroot=$lt_sysroot 25604 25605# Command to truncate a binary pipe. 25606lt_truncate_bin=$lt_lt_cv_truncate_bin 25607 25608# The name of the directory that contains temporary libtool files. 25609objdir=$objdir 25610 25611# Used to examine libraries when file_magic_cmd begins with "file". 25612MAGIC_CMD=$MAGIC_CMD 25613 25614# Must we lock files when doing compilation? 25615need_locks=$lt_need_locks 25616 25617# Manifest tool. 25618MANIFEST_TOOL=$lt_MANIFEST_TOOL 25619 25620# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25621DSYMUTIL=$lt_DSYMUTIL 25622 25623# Tool to change global to local symbols on Mac OS X. 25624NMEDIT=$lt_NMEDIT 25625 25626# Tool to manipulate fat objects and archives on Mac OS X. 25627LIPO=$lt_LIPO 25628 25629# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25630OTOOL=$lt_OTOOL 25631 25632# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25633OTOOL64=$lt_OTOOL64 25634 25635# Old archive suffix (normally "a"). 25636libext=$libext 25637 25638# Shared library suffix (normally ".so"). 25639shrext_cmds=$lt_shrext_cmds 25640 25641# The commands to extract the exported symbol list from a shared archive. 25642extract_expsyms_cmds=$lt_extract_expsyms_cmds 25643 25644# Variables whose values should be saved in libtool wrapper scripts and 25645# restored at link time. 25646variables_saved_for_relink=$lt_variables_saved_for_relink 25647 25648# Do we need the "lib" prefix for modules? 25649need_lib_prefix=$need_lib_prefix 25650 25651# Do we need a version for libraries? 25652need_version=$need_version 25653 25654# Library versioning type. 25655version_type=$version_type 25656 25657# Shared library runtime path variable. 25658runpath_var=$runpath_var 25659 25660# Shared library path variable. 25661shlibpath_var=$shlibpath_var 25662 25663# Is shlibpath searched before the hard-coded library search path? 25664shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25665 25666# Format of library name prefix. 25667libname_spec=$lt_libname_spec 25668 25669# List of archive names. First name is the real one, the rest are links. 25670# The last name is the one that the linker finds with -lNAME 25671library_names_spec=$lt_library_names_spec 25672 25673# The coded name of the library, if different from the real name. 25674soname_spec=$lt_soname_spec 25675 25676# Permission mode override for installation of shared libraries. 25677install_override_mode=$lt_install_override_mode 25678 25679# Command to use after installation of a shared archive. 25680postinstall_cmds=$lt_postinstall_cmds 25681 25682# Command to use after uninstallation of a shared archive. 25683postuninstall_cmds=$lt_postuninstall_cmds 25684 25685# Commands used to finish a libtool library installation in a directory. 25686finish_cmds=$lt_finish_cmds 25687 25688# As "finish_cmds", except a single script fragment to be evaled but 25689# not shown. 25690finish_eval=$lt_finish_eval 25691 25692# Whether we should hardcode library paths into libraries. 25693hardcode_into_libs=$hardcode_into_libs 25694 25695# Compile-time system search path for libraries. 25696sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25697 25698# Detected run-time system search path for libraries. 25699sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 25700 25701# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 25702configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 25703 25704# Whether dlopen is supported. 25705dlopen_support=$enable_dlopen 25706 25707# Whether dlopen of programs is supported. 25708dlopen_self=$enable_dlopen_self 25709 25710# Whether dlopen of statically linked programs is supported. 25711dlopen_self_static=$enable_dlopen_self_static 25712 25713# Commands to strip libraries. 25714old_striplib=$lt_old_striplib 25715striplib=$lt_striplib 25716 25717 25718# The linker used to build libraries. 25719LD=$lt_LD 25720 25721# How to create reloadable object files. 25722reload_flag=$lt_reload_flag 25723reload_cmds=$lt_reload_cmds 25724 25725# Commands used to build an old-style archive. 25726old_archive_cmds=$lt_old_archive_cmds 25727 25728# A language specific compiler. 25729CC=$lt_compiler 25730 25731# Is the compiler the GNU compiler? 25732with_gcc=$GCC 25733 25734# Compiler flag to turn off builtin functions. 25735no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25736 25737# Additional compiler flags for building library objects. 25738pic_flag=$lt_lt_prog_compiler_pic 25739 25740# How to pass a linker flag through the compiler. 25741wl=$lt_lt_prog_compiler_wl 25742 25743# Compiler flag to prevent dynamic linking. 25744link_static_flag=$lt_lt_prog_compiler_static 25745 25746# Does compiler simultaneously support -c and -o options? 25747compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25748 25749# Whether or not to add -lc for building shared libraries. 25750build_libtool_need_lc=$archive_cmds_need_lc 25751 25752# Whether or not to disallow shared libs when runtime libs are static. 25753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25754 25755# Compiler flag to allow reflexive dlopens. 25756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25757 25758# Compiler flag to generate shared objects directly from archives. 25759whole_archive_flag_spec=$lt_whole_archive_flag_spec 25760 25761# Whether the compiler copes with passing no objects directly. 25762compiler_needs_object=$lt_compiler_needs_object 25763 25764# Create an old-style archive from a shared archive. 25765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25766 25767# Create a temporary old-style archive to link instead of a shared archive. 25768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25769 25770# Commands used to build a shared archive. 25771archive_cmds=$lt_archive_cmds 25772archive_expsym_cmds=$lt_archive_expsym_cmds 25773 25774# Commands used to build a loadable module if different from building 25775# a shared archive. 25776module_cmds=$lt_module_cmds 25777module_expsym_cmds=$lt_module_expsym_cmds 25778 25779# Whether we are building with GNU ld or not. 25780with_gnu_ld=$lt_with_gnu_ld 25781 25782# Flag that allows shared libraries with undefined symbols to be built. 25783allow_undefined_flag=$lt_allow_undefined_flag 25784 25785# Flag that enforces no undefined symbols. 25786no_undefined_flag=$lt_no_undefined_flag 25787 25788# Flag to hardcode \$libdir into a binary during linking. 25789# This must work even if \$libdir does not exist 25790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25791 25792# Whether we need a single "-rpath" flag with a separated argument. 25793hardcode_libdir_separator=$lt_hardcode_libdir_separator 25794 25795# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25796# DIR into the resulting binary. 25797hardcode_direct=$hardcode_direct 25798 25799# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25800# DIR into the resulting binary and the resulting library dependency is 25801# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25802# library is relocated. 25803hardcode_direct_absolute=$hardcode_direct_absolute 25804 25805# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25806# into the resulting binary. 25807hardcode_minus_L=$hardcode_minus_L 25808 25809# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25810# into the resulting binary. 25811hardcode_shlibpath_var=$hardcode_shlibpath_var 25812 25813# Set to "yes" if building a shared library automatically hardcodes DIR 25814# into the library and all subsequent libraries and executables linked 25815# against it. 25816hardcode_automatic=$hardcode_automatic 25817 25818# Set to yes if linker adds runtime paths of dependent libraries 25819# to runtime path list. 25820inherit_rpath=$inherit_rpath 25821 25822# Whether libtool must link a program against all its dependency libraries. 25823link_all_deplibs=$link_all_deplibs 25824 25825# Set to "yes" if exported symbols are required. 25826always_export_symbols=$always_export_symbols 25827 25828# The commands to list exported symbols. 25829export_symbols_cmds=$lt_export_symbols_cmds 25830 25831# Symbols that should not be listed in the preloaded symbols. 25832exclude_expsyms=$lt_exclude_expsyms 25833 25834# Symbols that must always be exported. 25835include_expsyms=$lt_include_expsyms 25836 25837# Commands necessary for linking programs (against libraries) with templates. 25838prelink_cmds=$lt_prelink_cmds 25839 25840# Commands necessary for finishing linking programs. 25841postlink_cmds=$lt_postlink_cmds 25842 25843# Specify filename containing input files. 25844file_list_spec=$lt_file_list_spec 25845 25846# How to hardcode a shared library path into an executable. 25847hardcode_action=$hardcode_action 25848 25849# ### END LIBTOOL CONFIG 25850 25851_LT_EOF 25852 25853 cat <<'_LT_EOF' >> "$cfgfile" 25854 25855# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25856 25857# func_munge_path_list VARIABLE PATH 25858# ----------------------------------- 25859# VARIABLE is name of variable containing _space_ separated list of 25860# directories to be munged by the contents of PATH, which is string 25861# having a format: 25862# "DIR[:DIR]:" 25863# string "DIR[ DIR]" will be prepended to VARIABLE 25864# ":DIR[:DIR]" 25865# string "DIR[ DIR]" will be appended to VARIABLE 25866# "DIRP[:DIRP]::[DIRA:]DIRA" 25867# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25868# "DIRA[ DIRA]" will be appended to VARIABLE 25869# "DIR[:DIR]" 25870# VARIABLE will be replaced by "DIR[ DIR]" 25871func_munge_path_list () 25872{ 25873 case x$2 in 25874 x) 25875 ;; 25876 *:) 25877 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25878 ;; 25879 x:*) 25880 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25881 ;; 25882 *::*) 25883 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25884 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25885 ;; 25886 *) 25887 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25888 ;; 25889 esac 25890} 25891 25892 25893# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25894func_cc_basename () 25895{ 25896 for cc_temp in $*""; do 25897 case $cc_temp in 25898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25900 \-*) ;; 25901 *) break;; 25902 esac 25903 done 25904 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25905} 25906 25907 25908# ### END FUNCTIONS SHARED WITH CONFIGURE 25909 25910_LT_EOF 25911 25912 case $host_os in 25913 aix3*) 25914 cat <<\_LT_EOF >> "$cfgfile" 25915# AIX sometimes has problems with the GCC collect2 program. For some 25916# reason, if we set the COLLECT_NAMES environment variable, the problems 25917# vanish in a puff of smoke. 25918if test set != "${COLLECT_NAMES+set}"; then 25919 COLLECT_NAMES= 25920 export COLLECT_NAMES 25921fi 25922_LT_EOF 25923 ;; 25924 esac 25925 25926 25927 25928ltmain=$ac_aux_dir/ltmain.sh 25929 25930 25931 # We use sed instead of cat because bash on DJGPP gets confused if 25932 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25933 # text mode, it properly converts lines to CR/LF. This bash problem 25934 # is reportedly fixed, but why not run on old versions too? 25935 $SED '$q' "$ltmain" >> "$cfgfile" \ 25936 || (rm -f "$cfgfile"; exit 1) 25937 25938 mv -f "$cfgfile" "$ofile" || 25939 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25940 chmod +x "$ofile" 25941 25942 ;; 25943 25944 esac 25945done # for ac_tag 25946 25947 25948as_fn_exit 0 25949_ACEOF 25950ac_clean_files=$ac_clean_files_save 25951 25952test $ac_write_fail = 0 || 25953 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25954 25955 25956# configure is writing to config.log, and then calls config.status. 25957# config.status does its own redirection, appending to config.log. 25958# Unfortunately, on DOS this fails, as config.log is still kept open 25959# by configure, so config.status won't be able to write to it; its 25960# output is simply discarded. So we exec the FD to /dev/null, 25961# effectively closing config.log, so it can be properly (re)opened and 25962# appended to by config.status. When coming back to configure, we 25963# need to make the FD available again. 25964if test "$no_create" != yes; then 25965 ac_cs_success=: 25966 ac_config_status_args= 25967 test "$silent" = yes && 25968 ac_config_status_args="$ac_config_status_args --quiet" 25969 exec 5>/dev/null 25970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25971 exec 5>>config.log 25972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25973 # would make configure fail if this is the last instruction. 25974 $ac_cs_success || as_fn_exit 1 25975fi 25976if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25978printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25979fi 25980 25981 25982echo "" 25983echo "$PACKAGE_STRING will be built with the following settings:" 25984echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 25985echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 25986echo " Threading support: "$xthreads 25987echo " Use Threads safe API: "$mtsafeapi 25988echo " Use thread safety constructor: "$USE_THREAD_SAFETY_CONSTRUCTOR 25989echo " XCMS: "$XCMS 25990echo " Internationalization support: "$XLOCALE 25991echo " XF86BigFont support: "$XF86BIGFONT 25992echo " XKB support: "$XKB 25993echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 25994echo " Compose table cache enabled: "$COMPOSECACHE 25995echo " Functional specs building enabled: "$build_specs 25996echo "" 25997 25998