1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libXt 1.3.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxt/-/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/libxt/-/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='libXt' 677PACKAGE_TARNAME='libXt' 678PACKAGE_VERSION='1.3.1' 679PACKAGE_STRING='libXt 1.3.1' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxt/-/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_subst_vars='am__EXEEXT_FALSE 717am__EXEEXT_TRUE 718LTLIBOBJS 719LIBOBJS 720ERRORDBDIR 721STRINGSABIOPTIONS 722appdefaultdir 723XFILESEARCHPATHDEFAULT 724HAVE_GLIB_FALSE 725HAVE_GLIB_TRUE 726GLIB_LIBS 727GLIB_CFLAGS 728ENABLE_UNIT_TESTS_FALSE 729ENABLE_UNIT_TESTS_TRUE 730XORG_MALLOC_DEBUG_ENV 731LDFLAGS_FOR_BUILD 732CFLAGS_FOR_BUILD 733CPPFLAGS_FOR_BUILD 734CC_FOR_BUILD 735XT_LIBS 736XT_CFLAGS 737HAVE_PERL_FALSE 738HAVE_PERL_TRUE 739PERL 740TRADITIONALCPPFLAGS 741RAWCPPFLAGS 742RAWCPP 743CPP 744HAVE_STYLESHEETS_FALSE 745HAVE_STYLESHEETS_TRUE 746XSL_STYLESHEET 747STYLESHEET_SRCDIR 748XORG_SGML_PATH 749HAVE_XSLTPROC_FALSE 750HAVE_XSLTPROC_TRUE 751XSLTPROC 752HAVE_FOP_FALSE 753HAVE_FOP_TRUE 754FOP 755HAVE_XMLTO_FALSE 756HAVE_XMLTO_TRUE 757HAVE_XMLTO_TEXT_FALSE 758HAVE_XMLTO_TEXT_TRUE 759XMLTO 760ENABLE_SPECS_FALSE 761ENABLE_SPECS_TRUE 762XTMALLOC_ZERO_CFLAGS 763XMALLOC_ZERO_CFLAGS 764MALLOC_ZERO_CFLAGS 765MAN_SUBSTS 766XORG_MAN_PAGE 767ADMIN_MAN_DIR 768DRIVER_MAN_DIR 769MISC_MAN_DIR 770FILE_MAN_DIR 771LIB_MAN_DIR 772APP_MAN_DIR 773ADMIN_MAN_SUFFIX 774DRIVER_MAN_SUFFIX 775MISC_MAN_SUFFIX 776FILE_MAN_SUFFIX 777LIB_MAN_SUFFIX 778APP_MAN_SUFFIX 779INSTALL_CMD 780PKG_CONFIG_LIBDIR 781PKG_CONFIG_PATH 782PKG_CONFIG 783CHANGELOG_CMD 784STRICT_CFLAGS 785CWARNFLAGS 786BASE_CFLAGS 787LT_SYS_LIBRARY_PATH 788OTOOL64 789OTOOL 790LIPO 791NMEDIT 792DSYMUTIL 793MANIFEST_TOOL 794RANLIB 795ac_ct_AR 796AR 797DLLTOOL 798OBJDUMP 799FILECMD 800LN_S 801NM 802ac_ct_DUMPBIN 803DUMPBIN 804LD 805FGREP 806EGREP 807GREP 808SED 809host_os 810host_vendor 811host_cpu 812host 813build_os 814build_vendor 815build_cpu 816build 817LIBTOOL 818AM_BACKSLASH 819AM_DEFAULT_VERBOSITY 820AM_DEFAULT_V 821AM_V 822CSCOPE 823ETAGS 824CTAGS 825am__fastdepCC_FALSE 826am__fastdepCC_TRUE 827CCDEPMODE 828am__nodep 829AMDEPBACKSLASH 830AMDEP_FALSE 831AMDEP_TRUE 832am__include 833DEPDIR 834am__untar 835am__tar 836AMTAR 837am__leading_dot 838SET_MAKE 839AWK 840mkdir_p 841MKDIR_P 842INSTALL_STRIP_PROGRAM 843STRIP 844install_sh 845MAKEINFO 846AUTOHEADER 847AUTOMAKE 848AUTOCONF 849ACLOCAL 850VERSION 851PACKAGE 852CYGPATH_W 853am__isrc 854INSTALL_DATA 855INSTALL_SCRIPT 856INSTALL_PROGRAM 857OBJEXT 858EXEEXT 859ac_ct_CC 860CPPFLAGS 861LDFLAGS 862CFLAGS 863CC 864target_alias 865host_alias 866build_alias 867LIBS 868ECHO_T 869ECHO_N 870ECHO_C 871DEFS 872mandir 873localedir 874libdir 875psdir 876pdfdir 877dvidir 878htmldir 879infodir 880docdir 881oldincludedir 882includedir 883runstatedir 884localstatedir 885sharedstatedir 886sysconfdir 887datadir 888datarootdir 889libexecdir 890sbindir 891bindir 892program_transform_name 893prefix 894exec_prefix 895PACKAGE_URL 896PACKAGE_BUGREPORT 897PACKAGE_STRING 898PACKAGE_VERSION 899PACKAGE_TARNAME 900PACKAGE_NAME 901PATH_SEPARATOR 902SHELL 903am__quote' 904ac_subst_files='' 905ac_user_opts=' 906enable_option_checking 907enable_dependency_tracking 908enable_silent_rules 909enable_shared 910enable_static 911with_pic 912enable_fast_install 913with_aix_soname 914with_gnu_ld 915with_sysroot 916enable_libtool_lock 917enable_selective_werror 918enable_strict_compilation 919enable_malloc0returnsnull 920enable_specs 921with_xmlto 922with_fop 923with_xsltproc 924with_perl 925enable_xkb 926enable_const 927enable_geo_tattler 928enable_unit_tests 929with_glib 930with_xfile_search_path 931with_appdefaultdir 932' 933 ac_precious_vars='build_alias 934host_alias 935target_alias 936CC 937CFLAGS 938LDFLAGS 939LIBS 940CPPFLAGS 941LT_SYS_LIBRARY_PATH 942PKG_CONFIG 943PKG_CONFIG_PATH 944PKG_CONFIG_LIBDIR 945XMLTO 946FOP 947XSLTPROC 948CPP 949PERL 950XT_CFLAGS 951XT_LIBS 952XORG_MALLOC_DEBUG_ENV 953GLIB_CFLAGS 954GLIB_LIBS' 955 956 957# Initialize some variables set by options. 958ac_init_help= 959ac_init_version=false 960ac_unrecognized_opts= 961ac_unrecognized_sep= 962# The variables have the same names as the options, with 963# dashes changed to underlines. 964cache_file=/dev/null 965exec_prefix=NONE 966no_create= 967no_recursion= 968prefix=NONE 969program_prefix=NONE 970program_suffix=NONE 971program_transform_name=s,x,x, 972silent= 973site= 974srcdir= 975verbose= 976x_includes=NONE 977x_libraries=NONE 978 979# Installation directory options. 980# These are left unexpanded so users can "make install exec_prefix=/foo" 981# and all the variables that are supposed to be based on exec_prefix 982# by default will actually change. 983# Use braces instead of parens because sh, perl, etc. also accept them. 984# (The list follows the same order as the GNU Coding Standards.) 985bindir='${exec_prefix}/bin' 986sbindir='${exec_prefix}/sbin' 987libexecdir='${exec_prefix}/libexec' 988datarootdir='${prefix}/share' 989datadir='${datarootdir}' 990sysconfdir='${prefix}/etc' 991sharedstatedir='${prefix}/com' 992localstatedir='${prefix}/var' 993runstatedir='${localstatedir}/run' 994includedir='${prefix}/include' 995oldincludedir='/usr/include' 996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 997infodir='${datarootdir}/info' 998htmldir='${docdir}' 999dvidir='${docdir}' 1000pdfdir='${docdir}' 1001psdir='${docdir}' 1002libdir='${exec_prefix}/lib' 1003localedir='${datarootdir}/locale' 1004mandir='${datarootdir}/man' 1005 1006ac_prev= 1007ac_dashdash= 1008for ac_option 1009do 1010 # If the previous option needs an argument, assign it. 1011 if test -n "$ac_prev"; then 1012 eval $ac_prev=\$ac_option 1013 ac_prev= 1014 continue 1015 fi 1016 1017 case $ac_option in 1018 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1019 *=) ac_optarg= ;; 1020 *) ac_optarg=yes ;; 1021 esac 1022 1023 case $ac_dashdash$ac_option in 1024 --) 1025 ac_dashdash=yes ;; 1026 1027 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1028 ac_prev=bindir ;; 1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1030 bindir=$ac_optarg ;; 1031 1032 -build | --build | --buil | --bui | --bu) 1033 ac_prev=build_alias ;; 1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1035 build_alias=$ac_optarg ;; 1036 1037 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1039 ac_prev=cache_file ;; 1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1042 cache_file=$ac_optarg ;; 1043 1044 --config-cache | -C) 1045 cache_file=config.cache ;; 1046 1047 -datadir | --datadir | --datadi | --datad) 1048 ac_prev=datadir ;; 1049 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1050 datadir=$ac_optarg ;; 1051 1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1053 | --dataroo | --dataro | --datar) 1054 ac_prev=datarootdir ;; 1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1057 datarootdir=$ac_optarg ;; 1058 1059 -disable-* | --disable-*) 1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1061 # Reject names that are not valid shell variable names. 1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1063 as_fn_error $? "invalid feature name: '$ac_useropt'" 1064 ac_useropt_orig=$ac_useropt 1065 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1066 case $ac_user_opts in 1067 *" 1068"enable_$ac_useropt" 1069"*) ;; 1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1071 ac_unrecognized_sep=', ';; 1072 esac 1073 eval enable_$ac_useropt=no ;; 1074 1075 -docdir | --docdir | --docdi | --doc | --do) 1076 ac_prev=docdir ;; 1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1078 docdir=$ac_optarg ;; 1079 1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1081 ac_prev=dvidir ;; 1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1083 dvidir=$ac_optarg ;; 1084 1085 -enable-* | --enable-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid feature name: '$ac_useropt'" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"enable_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval enable_$ac_useropt=\$ac_optarg ;; 1100 1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1103 | --exec | --exe | --ex) 1104 ac_prev=exec_prefix ;; 1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1107 | --exec=* | --exe=* | --ex=*) 1108 exec_prefix=$ac_optarg ;; 1109 1110 -gas | --gas | --ga | --g) 1111 # Obsolete; use --with-gas. 1112 with_gas=yes ;; 1113 1114 -help | --help | --hel | --he | -h) 1115 ac_init_help=long ;; 1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1117 ac_init_help=recursive ;; 1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1119 ac_init_help=short ;; 1120 1121 -host | --host | --hos | --ho) 1122 ac_prev=host_alias ;; 1123 -host=* | --host=* | --hos=* | --ho=*) 1124 host_alias=$ac_optarg ;; 1125 1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1127 ac_prev=htmldir ;; 1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1129 | --ht=*) 1130 htmldir=$ac_optarg ;; 1131 1132 -includedir | --includedir | --includedi | --included | --include \ 1133 | --includ | --inclu | --incl | --inc) 1134 ac_prev=includedir ;; 1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1136 | --includ=* | --inclu=* | --incl=* | --inc=*) 1137 includedir=$ac_optarg ;; 1138 1139 -infodir | --infodir | --infodi | --infod | --info | --inf) 1140 ac_prev=infodir ;; 1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1142 infodir=$ac_optarg ;; 1143 1144 -libdir | --libdir | --libdi | --libd) 1145 ac_prev=libdir ;; 1146 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1147 libdir=$ac_optarg ;; 1148 1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1150 | --libexe | --libex | --libe) 1151 ac_prev=libexecdir ;; 1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1153 | --libexe=* | --libex=* | --libe=*) 1154 libexecdir=$ac_optarg ;; 1155 1156 -localedir | --localedir | --localedi | --localed | --locale) 1157 ac_prev=localedir ;; 1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1159 localedir=$ac_optarg ;; 1160 1161 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1162 | --localstate | --localstat | --localsta | --localst | --locals) 1163 ac_prev=localstatedir ;; 1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1166 localstatedir=$ac_optarg ;; 1167 1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1169 ac_prev=mandir ;; 1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1171 mandir=$ac_optarg ;; 1172 1173 -nfp | --nfp | --nf) 1174 # Obsolete; use --without-fp. 1175 with_fp=no ;; 1176 1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1178 | --no-cr | --no-c | -n) 1179 no_create=yes ;; 1180 1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1183 no_recursion=yes ;; 1184 1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1187 | --oldin | --oldi | --old | --ol | --o) 1188 ac_prev=oldincludedir ;; 1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1192 oldincludedir=$ac_optarg ;; 1193 1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1195 ac_prev=prefix ;; 1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1197 prefix=$ac_optarg ;; 1198 1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1200 | --program-pre | --program-pr | --program-p) 1201 ac_prev=program_prefix ;; 1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1204 program_prefix=$ac_optarg ;; 1205 1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1207 | --program-suf | --program-su | --program-s) 1208 ac_prev=program_suffix ;; 1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1211 program_suffix=$ac_optarg ;; 1212 1213 -program-transform-name | --program-transform-name \ 1214 | --program-transform-nam | --program-transform-na \ 1215 | --program-transform-n | --program-transform- \ 1216 | --program-transform | --program-transfor \ 1217 | --program-transfo | --program-transf \ 1218 | --program-trans | --program-tran \ 1219 | --progr-tra | --program-tr | --program-t) 1220 ac_prev=program_transform_name ;; 1221 -program-transform-name=* | --program-transform-name=* \ 1222 | --program-transform-nam=* | --program-transform-na=* \ 1223 | --program-transform-n=* | --program-transform-=* \ 1224 | --program-transform=* | --program-transfor=* \ 1225 | --program-transfo=* | --program-transf=* \ 1226 | --program-trans=* | --program-tran=* \ 1227 | --progr-tra=* | --program-tr=* | --program-t=*) 1228 program_transform_name=$ac_optarg ;; 1229 1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1231 ac_prev=pdfdir ;; 1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1233 pdfdir=$ac_optarg ;; 1234 1235 -psdir | --psdir | --psdi | --psd | --ps) 1236 ac_prev=psdir ;; 1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1238 psdir=$ac_optarg ;; 1239 1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1241 | -silent | --silent | --silen | --sile | --sil) 1242 silent=yes ;; 1243 1244 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1245 | --runstate | --runstat | --runsta | --runst | --runs \ 1246 | --run | --ru | --r) 1247 ac_prev=runstatedir ;; 1248 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1249 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1250 | --run=* | --ru=* | --r=*) 1251 runstatedir=$ac_optarg ;; 1252 1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1254 ac_prev=sbindir ;; 1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1256 | --sbi=* | --sb=*) 1257 sbindir=$ac_optarg ;; 1258 1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1261 | --sharedst | --shareds | --shared | --share | --shar \ 1262 | --sha | --sh) 1263 ac_prev=sharedstatedir ;; 1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1267 | --sha=* | --sh=*) 1268 sharedstatedir=$ac_optarg ;; 1269 1270 -site | --site | --sit) 1271 ac_prev=site ;; 1272 -site=* | --site=* | --sit=*) 1273 site=$ac_optarg ;; 1274 1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1276 ac_prev=srcdir ;; 1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1278 srcdir=$ac_optarg ;; 1279 1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1281 | --syscon | --sysco | --sysc | --sys | --sy) 1282 ac_prev=sysconfdir ;; 1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1285 sysconfdir=$ac_optarg ;; 1286 1287 -target | --target | --targe | --targ | --tar | --ta | --t) 1288 ac_prev=target_alias ;; 1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1290 target_alias=$ac_optarg ;; 1291 1292 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1293 verbose=yes ;; 1294 1295 -version | --version | --versio | --versi | --vers | -V) 1296 ac_init_version=: ;; 1297 1298 -with-* | --with-*) 1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1300 # Reject names that are not valid shell variable names. 1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1302 as_fn_error $? "invalid package name: '$ac_useropt'" 1303 ac_useropt_orig=$ac_useropt 1304 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1305 case $ac_user_opts in 1306 *" 1307"with_$ac_useropt" 1308"*) ;; 1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1310 ac_unrecognized_sep=', ';; 1311 esac 1312 eval with_$ac_useropt=\$ac_optarg ;; 1313 1314 -without-* | --without-*) 1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1316 # Reject names that are not valid shell variable names. 1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1318 as_fn_error $? "invalid package name: '$ac_useropt'" 1319 ac_useropt_orig=$ac_useropt 1320 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1321 case $ac_user_opts in 1322 *" 1323"with_$ac_useropt" 1324"*) ;; 1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1326 ac_unrecognized_sep=', ';; 1327 esac 1328 eval with_$ac_useropt=no ;; 1329 1330 --x) 1331 # Obsolete; use --with-x. 1332 with_x=yes ;; 1333 1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1335 | --x-incl | --x-inc | --x-in | --x-i) 1336 ac_prev=x_includes ;; 1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1339 x_includes=$ac_optarg ;; 1340 1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1343 ac_prev=x_libraries ;; 1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1346 x_libraries=$ac_optarg ;; 1347 1348 -*) as_fn_error $? "unrecognized option: '$ac_option' 1349Try '$0 --help' for more information" 1350 ;; 1351 1352 *=*) 1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1354 # Reject names that are not valid shell variable names. 1355 case $ac_envvar in #( 1356 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1357 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1358 esac 1359 eval $ac_envvar=\$ac_optarg 1360 export $ac_envvar ;; 1361 1362 *) 1363 # FIXME: should be removed in autoconf 3.0. 1364 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1366 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1367 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1368 ;; 1369 1370 esac 1371done 1372 1373if test -n "$ac_prev"; then 1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1375 as_fn_error $? "missing argument to $ac_option" 1376fi 1377 1378if test -n "$ac_unrecognized_opts"; then 1379 case $enable_option_checking in 1380 no) ;; 1381 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1382 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1383 esac 1384fi 1385 1386# Check all directory arguments for consistency. 1387for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1388 datadir sysconfdir sharedstatedir localstatedir includedir \ 1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1390 libdir localedir mandir runstatedir 1391do 1392 eval ac_val=\$$ac_var 1393 # Remove trailing slashes. 1394 case $ac_val in 1395 */ ) 1396 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1397 eval $ac_var=\$ac_val;; 1398 esac 1399 # Be sure to have absolute directory names. 1400 case $ac_val in 1401 [\\/$]* | ?:[\\/]* ) continue;; 1402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1403 esac 1404 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1405done 1406 1407# There might be people who depend on the old broken behavior: '$host' 1408# used to hold the argument of --host etc. 1409# FIXME: To remove some day. 1410build=$build_alias 1411host=$host_alias 1412target=$target_alias 1413 1414# FIXME: To remove some day. 1415if test "x$host_alias" != x; then 1416 if test "x$build_alias" = x; then 1417 cross_compiling=maybe 1418 elif test "x$build_alias" != "x$host_alias"; then 1419 cross_compiling=yes 1420 fi 1421fi 1422 1423ac_tool_prefix= 1424test -n "$host_alias" && ac_tool_prefix=$host_alias- 1425 1426test "$silent" = yes && exec 6>/dev/null 1427 1428 1429ac_pwd=`pwd` && test -n "$ac_pwd" && 1430ac_ls_di=`ls -di .` && 1431ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1432 as_fn_error $? "working directory cannot be determined" 1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1434 as_fn_error $? "pwd does not report name of working directory" 1435 1436 1437# Find the source files, if location was not specified. 1438if test -z "$srcdir"; then 1439 ac_srcdir_defaulted=yes 1440 # Try the directory containing this script, then the parent directory. 1441 ac_confdir=`$as_dirname -- "$as_myself" || 1442$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1443 X"$as_myself" : 'X\(//\)[^/]' \| \ 1444 X"$as_myself" : 'X\(//\)$' \| \ 1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1446printf "%s\n" X"$as_myself" | 1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1448 s//\1/ 1449 q 1450 } 1451 /^X\(\/\/\)[^/].*/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)$/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\).*/{ 1460 s//\1/ 1461 q 1462 } 1463 s/.*/./; q'` 1464 srcdir=$ac_confdir 1465 if test ! -r "$srcdir/$ac_unique_file"; then 1466 srcdir=.. 1467 fi 1468else 1469 ac_srcdir_defaulted=no 1470fi 1471if test ! -r "$srcdir/$ac_unique_file"; then 1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1473 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1474fi 1475ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1476ac_abs_confdir=`( 1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1478 pwd)` 1479# When building in place, set srcdir=. 1480if test "$ac_abs_confdir" = "$ac_pwd"; then 1481 srcdir=. 1482fi 1483# Remove unnecessary trailing slashes from srcdir. 1484# Double slashes in file names in object file debugging info 1485# mess up M-x gdb in Emacs. 1486case $srcdir in 1487*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1488esac 1489for ac_var in $ac_precious_vars; do 1490 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1491 eval ac_env_${ac_var}_value=\$${ac_var} 1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1493 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1494done 1495 1496# 1497# Report the --help message. 1498# 1499if test "$ac_init_help" = "long"; then 1500 # Omit some internal or obsolete options to make the list less imposing. 1501 # This message is too long to be a string in the A/UX 3.1 sh. 1502 cat <<_ACEOF 1503'configure' configures libXt 1.3.1 to adapt to many kinds of systems. 1504 1505Usage: $0 [OPTION]... [VAR=VALUE]... 1506 1507To assign environment variables (e.g., CC, CFLAGS...), specify them as 1508VAR=VALUE. See below for descriptions of some of the useful variables. 1509 1510Defaults for the options are specified in brackets. 1511 1512Configuration: 1513 -h, --help display this help and exit 1514 --help=short display options specific to this package 1515 --help=recursive display the short help of all the included packages 1516 -V, --version display version information and exit 1517 -q, --quiet, --silent do not print 'checking ...' messages 1518 --cache-file=FILE cache test results in FILE [disabled] 1519 -C, --config-cache alias for '--cache-file=config.cache' 1520 -n, --no-create do not create output files 1521 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1522 1523Installation directories: 1524 --prefix=PREFIX install architecture-independent files in PREFIX 1525 [$ac_default_prefix] 1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1527 [PREFIX] 1528 1529By default, 'make install' will install all the files in 1530'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1531an installation prefix other than '$ac_default_prefix' using '--prefix', 1532for instance '--prefix=\$HOME'. 1533 1534For better control, use the options below. 1535 1536Fine tuning of the installation directories: 1537 --bindir=DIR user executables [EPREFIX/bin] 1538 --sbindir=DIR system admin executables [EPREFIX/sbin] 1539 --libexecdir=DIR program executables [EPREFIX/libexec] 1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1543 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1544 --libdir=DIR object code libraries [EPREFIX/lib] 1545 --includedir=DIR C header files [PREFIX/include] 1546 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1549 --infodir=DIR info documentation [DATAROOTDIR/info] 1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1551 --mandir=DIR man documentation [DATAROOTDIR/man] 1552 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt] 1553 --htmldir=DIR html documentation [DOCDIR] 1554 --dvidir=DIR dvi documentation [DOCDIR] 1555 --pdfdir=DIR pdf documentation [DOCDIR] 1556 --psdir=DIR ps documentation [DOCDIR] 1557_ACEOF 1558 1559 cat <<\_ACEOF 1560 1561Program names: 1562 --program-prefix=PREFIX prepend PREFIX to installed program names 1563 --program-suffix=SUFFIX append SUFFIX to installed program names 1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1565 1566System types: 1567 --build=BUILD configure for building on BUILD [guessed] 1568 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1569_ACEOF 1570fi 1571 1572if test -n "$ac_init_help"; then 1573 case $ac_init_help in 1574 short | recursive ) echo "Configuration of libXt 1.3.1:";; 1575 esac 1576 cat <<\_ACEOF 1577 1578Optional Features: 1579 --disable-option-checking ignore unrecognized --enable/--with options 1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1582 --enable-dependency-tracking 1583 do not reject slow dependency extractors 1584 --disable-dependency-tracking 1585 speeds up one-time build 1586 --enable-silent-rules less verbose build output (undo: "make V=1") 1587 --disable-silent-rules verbose build output (undo: "make V=0") 1588 --enable-shared[=PKGS] build shared libraries [default=yes] 1589 --enable-static[=PKGS] build static libraries [default=yes] 1590 --enable-fast-install[=PKGS] 1591 optimize for fast installation [default=yes] 1592 --disable-libtool-lock avoid locking (might break parallel builds) 1593 --disable-selective-werror 1594 Turn off selective compiler errors. (default: 1595 enabled) 1596 --enable-strict-compilation 1597 Enable all warnings from compiler and make them 1598 errors (default: disabled) 1599 --enable-malloc0returnsnull 1600 assume malloc(0) can return NULL (default: yes) 1601 --enable-specs Enable building the specs (default: yes) 1602 --disable-xkb Disable XKB support 1603 --disable-const Disable const-support 1604 --enable-geo-tattler Enable geo-tattler traces 1605 --enable-unit-tests Enable building unit test cases (default: auto) 1606 1607Optional Packages: 1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1610 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1611 both] 1612 --with-aix-soname=aix|svr4|both 1613 shared library versioning (aka "SONAME") variant to 1614 provide on AIX, [default=aix]. 1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1616 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1617 compiler's sysroot if not specified). 1618 --with-xmlto Use xmlto to regenerate documentation (default: 1619 auto) 1620 --with-fop Use fop to regenerate documentation (default: auto) 1621 --with-xsltproc Use xsltproc for the transformation of XML documents 1622 (default: auto) 1623 --with-perl Use perl for extracting information from files 1624 (default: auto) 1625 --with-glib Use GLib library for unit testing (default: auto) 1626 --with-xfile-search-path=<path> 1627 Set path to search for app-defaults and other files 1628 --with-appdefaultdir=<path> 1629 Set app-default directory (default: 1630 ${datadir}/X11/app-defaults) 1631 1632Some influential environment variables: 1633 CC C compiler command 1634 CFLAGS C compiler flags 1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1636 nonstandard directory <lib dir> 1637 LIBS libraries to pass to the linker, e.g. -l<library> 1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1639 you have headers in a nonstandard directory <include dir> 1640 LT_SYS_LIBRARY_PATH 1641 User-defined run-time library search path. 1642 PKG_CONFIG path to pkg-config utility 1643 PKG_CONFIG_PATH 1644 directories to add to pkg-config's search path 1645 PKG_CONFIG_LIBDIR 1646 path overriding pkg-config's built-in search path 1647 XMLTO Path to xmlto command 1648 FOP Path to fop command 1649 XSLTPROC Path to xsltproc command 1650 CPP C preprocessor 1651 PERL Path to perl command 1652 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1653 XT_LIBS linker flags for XT, overriding pkg-config 1654 XORG_MALLOC_DEBUG_ENV 1655 Environment variables to enable memory checking in tests 1656 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1657 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1658 1659Use these variables to override the choices made by 'configure' or to help 1660it to find libraries and programs with nonstandard names/locations. 1661 1662Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/>. 1663_ACEOF 1664ac_status=$? 1665fi 1666 1667if test "$ac_init_help" = "recursive"; then 1668 # If there are subdirs, report their specific --help. 1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1670 test -d "$ac_dir" || 1671 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1672 continue 1673 ac_builddir=. 1674 1675case "$ac_dir" in 1676.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1677*) 1678 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1679 # A ".." for each directory in $ac_dir_suffix. 1680 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1681 case $ac_top_builddir_sub in 1682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1684 esac ;; 1685esac 1686ac_abs_top_builddir=$ac_pwd 1687ac_abs_builddir=$ac_pwd$ac_dir_suffix 1688# for backward compatibility: 1689ac_top_builddir=$ac_top_build_prefix 1690 1691case $srcdir in 1692 .) # We are building in place. 1693 ac_srcdir=. 1694 ac_top_srcdir=$ac_top_builddir_sub 1695 ac_abs_top_srcdir=$ac_pwd ;; 1696 [\\/]* | ?:[\\/]* ) # Absolute name. 1697 ac_srcdir=$srcdir$ac_dir_suffix; 1698 ac_top_srcdir=$srcdir 1699 ac_abs_top_srcdir=$srcdir ;; 1700 *) # Relative name. 1701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1702 ac_top_srcdir=$ac_top_build_prefix$srcdir 1703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1704esac 1705ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1706 1707 cd "$ac_dir" || { ac_status=$?; continue; } 1708 # Check for configure.gnu first; this name is used for a wrapper for 1709 # Metaconfig's "Configure" on case-insensitive file systems. 1710 if test -f "$ac_srcdir/configure.gnu"; then 1711 echo && 1712 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1713 elif test -f "$ac_srcdir/configure"; then 1714 echo && 1715 $SHELL "$ac_srcdir/configure" --help=recursive 1716 else 1717 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1718 fi || ac_status=$? 1719 cd "$ac_pwd" || { ac_status=$?; break; } 1720 done 1721fi 1722 1723test -n "$ac_init_help" && exit $ac_status 1724if $ac_init_version; then 1725 cat <<\_ACEOF 1726libXt configure 1.3.1 1727generated by GNU Autoconf 2.72 1728 1729Copyright (C) 2023 Free Software Foundation, Inc. 1730This configure script is free software; the Free Software Foundation 1731gives unlimited permission to copy, distribute and modify it. 1732_ACEOF 1733 exit 1734fi 1735 1736## ------------------------ ## 1737## Autoconf initialization. ## 1738## ------------------------ ## 1739 1740# ac_fn_c_try_compile LINENO 1741# -------------------------- 1742# Try to compile conftest.$ac_ext, and return whether this succeeded. 1743ac_fn_c_try_compile () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 rm -f conftest.$ac_objext conftest.beam 1747 if { { ac_try="$ac_compile" 1748case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751esac 1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753printf "%s\n" "$ac_try_echo"; } >&5 1754 (eval "$ac_compile") 2>conftest.err 1755 ac_status=$? 1756 if test -s conftest.err; then 1757 grep -v '^ *+' conftest.err >conftest.er1 1758 cat conftest.er1 >&5 1759 mv -f conftest.er1 conftest.err 1760 fi 1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { 1763 test -z "$ac_c_werror_flag" || 1764 test ! -s conftest.err 1765 } && test -s conftest.$ac_objext 1766then : 1767 ac_retval=0 1768else case e in #( 1769 e) printf "%s\n" "$as_me: failed program was:" >&5 1770sed 's/^/| /' conftest.$ac_ext >&5 1771 1772 ac_retval=1 ;; 1773esac 1774fi 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_compile 1779 1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1781# ------------------------------------------------------- 1782# Tests whether HEADER exists and can be compiled using the include files in 1783# INCLUDES, setting the cache variable VAR accordingly. 1784ac_fn_c_check_header_compile () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1788printf %s "checking for $2... " >&6; } 1789if eval test \${$3+y} 1790then : 1791 printf %s "(cached) " >&6 1792else case e in #( 1793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1794/* end confdefs.h. */ 1795$4 1796#include <$2> 1797_ACEOF 1798if ac_fn_c_try_compile "$LINENO" 1799then : 1800 eval "$3=yes" 1801else case e in #( 1802 e) eval "$3=no" ;; 1803esac 1804fi 1805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1806esac 1807fi 1808eval ac_res=\$$3 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810printf "%s\n" "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813} # ac_fn_c_check_header_compile 1814 1815# ac_fn_c_try_link LINENO 1816# ----------------------- 1817# Try to link conftest.$ac_ext, and return whether this succeeded. 1818ac_fn_c_try_link () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1822 if { { ac_try="$ac_link" 1823case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828printf "%s\n" "$ac_try_echo"; } >&5 1829 (eval "$ac_link") 2>conftest.err 1830 ac_status=$? 1831 if test -s conftest.err; then 1832 grep -v '^ *+' conftest.err >conftest.er1 1833 cat conftest.er1 >&5 1834 mv -f conftest.er1 conftest.err 1835 fi 1836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; } && { 1838 test -z "$ac_c_werror_flag" || 1839 test ! -s conftest.err 1840 } && test -s conftest$ac_exeext && { 1841 test "$cross_compiling" = yes || 1842 test -x conftest$ac_exeext 1843 } 1844then : 1845 ac_retval=0 1846else case e in #( 1847 e) printf "%s\n" "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 ;; 1851esac 1852fi 1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1855 # interfere with the next link command; also delete a directory that is 1856 # left behind by Apple's compiler. We do this before executing the actions. 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_link 1862 1863# ac_fn_c_check_func LINENO FUNC VAR 1864# ---------------------------------- 1865# Tests whether FUNC exists, setting the cache variable VAR accordingly 1866ac_fn_c_check_func () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870printf %s "checking for $2... " >&6; } 1871if eval test \${$3+y} 1872then : 1873 printf %s "(cached) " >&6 1874else case e in #( 1875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1879#define $2 innocuous_$2 1880 1881/* System header to define __stub macros and hopefully few prototypes, 1882 which can conflict with char $2 (void); below. */ 1883 1884#include <limits.h> 1885#undef $2 1886 1887/* Override any GCC internal prototype to avoid an error. 1888 Use char because int might match the return type of a GCC 1889 builtin and then its argument prototype would still apply. */ 1890#ifdef __cplusplus 1891extern "C" 1892#endif 1893char $2 (void); 1894/* The GNU C library defines this for functions which it implements 1895 to always fail with ENOSYS. Some functions are actually named 1896 something starting with __ and the normal name is an alias. */ 1897#if defined __stub_$2 || defined __stub___$2 1898choke me 1899#endif 1900 1901int 1902main (void) 1903{ 1904return $2 (); 1905 ; 1906 return 0; 1907} 1908_ACEOF 1909if ac_fn_c_try_link "$LINENO" 1910then : 1911 eval "$3=yes" 1912else case e in #( 1913 e) eval "$3=no" ;; 1914esac 1915fi 1916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1917 conftest$ac_exeext conftest.$ac_ext ;; 1918esac 1919fi 1920eval ac_res=\$$3 1921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922printf "%s\n" "$ac_res" >&6; } 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 1925} # ac_fn_c_check_func 1926 1927# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1928# ------------------------------------------------------------------ 1929# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1930# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1931ac_fn_check_decl () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 as_decl_name=`echo $2|sed 's/ *(.*//'` 1935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1936printf %s "checking whether $as_decl_name is declared... " >&6; } 1937if eval test \${$3+y} 1938then : 1939 printf %s "(cached) " >&6 1940else case e in #( 1941 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1942 eval ac_save_FLAGS=\$$6 1943 as_fn_append $6 " $5" 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947int 1948main (void) 1949{ 1950#ifndef $as_decl_name 1951#ifdef __cplusplus 1952 (void) $as_decl_use; 1953#else 1954 (void) $as_decl_name; 1955#endif 1956#endif 1957 1958 ; 1959 return 0; 1960} 1961_ACEOF 1962if ac_fn_c_try_compile "$LINENO" 1963then : 1964 eval "$3=yes" 1965else case e in #( 1966 e) eval "$3=no" ;; 1967esac 1968fi 1969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1970 eval $6=\$ac_save_FLAGS 1971 ;; 1972esac 1973fi 1974eval ac_res=\$$3 1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1976printf "%s\n" "$ac_res" >&6; } 1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1978 1979} # ac_fn_check_decl 1980 1981# ac_fn_c_try_cpp LINENO 1982# ---------------------- 1983# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1984ac_fn_c_try_cpp () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 if { { ac_try="$ac_cpp conftest.$ac_ext" 1988case "(($ac_try" in 1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1990 *) ac_try_echo=$ac_try;; 1991esac 1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1993printf "%s\n" "$ac_try_echo"; } >&5 1994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1995 ac_status=$? 1996 if test -s conftest.err; then 1997 grep -v '^ *+' conftest.err >conftest.er1 1998 cat conftest.er1 >&5 1999 mv -f conftest.er1 conftest.err 2000 fi 2001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2002 test $ac_status = 0; } > conftest.i && { 2003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2004 test ! -s conftest.err 2005 } 2006then : 2007 ac_retval=0 2008else case e in #( 2009 e) printf "%s\n" "$as_me: failed program was:" >&5 2010sed 's/^/| /' conftest.$ac_ext >&5 2011 2012 ac_retval=1 ;; 2013esac 2014fi 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 as_fn_set_status $ac_retval 2017 2018} # ac_fn_c_try_cpp 2019ac_configure_args_raw= 2020for ac_arg 2021do 2022 case $ac_arg in 2023 *\'*) 2024 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2025 esac 2026 as_fn_append ac_configure_args_raw " '$ac_arg'" 2027done 2028 2029case $ac_configure_args_raw in 2030 *$as_nl*) 2031 ac_safe_unquote= ;; 2032 *) 2033 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2034 ac_unsafe_a="$ac_unsafe_z#~" 2035 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2036 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2037esac 2038 2039cat >config.log <<_ACEOF 2040This file contains any messages produced by compilers while 2041running configure, to aid debugging if configure makes a mistake. 2042 2043It was created by libXt $as_me 1.3.1, which was 2044generated by GNU Autoconf 2.72. Invocation command line was 2045 2046 $ $0$ac_configure_args_raw 2047 2048_ACEOF 2049exec 5>>config.log 2050{ 2051cat <<_ASUNAME 2052## --------- ## 2053## Platform. ## 2054## --------- ## 2055 2056hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2057uname -m = `(uname -m) 2>/dev/null || echo unknown` 2058uname -r = `(uname -r) 2>/dev/null || echo unknown` 2059uname -s = `(uname -s) 2>/dev/null || echo unknown` 2060uname -v = `(uname -v) 2>/dev/null || echo unknown` 2061 2062/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2063/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2064 2065/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2066/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2067/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2068/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2069/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2070/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2071/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2072 2073_ASUNAME 2074 2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2076for as_dir in $PATH 2077do 2078 IFS=$as_save_IFS 2079 case $as_dir in #((( 2080 '') as_dir=./ ;; 2081 */) ;; 2082 *) as_dir=$as_dir/ ;; 2083 esac 2084 printf "%s\n" "PATH: $as_dir" 2085 done 2086IFS=$as_save_IFS 2087 2088} >&5 2089 2090cat >&5 <<_ACEOF 2091 2092 2093## ----------- ## 2094## Core tests. ## 2095## ----------- ## 2096 2097_ACEOF 2098 2099 2100# Keep a trace of the command line. 2101# Strip out --no-create and --no-recursion so they do not pile up. 2102# Strip out --silent because we don't want to record it for future runs. 2103# Also quote any args containing shell meta-characters. 2104# Make two passes to allow for proper duplicate-argument suppression. 2105ac_configure_args= 2106ac_configure_args0= 2107ac_configure_args1= 2108ac_must_keep_next=false 2109for ac_pass in 1 2 2110do 2111 for ac_arg 2112 do 2113 case $ac_arg in 2114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2116 | -silent | --silent | --silen | --sile | --sil) 2117 continue ;; 2118 *\'*) 2119 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2120 esac 2121 case $ac_pass in 2122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2123 2) 2124 as_fn_append ac_configure_args1 " '$ac_arg'" 2125 if test $ac_must_keep_next = true; then 2126 ac_must_keep_next=false # Got value, back to normal. 2127 else 2128 case $ac_arg in 2129 *=* | --config-cache | -C | -disable-* | --disable-* \ 2130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2132 | -with-* | --with-* | -without-* | --without-* | --x) 2133 case "$ac_configure_args0 " in 2134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2135 esac 2136 ;; 2137 -* ) ac_must_keep_next=true ;; 2138 esac 2139 fi 2140 as_fn_append ac_configure_args " '$ac_arg'" 2141 ;; 2142 esac 2143 done 2144done 2145{ ac_configure_args0=; unset ac_configure_args0;} 2146{ ac_configure_args1=; unset ac_configure_args1;} 2147 2148# When interrupted or exit'd, cleanup temporary files, and complete 2149# config.log. We remove comments because anyway the quotes in there 2150# would cause problems or look ugly. 2151# WARNING: Use '\'' to represent an apostrophe within the trap. 2152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2153trap 'exit_status=$? 2154 # Sanitize IFS. 2155 IFS=" "" $as_nl" 2156 # Save into config.log some information that might help in debugging. 2157 { 2158 echo 2159 2160 printf "%s\n" "## ---------------- ## 2161## Cache variables. ## 2162## ---------------- ##" 2163 echo 2164 # The following way of writing the cache mishandles newlines in values, 2165( 2166 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2167 eval ac_val=\$$ac_var 2168 case $ac_val in #( 2169 *${as_nl}*) 2170 case $ac_var in #( 2171 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2172printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2173 esac 2174 case $ac_var in #( 2175 _ | IFS | as_nl) ;; #( 2176 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2177 *) { eval $ac_var=; unset $ac_var;} ;; 2178 esac ;; 2179 esac 2180 done 2181 (set) 2>&1 | 2182 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2183 *${as_nl}ac_space=\ *) 2184 sed -n \ 2185 "s/'\''/'\''\\\\'\'''\''/g; 2186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2187 ;; #( 2188 *) 2189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2190 ;; 2191 esac | 2192 sort 2193) 2194 echo 2195 2196 printf "%s\n" "## ----------------- ## 2197## Output variables. ## 2198## ----------------- ##" 2199 echo 2200 for ac_var in $ac_subst_vars 2201 do 2202 eval ac_val=\$$ac_var 2203 case $ac_val in 2204 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2205 esac 2206 printf "%s\n" "$ac_var='\''$ac_val'\''" 2207 done | sort 2208 echo 2209 2210 if test -n "$ac_subst_files"; then 2211 printf "%s\n" "## ------------------- ## 2212## File substitutions. ## 2213## ------------------- ##" 2214 echo 2215 for ac_var in $ac_subst_files 2216 do 2217 eval ac_val=\$$ac_var 2218 case $ac_val in 2219 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2220 esac 2221 printf "%s\n" "$ac_var='\''$ac_val'\''" 2222 done | sort 2223 echo 2224 fi 2225 2226 if test -s confdefs.h; then 2227 printf "%s\n" "## ----------- ## 2228## confdefs.h. ## 2229## ----------- ##" 2230 echo 2231 cat confdefs.h 2232 echo 2233 fi 2234 test "$ac_signal" != 0 && 2235 printf "%s\n" "$as_me: caught signal $ac_signal" 2236 printf "%s\n" "$as_me: exit $exit_status" 2237 } >&5 2238 rm -f core *.core core.conftest.* && 2239 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2240 exit $exit_status 2241' 0 2242for ac_signal in 1 2 13 15; do 2243 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2244done 2245ac_signal=0 2246 2247# confdefs.h avoids OS command line length limits that DEFS can exceed. 2248rm -f -r conftest* confdefs.h 2249 2250printf "%s\n" "/* confdefs.h */" > confdefs.h 2251 2252# Predefined preprocessor variables. 2253 2254printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2255 2256printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2257 2258printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2259 2260printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2261 2262printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2263 2264printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2265 2266 2267# Let the site file select an alternate cache file if it wants to. 2268# Prefer an explicitly selected file to automatically selected ones. 2269if test -n "$CONFIG_SITE"; then 2270 ac_site_files="$CONFIG_SITE" 2271elif test "x$prefix" != xNONE; then 2272 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2273else 2274 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2275fi 2276 2277for ac_site_file in $ac_site_files 2278do 2279 case $ac_site_file in #( 2280 */*) : 2281 ;; #( 2282 *) : 2283 ac_site_file=./$ac_site_file ;; 2284esac 2285 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2287printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2288 sed 's/^/| /' "$ac_site_file" >&5 2289 . "$ac_site_file" \ 2290 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2291printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2292as_fn_error $? "failed to load site script $ac_site_file 2293See 'config.log' for more details" "$LINENO" 5; } 2294 fi 2295done 2296 2297if test -r "$cache_file"; then 2298 # Some versions of bash will fail to source /dev/null (special files 2299 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2300 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2302printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2303 case $cache_file in 2304 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2305 *) . "./$cache_file";; 2306 esac 2307 fi 2308else 2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2310printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2311 >$cache_file 2312fi 2313 2314as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2315# Test code for whether the C compiler supports C89 (global declarations) 2316ac_c_conftest_c89_globals=' 2317/* Does the compiler advertise C89 conformance? 2318 Do not test the value of __STDC__, because some compilers set it to 0 2319 while being otherwise adequately conformant. */ 2320#if !defined __STDC__ 2321# error "Compiler does not advertise C89 conformance" 2322#endif 2323 2324#include <stddef.h> 2325#include <stdarg.h> 2326struct stat; 2327/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2328struct buf { int x; }; 2329struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2330static char *e (char **p, int i) 2331{ 2332 return p[i]; 2333} 2334static char *f (char * (*g) (char **, int), char **p, ...) 2335{ 2336 char *s; 2337 va_list v; 2338 va_start (v,p); 2339 s = g (p, va_arg (v,int)); 2340 va_end (v); 2341 return s; 2342} 2343 2344/* C89 style stringification. */ 2345#define noexpand_stringify(a) #a 2346const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2347 2348/* C89 style token pasting. Exercises some of the corner cases that 2349 e.g. old MSVC gets wrong, but not very hard. */ 2350#define noexpand_concat(a,b) a##b 2351#define expand_concat(a,b) noexpand_concat(a,b) 2352extern int vA; 2353extern int vbee; 2354#define aye A 2355#define bee B 2356int *pvA = &expand_concat(v,aye); 2357int *pvbee = &noexpand_concat(v,bee); 2358 2359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2360 function prototypes and stuff, but not \xHH hex character constants. 2361 These do not provoke an error unfortunately, instead are silently treated 2362 as an "x". The following induces an error, until -std is added to get 2363 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2364 array size at least. It is necessary to write \x00 == 0 to get something 2365 that is true only with -std. */ 2366int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2367 2368/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2369 inside strings and character constants. */ 2370#define FOO(x) '\''x'\'' 2371int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2372 2373int test (int i, double x); 2374struct s1 {int (*f) (int a);}; 2375struct s2 {int (*f) (double a);}; 2376int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2377 int, int);' 2378 2379# Test code for whether the C compiler supports C89 (body of main). 2380ac_c_conftest_c89_main=' 2381ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2382' 2383 2384# Test code for whether the C compiler supports C99 (global declarations) 2385ac_c_conftest_c99_globals=' 2386/* Does the compiler advertise C99 conformance? */ 2387#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2388# error "Compiler does not advertise C99 conformance" 2389#endif 2390 2391// See if C++-style comments work. 2392 2393#include <stdbool.h> 2394extern int puts (const char *); 2395extern int printf (const char *, ...); 2396extern int dprintf (int, const char *, ...); 2397extern void *malloc (size_t); 2398extern void free (void *); 2399 2400// Check varargs macros. These examples are taken from C99 6.10.3.5. 2401// dprintf is used instead of fprintf to avoid needing to declare 2402// FILE and stderr. 2403#define debug(...) dprintf (2, __VA_ARGS__) 2404#define showlist(...) puts (#__VA_ARGS__) 2405#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2406static void 2407test_varargs_macros (void) 2408{ 2409 int x = 1234; 2410 int y = 5678; 2411 debug ("Flag"); 2412 debug ("X = %d\n", x); 2413 showlist (The first, second, and third items.); 2414 report (x>y, "x is %d but y is %d", x, y); 2415} 2416 2417// Check long long types. 2418#define BIG64 18446744073709551615ull 2419#define BIG32 4294967295ul 2420#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2421#if !BIG_OK 2422 #error "your preprocessor is broken" 2423#endif 2424#if BIG_OK 2425#else 2426 #error "your preprocessor is broken" 2427#endif 2428static long long int bignum = -9223372036854775807LL; 2429static unsigned long long int ubignum = BIG64; 2430 2431struct incomplete_array 2432{ 2433 int datasize; 2434 double data[]; 2435}; 2436 2437struct named_init { 2438 int number; 2439 const wchar_t *name; 2440 double average; 2441}; 2442 2443typedef const char *ccp; 2444 2445static inline int 2446test_restrict (ccp restrict text) 2447{ 2448 // Iterate through items via the restricted pointer. 2449 // Also check for declarations in for loops. 2450 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2451 continue; 2452 return 0; 2453} 2454 2455// Check varargs and va_copy. 2456static bool 2457test_varargs (const char *format, ...) 2458{ 2459 va_list args; 2460 va_start (args, format); 2461 va_list args_copy; 2462 va_copy (args_copy, args); 2463 2464 const char *str = ""; 2465 int number = 0; 2466 float fnumber = 0; 2467 2468 while (*format) 2469 { 2470 switch (*format++) 2471 { 2472 case '\''s'\'': // string 2473 str = va_arg (args_copy, const char *); 2474 break; 2475 case '\''d'\'': // int 2476 number = va_arg (args_copy, int); 2477 break; 2478 case '\''f'\'': // float 2479 fnumber = va_arg (args_copy, double); 2480 break; 2481 default: 2482 break; 2483 } 2484 } 2485 va_end (args_copy); 2486 va_end (args); 2487 2488 return *str && number && fnumber; 2489} 2490' 2491 2492# Test code for whether the C compiler supports C99 (body of main). 2493ac_c_conftest_c99_main=' 2494 // Check bool. 2495 _Bool success = false; 2496 success |= (argc != 0); 2497 2498 // Check restrict. 2499 if (test_restrict ("String literal") == 0) 2500 success = true; 2501 char *restrict newvar = "Another string"; 2502 2503 // Check varargs. 2504 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2505 test_varargs_macros (); 2506 2507 // Check flexible array members. 2508 struct incomplete_array *ia = 2509 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2510 ia->datasize = 10; 2511 for (int i = 0; i < ia->datasize; ++i) 2512 ia->data[i] = i * 1.234; 2513 // Work around memory leak warnings. 2514 free (ia); 2515 2516 // Check named initializers. 2517 struct named_init ni = { 2518 .number = 34, 2519 .name = L"Test wide string", 2520 .average = 543.34343, 2521 }; 2522 2523 ni.number = 58; 2524 2525 int dynamic_array[ni.number]; 2526 dynamic_array[0] = argv[0][0]; 2527 dynamic_array[ni.number - 1] = 543; 2528 2529 // work around unused variable warnings 2530 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2531 || dynamic_array[ni.number - 1] != 543); 2532' 2533 2534# Test code for whether the C compiler supports C11 (global declarations) 2535ac_c_conftest_c11_globals=' 2536/* Does the compiler advertise C11 conformance? */ 2537#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2538# error "Compiler does not advertise C11 conformance" 2539#endif 2540 2541// Check _Alignas. 2542char _Alignas (double) aligned_as_double; 2543char _Alignas (0) no_special_alignment; 2544extern char aligned_as_int; 2545char _Alignas (0) _Alignas (int) aligned_as_int; 2546 2547// Check _Alignof. 2548enum 2549{ 2550 int_alignment = _Alignof (int), 2551 int_array_alignment = _Alignof (int[100]), 2552 char_alignment = _Alignof (char) 2553}; 2554_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2555 2556// Check _Noreturn. 2557int _Noreturn does_not_return (void) { for (;;) continue; } 2558 2559// Check _Static_assert. 2560struct test_static_assert 2561{ 2562 int x; 2563 _Static_assert (sizeof (int) <= sizeof (long int), 2564 "_Static_assert does not work in struct"); 2565 long int y; 2566}; 2567 2568// Check UTF-8 literals. 2569#define u8 syntax error! 2570char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2571 2572// Check duplicate typedefs. 2573typedef long *long_ptr; 2574typedef long int *long_ptr; 2575typedef long_ptr long_ptr; 2576 2577// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2578struct anonymous 2579{ 2580 union { 2581 struct { int i; int j; }; 2582 struct { int k; long int l; } w; 2583 }; 2584 int m; 2585} v1; 2586' 2587 2588# Test code for whether the C compiler supports C11 (body of main). 2589ac_c_conftest_c11_main=' 2590 _Static_assert ((offsetof (struct anonymous, i) 2591 == offsetof (struct anonymous, w.k)), 2592 "Anonymous union alignment botch"); 2593 v1.i = 2; 2594 v1.w.k = 5; 2595 ok |= v1.i != 5; 2596' 2597 2598# Test code for whether the C compiler supports C11 (complete). 2599ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2600${ac_c_conftest_c99_globals} 2601${ac_c_conftest_c11_globals} 2602 2603int 2604main (int argc, char **argv) 2605{ 2606 int ok = 0; 2607 ${ac_c_conftest_c89_main} 2608 ${ac_c_conftest_c99_main} 2609 ${ac_c_conftest_c11_main} 2610 return ok; 2611} 2612" 2613 2614# Test code for whether the C compiler supports C99 (complete). 2615ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2616${ac_c_conftest_c99_globals} 2617 2618int 2619main (int argc, char **argv) 2620{ 2621 int ok = 0; 2622 ${ac_c_conftest_c89_main} 2623 ${ac_c_conftest_c99_main} 2624 return ok; 2625} 2626" 2627 2628# Test code for whether the C compiler supports C89 (complete). 2629ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2630 2631int 2632main (int argc, char **argv) 2633{ 2634 int ok = 0; 2635 ${ac_c_conftest_c89_main} 2636 return ok; 2637} 2638" 2639 2640as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2641as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2642as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2643as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2644as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2645as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2646as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2647as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2648as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2649as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2650 2651# Auxiliary files required by this configure script. 2652ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2653 2654# Locations in which to look for auxiliary files. 2655ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2656 2657# Search for a directory containing all of the required auxiliary files, 2658# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2659# If we don't find one directory that contains all the files we need, 2660# we report the set of missing files from the *first* directory in 2661# $ac_aux_dir_candidates and give up. 2662ac_missing_aux_files="" 2663ac_first_candidate=: 2664printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666as_found=false 2667for as_dir in $ac_aux_dir_candidates 2668do 2669 IFS=$as_save_IFS 2670 case $as_dir in #((( 2671 '') as_dir=./ ;; 2672 */) ;; 2673 *) as_dir=$as_dir/ ;; 2674 esac 2675 as_found=: 2676 2677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2678 ac_aux_dir_found=yes 2679 ac_install_sh= 2680 for ac_aux in $ac_aux_files 2681 do 2682 # As a special case, if "install-sh" is required, that requirement 2683 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2684 # and $ac_install_sh is set appropriately for whichever one is found. 2685 if test x"$ac_aux" = x"install-sh" 2686 then 2687 if test -f "${as_dir}install-sh"; then 2688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2689 ac_install_sh="${as_dir}install-sh -c" 2690 elif test -f "${as_dir}install.sh"; then 2691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2692 ac_install_sh="${as_dir}install.sh -c" 2693 elif test -f "${as_dir}shtool"; then 2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2695 ac_install_sh="${as_dir}shtool install -c" 2696 else 2697 ac_aux_dir_found=no 2698 if $ac_first_candidate; then 2699 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2700 else 2701 break 2702 fi 2703 fi 2704 else 2705 if test -f "${as_dir}${ac_aux}"; then 2706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2707 else 2708 ac_aux_dir_found=no 2709 if $ac_first_candidate; then 2710 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2711 else 2712 break 2713 fi 2714 fi 2715 fi 2716 done 2717 if test "$ac_aux_dir_found" = yes; then 2718 ac_aux_dir="$as_dir" 2719 break 2720 fi 2721 ac_first_candidate=false 2722 2723 as_found=false 2724done 2725IFS=$as_save_IFS 2726if $as_found 2727then : 2728 2729else case e in #( 2730 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2731esac 2732fi 2733 2734 2735# These three variables are undocumented and unsupported, 2736# and are intended to be withdrawn in a future Autoconf release. 2737# They can cause serious problems if a builder's source tree is in a directory 2738# whose full name contains unusual characters. 2739if test -f "${ac_aux_dir}config.guess"; then 2740 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2741fi 2742if test -f "${ac_aux_dir}config.sub"; then 2743 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2744fi 2745if test -f "$ac_aux_dir/configure"; then 2746 ac_configure="$SHELL ${ac_aux_dir}configure" 2747fi 2748 2749# Check that the precious variables saved in the cache have kept the same 2750# value. 2751ac_cache_corrupted=false 2752for ac_var in $ac_precious_vars; do 2753 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2754 eval ac_new_set=\$ac_env_${ac_var}_set 2755 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2756 eval ac_new_val=\$ac_env_${ac_var}_value 2757 case $ac_old_set,$ac_new_set in 2758 set,) 2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2760printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2761 ac_cache_corrupted=: ;; 2762 ,set) 2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2764printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2765 ac_cache_corrupted=: ;; 2766 ,);; 2767 *) 2768 if test "x$ac_old_val" != "x$ac_new_val"; then 2769 # differences in whitespace do not lead to failure. 2770 ac_old_val_w=`echo x $ac_old_val` 2771 ac_new_val_w=`echo x $ac_new_val` 2772 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2774printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2775 ac_cache_corrupted=: 2776 else 2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2778printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2779 eval $ac_var=\$ac_old_val 2780 fi 2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2782printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2784printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2785 fi;; 2786 esac 2787 # Pass precious variables to config.status. 2788 if test "$ac_new_set" = set; then 2789 case $ac_new_val in 2790 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2791 *) ac_arg=$ac_var=$ac_new_val ;; 2792 esac 2793 case " $ac_configure_args " in 2794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2795 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2796 esac 2797 fi 2798done 2799if $ac_cache_corrupted; then 2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2801printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2803printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2804 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2805 and start over" "$LINENO" 5 2806fi 2807## -------------------- ## 2808## Main body of script. ## 2809## -------------------- ## 2810 2811ac_ext=c 2812ac_cpp='$CPP $CPPFLAGS' 2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2815ac_compiler_gnu=$ac_cv_c_compiler_gnu 2816 2817 2818 2819ac_config_headers="$ac_config_headers config.h" 2820 2821 2822 2823# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2824# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2825# to avoid autoconf errors. 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837# Expand $ac_aux_dir to an absolute path. 2838am_aux_dir=`cd "$ac_aux_dir" && pwd` 2839 2840ac_ext=c 2841ac_cpp='$CPP $CPPFLAGS' 2842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2844ac_compiler_gnu=$ac_cv_c_compiler_gnu 2845if test -n "$ac_tool_prefix"; then 2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2847set dummy ${ac_tool_prefix}gcc; ac_word=$2 2848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849printf %s "checking for $ac_word... " >&6; } 2850if test ${ac_cv_prog_CC+y} 2851then : 2852 printf %s "(cached) " >&6 2853else case e in #( 2854 e) if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 case $as_dir in #((( 2862 '') as_dir=./ ;; 2863 */) ;; 2864 *) as_dir=$as_dir/ ;; 2865 esac 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2868 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876fi ;; 2877esac 2878fi 2879CC=$ac_cv_prog_CC 2880if test -n "$CC"; then 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2882printf "%s\n" "$CC" >&6; } 2883else 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885printf "%s\n" "no" >&6; } 2886fi 2887 2888 2889fi 2890if test -z "$ac_cv_prog_CC"; then 2891 ac_ct_CC=$CC 2892 # Extract the first word of "gcc", so it can be a program name with args. 2893set dummy gcc; ac_word=$2 2894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895printf %s "checking for $ac_word... " >&6; } 2896if test ${ac_cv_prog_ac_ct_CC+y} 2897then : 2898 printf %s "(cached) " >&6 2899else case e in #( 2900 e) if test -n "$ac_ct_CC"; then 2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2902else 2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2904for as_dir in $PATH 2905do 2906 IFS=$as_save_IFS 2907 case $as_dir in #((( 2908 '') as_dir=./ ;; 2909 */) ;; 2910 *) as_dir=$as_dir/ ;; 2911 esac 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2914 ac_cv_prog_ac_ct_CC="gcc" 2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918done 2919 done 2920IFS=$as_save_IFS 2921 2922fi ;; 2923esac 2924fi 2925ac_ct_CC=$ac_cv_prog_ac_ct_CC 2926if test -n "$ac_ct_CC"; then 2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2928printf "%s\n" "$ac_ct_CC" >&6; } 2929else 2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931printf "%s\n" "no" >&6; } 2932fi 2933 2934 if test "x$ac_ct_CC" = x; then 2935 CC="" 2936 else 2937 case $cross_compiling:$ac_tool_warned in 2938yes:) 2939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2940printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2941ac_tool_warned=yes ;; 2942esac 2943 CC=$ac_ct_CC 2944 fi 2945else 2946 CC="$ac_cv_prog_CC" 2947fi 2948 2949if test -z "$CC"; then 2950 if test -n "$ac_tool_prefix"; then 2951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2952set dummy ${ac_tool_prefix}cc; ac_word=$2 2953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954printf %s "checking for $ac_word... " >&6; } 2955if test ${ac_cv_prog_CC+y} 2956then : 2957 printf %s "(cached) " >&6 2958else case e in #( 2959 e) if test -n "$CC"; then 2960 ac_cv_prog_CC="$CC" # Let the user override the test. 2961else 2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH 2964do 2965 IFS=$as_save_IFS 2966 case $as_dir in #((( 2967 '') as_dir=./ ;; 2968 */) ;; 2969 *) as_dir=$as_dir/ ;; 2970 esac 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2973 ac_cv_prog_CC="${ac_tool_prefix}cc" 2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978 done 2979IFS=$as_save_IFS 2980 2981fi ;; 2982esac 2983fi 2984CC=$ac_cv_prog_CC 2985if test -n "$CC"; then 2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2987printf "%s\n" "$CC" >&6; } 2988else 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2990printf "%s\n" "no" >&6; } 2991fi 2992 2993 2994 fi 2995fi 2996if test -z "$CC"; then 2997 # Extract the first word of "cc", so it can be a program name with args. 2998set dummy cc; ac_word=$2 2999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3000printf %s "checking for $ac_word... " >&6; } 3001if test ${ac_cv_prog_CC+y} 3002then : 3003 printf %s "(cached) " >&6 3004else case e in #( 3005 e) if test -n "$CC"; then 3006 ac_cv_prog_CC="$CC" # Let the user override the test. 3007else 3008 ac_prog_rejected=no 3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3010for as_dir in $PATH 3011do 3012 IFS=$as_save_IFS 3013 case $as_dir in #((( 3014 '') as_dir=./ ;; 3015 */) ;; 3016 *) as_dir=$as_dir/ ;; 3017 esac 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3020 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3021 ac_prog_rejected=yes 3022 continue 3023 fi 3024 ac_cv_prog_CC="cc" 3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3026 break 2 3027 fi 3028done 3029 done 3030IFS=$as_save_IFS 3031 3032if test $ac_prog_rejected = yes; then 3033 # We found a bogon in the path, so make sure we never use it. 3034 set dummy $ac_cv_prog_CC 3035 shift 3036 if test $# != 0; then 3037 # We chose a different compiler from the bogus one. 3038 # However, it has the same basename, so the bogon will be chosen 3039 # first if we set CC to just the basename; use the full file name. 3040 shift 3041 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3042 fi 3043fi 3044fi ;; 3045esac 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3050printf "%s\n" "$CC" >&6; } 3051else 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053printf "%s\n" "no" >&6; } 3054fi 3055 3056 3057fi 3058if test -z "$CC"; then 3059 if test -n "$ac_tool_prefix"; then 3060 for ac_prog in cl.exe 3061 do 3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3063set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3065printf %s "checking for $ac_word... " >&6; } 3066if test ${ac_cv_prog_CC+y} 3067then : 3068 printf %s "(cached) " >&6 3069else case e in #( 3070 e) if test -n "$CC"; then 3071 ac_cv_prog_CC="$CC" # Let the user override the test. 3072else 3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3074for as_dir in $PATH 3075do 3076 IFS=$as_save_IFS 3077 case $as_dir in #((( 3078 '') as_dir=./ ;; 3079 */) ;; 3080 *) as_dir=$as_dir/ ;; 3081 esac 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3086 break 2 3087 fi 3088done 3089 done 3090IFS=$as_save_IFS 3091 3092fi ;; 3093esac 3094fi 3095CC=$ac_cv_prog_CC 3096if test -n "$CC"; then 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098printf "%s\n" "$CC" >&6; } 3099else 3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101printf "%s\n" "no" >&6; } 3102fi 3103 3104 3105 test -n "$CC" && break 3106 done 3107fi 3108if test -z "$CC"; then 3109 ac_ct_CC=$CC 3110 for ac_prog in cl.exe 3111do 3112 # Extract the first word of "$ac_prog", so it can be a program name with args. 3113set dummy $ac_prog; ac_word=$2 3114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3115printf %s "checking for $ac_word... " >&6; } 3116if test ${ac_cv_prog_ac_ct_CC+y} 3117then : 3118 printf %s "(cached) " >&6 3119else case e in #( 3120 e) if test -n "$ac_ct_CC"; then 3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3122else 3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124for as_dir in $PATH 3125do 3126 IFS=$as_save_IFS 3127 case $as_dir in #((( 3128 '') as_dir=./ ;; 3129 */) ;; 3130 *) as_dir=$as_dir/ ;; 3131 esac 3132 for ac_exec_ext in '' $ac_executable_extensions; do 3133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3134 ac_cv_prog_ac_ct_CC="$ac_prog" 3135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3136 break 2 3137 fi 3138done 3139 done 3140IFS=$as_save_IFS 3141 3142fi ;; 3143esac 3144fi 3145ac_ct_CC=$ac_cv_prog_ac_ct_CC 3146if test -n "$ac_ct_CC"; then 3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3148printf "%s\n" "$ac_ct_CC" >&6; } 3149else 3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3151printf "%s\n" "no" >&6; } 3152fi 3153 3154 3155 test -n "$ac_ct_CC" && break 3156done 3157 3158 if test "x$ac_ct_CC" = x; then 3159 CC="" 3160 else 3161 case $cross_compiling:$ac_tool_warned in 3162yes:) 3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3165ac_tool_warned=yes ;; 3166esac 3167 CC=$ac_ct_CC 3168 fi 3169fi 3170 3171fi 3172if test -z "$CC"; then 3173 if test -n "$ac_tool_prefix"; then 3174 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3175set dummy ${ac_tool_prefix}clang; ac_word=$2 3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3177printf %s "checking for $ac_word... " >&6; } 3178if test ${ac_cv_prog_CC+y} 3179then : 3180 printf %s "(cached) " >&6 3181else case e in #( 3182 e) if test -n "$CC"; then 3183 ac_cv_prog_CC="$CC" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 case $as_dir in #((( 3190 '') as_dir=./ ;; 3191 */) ;; 3192 *) as_dir=$as_dir/ ;; 3193 esac 3194 for ac_exec_ext in '' $ac_executable_extensions; do 3195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3196 ac_cv_prog_CC="${ac_tool_prefix}clang" 3197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3198 break 2 3199 fi 3200done 3201 done 3202IFS=$as_save_IFS 3203 3204fi ;; 3205esac 3206fi 3207CC=$ac_cv_prog_CC 3208if test -n "$CC"; then 3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3210printf "%s\n" "$CC" >&6; } 3211else 3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213printf "%s\n" "no" >&6; } 3214fi 3215 3216 3217fi 3218if test -z "$ac_cv_prog_CC"; then 3219 ac_ct_CC=$CC 3220 # Extract the first word of "clang", so it can be a program name with args. 3221set dummy clang; ac_word=$2 3222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223printf %s "checking for $ac_word... " >&6; } 3224if test ${ac_cv_prog_ac_ct_CC+y} 3225then : 3226 printf %s "(cached) " >&6 3227else case e in #( 3228 e) if test -n "$ac_ct_CC"; then 3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3230else 3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH 3233do 3234 IFS=$as_save_IFS 3235 case $as_dir in #((( 3236 '') as_dir=./ ;; 3237 */) ;; 3238 *) as_dir=$as_dir/ ;; 3239 esac 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_ac_ct_CC="clang" 3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi ;; 3251esac 3252fi 3253ac_ct_CC=$ac_cv_prog_ac_ct_CC 3254if test -n "$ac_ct_CC"; then 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3256printf "%s\n" "$ac_ct_CC" >&6; } 3257else 3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259printf "%s\n" "no" >&6; } 3260fi 3261 3262 if test "x$ac_ct_CC" = x; then 3263 CC="" 3264 else 3265 case $cross_compiling:$ac_tool_warned in 3266yes:) 3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3269ac_tool_warned=yes ;; 3270esac 3271 CC=$ac_ct_CC 3272 fi 3273else 3274 CC="$ac_cv_prog_CC" 3275fi 3276 3277fi 3278 3279 3280test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3281printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3282as_fn_error $? "no acceptable C compiler found in \$PATH 3283See 'config.log' for more details" "$LINENO" 5; } 3284 3285# Provide some information about the compiler. 3286printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3287set X $ac_compile 3288ac_compiler=$2 3289for ac_option in --version -v -V -qversion -version; do 3290 { { ac_try="$ac_compiler $ac_option >&5" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296printf "%s\n" "$ac_try_echo"; } >&5 3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3298 ac_status=$? 3299 if test -s conftest.err; then 3300 sed '10a\ 3301... rest of stderr output deleted ... 3302 10q' conftest.err >conftest.er1 3303 cat conftest.er1 >&5 3304 fi 3305 rm -f conftest.er1 conftest.err 3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3307 test $ac_status = 0; } 3308done 3309 3310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313int 3314main (void) 3315{ 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321ac_clean_files_save=$ac_clean_files 3322ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3323# Try to create an executable without -o first, disregard a.out. 3324# It will help us diagnose broken compilers, and finding out an intuition 3325# of exeext. 3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3327printf %s "checking whether the C compiler works... " >&6; } 3328ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3329 3330# The possible output files: 3331ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3332 3333ac_rmfiles= 3334for ac_file in $ac_files 3335do 3336 case $ac_file in 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3338 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3339 esac 3340done 3341rm -f $ac_rmfiles 3342 3343if { { ac_try="$ac_link_default" 3344case "(($ac_try" in 3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3346 *) ac_try_echo=$ac_try;; 3347esac 3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3349printf "%s\n" "$ac_try_echo"; } >&5 3350 (eval "$ac_link_default") 2>&5 3351 ac_status=$? 3352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3353 test $ac_status = 0; } 3354then : 3355 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3356# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3357# in a Makefile. We should not override ac_cv_exeext if it was cached, 3358# so that the user can short-circuit this test for compilers unknown to 3359# Autoconf. 3360for ac_file in $ac_files '' 3361do 3362 test -f "$ac_file" || continue 3363 case $ac_file in 3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3365 ;; 3366 [ab].out ) 3367 # We found the default executable, but exeext='' is most 3368 # certainly right. 3369 break;; 3370 *.* ) 3371 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3372 then :; else 3373 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3374 fi 3375 # We set ac_cv_exeext here because the later test for it is not 3376 # safe: cross compilers may not add the suffix if given an '-o' 3377 # argument, so we may need to know it at that point already. 3378 # Even if this section looks crufty: it has the advantage of 3379 # actually working. 3380 break;; 3381 * ) 3382 break;; 3383 esac 3384done 3385test "$ac_cv_exeext" = no && ac_cv_exeext= 3386 3387else case e in #( 3388 e) ac_file='' ;; 3389esac 3390fi 3391if test -z "$ac_file" 3392then : 3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3394printf "%s\n" "no" >&6; } 3395printf "%s\n" "$as_me: failed program was:" >&5 3396sed 's/^/| /' conftest.$ac_ext >&5 3397 3398{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3399printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3400as_fn_error 77 "C compiler cannot create executables 3401See 'config.log' for more details" "$LINENO" 5; } 3402else case e in #( 3403 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3404printf "%s\n" "yes" >&6; } ;; 3405esac 3406fi 3407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3408printf %s "checking for C compiler default output file name... " >&6; } 3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3410printf "%s\n" "$ac_file" >&6; } 3411ac_exeext=$ac_cv_exeext 3412 3413rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3414ac_clean_files=$ac_clean_files_save 3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3416printf %s "checking for suffix of executables... " >&6; } 3417if { { ac_try="$ac_link" 3418case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421esac 3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3423printf "%s\n" "$ac_try_echo"; } >&5 3424 (eval "$ac_link") 2>&5 3425 ac_status=$? 3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3427 test $ac_status = 0; } 3428then : 3429 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3430# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3431# work properly (i.e., refer to 'conftest.exe'), while it won't with 3432# 'rm'. 3433for ac_file in conftest.exe conftest conftest.*; do 3434 test -f "$ac_file" || continue 3435 case $ac_file in 3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3437 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3438 break;; 3439 * ) break;; 3440 esac 3441done 3442else case e in #( 3443 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3444printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3445as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3446See 'config.log' for more details" "$LINENO" 5; } ;; 3447esac 3448fi 3449rm -f conftest conftest$ac_cv_exeext 3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3451printf "%s\n" "$ac_cv_exeext" >&6; } 3452 3453rm -f conftest.$ac_ext 3454EXEEXT=$ac_cv_exeext 3455ac_exeext=$EXEEXT 3456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3457/* end confdefs.h. */ 3458#include <stdio.h> 3459int 3460main (void) 3461{ 3462FILE *f = fopen ("conftest.out", "w"); 3463 if (!f) 3464 return 1; 3465 return ferror (f) || fclose (f) != 0; 3466 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471ac_clean_files="$ac_clean_files conftest.out" 3472# Check that the compiler produces executables we can run. If not, either 3473# the compiler is broken, or we cross compile. 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3475printf %s "checking whether we are cross compiling... " >&6; } 3476if test "$cross_compiling" != yes; then 3477 { { ac_try="$ac_link" 3478case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481esac 3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3483printf "%s\n" "$ac_try_echo"; } >&5 3484 (eval "$ac_link") 2>&5 3485 ac_status=$? 3486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3487 test $ac_status = 0; } 3488 if { ac_try='./conftest$ac_cv_exeext' 3489 { { case "(($ac_try" in 3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3491 *) ac_try_echo=$ac_try;; 3492esac 3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3494printf "%s\n" "$ac_try_echo"; } >&5 3495 (eval "$ac_try") 2>&5 3496 ac_status=$? 3497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3498 test $ac_status = 0; }; }; then 3499 cross_compiling=no 3500 else 3501 if test "$cross_compiling" = maybe; then 3502 cross_compiling=yes 3503 else 3504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3505printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3506as_fn_error 77 "cannot run C compiled programs. 3507If you meant to cross compile, use '--host'. 3508See 'config.log' for more details" "$LINENO" 5; } 3509 fi 3510 fi 3511fi 3512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3513printf "%s\n" "$cross_compiling" >&6; } 3514 3515rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3516 conftest.o conftest.obj conftest.out 3517ac_clean_files=$ac_clean_files_save 3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3519printf %s "checking for suffix of object files... " >&6; } 3520if test ${ac_cv_objext+y} 3521then : 3522 printf %s "(cached) " >&6 3523else case e in #( 3524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3525/* end confdefs.h. */ 3526 3527int 3528main (void) 3529{ 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535rm -f conftest.o conftest.obj 3536if { { ac_try="$ac_compile" 3537case "(($ac_try" in 3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3539 *) ac_try_echo=$ac_try;; 3540esac 3541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3542printf "%s\n" "$ac_try_echo"; } >&5 3543 (eval "$ac_compile") 2>&5 3544 ac_status=$? 3545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3546 test $ac_status = 0; } 3547then : 3548 for ac_file in conftest.o conftest.obj conftest.*; do 3549 test -f "$ac_file" || continue; 3550 case $ac_file in 3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3553 break;; 3554 esac 3555done 3556else case e in #( 3557 e) printf "%s\n" "$as_me: failed program was:" >&5 3558sed 's/^/| /' conftest.$ac_ext >&5 3559 3560{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3561printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3562as_fn_error $? "cannot compute suffix of object files: cannot compile 3563See 'config.log' for more details" "$LINENO" 5; } ;; 3564esac 3565fi 3566rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3567esac 3568fi 3569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3570printf "%s\n" "$ac_cv_objext" >&6; } 3571OBJEXT=$ac_cv_objext 3572ac_objext=$OBJEXT 3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3574printf %s "checking whether the compiler supports GNU C... " >&6; } 3575if test ${ac_cv_c_compiler_gnu+y} 3576then : 3577 printf %s "(cached) " >&6 3578else case e in #( 3579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581 3582int 3583main (void) 3584{ 3585#ifndef __GNUC__ 3586 choke me 3587#endif 3588 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593if ac_fn_c_try_compile "$LINENO" 3594then : 3595 ac_compiler_gnu=yes 3596else case e in #( 3597 e) ac_compiler_gnu=no ;; 3598esac 3599fi 3600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3601ac_cv_c_compiler_gnu=$ac_compiler_gnu 3602 ;; 3603esac 3604fi 3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3606printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3607ac_compiler_gnu=$ac_cv_c_compiler_gnu 3608 3609if test $ac_compiler_gnu = yes; then 3610 GCC=yes 3611else 3612 GCC= 3613fi 3614ac_test_CFLAGS=${CFLAGS+y} 3615ac_save_CFLAGS=$CFLAGS 3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3617printf %s "checking whether $CC accepts -g... " >&6; } 3618if test ${ac_cv_prog_cc_g+y} 3619then : 3620 printf %s "(cached) " >&6 3621else case e in #( 3622 e) ac_save_c_werror_flag=$ac_c_werror_flag 3623 ac_c_werror_flag=yes 3624 ac_cv_prog_cc_g=no 3625 CFLAGS="-g" 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main (void) 3631{ 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637if ac_fn_c_try_compile "$LINENO" 3638then : 3639 ac_cv_prog_cc_g=yes 3640else case e in #( 3641 e) CFLAGS="" 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main (void) 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653if ac_fn_c_try_compile "$LINENO" 3654then : 3655 3656else case e in #( 3657 e) ac_c_werror_flag=$ac_save_c_werror_flag 3658 CFLAGS="-g" 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660/* end confdefs.h. */ 3661 3662int 3663main (void) 3664{ 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670if ac_fn_c_try_compile "$LINENO" 3671then : 3672 ac_cv_prog_cc_g=yes 3673fi 3674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3675esac 3676fi 3677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3678esac 3679fi 3680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3681 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3682esac 3683fi 3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3685printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3686if test $ac_test_CFLAGS; then 3687 CFLAGS=$ac_save_CFLAGS 3688elif test $ac_cv_prog_cc_g = yes; then 3689 if test "$GCC" = yes; then 3690 CFLAGS="-g -O2" 3691 else 3692 CFLAGS="-g" 3693 fi 3694else 3695 if test "$GCC" = yes; then 3696 CFLAGS="-O2" 3697 else 3698 CFLAGS= 3699 fi 3700fi 3701ac_prog_cc_stdc=no 3702if test x$ac_prog_cc_stdc = xno 3703then : 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3705printf %s "checking for $CC option to enable C11 features... " >&6; } 3706if test ${ac_cv_prog_cc_c11+y} 3707then : 3708 printf %s "(cached) " >&6 3709else case e in #( 3710 e) ac_cv_prog_cc_c11=no 3711ac_save_CC=$CC 3712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714$ac_c_conftest_c11_program 3715_ACEOF 3716for ac_arg in '' -std=gnu11 3717do 3718 CC="$ac_save_CC $ac_arg" 3719 if ac_fn_c_try_compile "$LINENO" 3720then : 3721 ac_cv_prog_cc_c11=$ac_arg 3722fi 3723rm -f core conftest.err conftest.$ac_objext conftest.beam 3724 test "x$ac_cv_prog_cc_c11" != "xno" && break 3725done 3726rm -f conftest.$ac_ext 3727CC=$ac_save_CC ;; 3728esac 3729fi 3730 3731if test "x$ac_cv_prog_cc_c11" = xno 3732then : 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3734printf "%s\n" "unsupported" >&6; } 3735else case e in #( 3736 e) if test "x$ac_cv_prog_cc_c11" = x 3737then : 3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3739printf "%s\n" "none needed" >&6; } 3740else case e in #( 3741 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3742printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3743 CC="$CC $ac_cv_prog_cc_c11" ;; 3744esac 3745fi 3746 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3747 ac_prog_cc_stdc=c11 ;; 3748esac 3749fi 3750fi 3751if test x$ac_prog_cc_stdc = xno 3752then : 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3754printf %s "checking for $CC option to enable C99 features... " >&6; } 3755if test ${ac_cv_prog_cc_c99+y} 3756then : 3757 printf %s "(cached) " >&6 3758else case e in #( 3759 e) ac_cv_prog_cc_c99=no 3760ac_save_CC=$CC 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763$ac_c_conftest_c99_program 3764_ACEOF 3765for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3766do 3767 CC="$ac_save_CC $ac_arg" 3768 if ac_fn_c_try_compile "$LINENO" 3769then : 3770 ac_cv_prog_cc_c99=$ac_arg 3771fi 3772rm -f core conftest.err conftest.$ac_objext conftest.beam 3773 test "x$ac_cv_prog_cc_c99" != "xno" && break 3774done 3775rm -f conftest.$ac_ext 3776CC=$ac_save_CC ;; 3777esac 3778fi 3779 3780if test "x$ac_cv_prog_cc_c99" = xno 3781then : 3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3783printf "%s\n" "unsupported" >&6; } 3784else case e in #( 3785 e) if test "x$ac_cv_prog_cc_c99" = x 3786then : 3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3788printf "%s\n" "none needed" >&6; } 3789else case e in #( 3790 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3791printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3792 CC="$CC $ac_cv_prog_cc_c99" ;; 3793esac 3794fi 3795 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3796 ac_prog_cc_stdc=c99 ;; 3797esac 3798fi 3799fi 3800if test x$ac_prog_cc_stdc = xno 3801then : 3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3803printf %s "checking for $CC option to enable C89 features... " >&6; } 3804if test ${ac_cv_prog_cc_c89+y} 3805then : 3806 printf %s "(cached) " >&6 3807else case e in #( 3808 e) ac_cv_prog_cc_c89=no 3809ac_save_CC=$CC 3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811/* end confdefs.h. */ 3812$ac_c_conftest_c89_program 3813_ACEOF 3814for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3815do 3816 CC="$ac_save_CC $ac_arg" 3817 if ac_fn_c_try_compile "$LINENO" 3818then : 3819 ac_cv_prog_cc_c89=$ac_arg 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.beam 3822 test "x$ac_cv_prog_cc_c89" != "xno" && break 3823done 3824rm -f conftest.$ac_ext 3825CC=$ac_save_CC ;; 3826esac 3827fi 3828 3829if test "x$ac_cv_prog_cc_c89" = xno 3830then : 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3832printf "%s\n" "unsupported" >&6; } 3833else case e in #( 3834 e) if test "x$ac_cv_prog_cc_c89" = x 3835then : 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3837printf "%s\n" "none needed" >&6; } 3838else case e in #( 3839 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3840printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3841 CC="$CC $ac_cv_prog_cc_c89" ;; 3842esac 3843fi 3844 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3845 ac_prog_cc_stdc=c89 ;; 3846esac 3847fi 3848fi 3849 3850ac_ext=c 3851ac_cpp='$CPP $CPPFLAGS' 3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3854ac_compiler_gnu=$ac_cv_c_compiler_gnu 3855 3856 3857 ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3863printf %s "checking whether $CC understands -c and -o together... " >&6; } 3864if test ${am_cv_prog_cc_c_o+y} 3865then : 3866 printf %s "(cached) " >&6 3867else case e in #( 3868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main (void) 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879 # Make sure it works both with $CC and with simple cc. 3880 # Following AC_PROG_CC_C_O, we do the test twice because some 3881 # compilers refuse to overwrite an existing .o file with -o, 3882 # though they will create one. 3883 am_cv_prog_cc_c_o=yes 3884 for am_i in 1 2; do 3885 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3886 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3887 ac_status=$? 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); } \ 3890 && test -f conftest2.$ac_objext; then 3891 : OK 3892 else 3893 am_cv_prog_cc_c_o=no 3894 break 3895 fi 3896 done 3897 rm -f core conftest* 3898 unset am_i ;; 3899esac 3900fi 3901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3902printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3903if test "$am_cv_prog_cc_c_o" != yes; then 3904 # Losing compiler, so override with the script. 3905 # FIXME: It is wrong to rewrite CC. 3906 # But if we don't then we get into trouble of one sort or another. 3907 # A longer-term fix would be to have automake use am__CC in this case, 3908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3909 CC="$am_aux_dir/compile $CC" 3910fi 3911ac_ext=c 3912ac_cpp='$CPP $CPPFLAGS' 3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3915ac_compiler_gnu=$ac_cv_c_compiler_gnu 3916 3917 3918 3919ac_header= ac_cache= 3920for ac_item in $ac_header_c_list 3921do 3922 if test $ac_cache; then 3923 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3924 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3925 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3926 fi 3927 ac_header= ac_cache= 3928 elif test $ac_header; then 3929 ac_cache=$ac_item 3930 else 3931 ac_header=$ac_item 3932 fi 3933done 3934 3935 3936 3937 3938 3939 3940 3941 3942if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3943then : 3944 3945printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3946 3947fi 3948 3949 3950 3951 3952 3953 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3955printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3956if test ${ac_cv_safe_to_define___extensions__+y} 3957then : 3958 printf %s "(cached) " >&6 3959else case e in #( 3960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3961/* end confdefs.h. */ 3962 3963# define __EXTENSIONS__ 1 3964 $ac_includes_default 3965int 3966main (void) 3967{ 3968 3969 ; 3970 return 0; 3971} 3972_ACEOF 3973if ac_fn_c_try_compile "$LINENO" 3974then : 3975 ac_cv_safe_to_define___extensions__=yes 3976else case e in #( 3977 e) ac_cv_safe_to_define___extensions__=no ;; 3978esac 3979fi 3980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3981esac 3982fi 3983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3984printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3985 3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3987printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3988if test ${ac_cv_should_define__xopen_source+y} 3989then : 3990 printf %s "(cached) " >&6 3991else case e in #( 3992 e) ac_cv_should_define__xopen_source=no 3993 if test $ac_cv_header_wchar_h = yes 3994then : 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997 3998 #include <wchar.h> 3999 mbstate_t x; 4000int 4001main (void) 4002{ 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008if ac_fn_c_try_compile "$LINENO" 4009then : 4010 4011else case e in #( 4012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015 #define _XOPEN_SOURCE 500 4016 #include <wchar.h> 4017 mbstate_t x; 4018int 4019main (void) 4020{ 4021 4022 ; 4023 return 0; 4024} 4025_ACEOF 4026if ac_fn_c_try_compile "$LINENO" 4027then : 4028 ac_cv_should_define__xopen_source=yes 4029fi 4030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4031esac 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4034fi ;; 4035esac 4036fi 4037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4038printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4039 4040 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4041 4042 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4043 4044 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4045 4046 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4047 4048 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4049 4050 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4051 4052 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4053 4054 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4055 4056 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4057 4058 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4059 4060 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4061 4062 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4063 4064 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4065 4066 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4067 4068 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4069 4070 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4071 4072 if test $ac_cv_header_minix_config_h = yes 4073then : 4074 MINIX=yes 4075 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4076 4077 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4078 4079 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4080 4081else case e in #( 4082 e) MINIX= ;; 4083esac 4084fi 4085 if test $ac_cv_safe_to_define___extensions__ = yes 4086then : 4087 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4088 4089fi 4090 if test $ac_cv_should_define__xopen_source = yes 4091then : 4092 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4093 4094fi 4095 4096 4097# Initialize Automake 4098am__api_version='1.16' 4099 4100 4101 # Find a good install program. We prefer a C program (faster), 4102# so one script is as good as another. But avoid the broken or 4103# incompatible versions: 4104# SysV /etc/install, /usr/sbin/install 4105# SunOS /usr/etc/install 4106# IRIX /sbin/install 4107# AIX /bin/install 4108# AmigaOS /C/install, which installs bootblocks on floppy discs 4109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4110# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4112# OS/2's system install, which has a completely different semantic 4113# ./install, which can be erroneously created by make from ./install.sh. 4114# Reject install programs that cannot install multiple files. 4115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4116printf %s "checking for a BSD-compatible install... " >&6; } 4117if test -z "$INSTALL"; then 4118if test ${ac_cv_path_install+y} 4119then : 4120 printf %s "(cached) " >&6 4121else case e in #( 4122 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4123for as_dir in $PATH 4124do 4125 IFS=$as_save_IFS 4126 case $as_dir in #((( 4127 '') as_dir=./ ;; 4128 */) ;; 4129 *) as_dir=$as_dir/ ;; 4130 esac 4131 # Account for fact that we put trailing slashes in our PATH walk. 4132case $as_dir in #(( 4133 ./ | /[cC]/* | \ 4134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4135 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4136 /usr/ucb/* ) ;; 4137 *) 4138 # OSF1 and SCO ODT 3.0 have their own names for install. 4139 # Don't use installbsd from OSF since it installs stuff as root 4140 # by default. 4141 for ac_prog in ginstall scoinst install; do 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4144 if test $ac_prog = install && 4145 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4146 # AIX install. It has an incompatible calling convention. 4147 : 4148 elif test $ac_prog = install && 4149 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4150 # program-specific install script used by HP pwplus--don't use. 4151 : 4152 else 4153 rm -rf conftest.one conftest.two conftest.dir 4154 echo one > conftest.one 4155 echo two > conftest.two 4156 mkdir conftest.dir 4157 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4158 test -s conftest.one && test -s conftest.two && 4159 test -s conftest.dir/conftest.one && 4160 test -s conftest.dir/conftest.two 4161 then 4162 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4163 break 3 4164 fi 4165 fi 4166 fi 4167 done 4168 done 4169 ;; 4170esac 4171 4172 done 4173IFS=$as_save_IFS 4174 4175rm -rf conftest.one conftest.two conftest.dir 4176 ;; 4177esac 4178fi 4179 if test ${ac_cv_path_install+y}; then 4180 INSTALL=$ac_cv_path_install 4181 else 4182 # As a last resort, use the slow shell script. Don't cache a 4183 # value for INSTALL within a source directory, because that will 4184 # break other packages using the cache if that directory is 4185 # removed, or if the value is a relative name. 4186 INSTALL=$ac_install_sh 4187 fi 4188fi 4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4190printf "%s\n" "$INSTALL" >&6; } 4191 4192# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4193# It thinks the first close brace ends the variable substitution. 4194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4195 4196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4197 4198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4199 4200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4201printf %s "checking whether build environment is sane... " >&6; } 4202# Reject unsafe characters in $srcdir or the absolute working directory 4203# name. Accept space and tab only in the latter. 4204am_lf=' 4205' 4206case `pwd` in 4207 *[\\\"\#\$\&\'\`$am_lf]*) 4208 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4209esac 4210case $srcdir in 4211 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4212 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4213esac 4214 4215# Do 'set' in a subshell so we don't clobber the current shell's 4216# arguments. Must try -L first in case configure is actually a 4217# symlink; some systems play weird games with the mod time of symlinks 4218# (eg FreeBSD returns the mod time of the symlink's containing 4219# directory). 4220if ( 4221 am_has_slept=no 4222 for am_try in 1 2; do 4223 echo "timestamp, slept: $am_has_slept" > conftest.file 4224 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4225 if test "$*" = "X"; then 4226 # -L didn't work. 4227 set X `ls -t "$srcdir/configure" conftest.file` 4228 fi 4229 if test "$*" != "X $srcdir/configure conftest.file" \ 4230 && test "$*" != "X conftest.file $srcdir/configure"; then 4231 4232 # If neither matched, then we have a broken ls. This can happen 4233 # if, for instance, CONFIG_SHELL is bash and it inherits a 4234 # broken ls alias from the environment. This has actually 4235 # happened. Such a system could not be considered "sane". 4236 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4237 alias in your environment" "$LINENO" 5 4238 fi 4239 if test "$2" = conftest.file || test $am_try -eq 2; then 4240 break 4241 fi 4242 # Just in case. 4243 sleep 1 4244 am_has_slept=yes 4245 done 4246 test "$2" = conftest.file 4247 ) 4248then 4249 # Ok. 4250 : 4251else 4252 as_fn_error $? "newly created file is older than distributed files! 4253Check your system clock" "$LINENO" 5 4254fi 4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4256printf "%s\n" "yes" >&6; } 4257# If we didn't sleep, we still need to ensure time stamps of config.status and 4258# generated files are strictly newer. 4259am_sleep_pid= 4260if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4261 ( sleep 1 ) & 4262 am_sleep_pid=$! 4263fi 4264 4265rm -f conftest.file 4266 4267test "$program_prefix" != NONE && 4268 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4269# Use a double $ so make ignores it. 4270test "$program_suffix" != NONE && 4271 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4272# Double any \ or $. 4273# By default was 's,x,x', remove it if useless. 4274ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4275program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4276 4277 4278 if test x"${MISSING+set}" != xset; then 4279 MISSING="\${SHELL} '$am_aux_dir/missing'" 4280fi 4281# Use eval to expand $SHELL 4282if eval "$MISSING --is-lightweight"; then 4283 am_missing_run="$MISSING " 4284else 4285 am_missing_run= 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4287printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4288fi 4289 4290if test x"${install_sh+set}" != xset; then 4291 case $am_aux_dir in 4292 *\ * | *\ *) 4293 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4294 *) 4295 install_sh="\${SHELL} $am_aux_dir/install-sh" 4296 esac 4297fi 4298 4299# Installed binaries are usually stripped using 'strip' when the user 4300# run "make install-strip". However 'strip' might not be the right 4301# tool to use in cross-compilation environments, therefore Automake 4302# will honor the 'STRIP' environment variable to overrule this program. 4303if test "$cross_compiling" != no; then 4304 if test -n "$ac_tool_prefix"; then 4305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4306set dummy ${ac_tool_prefix}strip; ac_word=$2 4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4308printf %s "checking for $ac_word... " >&6; } 4309if test ${ac_cv_prog_STRIP+y} 4310then : 4311 printf %s "(cached) " >&6 4312else case e in #( 4313 e) if test -n "$STRIP"; then 4314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4315else 4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4317for as_dir in $PATH 4318do 4319 IFS=$as_save_IFS 4320 case $as_dir in #((( 4321 '') as_dir=./ ;; 4322 */) ;; 4323 *) as_dir=$as_dir/ ;; 4324 esac 4325 for ac_exec_ext in '' $ac_executable_extensions; do 4326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4327 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4329 break 2 4330 fi 4331done 4332 done 4333IFS=$as_save_IFS 4334 4335fi ;; 4336esac 4337fi 4338STRIP=$ac_cv_prog_STRIP 4339if test -n "$STRIP"; then 4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4341printf "%s\n" "$STRIP" >&6; } 4342else 4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4344printf "%s\n" "no" >&6; } 4345fi 4346 4347 4348fi 4349if test -z "$ac_cv_prog_STRIP"; then 4350 ac_ct_STRIP=$STRIP 4351 # Extract the first word of "strip", so it can be a program name with args. 4352set dummy strip; ac_word=$2 4353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4354printf %s "checking for $ac_word... " >&6; } 4355if test ${ac_cv_prog_ac_ct_STRIP+y} 4356then : 4357 printf %s "(cached) " >&6 4358else case e in #( 4359 e) if test -n "$ac_ct_STRIP"; then 4360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4361else 4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH 4364do 4365 IFS=$as_save_IFS 4366 case $as_dir in #((( 4367 '') as_dir=./ ;; 4368 */) ;; 4369 *) as_dir=$as_dir/ ;; 4370 esac 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4373 ac_cv_prog_ac_ct_STRIP="strip" 4374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4375 break 2 4376 fi 4377done 4378 done 4379IFS=$as_save_IFS 4380 4381fi ;; 4382esac 4383fi 4384ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4385if test -n "$ac_ct_STRIP"; then 4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4387printf "%s\n" "$ac_ct_STRIP" >&6; } 4388else 4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390printf "%s\n" "no" >&6; } 4391fi 4392 4393 if test "x$ac_ct_STRIP" = x; then 4394 STRIP=":" 4395 else 4396 case $cross_compiling:$ac_tool_warned in 4397yes:) 4398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4399printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4400ac_tool_warned=yes ;; 4401esac 4402 STRIP=$ac_ct_STRIP 4403 fi 4404else 4405 STRIP="$ac_cv_prog_STRIP" 4406fi 4407 4408fi 4409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4410 4411 4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4413printf %s "checking for a race-free mkdir -p... " >&6; } 4414if test -z "$MKDIR_P"; then 4415 if test ${ac_cv_path_mkdir+y} 4416then : 4417 printf %s "(cached) " >&6 4418else case e in #( 4419 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4421do 4422 IFS=$as_save_IFS 4423 case $as_dir in #((( 4424 '') as_dir=./ ;; 4425 */) ;; 4426 *) as_dir=$as_dir/ ;; 4427 esac 4428 for ac_prog in mkdir gmkdir; do 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4431 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4432 'mkdir ('*'coreutils) '* | \ 4433 *'BusyBox '* | \ 4434 'mkdir (fileutils) '4.1*) 4435 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4436 break 3;; 4437 esac 4438 done 4439 done 4440 done 4441IFS=$as_save_IFS 4442 ;; 4443esac 4444fi 4445 4446 test -d ./--version && rmdir ./--version 4447 if test ${ac_cv_path_mkdir+y}; then 4448 MKDIR_P="$ac_cv_path_mkdir -p" 4449 else 4450 # As a last resort, use plain mkdir -p, 4451 # in the hope it doesn't have the bugs of ancient mkdir. 4452 MKDIR_P='mkdir -p' 4453 fi 4454fi 4455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4456printf "%s\n" "$MKDIR_P" >&6; } 4457 4458for ac_prog in gawk mawk nawk awk 4459do 4460 # Extract the first word of "$ac_prog", so it can be a program name with args. 4461set dummy $ac_prog; ac_word=$2 4462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463printf %s "checking for $ac_word... " >&6; } 4464if test ${ac_cv_prog_AWK+y} 4465then : 4466 printf %s "(cached) " >&6 4467else case e in #( 4468 e) if test -n "$AWK"; then 4469 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4470else 4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4472for as_dir in $PATH 4473do 4474 IFS=$as_save_IFS 4475 case $as_dir in #((( 4476 '') as_dir=./ ;; 4477 */) ;; 4478 *) as_dir=$as_dir/ ;; 4479 esac 4480 for ac_exec_ext in '' $ac_executable_extensions; do 4481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4482 ac_cv_prog_AWK="$ac_prog" 4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4484 break 2 4485 fi 4486done 4487 done 4488IFS=$as_save_IFS 4489 4490fi ;; 4491esac 4492fi 4493AWK=$ac_cv_prog_AWK 4494if test -n "$AWK"; then 4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4496printf "%s\n" "$AWK" >&6; } 4497else 4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4499printf "%s\n" "no" >&6; } 4500fi 4501 4502 4503 test -n "$AWK" && break 4504done 4505 4506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4507printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4508set x ${MAKE-make} 4509ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4510if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4511then : 4512 printf %s "(cached) " >&6 4513else case e in #( 4514 e) cat >conftest.make <<\_ACEOF 4515SHELL = /bin/sh 4516all: 4517 @echo '@@@%%%=$(MAKE)=@@@%%%' 4518_ACEOF 4519# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4520case `${MAKE-make} -f conftest.make 2>/dev/null` in 4521 *@@@%%%=?*=@@@%%%*) 4522 eval ac_cv_prog_make_${ac_make}_set=yes;; 4523 *) 4524 eval ac_cv_prog_make_${ac_make}_set=no;; 4525esac 4526rm -f conftest.make ;; 4527esac 4528fi 4529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4531printf "%s\n" "yes" >&6; } 4532 SET_MAKE= 4533else 4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4535printf "%s\n" "no" >&6; } 4536 SET_MAKE="MAKE=${MAKE-make}" 4537fi 4538 4539rm -rf .tst 2>/dev/null 4540mkdir .tst 2>/dev/null 4541if test -d .tst; then 4542 am__leading_dot=. 4543else 4544 am__leading_dot=_ 4545fi 4546rmdir .tst 2>/dev/null 4547 4548DEPDIR="${am__leading_dot}deps" 4549 4550ac_config_commands="$ac_config_commands depfiles" 4551 4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4553printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4554cat > confinc.mk << 'END' 4555am__doit: 4556 @echo this is the am__doit target >confinc.out 4557.PHONY: am__doit 4558END 4559am__include="#" 4560am__quote= 4561# BSD make does it like this. 4562echo '.include "confinc.mk" # ignored' > confmf.BSD 4563# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4564echo 'include confinc.mk # ignored' > confmf.GNU 4565_am_result=no 4566for s in GNU BSD; do 4567 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4568 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); } 4572 case $?:`cat confinc.out 2>/dev/null` in #( 4573 '0:this is the am__doit target') : 4574 case $s in #( 4575 BSD) : 4576 am__include='.include' am__quote='"' ;; #( 4577 *) : 4578 am__include='include' am__quote='' ;; 4579esac ;; #( 4580 *) : 4581 ;; 4582esac 4583 if test "$am__include" != "#"; then 4584 _am_result="yes ($s style)" 4585 break 4586 fi 4587done 4588rm -f confinc.* confmf.* 4589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4590printf "%s\n" "${_am_result}" >&6; } 4591 4592# Check whether --enable-dependency-tracking was given. 4593if test ${enable_dependency_tracking+y} 4594then : 4595 enableval=$enable_dependency_tracking; 4596fi 4597 4598if test "x$enable_dependency_tracking" != xno; then 4599 am_depcomp="$ac_aux_dir/depcomp" 4600 AMDEPBACKSLASH='\' 4601 am__nodep='_no' 4602fi 4603 if test "x$enable_dependency_tracking" != xno; then 4604 AMDEP_TRUE= 4605 AMDEP_FALSE='#' 4606else 4607 AMDEP_TRUE='#' 4608 AMDEP_FALSE= 4609fi 4610 4611 4612# Check whether --enable-silent-rules was given. 4613if test ${enable_silent_rules+y} 4614then : 4615 enableval=$enable_silent_rules; 4616fi 4617 4618case $enable_silent_rules in # ((( 4619 yes) AM_DEFAULT_VERBOSITY=0;; 4620 no) AM_DEFAULT_VERBOSITY=1;; 4621 *) AM_DEFAULT_VERBOSITY=1;; 4622esac 4623am_make=${MAKE-make} 4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4625printf %s "checking whether $am_make supports nested variables... " >&6; } 4626if test ${am_cv_make_support_nested_variables+y} 4627then : 4628 printf %s "(cached) " >&6 4629else case e in #( 4630 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4631BAR0=false 4632BAR1=true 4633V=1 4634am__doit: 4635 @$(TRUE) 4636.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4637 am_cv_make_support_nested_variables=yes 4638else 4639 am_cv_make_support_nested_variables=no 4640fi ;; 4641esac 4642fi 4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4644printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4645if test $am_cv_make_support_nested_variables = yes; then 4646 AM_V='$(V)' 4647 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4648else 4649 AM_V=$AM_DEFAULT_VERBOSITY 4650 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4651fi 4652AM_BACKSLASH='\' 4653 4654if test "`cd $srcdir && pwd`" != "`pwd`"; then 4655 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4656 # is not polluted with repeated "-I." 4657 am__isrc=' -I$(srcdir)' 4658 # test to see if srcdir already configured 4659 if test -f $srcdir/config.status; then 4660 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4661 fi 4662fi 4663 4664# test whether we have cygpath 4665if test -z "$CYGPATH_W"; then 4666 if (cygpath --version) >/dev/null 2>/dev/null; then 4667 CYGPATH_W='cygpath -w' 4668 else 4669 CYGPATH_W=echo 4670 fi 4671fi 4672 4673 4674# Define the identity of the package. 4675 PACKAGE='libXt' 4676 VERSION='1.3.1' 4677 4678 4679printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4680 4681 4682printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4683 4684# Some tools Automake needs. 4685 4686ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4687 4688 4689AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4690 4691 4692AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4693 4694 4695AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4696 4697 4698MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4699 4700# For better backward compatibility. To be removed once Automake 1.9.x 4701# dies out for good. For more background, see: 4702# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4703# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4704mkdir_p='$(MKDIR_P)' 4705 4706# We need awk for the "check" target (and possibly the TAP driver). The 4707# system "awk" is bad on some platforms. 4708# Always define AMTAR for backward compatibility. Yes, it's still used 4709# in the wild :-( We should find a proper way to deprecate it ... 4710AMTAR='$${TAR-tar}' 4711 4712 4713# We'll loop over all known methods to create a tar archive until one works. 4714_am_tools='gnutar pax cpio none' 4715 4716am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4717 4718 4719 4720 4721 4722depcc="$CC" am_compiler_list= 4723 4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4725printf %s "checking dependency style of $depcc... " >&6; } 4726if test ${am_cv_CC_dependencies_compiler_type+y} 4727then : 4728 printf %s "(cached) " >&6 4729else case e in #( 4730 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4731 # We make a subdir and do the tests there. Otherwise we can end up 4732 # making bogus files that we don't know about and never remove. For 4733 # instance it was reported that on HP-UX the gcc test will end up 4734 # making a dummy file named 'D' -- because '-MD' means "put the output 4735 # in D". 4736 rm -rf conftest.dir 4737 mkdir conftest.dir 4738 # Copy depcomp to subdir because otherwise we won't find it if we're 4739 # using a relative directory. 4740 cp "$am_depcomp" conftest.dir 4741 cd conftest.dir 4742 # We will build objects and dependencies in a subdirectory because 4743 # it helps to detect inapplicable dependency modes. For instance 4744 # both Tru64's cc and ICC support -MD to output dependencies as a 4745 # side effect of compilation, but ICC will put the dependencies in 4746 # the current directory while Tru64 will put them in the object 4747 # directory. 4748 mkdir sub 4749 4750 am_cv_CC_dependencies_compiler_type=none 4751 if test "$am_compiler_list" = ""; then 4752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4753 fi 4754 am__universal=false 4755 case " $depcc " in #( 4756 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4757 esac 4758 4759 for depmode in $am_compiler_list; do 4760 # Setup a source with many dependencies, because some compilers 4761 # like to wrap large dependency lists on column 80 (with \), and 4762 # we should not choose a depcomp mode which is confused by this. 4763 # 4764 # We need to recreate these files for each test, as the compiler may 4765 # overwrite some of them when testing with obscure command lines. 4766 # This happens at least with the AIX C compiler. 4767 : > sub/conftest.c 4768 for i in 1 2 3 4 5 6; do 4769 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4770 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4771 # Solaris 10 /bin/sh. 4772 echo '/* dummy */' > sub/conftst$i.h 4773 done 4774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4775 4776 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4777 # mode. It turns out that the SunPro C++ compiler does not properly 4778 # handle '-M -o', and we need to detect this. Also, some Intel 4779 # versions had trouble with output in subdirs. 4780 am__obj=sub/conftest.${OBJEXT-o} 4781 am__minus_obj="-o $am__obj" 4782 case $depmode in 4783 gcc) 4784 # This depmode causes a compiler race in universal mode. 4785 test "$am__universal" = false || continue 4786 ;; 4787 nosideeffect) 4788 # After this tag, mechanisms are not by side-effect, so they'll 4789 # only be used when explicitly requested. 4790 if test "x$enable_dependency_tracking" = xyes; then 4791 continue 4792 else 4793 break 4794 fi 4795 ;; 4796 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4797 # This compiler won't grok '-c -o', but also, the minuso test has 4798 # not run yet. These depmodes are late enough in the game, and 4799 # so weak that their functioning should not be impacted. 4800 am__obj=conftest.${OBJEXT-o} 4801 am__minus_obj= 4802 ;; 4803 none) break ;; 4804 esac 4805 if depmode=$depmode \ 4806 source=sub/conftest.c object=$am__obj \ 4807 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4808 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4809 >/dev/null 2>conftest.err && 4810 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4811 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4812 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4813 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4814 # icc doesn't choke on unknown options, it will just issue warnings 4815 # or remarks (even with -Werror). So we grep stderr for any message 4816 # that says an option was ignored or not supported. 4817 # When given -MP, icc 7.0 and 7.1 complain thusly: 4818 # icc: Command line warning: ignoring option '-M'; no argument required 4819 # The diagnosis changed in icc 8.0: 4820 # icc: Command line remark: option '-MP' not supported 4821 if (grep 'ignoring option' conftest.err || 4822 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4823 am_cv_CC_dependencies_compiler_type=$depmode 4824 break 4825 fi 4826 fi 4827 done 4828 4829 cd .. 4830 rm -rf conftest.dir 4831else 4832 am_cv_CC_dependencies_compiler_type=none 4833fi 4834 ;; 4835esac 4836fi 4837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4838printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4839CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4840 4841 if 4842 test "x$enable_dependency_tracking" != xno \ 4843 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4844 am__fastdepCC_TRUE= 4845 am__fastdepCC_FALSE='#' 4846else 4847 am__fastdepCC_TRUE='#' 4848 am__fastdepCC_FALSE= 4849fi 4850 4851 4852# Variables for tags utilities; see am/tags.am 4853if test -z "$CTAGS"; then 4854 CTAGS=ctags 4855fi 4856 4857if test -z "$ETAGS"; then 4858 ETAGS=etags 4859fi 4860 4861if test -z "$CSCOPE"; then 4862 CSCOPE=cscope 4863fi 4864 4865 4866 4867# POSIX will say in a future version that running "rm -f" with no argument 4868# is OK; and we want to be able to make that assumption in our Makefile 4869# recipes. So use an aggressive probe to check that the usage we want is 4870# actually supported "in the wild" to an acceptable degree. 4871# See automake bug#10828. 4872# To make any issue more visible, cause the running configure to be aborted 4873# by default if the 'rm' program in use doesn't match our expectations; the 4874# user can still override this though. 4875if rm -f && rm -fr && rm -rf; then : OK; else 4876 cat >&2 <<'END' 4877Oops! 4878 4879Your 'rm' program seems unable to run without file operands specified 4880on the command line, even when the '-f' option is present. This is contrary 4881to the behaviour of most rm programs out there, and not conforming with 4882the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4883 4884Please tell bug-automake@gnu.org about your system, including the value 4885of your $PATH and any error possibly output before this message. This 4886can help us improve future automake versions. 4887 4888END 4889 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4890 echo 'Configuration will proceed anyway, since you have set the' >&2 4891 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4892 echo >&2 4893 else 4894 cat >&2 <<'END' 4895Aborting the configuration process, to ensure you take notice of the issue. 4896 4897You can download and install GNU coreutils to get an 'rm' implementation 4898that behaves properly: <https://www.gnu.org/software/coreutils/>. 4899 4900If you want to complete the configuration process using your problematic 4901'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4902to "yes", and re-run configure. 4903 4904END 4905 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4906 fi 4907fi 4908 4909 4910# Initialize libtool 4911case `pwd` in 4912 *\ * | *\ *) 4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4914printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4915esac 4916 4917 4918 4919macro_version='2.4.7' 4920macro_revision='2.4.7' 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935ltmain=$ac_aux_dir/ltmain.sh 4936 4937 4938 4939 # Make sure we can run config.sub. 4940$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4941 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4942 4943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4944printf %s "checking build system type... " >&6; } 4945if test ${ac_cv_build+y} 4946then : 4947 printf %s "(cached) " >&6 4948else case e in #( 4949 e) ac_build_alias=$build_alias 4950test "x$ac_build_alias" = x && 4951 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4952test "x$ac_build_alias" = x && 4953 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4954ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4955 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4956 ;; 4957esac 4958fi 4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4960printf "%s\n" "$ac_cv_build" >&6; } 4961case $ac_cv_build in 4962*-*-*) ;; 4963*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4964esac 4965build=$ac_cv_build 4966ac_save_IFS=$IFS; IFS='-' 4967set x $ac_cv_build 4968shift 4969build_cpu=$1 4970build_vendor=$2 4971shift; shift 4972# Remember, the first character of IFS is used to create $*, 4973# except with old shells: 4974build_os=$* 4975IFS=$ac_save_IFS 4976case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4977 4978 4979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4980printf %s "checking host system type... " >&6; } 4981if test ${ac_cv_host+y} 4982then : 4983 printf %s "(cached) " >&6 4984else case e in #( 4985 e) if test "x$host_alias" = x; then 4986 ac_cv_host=$ac_cv_build 4987else 4988 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4989 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4990fi 4991 ;; 4992esac 4993fi 4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4995printf "%s\n" "$ac_cv_host" >&6; } 4996case $ac_cv_host in 4997*-*-*) ;; 4998*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4999esac 5000host=$ac_cv_host 5001ac_save_IFS=$IFS; IFS='-' 5002set x $ac_cv_host 5003shift 5004host_cpu=$1 5005host_vendor=$2 5006shift; shift 5007# Remember, the first character of IFS is used to create $*, 5008# except with old shells: 5009host_os=$* 5010IFS=$ac_save_IFS 5011case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5012 5013 5014# Backslashify metacharacters that are still active within 5015# double-quoted strings. 5016sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5017 5018# Same as above, but do not quote variable references. 5019double_quote_subst='s/\(["`\\]\)/\\\1/g' 5020 5021# Sed substitution to delay expansion of an escaped shell variable in a 5022# double_quote_subst'ed string. 5023delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5024 5025# Sed substitution to delay expansion of an escaped single quote. 5026delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5027 5028# Sed substitution to avoid accidental globbing in evaled expressions 5029no_glob_subst='s/\*/\\\*/g' 5030 5031ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5032ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5033ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5034 5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5036printf %s "checking how to print strings... " >&6; } 5037# Test print first, because it will be a builtin if present. 5038if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5040 ECHO='print -r --' 5041elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5042 ECHO='printf %s\n' 5043else 5044 # Use this function as a fallback that always works. 5045 func_fallback_echo () 5046 { 5047 eval 'cat <<_LTECHO_EOF 5048$1 5049_LTECHO_EOF' 5050 } 5051 ECHO='func_fallback_echo' 5052fi 5053 5054# func_echo_all arg... 5055# Invoke $ECHO with all args, space-separated. 5056func_echo_all () 5057{ 5058 $ECHO "" 5059} 5060 5061case $ECHO in 5062 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5063printf "%s\n" "printf" >&6; } ;; 5064 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5065printf "%s\n" "print -r" >&6; } ;; 5066 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5067printf "%s\n" "cat" >&6; } ;; 5068esac 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5084printf %s "checking for a sed that does not truncate output... " >&6; } 5085if test ${ac_cv_path_SED+y} 5086then : 5087 printf %s "(cached) " >&6 5088else case e in #( 5089 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5090 for ac_i in 1 2 3 4 5 6 7; do 5091 ac_script="$ac_script$as_nl$ac_script" 5092 done 5093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5094 { ac_script=; unset ac_script;} 5095 if test -z "$SED"; then 5096 ac_path_SED_found=false 5097 # Loop through the user's path and test for each of PROGNAME-LIST 5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5099for as_dir in $PATH 5100do 5101 IFS=$as_save_IFS 5102 case $as_dir in #((( 5103 '') as_dir=./ ;; 5104 */) ;; 5105 *) as_dir=$as_dir/ ;; 5106 esac 5107 for ac_prog in sed gsed 5108 do 5109 for ac_exec_ext in '' $ac_executable_extensions; do 5110 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5111 as_fn_executable_p "$ac_path_SED" || continue 5112# Check for GNU ac_path_SED and select it if it is found. 5113 # Check for GNU $ac_path_SED 5114case `"$ac_path_SED" --version 2>&1` in #( 5115*GNU*) 5116 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5117#( 5118*) 5119 ac_count=0 5120 printf %s 0123456789 >"conftest.in" 5121 while : 5122 do 5123 cat "conftest.in" "conftest.in" >"conftest.tmp" 5124 mv "conftest.tmp" "conftest.in" 5125 cp "conftest.in" "conftest.nl" 5126 printf "%s\n" '' >> "conftest.nl" 5127 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5129 as_fn_arith $ac_count + 1 && ac_count=$as_val 5130 if test $ac_count -gt ${ac_path_SED_max-0}; then 5131 # Best one so far, save it but keep looking for a better one 5132 ac_cv_path_SED="$ac_path_SED" 5133 ac_path_SED_max=$ac_count 5134 fi 5135 # 10*(2^10) chars as input seems more than enough 5136 test $ac_count -gt 10 && break 5137 done 5138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5139esac 5140 5141 $ac_path_SED_found && break 3 5142 done 5143 done 5144 done 5145IFS=$as_save_IFS 5146 if test -z "$ac_cv_path_SED"; then 5147 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5148 fi 5149else 5150 ac_cv_path_SED=$SED 5151fi 5152 ;; 5153esac 5154fi 5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5156printf "%s\n" "$ac_cv_path_SED" >&6; } 5157 SED="$ac_cv_path_SED" 5158 rm -f conftest.sed 5159 5160test -z "$SED" && SED=sed 5161Xsed="$SED -e 1s/^X//" 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5174printf %s "checking for grep that handles long lines and -e... " >&6; } 5175if test ${ac_cv_path_GREP+y} 5176then : 5177 printf %s "(cached) " >&6 5178else case e in #( 5179 e) if test -z "$GREP"; then 5180 ac_path_GREP_found=false 5181 # Loop through the user's path and test for each of PROGNAME-LIST 5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5184do 5185 IFS=$as_save_IFS 5186 case $as_dir in #((( 5187 '') as_dir=./ ;; 5188 */) ;; 5189 *) as_dir=$as_dir/ ;; 5190 esac 5191 for ac_prog in grep ggrep 5192 do 5193 for ac_exec_ext in '' $ac_executable_extensions; do 5194 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5195 as_fn_executable_p "$ac_path_GREP" || continue 5196# Check for GNU ac_path_GREP and select it if it is found. 5197 # Check for GNU $ac_path_GREP 5198case `"$ac_path_GREP" --version 2>&1` in #( 5199*GNU*) 5200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5201#( 5202*) 5203 ac_count=0 5204 printf %s 0123456789 >"conftest.in" 5205 while : 5206 do 5207 cat "conftest.in" "conftest.in" >"conftest.tmp" 5208 mv "conftest.tmp" "conftest.in" 5209 cp "conftest.in" "conftest.nl" 5210 printf "%s\n" 'GREP' >> "conftest.nl" 5211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5213 as_fn_arith $ac_count + 1 && ac_count=$as_val 5214 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5215 # Best one so far, save it but keep looking for a better one 5216 ac_cv_path_GREP="$ac_path_GREP" 5217 ac_path_GREP_max=$ac_count 5218 fi 5219 # 10*(2^10) chars as input seems more than enough 5220 test $ac_count -gt 10 && break 5221 done 5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5223esac 5224 5225 $ac_path_GREP_found && break 3 5226 done 5227 done 5228 done 5229IFS=$as_save_IFS 5230 if test -z "$ac_cv_path_GREP"; then 5231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5232 fi 5233else 5234 ac_cv_path_GREP=$GREP 5235fi 5236 ;; 5237esac 5238fi 5239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5240printf "%s\n" "$ac_cv_path_GREP" >&6; } 5241 GREP="$ac_cv_path_GREP" 5242 5243 5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5245printf %s "checking for egrep... " >&6; } 5246if test ${ac_cv_path_EGREP+y} 5247then : 5248 printf %s "(cached) " >&6 5249else case e in #( 5250 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5251 then ac_cv_path_EGREP="$GREP -E" 5252 else 5253 if test -z "$EGREP"; then 5254 ac_path_EGREP_found=false 5255 # Loop through the user's path and test for each of PROGNAME-LIST 5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5258do 5259 IFS=$as_save_IFS 5260 case $as_dir in #((( 5261 '') as_dir=./ ;; 5262 */) ;; 5263 *) as_dir=$as_dir/ ;; 5264 esac 5265 for ac_prog in egrep 5266 do 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5269 as_fn_executable_p "$ac_path_EGREP" || continue 5270# Check for GNU ac_path_EGREP and select it if it is found. 5271 # Check for GNU $ac_path_EGREP 5272case `"$ac_path_EGREP" --version 2>&1` in #( 5273*GNU*) 5274 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5275#( 5276*) 5277 ac_count=0 5278 printf %s 0123456789 >"conftest.in" 5279 while : 5280 do 5281 cat "conftest.in" "conftest.in" >"conftest.tmp" 5282 mv "conftest.tmp" "conftest.in" 5283 cp "conftest.in" "conftest.nl" 5284 printf "%s\n" 'EGREP' >> "conftest.nl" 5285 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5287 as_fn_arith $ac_count + 1 && ac_count=$as_val 5288 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5289 # Best one so far, save it but keep looking for a better one 5290 ac_cv_path_EGREP="$ac_path_EGREP" 5291 ac_path_EGREP_max=$ac_count 5292 fi 5293 # 10*(2^10) chars as input seems more than enough 5294 test $ac_count -gt 10 && break 5295 done 5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5297esac 5298 5299 $ac_path_EGREP_found && break 3 5300 done 5301 done 5302 done 5303IFS=$as_save_IFS 5304 if test -z "$ac_cv_path_EGREP"; then 5305 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5306 fi 5307else 5308 ac_cv_path_EGREP=$EGREP 5309fi 5310 5311 fi ;; 5312esac 5313fi 5314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5315printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5316 EGREP="$ac_cv_path_EGREP" 5317 5318 EGREP_TRADITIONAL=$EGREP 5319 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5320 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5322printf %s "checking for fgrep... " >&6; } 5323if test ${ac_cv_path_FGREP+y} 5324then : 5325 printf %s "(cached) " >&6 5326else case e in #( 5327 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5328 then ac_cv_path_FGREP="$GREP -F" 5329 else 5330 if test -z "$FGREP"; then 5331 ac_path_FGREP_found=false 5332 # Loop through the user's path and test for each of PROGNAME-LIST 5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5335do 5336 IFS=$as_save_IFS 5337 case $as_dir in #((( 5338 '') as_dir=./ ;; 5339 */) ;; 5340 *) as_dir=$as_dir/ ;; 5341 esac 5342 for ac_prog in fgrep 5343 do 5344 for ac_exec_ext in '' $ac_executable_extensions; do 5345 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5346 as_fn_executable_p "$ac_path_FGREP" || continue 5347# Check for GNU ac_path_FGREP and select it if it is found. 5348 # Check for GNU $ac_path_FGREP 5349case `"$ac_path_FGREP" --version 2>&1` in #( 5350*GNU*) 5351 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5352#( 5353*) 5354 ac_count=0 5355 printf %s 0123456789 >"conftest.in" 5356 while : 5357 do 5358 cat "conftest.in" "conftest.in" >"conftest.tmp" 5359 mv "conftest.tmp" "conftest.in" 5360 cp "conftest.in" "conftest.nl" 5361 printf "%s\n" 'FGREP' >> "conftest.nl" 5362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5364 as_fn_arith $ac_count + 1 && ac_count=$as_val 5365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5366 # Best one so far, save it but keep looking for a better one 5367 ac_cv_path_FGREP="$ac_path_FGREP" 5368 ac_path_FGREP_max=$ac_count 5369 fi 5370 # 10*(2^10) chars as input seems more than enough 5371 test $ac_count -gt 10 && break 5372 done 5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5374esac 5375 5376 $ac_path_FGREP_found && break 3 5377 done 5378 done 5379 done 5380IFS=$as_save_IFS 5381 if test -z "$ac_cv_path_FGREP"; then 5382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5383 fi 5384else 5385 ac_cv_path_FGREP=$FGREP 5386fi 5387 5388 fi ;; 5389esac 5390fi 5391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5392printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5393 FGREP="$ac_cv_path_FGREP" 5394 5395 5396test -z "$GREP" && GREP=grep 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416# Check whether --with-gnu-ld was given. 5417if test ${with_gnu_ld+y} 5418then : 5419 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5420else case e in #( 5421 e) with_gnu_ld=no ;; 5422esac 5423fi 5424 5425ac_prog=ld 5426if test yes = "$GCC"; then 5427 # Check if gcc -print-prog-name=ld gives a path. 5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5429printf %s "checking for ld used by $CC... " >&6; } 5430 case $host in 5431 *-*-mingw*) 5432 # gcc leaves a trailing carriage return, which upsets mingw 5433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5434 *) 5435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5436 esac 5437 case $ac_prog in 5438 # Accept absolute paths. 5439 [\\/]* | ?:[\\/]*) 5440 re_direlt='/[^/][^/]*/\.\./' 5441 # Canonicalize the pathname of ld 5442 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5443 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5444 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5445 done 5446 test -z "$LD" && LD=$ac_prog 5447 ;; 5448 "") 5449 # If it fails, then pretend we aren't using GCC. 5450 ac_prog=ld 5451 ;; 5452 *) 5453 # If it is relative, then search for the first ld in PATH. 5454 with_gnu_ld=unknown 5455 ;; 5456 esac 5457elif test yes = "$with_gnu_ld"; then 5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5459printf %s "checking for GNU ld... " >&6; } 5460else 5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5462printf %s "checking for non-GNU ld... " >&6; } 5463fi 5464if test ${lt_cv_path_LD+y} 5465then : 5466 printf %s "(cached) " >&6 5467else case e in #( 5468 e) if test -z "$LD"; then 5469 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5470 for ac_dir in $PATH; do 5471 IFS=$lt_save_ifs 5472 test -z "$ac_dir" && ac_dir=. 5473 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5474 lt_cv_path_LD=$ac_dir/$ac_prog 5475 # Check to see if the program is GNU ld. I'd rather use --version, 5476 # but apparently some variants of GNU ld only accept -v. 5477 # Break only if it was the GNU/non-GNU ld that we prefer. 5478 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5479 *GNU* | *'with BFD'*) 5480 test no != "$with_gnu_ld" && break 5481 ;; 5482 *) 5483 test yes != "$with_gnu_ld" && break 5484 ;; 5485 esac 5486 fi 5487 done 5488 IFS=$lt_save_ifs 5489else 5490 lt_cv_path_LD=$LD # Let the user override the test with a path. 5491fi ;; 5492esac 5493fi 5494 5495LD=$lt_cv_path_LD 5496if test -n "$LD"; then 5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5498printf "%s\n" "$LD" >&6; } 5499else 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5501printf "%s\n" "no" >&6; } 5502fi 5503test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5505printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5506if test ${lt_cv_prog_gnu_ld+y} 5507then : 5508 printf %s "(cached) " >&6 5509else case e in #( 5510 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5511case `$LD -v 2>&1 </dev/null` in 5512*GNU* | *'with BFD'*) 5513 lt_cv_prog_gnu_ld=yes 5514 ;; 5515*) 5516 lt_cv_prog_gnu_ld=no 5517 ;; 5518esac ;; 5519esac 5520fi 5521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5522printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5523with_gnu_ld=$lt_cv_prog_gnu_ld 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5534printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5535if test ${lt_cv_path_NM+y} 5536then : 5537 printf %s "(cached) " >&6 5538else case e in #( 5539 e) if test -n "$NM"; then 5540 # Let the user override the test. 5541 lt_cv_path_NM=$NM 5542else 5543 lt_nm_to_check=${ac_tool_prefix}nm 5544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5545 lt_nm_to_check="$lt_nm_to_check nm" 5546 fi 5547 for lt_tmp_nm in $lt_nm_to_check; do 5548 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5550 IFS=$lt_save_ifs 5551 test -z "$ac_dir" && ac_dir=. 5552 tmp_nm=$ac_dir/$lt_tmp_nm 5553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5554 # Check to see if the nm accepts a BSD-compat flag. 5555 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5556 # nm: unknown option "B" ignored 5557 # Tru64's nm complains that /dev/null is an invalid object file 5558 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5559 case $build_os in 5560 mingw*) lt_bad_file=conftest.nm/nofile ;; 5561 *) lt_bad_file=/dev/null ;; 5562 esac 5563 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5564 *$lt_bad_file* | *'Invalid file or object type'*) 5565 lt_cv_path_NM="$tmp_nm -B" 5566 break 2 5567 ;; 5568 *) 5569 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5570 */dev/null*) 5571 lt_cv_path_NM="$tmp_nm -p" 5572 break 2 5573 ;; 5574 *) 5575 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5576 continue # so that we can try to find one that supports BSD flags 5577 ;; 5578 esac 5579 ;; 5580 esac 5581 fi 5582 done 5583 IFS=$lt_save_ifs 5584 done 5585 : ${lt_cv_path_NM=no} 5586fi ;; 5587esac 5588fi 5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5590printf "%s\n" "$lt_cv_path_NM" >&6; } 5591if test no != "$lt_cv_path_NM"; then 5592 NM=$lt_cv_path_NM 5593else 5594 # Didn't find any BSD compatible name lister, look for dumpbin. 5595 if test -n "$DUMPBIN"; then : 5596 # Let the user override the test. 5597 else 5598 if test -n "$ac_tool_prefix"; then 5599 for ac_prog in dumpbin "link -dump" 5600 do 5601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5602set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5604printf %s "checking for $ac_word... " >&6; } 5605if test ${ac_cv_prog_DUMPBIN+y} 5606then : 5607 printf %s "(cached) " >&6 5608else case e in #( 5609 e) if test -n "$DUMPBIN"; then 5610 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5611else 5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5613for as_dir in $PATH 5614do 5615 IFS=$as_save_IFS 5616 case $as_dir in #((( 5617 '') as_dir=./ ;; 5618 */) ;; 5619 *) as_dir=$as_dir/ ;; 5620 esac 5621 for ac_exec_ext in '' $ac_executable_extensions; do 5622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5625 break 2 5626 fi 5627done 5628 done 5629IFS=$as_save_IFS 5630 5631fi ;; 5632esac 5633fi 5634DUMPBIN=$ac_cv_prog_DUMPBIN 5635if test -n "$DUMPBIN"; then 5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5637printf "%s\n" "$DUMPBIN" >&6; } 5638else 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5640printf "%s\n" "no" >&6; } 5641fi 5642 5643 5644 test -n "$DUMPBIN" && break 5645 done 5646fi 5647if test -z "$DUMPBIN"; then 5648 ac_ct_DUMPBIN=$DUMPBIN 5649 for ac_prog in dumpbin "link -dump" 5650do 5651 # Extract the first word of "$ac_prog", so it can be a program name with args. 5652set dummy $ac_prog; ac_word=$2 5653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5654printf %s "checking for $ac_word... " >&6; } 5655if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5656then : 5657 printf %s "(cached) " >&6 5658else case e in #( 5659 e) if test -n "$ac_ct_DUMPBIN"; then 5660 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5661else 5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5663for as_dir in $PATH 5664do 5665 IFS=$as_save_IFS 5666 case $as_dir in #((( 5667 '') as_dir=./ ;; 5668 */) ;; 5669 *) as_dir=$as_dir/ ;; 5670 esac 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677done 5678 done 5679IFS=$as_save_IFS 5680 5681fi ;; 5682esac 5683fi 5684ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5685if test -n "$ac_ct_DUMPBIN"; then 5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5687printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5688else 5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690printf "%s\n" "no" >&6; } 5691fi 5692 5693 5694 test -n "$ac_ct_DUMPBIN" && break 5695done 5696 5697 if test "x$ac_ct_DUMPBIN" = x; then 5698 DUMPBIN=":" 5699 else 5700 case $cross_compiling:$ac_tool_warned in 5701yes:) 5702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5704ac_tool_warned=yes ;; 5705esac 5706 DUMPBIN=$ac_ct_DUMPBIN 5707 fi 5708fi 5709 5710 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5711 *COFF*) 5712 DUMPBIN="$DUMPBIN -symbols -headers" 5713 ;; 5714 *) 5715 DUMPBIN=: 5716 ;; 5717 esac 5718 fi 5719 5720 if test : != "$DUMPBIN"; then 5721 NM=$DUMPBIN 5722 fi 5723fi 5724test -z "$NM" && NM=nm 5725 5726 5727 5728 5729 5730 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5732printf %s "checking the name lister ($NM) interface... " >&6; } 5733if test ${lt_cv_nm_interface+y} 5734then : 5735 printf %s "(cached) " >&6 5736else case e in #( 5737 e) lt_cv_nm_interface="BSD nm" 5738 echo "int some_variable = 0;" > conftest.$ac_ext 5739 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5740 (eval "$ac_compile" 2>conftest.err) 5741 cat conftest.err >&5 5742 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5743 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5744 cat conftest.err >&5 5745 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5746 cat conftest.out >&5 5747 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5748 lt_cv_nm_interface="MS dumpbin" 5749 fi 5750 rm -f conftest* ;; 5751esac 5752fi 5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5754printf "%s\n" "$lt_cv_nm_interface" >&6; } 5755 5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5757printf %s "checking whether ln -s works... " >&6; } 5758LN_S=$as_ln_s 5759if test "$LN_S" = "ln -s"; then 5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5761printf "%s\n" "yes" >&6; } 5762else 5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5764printf "%s\n" "no, using $LN_S" >&6; } 5765fi 5766 5767# find the maximum length of command line arguments 5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5769printf %s "checking the maximum length of command line arguments... " >&6; } 5770if test ${lt_cv_sys_max_cmd_len+y} 5771then : 5772 printf %s "(cached) " >&6 5773else case e in #( 5774 e) i=0 5775 teststring=ABCD 5776 5777 case $build_os in 5778 msdosdjgpp*) 5779 # On DJGPP, this test can blow up pretty badly due to problems in libc 5780 # (any single argument exceeding 2000 bytes causes a buffer overrun 5781 # during glob expansion). Even if it were fixed, the result of this 5782 # check would be larger than it should be. 5783 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5784 ;; 5785 5786 gnu*) 5787 # Under GNU Hurd, this test is not required because there is 5788 # no limit to the length of command line arguments. 5789 # Libtool will interpret -1 as no limit whatsoever 5790 lt_cv_sys_max_cmd_len=-1; 5791 ;; 5792 5793 cygwin* | mingw* | cegcc*) 5794 # On Win9x/ME, this test blows up -- it succeeds, but takes 5795 # about 5 minutes as the teststring grows exponentially. 5796 # Worse, since 9x/ME are not pre-emptively multitasking, 5797 # you end up with a "frozen" computer, even though with patience 5798 # the test eventually succeeds (with a max line length of 256k). 5799 # Instead, let's just punt: use the minimum linelength reported by 5800 # all of the supported platforms: 8192 (on NT/2K/XP). 5801 lt_cv_sys_max_cmd_len=8192; 5802 ;; 5803 5804 mint*) 5805 # On MiNT this can take a long time and run out of memory. 5806 lt_cv_sys_max_cmd_len=8192; 5807 ;; 5808 5809 amigaos*) 5810 # On AmigaOS with pdksh, this test takes hours, literally. 5811 # So we just punt and use a minimum line length of 8192. 5812 lt_cv_sys_max_cmd_len=8192; 5813 ;; 5814 5815 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5816 # This has been around since 386BSD, at least. Likely further. 5817 if test -x /sbin/sysctl; then 5818 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5819 elif test -x /usr/sbin/sysctl; then 5820 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5821 else 5822 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5823 fi 5824 # And add a safety zone 5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5827 ;; 5828 5829 interix*) 5830 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5831 lt_cv_sys_max_cmd_len=196608 5832 ;; 5833 5834 os2*) 5835 # The test takes a long time on OS/2. 5836 lt_cv_sys_max_cmd_len=8192 5837 ;; 5838 5839 osf*) 5840 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5841 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5842 # nice to cause kernel panics so lets avoid the loop below. 5843 # First set a reasonable default. 5844 lt_cv_sys_max_cmd_len=16384 5845 # 5846 if test -x /sbin/sysconfig; then 5847 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5848 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5849 esac 5850 fi 5851 ;; 5852 sco3.2v5*) 5853 lt_cv_sys_max_cmd_len=102400 5854 ;; 5855 sysv5* | sco5v6* | sysv4.2uw2*) 5856 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5857 if test -n "$kargmax"; then 5858 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5859 else 5860 lt_cv_sys_max_cmd_len=32768 5861 fi 5862 ;; 5863 *) 5864 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5865 if test -n "$lt_cv_sys_max_cmd_len" && \ 5866 test undefined != "$lt_cv_sys_max_cmd_len"; then 5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5869 else 5870 # Make teststring a little bigger before we do anything with it. 5871 # a 1K string should be a reasonable start. 5872 for i in 1 2 3 4 5 6 7 8; do 5873 teststring=$teststring$teststring 5874 done 5875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5876 # If test is not a shell built-in, we'll probably end up computing a 5877 # maximum length that is only half of the actual maximum length, but 5878 # we can't tell. 5879 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5880 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5881 test 17 != "$i" # 1/2 MB should be enough 5882 do 5883 i=`expr $i + 1` 5884 teststring=$teststring$teststring 5885 done 5886 # Only check the string length outside the loop. 5887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5888 teststring= 5889 # Add a significant safety factor because C++ compilers can tack on 5890 # massive amounts of additional arguments before passing them to the 5891 # linker. It appears as though 1/2 is a usable value. 5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5893 fi 5894 ;; 5895 esac 5896 ;; 5897esac 5898fi 5899 5900if test -n "$lt_cv_sys_max_cmd_len"; then 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5902printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5903else 5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5905printf "%s\n" "none" >&6; } 5906fi 5907max_cmd_len=$lt_cv_sys_max_cmd_len 5908 5909 5910 5911 5912 5913 5914: ${CP="cp -f"} 5915: ${MV="mv -f"} 5916: ${RM="rm -f"} 5917 5918if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5919 lt_unset=unset 5920else 5921 lt_unset=false 5922fi 5923 5924 5925 5926 5927 5928# test EBCDIC or ASCII 5929case `echo X|tr X '\101'` in 5930 A) # ASCII based system 5931 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5932 lt_SP2NL='tr \040 \012' 5933 lt_NL2SP='tr \015\012 \040\040' 5934 ;; 5935 *) # EBCDIC based system 5936 lt_SP2NL='tr \100 \n' 5937 lt_NL2SP='tr \r\n \100\100' 5938 ;; 5939esac 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5950printf %s "checking how to convert $build file names to $host format... " >&6; } 5951if test ${lt_cv_to_host_file_cmd+y} 5952then : 5953 printf %s "(cached) " >&6 5954else case e in #( 5955 e) case $host in 5956 *-*-mingw* ) 5957 case $build in 5958 *-*-mingw* ) # actually msys 5959 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5960 ;; 5961 *-*-cygwin* ) 5962 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5963 ;; 5964 * ) # otherwise, assume *nix 5965 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5966 ;; 5967 esac 5968 ;; 5969 *-*-cygwin* ) 5970 case $build in 5971 *-*-mingw* ) # actually msys 5972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5973 ;; 5974 *-*-cygwin* ) 5975 lt_cv_to_host_file_cmd=func_convert_file_noop 5976 ;; 5977 * ) # otherwise, assume *nix 5978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5979 ;; 5980 esac 5981 ;; 5982 * ) # unhandled hosts (and "normal" native builds) 5983 lt_cv_to_host_file_cmd=func_convert_file_noop 5984 ;; 5985esac 5986 ;; 5987esac 5988fi 5989 5990to_host_file_cmd=$lt_cv_to_host_file_cmd 5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5992printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5993 5994 5995 5996 5997 5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5999printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6000if test ${lt_cv_to_tool_file_cmd+y} 6001then : 6002 printf %s "(cached) " >&6 6003else case e in #( 6004 e) #assume ordinary cross tools, or native build. 6005lt_cv_to_tool_file_cmd=func_convert_file_noop 6006case $host in 6007 *-*-mingw* ) 6008 case $build in 6009 *-*-mingw* ) # actually msys 6010 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6011 ;; 6012 esac 6013 ;; 6014esac 6015 ;; 6016esac 6017fi 6018 6019to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6021printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6022 6023 6024 6025 6026 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6028printf %s "checking for $LD option to reload object files... " >&6; } 6029if test ${lt_cv_ld_reload_flag+y} 6030then : 6031 printf %s "(cached) " >&6 6032else case e in #( 6033 e) lt_cv_ld_reload_flag='-r' ;; 6034esac 6035fi 6036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6037printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6038reload_flag=$lt_cv_ld_reload_flag 6039case $reload_flag in 6040"" | " "*) ;; 6041*) reload_flag=" $reload_flag" ;; 6042esac 6043reload_cmds='$LD$reload_flag -o $output$reload_objs' 6044case $host_os in 6045 cygwin* | mingw* | pw32* | cegcc*) 6046 if test yes != "$GCC"; then 6047 reload_cmds=false 6048 fi 6049 ;; 6050 darwin*) 6051 if test yes = "$GCC"; then 6052 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6053 else 6054 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6055 fi 6056 ;; 6057esac 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067if test -n "$ac_tool_prefix"; then 6068 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6069set dummy ${ac_tool_prefix}file; ac_word=$2 6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6071printf %s "checking for $ac_word... " >&6; } 6072if test ${ac_cv_prog_FILECMD+y} 6073then : 6074 printf %s "(cached) " >&6 6075else case e in #( 6076 e) if test -n "$FILECMD"; then 6077 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6078else 6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6080for as_dir in $PATH 6081do 6082 IFS=$as_save_IFS 6083 case $as_dir in #((( 6084 '') as_dir=./ ;; 6085 */) ;; 6086 *) as_dir=$as_dir/ ;; 6087 esac 6088 for ac_exec_ext in '' $ac_executable_extensions; do 6089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6090 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6092 break 2 6093 fi 6094done 6095 done 6096IFS=$as_save_IFS 6097 6098fi ;; 6099esac 6100fi 6101FILECMD=$ac_cv_prog_FILECMD 6102if test -n "$FILECMD"; then 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6104printf "%s\n" "$FILECMD" >&6; } 6105else 6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107printf "%s\n" "no" >&6; } 6108fi 6109 6110 6111fi 6112if test -z "$ac_cv_prog_FILECMD"; then 6113 ac_ct_FILECMD=$FILECMD 6114 # Extract the first word of "file", so it can be a program name with args. 6115set dummy file; ac_word=$2 6116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6117printf %s "checking for $ac_word... " >&6; } 6118if test ${ac_cv_prog_ac_ct_FILECMD+y} 6119then : 6120 printf %s "(cached) " >&6 6121else case e in #( 6122 e) if test -n "$ac_ct_FILECMD"; then 6123 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6124else 6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6126for as_dir in $PATH 6127do 6128 IFS=$as_save_IFS 6129 case $as_dir in #((( 6130 '') as_dir=./ ;; 6131 */) ;; 6132 *) as_dir=$as_dir/ ;; 6133 esac 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6136 ac_cv_prog_ac_ct_FILECMD="file" 6137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140done 6141 done 6142IFS=$as_save_IFS 6143 6144fi ;; 6145esac 6146fi 6147ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6148if test -n "$ac_ct_FILECMD"; then 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6150printf "%s\n" "$ac_ct_FILECMD" >&6; } 6151else 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153printf "%s\n" "no" >&6; } 6154fi 6155 6156 if test "x$ac_ct_FILECMD" = x; then 6157 FILECMD=":" 6158 else 6159 case $cross_compiling:$ac_tool_warned in 6160yes:) 6161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6162printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6163ac_tool_warned=yes ;; 6164esac 6165 FILECMD=$ac_ct_FILECMD 6166 fi 6167else 6168 FILECMD="$ac_cv_prog_FILECMD" 6169fi 6170 6171 6172 6173 6174 6175 6176 6177if test -n "$ac_tool_prefix"; then 6178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6179set dummy ${ac_tool_prefix}objdump; ac_word=$2 6180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6181printf %s "checking for $ac_word... " >&6; } 6182if test ${ac_cv_prog_OBJDUMP+y} 6183then : 6184 printf %s "(cached) " >&6 6185else case e in #( 6186 e) if test -n "$OBJDUMP"; then 6187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6188else 6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6190for as_dir in $PATH 6191do 6192 IFS=$as_save_IFS 6193 case $as_dir in #((( 6194 '') as_dir=./ ;; 6195 */) ;; 6196 *) as_dir=$as_dir/ ;; 6197 esac 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6200 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205 done 6206IFS=$as_save_IFS 6207 6208fi ;; 6209esac 6210fi 6211OBJDUMP=$ac_cv_prog_OBJDUMP 6212if test -n "$OBJDUMP"; then 6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6214printf "%s\n" "$OBJDUMP" >&6; } 6215else 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6217printf "%s\n" "no" >&6; } 6218fi 6219 6220 6221fi 6222if test -z "$ac_cv_prog_OBJDUMP"; then 6223 ac_ct_OBJDUMP=$OBJDUMP 6224 # Extract the first word of "objdump", so it can be a program name with args. 6225set dummy objdump; ac_word=$2 6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227printf %s "checking for $ac_word... " >&6; } 6228if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6229then : 6230 printf %s "(cached) " >&6 6231else case e in #( 6232 e) if test -n "$ac_ct_OBJDUMP"; then 6233 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 case $as_dir in #((( 6240 '') as_dir=./ ;; 6241 */) ;; 6242 *) as_dir=$as_dir/ ;; 6243 esac 6244 for ac_exec_ext in '' $ac_executable_extensions; do 6245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6246 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6248 break 2 6249 fi 6250done 6251 done 6252IFS=$as_save_IFS 6253 6254fi ;; 6255esac 6256fi 6257ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6258if test -n "$ac_ct_OBJDUMP"; then 6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6260printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6261else 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263printf "%s\n" "no" >&6; } 6264fi 6265 6266 if test "x$ac_ct_OBJDUMP" = x; then 6267 OBJDUMP="false" 6268 else 6269 case $cross_compiling:$ac_tool_warned in 6270yes:) 6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6272printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6273ac_tool_warned=yes ;; 6274esac 6275 OBJDUMP=$ac_ct_OBJDUMP 6276 fi 6277else 6278 OBJDUMP="$ac_cv_prog_OBJDUMP" 6279fi 6280 6281test -z "$OBJDUMP" && OBJDUMP=objdump 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6292printf %s "checking how to recognize dependent libraries... " >&6; } 6293if test ${lt_cv_deplibs_check_method+y} 6294then : 6295 printf %s "(cached) " >&6 6296else case e in #( 6297 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6298lt_cv_file_magic_test_file= 6299lt_cv_deplibs_check_method='unknown' 6300# Need to set the preceding variable on all platforms that support 6301# interlibrary dependencies. 6302# 'none' -- dependencies not supported. 6303# 'unknown' -- same as none, but documents that we really don't know. 6304# 'pass_all' -- all dependencies passed with no checks. 6305# 'test_compile' -- check by making test program. 6306# 'file_magic [[regex]]' -- check by looking for files in library path 6307# that responds to the $file_magic_cmd with a given extended regex. 6308# If you have 'file' or equivalent on your system and you're not sure 6309# whether 'pass_all' will *always* work, you probably want this one. 6310 6311case $host_os in 6312aix[4-9]*) 6313 lt_cv_deplibs_check_method=pass_all 6314 ;; 6315 6316beos*) 6317 lt_cv_deplibs_check_method=pass_all 6318 ;; 6319 6320bsdi[45]*) 6321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6322 lt_cv_file_magic_cmd='$FILECMD -L' 6323 lt_cv_file_magic_test_file=/shlib/libc.so 6324 ;; 6325 6326cygwin*) 6327 # func_win32_libid is a shell function defined in ltmain.sh 6328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6329 lt_cv_file_magic_cmd='func_win32_libid' 6330 ;; 6331 6332mingw* | pw32*) 6333 # Base MSYS/MinGW do not provide the 'file' command needed by 6334 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6335 # unless we find 'file', for example because we are cross-compiling. 6336 if ( file / ) >/dev/null 2>&1; then 6337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6338 lt_cv_file_magic_cmd='func_win32_libid' 6339 else 6340 # Keep this pattern in sync with the one in func_win32_libid. 6341 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6342 lt_cv_file_magic_cmd='$OBJDUMP -f' 6343 fi 6344 ;; 6345 6346cegcc*) 6347 # use the weaker test based on 'objdump'. See mingw*. 6348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6349 lt_cv_file_magic_cmd='$OBJDUMP -f' 6350 ;; 6351 6352darwin* | rhapsody*) 6353 lt_cv_deplibs_check_method=pass_all 6354 ;; 6355 6356freebsd* | dragonfly* | midnightbsd*) 6357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6358 case $host_cpu in 6359 i*86 ) 6360 # Not sure whether the presence of OpenBSD here was a mistake. 6361 # Let's accept both of them until this is cleared up. 6362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6363 lt_cv_file_magic_cmd=$FILECMD 6364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6365 ;; 6366 esac 6367 else 6368 lt_cv_deplibs_check_method=pass_all 6369 fi 6370 ;; 6371 6372haiku*) 6373 lt_cv_deplibs_check_method=pass_all 6374 ;; 6375 6376hpux10.20* | hpux11*) 6377 lt_cv_file_magic_cmd=$FILECMD 6378 case $host_cpu in 6379 ia64*) 6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6382 ;; 6383 hppa*64*) 6384 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]' 6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6386 ;; 6387 *) 6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6390 ;; 6391 esac 6392 ;; 6393 6394interix[3-9]*) 6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6397 ;; 6398 6399irix5* | irix6* | nonstopux*) 6400 case $LD in 6401 *-32|*"-32 ") libmagic=32-bit;; 6402 *-n32|*"-n32 ") libmagic=N32;; 6403 *-64|*"-64 ") libmagic=64-bit;; 6404 *) libmagic=never-match;; 6405 esac 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 6409# This must be glibc/ELF. 6410linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6411 lt_cv_deplibs_check_method=pass_all 6412 ;; 6413 6414netbsd*) 6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6417 else 6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6419 fi 6420 ;; 6421 6422newos6*) 6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6424 lt_cv_file_magic_cmd=$FILECMD 6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6426 ;; 6427 6428*nto* | *qnx*) 6429 lt_cv_deplibs_check_method=pass_all 6430 ;; 6431 6432openbsd* | bitrig*) 6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6435 else 6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6437 fi 6438 ;; 6439 6440osf3* | osf4* | osf5*) 6441 lt_cv_deplibs_check_method=pass_all 6442 ;; 6443 6444rdos*) 6445 lt_cv_deplibs_check_method=pass_all 6446 ;; 6447 6448solaris*) 6449 lt_cv_deplibs_check_method=pass_all 6450 ;; 6451 6452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6453 lt_cv_deplibs_check_method=pass_all 6454 ;; 6455 6456sysv4 | sysv4.3*) 6457 case $host_vendor in 6458 motorola) 6459 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]' 6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6461 ;; 6462 ncr) 6463 lt_cv_deplibs_check_method=pass_all 6464 ;; 6465 sequent) 6466 lt_cv_file_magic_cmd='/bin/file' 6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6468 ;; 6469 sni) 6470 lt_cv_file_magic_cmd='/bin/file' 6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6472 lt_cv_file_magic_test_file=/lib/libc.so 6473 ;; 6474 siemens) 6475 lt_cv_deplibs_check_method=pass_all 6476 ;; 6477 pc) 6478 lt_cv_deplibs_check_method=pass_all 6479 ;; 6480 esac 6481 ;; 6482 6483tpf*) 6484 lt_cv_deplibs_check_method=pass_all 6485 ;; 6486os2*) 6487 lt_cv_deplibs_check_method=pass_all 6488 ;; 6489esac 6490 ;; 6491esac 6492fi 6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6494printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6495 6496file_magic_glob= 6497want_nocaseglob=no 6498if test "$build" = "$host"; then 6499 case $host_os in 6500 mingw* | pw32*) 6501 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6502 want_nocaseglob=yes 6503 else 6504 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6505 fi 6506 ;; 6507 esac 6508fi 6509 6510file_magic_cmd=$lt_cv_file_magic_cmd 6511deplibs_check_method=$lt_cv_deplibs_check_method 6512test -z "$deplibs_check_method" && deplibs_check_method=unknown 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535if test -n "$ac_tool_prefix"; then 6536 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6537set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6539printf %s "checking for $ac_word... " >&6; } 6540if test ${ac_cv_prog_DLLTOOL+y} 6541then : 6542 printf %s "(cached) " >&6 6543else case e in #( 6544 e) if test -n "$DLLTOOL"; then 6545 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6546else 6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548for as_dir in $PATH 6549do 6550 IFS=$as_save_IFS 6551 case $as_dir in #((( 6552 '') as_dir=./ ;; 6553 */) ;; 6554 *) as_dir=$as_dir/ ;; 6555 esac 6556 for ac_exec_ext in '' $ac_executable_extensions; do 6557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6560 break 2 6561 fi 6562done 6563 done 6564IFS=$as_save_IFS 6565 6566fi ;; 6567esac 6568fi 6569DLLTOOL=$ac_cv_prog_DLLTOOL 6570if test -n "$DLLTOOL"; then 6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6572printf "%s\n" "$DLLTOOL" >&6; } 6573else 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6575printf "%s\n" "no" >&6; } 6576fi 6577 6578 6579fi 6580if test -z "$ac_cv_prog_DLLTOOL"; then 6581 ac_ct_DLLTOOL=$DLLTOOL 6582 # Extract the first word of "dlltool", so it can be a program name with args. 6583set dummy dlltool; ac_word=$2 6584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6585printf %s "checking for $ac_word... " >&6; } 6586if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6587then : 6588 printf %s "(cached) " >&6 6589else case e in #( 6590 e) if test -n "$ac_ct_DLLTOOL"; then 6591 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6592else 6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6594for as_dir in $PATH 6595do 6596 IFS=$as_save_IFS 6597 case $as_dir in #((( 6598 '') as_dir=./ ;; 6599 */) ;; 6600 *) as_dir=$as_dir/ ;; 6601 esac 6602 for ac_exec_ext in '' $ac_executable_extensions; do 6603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6604 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6606 break 2 6607 fi 6608done 6609 done 6610IFS=$as_save_IFS 6611 6612fi ;; 6613esac 6614fi 6615ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6616if test -n "$ac_ct_DLLTOOL"; then 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6618printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6619else 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621printf "%s\n" "no" >&6; } 6622fi 6623 6624 if test "x$ac_ct_DLLTOOL" = x; then 6625 DLLTOOL="false" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628yes:) 6629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631ac_tool_warned=yes ;; 6632esac 6633 DLLTOOL=$ac_ct_DLLTOOL 6634 fi 6635else 6636 DLLTOOL="$ac_cv_prog_DLLTOOL" 6637fi 6638 6639test -z "$DLLTOOL" && DLLTOOL=dlltool 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6651printf %s "checking how to associate runtime and link libraries... " >&6; } 6652if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6653then : 6654 printf %s "(cached) " >&6 6655else case e in #( 6656 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6657 6658case $host_os in 6659cygwin* | mingw* | pw32* | cegcc*) 6660 # two different shell functions defined in ltmain.sh; 6661 # decide which one to use based on capabilities of $DLLTOOL 6662 case `$DLLTOOL --help 2>&1` in 6663 *--identify-strict*) 6664 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6665 ;; 6666 *) 6667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6668 ;; 6669 esac 6670 ;; 6671*) 6672 # fallback: assume linklib IS sharedlib 6673 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6674 ;; 6675esac 6676 ;; 6677esac 6678fi 6679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6680printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6681sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6682test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6683 6684 6685 6686 6687 6688 6689 6690if test -n "$ac_tool_prefix"; then 6691 for ac_prog in ar 6692 do 6693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6694set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696printf %s "checking for $ac_word... " >&6; } 6697if test ${ac_cv_prog_AR+y} 6698then : 6699 printf %s "(cached) " >&6 6700else case e in #( 6701 e) if test -n "$AR"; then 6702 ac_cv_prog_AR="$AR" # Let the user override the test. 6703else 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 case $as_dir in #((( 6709 '') as_dir=./ ;; 6710 */) ;; 6711 *) as_dir=$as_dir/ ;; 6712 esac 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6715 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720 done 6721IFS=$as_save_IFS 6722 6723fi ;; 6724esac 6725fi 6726AR=$ac_cv_prog_AR 6727if test -n "$AR"; then 6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6729printf "%s\n" "$AR" >&6; } 6730else 6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732printf "%s\n" "no" >&6; } 6733fi 6734 6735 6736 test -n "$AR" && break 6737 done 6738fi 6739if test -z "$AR"; then 6740 ac_ct_AR=$AR 6741 for ac_prog in ar 6742do 6743 # Extract the first word of "$ac_prog", so it can be a program name with args. 6744set dummy $ac_prog; ac_word=$2 6745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6746printf %s "checking for $ac_word... " >&6; } 6747if test ${ac_cv_prog_ac_ct_AR+y} 6748then : 6749 printf %s "(cached) " >&6 6750else case e in #( 6751 e) if test -n "$ac_ct_AR"; then 6752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6753else 6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 case $as_dir in #((( 6759 '') as_dir=./ ;; 6760 */) ;; 6761 *) as_dir=$as_dir/ ;; 6762 esac 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_ac_ct_AR="$ac_prog" 6766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi ;; 6774esac 6775fi 6776ac_ct_AR=$ac_cv_prog_ac_ct_AR 6777if test -n "$ac_ct_AR"; then 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6779printf "%s\n" "$ac_ct_AR" >&6; } 6780else 6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6782printf "%s\n" "no" >&6; } 6783fi 6784 6785 6786 test -n "$ac_ct_AR" && break 6787done 6788 6789 if test "x$ac_ct_AR" = x; then 6790 AR="false" 6791 else 6792 case $cross_compiling:$ac_tool_warned in 6793yes:) 6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6795printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6796ac_tool_warned=yes ;; 6797esac 6798 AR=$ac_ct_AR 6799 fi 6800fi 6801 6802: ${AR=ar} 6803 6804 6805 6806 6807 6808 6809# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6810# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6811# higher priority because thats what people were doing historically (setting 6812# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6813# variable obsoleted/removed. 6814 6815test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6816lt_ar_flags=$AR_FLAGS 6817 6818 6819 6820 6821 6822 6823# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6824# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6825 6826 6827 6828 6829 6830 6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6832printf %s "checking for archiver @FILE support... " >&6; } 6833if test ${lt_cv_ar_at_file+y} 6834then : 6835 printf %s "(cached) " >&6 6836else case e in #( 6837 e) lt_cv_ar_at_file=no 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840 6841int 6842main (void) 6843{ 6844 6845 ; 6846 return 0; 6847} 6848_ACEOF 6849if ac_fn_c_try_compile "$LINENO" 6850then : 6851 echo conftest.$ac_objext > conftest.lst 6852 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6854 (eval $lt_ar_try) 2>&5 6855 ac_status=$? 6856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6857 test $ac_status = 0; } 6858 if test 0 -eq "$ac_status"; then 6859 # Ensure the archiver fails upon bogus file names. 6860 rm -f conftest.$ac_objext libconftest.a 6861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6862 (eval $lt_ar_try) 2>&5 6863 ac_status=$? 6864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6865 test $ac_status = 0; } 6866 if test 0 -ne "$ac_status"; then 6867 lt_cv_ar_at_file=@ 6868 fi 6869 fi 6870 rm -f conftest.* libconftest.a 6871 6872fi 6873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6874 ;; 6875esac 6876fi 6877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6878printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6879 6880if test no = "$lt_cv_ar_at_file"; then 6881 archiver_list_spec= 6882else 6883 archiver_list_spec=$lt_cv_ar_at_file 6884fi 6885 6886 6887 6888 6889 6890 6891 6892if test -n "$ac_tool_prefix"; then 6893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6894set dummy ${ac_tool_prefix}strip; ac_word=$2 6895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896printf %s "checking for $ac_word... " >&6; } 6897if test ${ac_cv_prog_STRIP+y} 6898then : 6899 printf %s "(cached) " >&6 6900else case e in #( 6901 e) if test -n "$STRIP"; then 6902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 case $as_dir in #((( 6909 '') as_dir=./ ;; 6910 */) ;; 6911 *) as_dir=$as_dir/ ;; 6912 esac 6913 for ac_exec_ext in '' $ac_executable_extensions; do 6914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6915 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6917 break 2 6918 fi 6919done 6920 done 6921IFS=$as_save_IFS 6922 6923fi ;; 6924esac 6925fi 6926STRIP=$ac_cv_prog_STRIP 6927if test -n "$STRIP"; then 6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6929printf "%s\n" "$STRIP" >&6; } 6930else 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6932printf "%s\n" "no" >&6; } 6933fi 6934 6935 6936fi 6937if test -z "$ac_cv_prog_STRIP"; then 6938 ac_ct_STRIP=$STRIP 6939 # Extract the first word of "strip", so it can be a program name with args. 6940set dummy strip; ac_word=$2 6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6942printf %s "checking for $ac_word... " >&6; } 6943if test ${ac_cv_prog_ac_ct_STRIP+y} 6944then : 6945 printf %s "(cached) " >&6 6946else case e in #( 6947 e) if test -n "$ac_ct_STRIP"; then 6948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 case $as_dir in #((( 6955 '') as_dir=./ ;; 6956 */) ;; 6957 *) as_dir=$as_dir/ ;; 6958 esac 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6961 ac_cv_prog_ac_ct_STRIP="strip" 6962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965done 6966 done 6967IFS=$as_save_IFS 6968 6969fi ;; 6970esac 6971fi 6972ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6973if test -n "$ac_ct_STRIP"; then 6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6975printf "%s\n" "$ac_ct_STRIP" >&6; } 6976else 6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978printf "%s\n" "no" >&6; } 6979fi 6980 6981 if test "x$ac_ct_STRIP" = x; then 6982 STRIP=":" 6983 else 6984 case $cross_compiling:$ac_tool_warned in 6985yes:) 6986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6987printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6988ac_tool_warned=yes ;; 6989esac 6990 STRIP=$ac_ct_STRIP 6991 fi 6992else 6993 STRIP="$ac_cv_prog_STRIP" 6994fi 6995 6996test -z "$STRIP" && STRIP=: 6997 6998 6999 7000 7001 7002 7003if test -n "$ac_tool_prefix"; then 7004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7005set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7007printf %s "checking for $ac_word... " >&6; } 7008if test ${ac_cv_prog_RANLIB+y} 7009then : 7010 printf %s "(cached) " >&6 7011else case e in #( 7012 e) if test -n "$RANLIB"; then 7013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7014else 7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016for as_dir in $PATH 7017do 7018 IFS=$as_save_IFS 7019 case $as_dir in #((( 7020 '') as_dir=./ ;; 7021 */) ;; 7022 *) as_dir=$as_dir/ ;; 7023 esac 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034fi ;; 7035esac 7036fi 7037RANLIB=$ac_cv_prog_RANLIB 7038if test -n "$RANLIB"; then 7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7040printf "%s\n" "$RANLIB" >&6; } 7041else 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7043printf "%s\n" "no" >&6; } 7044fi 7045 7046 7047fi 7048if test -z "$ac_cv_prog_RANLIB"; then 7049 ac_ct_RANLIB=$RANLIB 7050 # Extract the first word of "ranlib", so it can be a program name with args. 7051set dummy ranlib; ac_word=$2 7052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7053printf %s "checking for $ac_word... " >&6; } 7054if test ${ac_cv_prog_ac_ct_RANLIB+y} 7055then : 7056 printf %s "(cached) " >&6 7057else case e in #( 7058 e) if test -n "$ac_ct_RANLIB"; then 7059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7060else 7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7062for as_dir in $PATH 7063do 7064 IFS=$as_save_IFS 7065 case $as_dir in #((( 7066 '') as_dir=./ ;; 7067 */) ;; 7068 *) as_dir=$as_dir/ ;; 7069 esac 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7072 ac_cv_prog_ac_ct_RANLIB="ranlib" 7073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi ;; 7081esac 7082fi 7083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7084if test -n "$ac_ct_RANLIB"; then 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7086printf "%s\n" "$ac_ct_RANLIB" >&6; } 7087else 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7089printf "%s\n" "no" >&6; } 7090fi 7091 7092 if test "x$ac_ct_RANLIB" = x; then 7093 RANLIB=":" 7094 else 7095 case $cross_compiling:$ac_tool_warned in 7096yes:) 7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7098printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7099ac_tool_warned=yes ;; 7100esac 7101 RANLIB=$ac_ct_RANLIB 7102 fi 7103else 7104 RANLIB="$ac_cv_prog_RANLIB" 7105fi 7106 7107test -z "$RANLIB" && RANLIB=: 7108 7109 7110 7111 7112 7113 7114# Determine commands to create old-style static archives. 7115old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7116old_postinstall_cmds='chmod 644 $oldlib' 7117old_postuninstall_cmds= 7118 7119if test -n "$RANLIB"; then 7120 case $host_os in 7121 bitrig* | openbsd*) 7122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7123 ;; 7124 *) 7125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7126 ;; 7127 esac 7128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7129fi 7130 7131case $host_os in 7132 darwin*) 7133 lock_old_archive_extraction=yes ;; 7134 *) 7135 lock_old_archive_extraction=no ;; 7136esac 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176# If no C compiler was specified, use CC. 7177LTCC=${LTCC-"$CC"} 7178 7179# If no C compiler flags were specified, use CFLAGS. 7180LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7181 7182# Allow CC to be a program name with arguments. 7183compiler=$CC 7184 7185 7186# Check for command to grab the raw symbol name followed by C symbol from nm. 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7188printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7189if test ${lt_cv_sys_global_symbol_pipe+y} 7190then : 7191 printf %s "(cached) " >&6 7192else case e in #( 7193 e) 7194# These are sane defaults that work on at least a few old systems. 7195# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7196 7197# Character class describing NM global symbol codes. 7198symcode='[BCDEGRST]' 7199 7200# Regexp to match symbols that can be accessed directly from C. 7201sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7202 7203# Define system-specific variables. 7204case $host_os in 7205aix*) 7206 symcode='[BCDT]' 7207 ;; 7208cygwin* | mingw* | pw32* | cegcc*) 7209 symcode='[ABCDGISTW]' 7210 ;; 7211hpux*) 7212 if test ia64 = "$host_cpu"; then 7213 symcode='[ABCDEGRST]' 7214 fi 7215 ;; 7216irix* | nonstopux*) 7217 symcode='[BCDEGRST]' 7218 ;; 7219osf*) 7220 symcode='[BCDEGQRST]' 7221 ;; 7222solaris*) 7223 symcode='[BDRT]' 7224 ;; 7225sco3.2v5*) 7226 symcode='[DT]' 7227 ;; 7228sysv4.2uw2*) 7229 symcode='[DT]' 7230 ;; 7231sysv5* | sco5v6* | unixware* | OpenUNIX*) 7232 symcode='[ABDT]' 7233 ;; 7234sysv4) 7235 symcode='[DFNSTU]' 7236 ;; 7237esac 7238 7239# If we're using GNU nm, then use its standard symbol codes. 7240case `$NM -V 2>&1` in 7241*GNU* | *'with BFD'*) 7242 symcode='[ABCDGIRSTW]' ;; 7243esac 7244 7245if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7246 # Gets list of data symbols to import. 7247 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7248 # Adjust the below global symbol transforms to fixup imported variables. 7249 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7250 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7251 lt_c_name_lib_hook="\ 7252 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7253 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7254else 7255 # Disable hooks by default. 7256 lt_cv_sys_global_symbol_to_import= 7257 lt_cdecl_hook= 7258 lt_c_name_hook= 7259 lt_c_name_lib_hook= 7260fi 7261 7262# Transform an extracted symbol line into a proper C declaration. 7263# Some systems (esp. on ia64) link data and code symbols differently, 7264# so use this general approach. 7265lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7266$lt_cdecl_hook\ 7267" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7268" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7269 7270# Transform an extracted symbol line into symbol name and symbol address 7271lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7272$lt_c_name_hook\ 7273" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7274" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7275 7276# Transform an extracted symbol line into symbol name with lib prefix and 7277# symbol address. 7278lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7279$lt_c_name_lib_hook\ 7280" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7281" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7282" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7283 7284# Handle CRLF in mingw tool chain 7285opt_cr= 7286case $build_os in 7287mingw*) 7288 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7289 ;; 7290esac 7291 7292# Try without a prefix underscore, then with it. 7293for ac_symprfx in "" "_"; do 7294 7295 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7296 symxfrm="\\1 $ac_symprfx\\2 \\2" 7297 7298 # Write the raw and C identifiers. 7299 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7300 # Fake it for dumpbin and say T for any non-static function, 7301 # D for any global variable and I for any imported variable. 7302 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7303 # which start with @ or ?. 7304 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7305" {last_section=section; section=\$ 3};"\ 7306" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7307" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7308" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7309" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7310" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7311" \$ 0!~/External *\|/{next};"\ 7312" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7313" {if(hide[section]) next};"\ 7314" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7315" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7316" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7317" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7318" ' prfx=^$ac_symprfx" 7319 else 7320 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7321 fi 7322 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7323 7324 # Check to see that the pipe works correctly. 7325 pipe_works=no 7326 7327 rm -f conftest* 7328 cat > conftest.$ac_ext <<_LT_EOF 7329#ifdef __cplusplus 7330extern "C" { 7331#endif 7332char nm_test_var; 7333void nm_test_func(void); 7334void nm_test_func(void){} 7335#ifdef __cplusplus 7336} 7337#endif 7338int main(){nm_test_var='a';nm_test_func();return(0);} 7339_LT_EOF 7340 7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7342 (eval $ac_compile) 2>&5 7343 ac_status=$? 7344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7345 test $ac_status = 0; }; then 7346 # Now try to grab the symbols. 7347 nlist=conftest.nm 7348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7349 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7350 ac_status=$? 7351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7352 test $ac_status = 0; } && test -s "$nlist"; then 7353 # Try sorting and uniquifying the output. 7354 if sort "$nlist" | uniq > "$nlist"T; then 7355 mv -f "$nlist"T "$nlist" 7356 else 7357 rm -f "$nlist"T 7358 fi 7359 7360 # Make sure that we snagged all the symbols we need. 7361 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7362 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7363 cat <<_LT_EOF > conftest.$ac_ext 7364/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7365#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7366/* DATA imports from DLLs on WIN32 can't be const, because runtime 7367 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7368# define LT_DLSYM_CONST 7369#elif defined __osf__ 7370/* This system does not cope well with relocations in const data. */ 7371# define LT_DLSYM_CONST 7372#else 7373# define LT_DLSYM_CONST const 7374#endif 7375 7376#ifdef __cplusplus 7377extern "C" { 7378#endif 7379 7380_LT_EOF 7381 # Now generate the symbol file. 7382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7383 7384 cat <<_LT_EOF >> conftest.$ac_ext 7385 7386/* The mapping between symbol names and symbols. */ 7387LT_DLSYM_CONST struct { 7388 const char *name; 7389 void *address; 7390} 7391lt__PROGRAM__LTX_preloaded_symbols[] = 7392{ 7393 { "@PROGRAM@", (void *) 0 }, 7394_LT_EOF 7395 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7396 cat <<\_LT_EOF >> conftest.$ac_ext 7397 {0, (void *) 0} 7398}; 7399 7400/* This works around a problem in FreeBSD linker */ 7401#ifdef FREEBSD_WORKAROUND 7402static const void *lt_preloaded_setup() { 7403 return lt__PROGRAM__LTX_preloaded_symbols; 7404} 7405#endif 7406 7407#ifdef __cplusplus 7408} 7409#endif 7410_LT_EOF 7411 # Now try linking the two files. 7412 mv conftest.$ac_objext conftstm.$ac_objext 7413 lt_globsym_save_LIBS=$LIBS 7414 lt_globsym_save_CFLAGS=$CFLAGS 7415 LIBS=conftstm.$ac_objext 7416 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7418 (eval $ac_link) 2>&5 7419 ac_status=$? 7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7421 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7422 pipe_works=yes 7423 fi 7424 LIBS=$lt_globsym_save_LIBS 7425 CFLAGS=$lt_globsym_save_CFLAGS 7426 else 7427 echo "cannot find nm_test_func in $nlist" >&5 7428 fi 7429 else 7430 echo "cannot find nm_test_var in $nlist" >&5 7431 fi 7432 else 7433 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7434 fi 7435 else 7436 echo "$progname: failed program was:" >&5 7437 cat conftest.$ac_ext >&5 7438 fi 7439 rm -rf conftest* conftst* 7440 7441 # Do not use the global_symbol_pipe unless it works. 7442 if test yes = "$pipe_works"; then 7443 break 7444 else 7445 lt_cv_sys_global_symbol_pipe= 7446 fi 7447done 7448 ;; 7449esac 7450fi 7451 7452if test -z "$lt_cv_sys_global_symbol_pipe"; then 7453 lt_cv_sys_global_symbol_to_cdecl= 7454fi 7455if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7457printf "%s\n" "failed" >&6; } 7458else 7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7460printf "%s\n" "ok" >&6; } 7461fi 7462 7463# Response file support. 7464if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7465 nm_file_list_spec='@' 7466elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7467 nm_file_list_spec='@' 7468fi 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7507printf %s "checking for sysroot... " >&6; } 7508 7509# Check whether --with-sysroot was given. 7510if test ${with_sysroot+y} 7511then : 7512 withval=$with_sysroot; 7513else case e in #( 7514 e) with_sysroot=no ;; 7515esac 7516fi 7517 7518 7519lt_sysroot= 7520case $with_sysroot in #( 7521 yes) 7522 if test yes = "$GCC"; then 7523 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7524 fi 7525 ;; #( 7526 /*) 7527 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7528 ;; #( 7529 no|'') 7530 ;; #( 7531 *) 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7533printf "%s\n" "$with_sysroot" >&6; } 7534 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7535 ;; 7536esac 7537 7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7539printf "%s\n" "${lt_sysroot:-no}" >&6; } 7540 7541 7542 7543 7544 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7546printf %s "checking for a working dd... " >&6; } 7547if test ${ac_cv_path_lt_DD+y} 7548then : 7549 printf %s "(cached) " >&6 7550else case e in #( 7551 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7552cat conftest.i conftest.i >conftest2.i 7553: ${lt_DD:=$DD} 7554if test -z "$lt_DD"; then 7555 ac_path_lt_DD_found=false 7556 # Loop through the user's path and test for each of PROGNAME-LIST 7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 case $as_dir in #((( 7562 '') as_dir=./ ;; 7563 */) ;; 7564 *) as_dir=$as_dir/ ;; 7565 esac 7566 for ac_prog in dd 7567 do 7568 for ac_exec_ext in '' $ac_executable_extensions; do 7569 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7570 as_fn_executable_p "$ac_path_lt_DD" || continue 7571if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7572 cmp -s conftest.i conftest.out \ 7573 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7574fi 7575 $ac_path_lt_DD_found && break 3 7576 done 7577 done 7578 done 7579IFS=$as_save_IFS 7580 if test -z "$ac_cv_path_lt_DD"; then 7581 : 7582 fi 7583else 7584 ac_cv_path_lt_DD=$lt_DD 7585fi 7586 7587rm -f conftest.i conftest2.i conftest.out ;; 7588esac 7589fi 7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7591printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7592 7593 7594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7595printf %s "checking how to truncate binary pipes... " >&6; } 7596if test ${lt_cv_truncate_bin+y} 7597then : 7598 printf %s "(cached) " >&6 7599else case e in #( 7600 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7601cat conftest.i conftest.i >conftest2.i 7602lt_cv_truncate_bin= 7603if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7604 cmp -s conftest.i conftest.out \ 7605 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7606fi 7607rm -f conftest.i conftest2.i conftest.out 7608test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7609esac 7610fi 7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7612printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7613 7614 7615 7616 7617 7618 7619 7620# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7621func_cc_basename () 7622{ 7623 for cc_temp in $*""; do 7624 case $cc_temp in 7625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7627 \-*) ;; 7628 *) break;; 7629 esac 7630 done 7631 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7632} 7633 7634# Check whether --enable-libtool-lock was given. 7635if test ${enable_libtool_lock+y} 7636then : 7637 enableval=$enable_libtool_lock; 7638fi 7639 7640test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7641 7642# Some flags need to be propagated to the compiler or linker for good 7643# libtool support. 7644case $host in 7645ia64-*-hpux*) 7646 # Find out what ABI is being produced by ac_compile, and set mode 7647 # options accordingly. 7648 echo 'int i;' > conftest.$ac_ext 7649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7650 (eval $ac_compile) 2>&5 7651 ac_status=$? 7652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7653 test $ac_status = 0; }; then 7654 case `$FILECMD conftest.$ac_objext` in 7655 *ELF-32*) 7656 HPUX_IA64_MODE=32 7657 ;; 7658 *ELF-64*) 7659 HPUX_IA64_MODE=64 7660 ;; 7661 esac 7662 fi 7663 rm -rf conftest* 7664 ;; 7665*-*-irix6*) 7666 # Find out what ABI is being produced by ac_compile, and set linker 7667 # options accordingly. 7668 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7670 (eval $ac_compile) 2>&5 7671 ac_status=$? 7672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7673 test $ac_status = 0; }; then 7674 if test yes = "$lt_cv_prog_gnu_ld"; then 7675 case `$FILECMD conftest.$ac_objext` in 7676 *32-bit*) 7677 LD="${LD-ld} -melf32bsmip" 7678 ;; 7679 *N32*) 7680 LD="${LD-ld} -melf32bmipn32" 7681 ;; 7682 *64-bit*) 7683 LD="${LD-ld} -melf64bmip" 7684 ;; 7685 esac 7686 else 7687 case `$FILECMD conftest.$ac_objext` in 7688 *32-bit*) 7689 LD="${LD-ld} -32" 7690 ;; 7691 *N32*) 7692 LD="${LD-ld} -n32" 7693 ;; 7694 *64-bit*) 7695 LD="${LD-ld} -64" 7696 ;; 7697 esac 7698 fi 7699 fi 7700 rm -rf conftest* 7701 ;; 7702 7703mips64*-*linux*) 7704 # Find out what ABI is being produced by ac_compile, and set linker 7705 # options accordingly. 7706 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7708 (eval $ac_compile) 2>&5 7709 ac_status=$? 7710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7711 test $ac_status = 0; }; then 7712 emul=elf 7713 case `$FILECMD conftest.$ac_objext` in 7714 *32-bit*) 7715 emul="${emul}32" 7716 ;; 7717 *64-bit*) 7718 emul="${emul}64" 7719 ;; 7720 esac 7721 case `$FILECMD conftest.$ac_objext` in 7722 *MSB*) 7723 emul="${emul}btsmip" 7724 ;; 7725 *LSB*) 7726 emul="${emul}ltsmip" 7727 ;; 7728 esac 7729 case `$FILECMD conftest.$ac_objext` in 7730 *N32*) 7731 emul="${emul}n32" 7732 ;; 7733 esac 7734 LD="${LD-ld} -m $emul" 7735 fi 7736 rm -rf conftest* 7737 ;; 7738 7739x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7740s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7741 # Find out what ABI is being produced by ac_compile, and set linker 7742 # options accordingly. Note that the listed cases only cover the 7743 # situations where additional linker options are needed (such as when 7744 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7745 # vice versa); the common cases where no linker options are needed do 7746 # not appear in the list. 7747 echo 'int i;' > conftest.$ac_ext 7748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7749 (eval $ac_compile) 2>&5 7750 ac_status=$? 7751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7752 test $ac_status = 0; }; then 7753 case `$FILECMD conftest.o` in 7754 *32-bit*) 7755 case $host in 7756 x86_64-*kfreebsd*-gnu) 7757 LD="${LD-ld} -m elf_i386_fbsd" 7758 ;; 7759 x86_64-*linux*) 7760 case `$FILECMD conftest.o` in 7761 *x86-64*) 7762 LD="${LD-ld} -m elf32_x86_64" 7763 ;; 7764 *) 7765 LD="${LD-ld} -m elf_i386" 7766 ;; 7767 esac 7768 ;; 7769 powerpc64le-*linux*) 7770 LD="${LD-ld} -m elf32lppclinux" 7771 ;; 7772 powerpc64-*linux*) 7773 LD="${LD-ld} -m elf32ppclinux" 7774 ;; 7775 s390x-*linux*) 7776 LD="${LD-ld} -m elf_s390" 7777 ;; 7778 sparc64-*linux*) 7779 LD="${LD-ld} -m elf32_sparc" 7780 ;; 7781 esac 7782 ;; 7783 *64-bit*) 7784 case $host in 7785 x86_64-*kfreebsd*-gnu) 7786 LD="${LD-ld} -m elf_x86_64_fbsd" 7787 ;; 7788 x86_64-*linux*) 7789 LD="${LD-ld} -m elf_x86_64" 7790 ;; 7791 powerpcle-*linux*|powerpc64le-*linux*) 7792 LD="${LD-ld} -m elf64lppc" 7793 ;; 7794 powerpc-*linux*|powerpc64-*linux*) 7795 LD="${LD-ld} -m elf64ppc" 7796 ;; 7797 s390*-*linux*|s390*-*tpf*) 7798 LD="${LD-ld} -m elf64_s390" 7799 ;; 7800 sparc*-*linux*) 7801 LD="${LD-ld} -m elf64_sparc" 7802 ;; 7803 esac 7804 ;; 7805 esac 7806 fi 7807 rm -rf conftest* 7808 ;; 7809 7810*-*-sco3.2v5*) 7811 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7812 SAVE_CFLAGS=$CFLAGS 7813 CFLAGS="$CFLAGS -belf" 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7815printf %s "checking whether the C compiler needs -belf... " >&6; } 7816if test ${lt_cv_cc_needs_belf+y} 7817then : 7818 printf %s "(cached) " >&6 7819else case e in #( 7820 e) ac_ext=c 7821ac_cpp='$CPP $CPPFLAGS' 7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7824ac_compiler_gnu=$ac_cv_c_compiler_gnu 7825 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828 7829int 7830main (void) 7831{ 7832 7833 ; 7834 return 0; 7835} 7836_ACEOF 7837if ac_fn_c_try_link "$LINENO" 7838then : 7839 lt_cv_cc_needs_belf=yes 7840else case e in #( 7841 e) lt_cv_cc_needs_belf=no ;; 7842esac 7843fi 7844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7845 conftest$ac_exeext conftest.$ac_ext 7846 ac_ext=c 7847ac_cpp='$CPP $CPPFLAGS' 7848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7850ac_compiler_gnu=$ac_cv_c_compiler_gnu 7851 ;; 7852esac 7853fi 7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7855printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7856 if test yes != "$lt_cv_cc_needs_belf"; then 7857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7858 CFLAGS=$SAVE_CFLAGS 7859 fi 7860 ;; 7861*-*solaris*) 7862 # Find out what ABI is being produced by ac_compile, and set linker 7863 # options accordingly. 7864 echo 'int i;' > conftest.$ac_ext 7865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7866 (eval $ac_compile) 2>&5 7867 ac_status=$? 7868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7869 test $ac_status = 0; }; then 7870 case `$FILECMD conftest.o` in 7871 *64-bit*) 7872 case $lt_cv_prog_gnu_ld in 7873 yes*) 7874 case $host in 7875 i?86-*-solaris*|x86_64-*-solaris*) 7876 LD="${LD-ld} -m elf_x86_64" 7877 ;; 7878 sparc*-*-solaris*) 7879 LD="${LD-ld} -m elf64_sparc" 7880 ;; 7881 esac 7882 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7883 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7884 LD=${LD-ld}_sol2 7885 fi 7886 ;; 7887 *) 7888 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7889 LD="${LD-ld} -64" 7890 fi 7891 ;; 7892 esac 7893 ;; 7894 esac 7895 fi 7896 rm -rf conftest* 7897 ;; 7898esac 7899 7900need_locks=$enable_libtool_lock 7901 7902if test -n "$ac_tool_prefix"; then 7903 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7904set dummy ${ac_tool_prefix}mt; ac_word=$2 7905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7906printf %s "checking for $ac_word... " >&6; } 7907if test ${ac_cv_prog_MANIFEST_TOOL+y} 7908then : 7909 printf %s "(cached) " >&6 7910else case e in #( 7911 e) if test -n "$MANIFEST_TOOL"; then 7912 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7913else 7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7915for as_dir in $PATH 7916do 7917 IFS=$as_save_IFS 7918 case $as_dir in #((( 7919 '') as_dir=./ ;; 7920 */) ;; 7921 *) as_dir=$as_dir/ ;; 7922 esac 7923 for ac_exec_ext in '' $ac_executable_extensions; do 7924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7925 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7927 break 2 7928 fi 7929done 7930 done 7931IFS=$as_save_IFS 7932 7933fi ;; 7934esac 7935fi 7936MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7937if test -n "$MANIFEST_TOOL"; then 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7939printf "%s\n" "$MANIFEST_TOOL" >&6; } 7940else 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942printf "%s\n" "no" >&6; } 7943fi 7944 7945 7946fi 7947if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7948 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7949 # Extract the first word of "mt", so it can be a program name with args. 7950set dummy mt; ac_word=$2 7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952printf %s "checking for $ac_word... " >&6; } 7953if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7954then : 7955 printf %s "(cached) " >&6 7956else case e in #( 7957 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7958 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7959else 7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7961for as_dir in $PATH 7962do 7963 IFS=$as_save_IFS 7964 case $as_dir in #((( 7965 '') as_dir=./ ;; 7966 */) ;; 7967 *) as_dir=$as_dir/ ;; 7968 esac 7969 for ac_exec_ext in '' $ac_executable_extensions; do 7970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7971 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7973 break 2 7974 fi 7975done 7976 done 7977IFS=$as_save_IFS 7978 7979fi ;; 7980esac 7981fi 7982ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7983if test -n "$ac_ct_MANIFEST_TOOL"; then 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7985printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7986else 7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988printf "%s\n" "no" >&6; } 7989fi 7990 7991 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7992 MANIFEST_TOOL=":" 7993 else 7994 case $cross_compiling:$ac_tool_warned in 7995yes:) 7996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7997printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7998ac_tool_warned=yes ;; 7999esac 8000 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8001 fi 8002else 8003 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8004fi 8005 8006test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8008printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8009if test ${lt_cv_path_mainfest_tool+y} 8010then : 8011 printf %s "(cached) " >&6 8012else case e in #( 8013 e) lt_cv_path_mainfest_tool=no 8014 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8015 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8016 cat conftest.err >&5 8017 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8018 lt_cv_path_mainfest_tool=yes 8019 fi 8020 rm -f conftest* ;; 8021esac 8022fi 8023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8024printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8025if test yes != "$lt_cv_path_mainfest_tool"; then 8026 MANIFEST_TOOL=: 8027fi 8028 8029 8030 8031 8032 8033 8034 case $host_os in 8035 rhapsody* | darwin*) 8036 if test -n "$ac_tool_prefix"; then 8037 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8038set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040printf %s "checking for $ac_word... " >&6; } 8041if test ${ac_cv_prog_DSYMUTIL+y} 8042then : 8043 printf %s "(cached) " >&6 8044else case e in #( 8045 e) if test -n "$DSYMUTIL"; then 8046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8047else 8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049for as_dir in $PATH 8050do 8051 IFS=$as_save_IFS 8052 case $as_dir in #((( 8053 '') as_dir=./ ;; 8054 */) ;; 8055 *) as_dir=$as_dir/ ;; 8056 esac 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi ;; 8068esac 8069fi 8070DSYMUTIL=$ac_cv_prog_DSYMUTIL 8071if test -n "$DSYMUTIL"; then 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8073printf "%s\n" "$DSYMUTIL" >&6; } 8074else 8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8076printf "%s\n" "no" >&6; } 8077fi 8078 8079 8080fi 8081if test -z "$ac_cv_prog_DSYMUTIL"; then 8082 ac_ct_DSYMUTIL=$DSYMUTIL 8083 # Extract the first word of "dsymutil", so it can be a program name with args. 8084set dummy dsymutil; ac_word=$2 8085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8086printf %s "checking for $ac_word... " >&6; } 8087if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8088then : 8089 printf %s "(cached) " >&6 8090else case e in #( 8091 e) if test -n "$ac_ct_DSYMUTIL"; then 8092 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8093else 8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8095for as_dir in $PATH 8096do 8097 IFS=$as_save_IFS 8098 case $as_dir in #((( 8099 '') as_dir=./ ;; 8100 */) ;; 8101 *) as_dir=$as_dir/ ;; 8102 esac 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8105 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109done 8110 done 8111IFS=$as_save_IFS 8112 8113fi ;; 8114esac 8115fi 8116ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8117if test -n "$ac_ct_DSYMUTIL"; then 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8119printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8120else 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122printf "%s\n" "no" >&6; } 8123fi 8124 8125 if test "x$ac_ct_DSYMUTIL" = x; then 8126 DSYMUTIL=":" 8127 else 8128 case $cross_compiling:$ac_tool_warned in 8129yes:) 8130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8131printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8132ac_tool_warned=yes ;; 8133esac 8134 DSYMUTIL=$ac_ct_DSYMUTIL 8135 fi 8136else 8137 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8138fi 8139 8140 if test -n "$ac_tool_prefix"; then 8141 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8142set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8144printf %s "checking for $ac_word... " >&6; } 8145if test ${ac_cv_prog_NMEDIT+y} 8146then : 8147 printf %s "(cached) " >&6 8148else case e in #( 8149 e) if test -n "$NMEDIT"; then 8150 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8151else 8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 case $as_dir in #((( 8157 '') as_dir=./ ;; 8158 */) ;; 8159 *) as_dir=$as_dir/ ;; 8160 esac 8161 for ac_exec_ext in '' $ac_executable_extensions; do 8162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8163 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8165 break 2 8166 fi 8167done 8168 done 8169IFS=$as_save_IFS 8170 8171fi ;; 8172esac 8173fi 8174NMEDIT=$ac_cv_prog_NMEDIT 8175if test -n "$NMEDIT"; then 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8177printf "%s\n" "$NMEDIT" >&6; } 8178else 8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8180printf "%s\n" "no" >&6; } 8181fi 8182 8183 8184fi 8185if test -z "$ac_cv_prog_NMEDIT"; then 8186 ac_ct_NMEDIT=$NMEDIT 8187 # Extract the first word of "nmedit", so it can be a program name with args. 8188set dummy nmedit; ac_word=$2 8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8190printf %s "checking for $ac_word... " >&6; } 8191if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8192then : 8193 printf %s "(cached) " >&6 8194else case e in #( 8195 e) if test -n "$ac_ct_NMEDIT"; then 8196 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8197else 8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199for as_dir in $PATH 8200do 8201 IFS=$as_save_IFS 8202 case $as_dir in #((( 8203 '') as_dir=./ ;; 8204 */) ;; 8205 *) as_dir=$as_dir/ ;; 8206 esac 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213done 8214 done 8215IFS=$as_save_IFS 8216 8217fi ;; 8218esac 8219fi 8220ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8221if test -n "$ac_ct_NMEDIT"; then 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8223printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8224else 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226printf "%s\n" "no" >&6; } 8227fi 8228 8229 if test "x$ac_ct_NMEDIT" = x; then 8230 NMEDIT=":" 8231 else 8232 case $cross_compiling:$ac_tool_warned in 8233yes:) 8234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8236ac_tool_warned=yes ;; 8237esac 8238 NMEDIT=$ac_ct_NMEDIT 8239 fi 8240else 8241 NMEDIT="$ac_cv_prog_NMEDIT" 8242fi 8243 8244 if test -n "$ac_tool_prefix"; then 8245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8246set dummy ${ac_tool_prefix}lipo; ac_word=$2 8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8248printf %s "checking for $ac_word... " >&6; } 8249if test ${ac_cv_prog_LIPO+y} 8250then : 8251 printf %s "(cached) " >&6 8252else case e in #( 8253 e) if test -n "$LIPO"; then 8254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8255else 8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8257for as_dir in $PATH 8258do 8259 IFS=$as_save_IFS 8260 case $as_dir in #((( 8261 '') as_dir=./ ;; 8262 */) ;; 8263 *) as_dir=$as_dir/ ;; 8264 esac 8265 for ac_exec_ext in '' $ac_executable_extensions; do 8266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8267 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8269 break 2 8270 fi 8271done 8272 done 8273IFS=$as_save_IFS 8274 8275fi ;; 8276esac 8277fi 8278LIPO=$ac_cv_prog_LIPO 8279if test -n "$LIPO"; then 8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8281printf "%s\n" "$LIPO" >&6; } 8282else 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284printf "%s\n" "no" >&6; } 8285fi 8286 8287 8288fi 8289if test -z "$ac_cv_prog_LIPO"; then 8290 ac_ct_LIPO=$LIPO 8291 # Extract the first word of "lipo", so it can be a program name with args. 8292set dummy lipo; ac_word=$2 8293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8294printf %s "checking for $ac_word... " >&6; } 8295if test ${ac_cv_prog_ac_ct_LIPO+y} 8296then : 8297 printf %s "(cached) " >&6 8298else case e in #( 8299 e) if test -n "$ac_ct_LIPO"; then 8300 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8301else 8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8303for as_dir in $PATH 8304do 8305 IFS=$as_save_IFS 8306 case $as_dir in #((( 8307 '') as_dir=./ ;; 8308 */) ;; 8309 *) as_dir=$as_dir/ ;; 8310 esac 8311 for ac_exec_ext in '' $ac_executable_extensions; do 8312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8313 ac_cv_prog_ac_ct_LIPO="lipo" 8314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8315 break 2 8316 fi 8317done 8318 done 8319IFS=$as_save_IFS 8320 8321fi ;; 8322esac 8323fi 8324ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8325if test -n "$ac_ct_LIPO"; then 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8327printf "%s\n" "$ac_ct_LIPO" >&6; } 8328else 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8330printf "%s\n" "no" >&6; } 8331fi 8332 8333 if test "x$ac_ct_LIPO" = x; then 8334 LIPO=":" 8335 else 8336 case $cross_compiling:$ac_tool_warned in 8337yes:) 8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8339printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8340ac_tool_warned=yes ;; 8341esac 8342 LIPO=$ac_ct_LIPO 8343 fi 8344else 8345 LIPO="$ac_cv_prog_LIPO" 8346fi 8347 8348 if test -n "$ac_tool_prefix"; then 8349 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8350set dummy ${ac_tool_prefix}otool; ac_word=$2 8351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8352printf %s "checking for $ac_word... " >&6; } 8353if test ${ac_cv_prog_OTOOL+y} 8354then : 8355 printf %s "(cached) " >&6 8356else case e in #( 8357 e) if test -n "$OTOOL"; then 8358 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8359else 8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8361for as_dir in $PATH 8362do 8363 IFS=$as_save_IFS 8364 case $as_dir in #((( 8365 '') as_dir=./ ;; 8366 */) ;; 8367 *) as_dir=$as_dir/ ;; 8368 esac 8369 for ac_exec_ext in '' $ac_executable_extensions; do 8370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8373 break 2 8374 fi 8375done 8376 done 8377IFS=$as_save_IFS 8378 8379fi ;; 8380esac 8381fi 8382OTOOL=$ac_cv_prog_OTOOL 8383if test -n "$OTOOL"; then 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8385printf "%s\n" "$OTOOL" >&6; } 8386else 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8388printf "%s\n" "no" >&6; } 8389fi 8390 8391 8392fi 8393if test -z "$ac_cv_prog_OTOOL"; then 8394 ac_ct_OTOOL=$OTOOL 8395 # Extract the first word of "otool", so it can be a program name with args. 8396set dummy otool; ac_word=$2 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398printf %s "checking for $ac_word... " >&6; } 8399if test ${ac_cv_prog_ac_ct_OTOOL+y} 8400then : 8401 printf %s "(cached) " >&6 8402else case e in #( 8403 e) if test -n "$ac_ct_OTOOL"; then 8404 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8405else 8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407for as_dir in $PATH 8408do 8409 IFS=$as_save_IFS 8410 case $as_dir in #((( 8411 '') as_dir=./ ;; 8412 */) ;; 8413 *) as_dir=$as_dir/ ;; 8414 esac 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8417 ac_cv_prog_ac_ct_OTOOL="otool" 8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422 done 8423IFS=$as_save_IFS 8424 8425fi ;; 8426esac 8427fi 8428ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8429if test -n "$ac_ct_OTOOL"; then 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8431printf "%s\n" "$ac_ct_OTOOL" >&6; } 8432else 8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8434printf "%s\n" "no" >&6; } 8435fi 8436 8437 if test "x$ac_ct_OTOOL" = x; then 8438 OTOOL=":" 8439 else 8440 case $cross_compiling:$ac_tool_warned in 8441yes:) 8442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8443printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8444ac_tool_warned=yes ;; 8445esac 8446 OTOOL=$ac_ct_OTOOL 8447 fi 8448else 8449 OTOOL="$ac_cv_prog_OTOOL" 8450fi 8451 8452 if test -n "$ac_tool_prefix"; then 8453 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8454set dummy ${ac_tool_prefix}otool64; ac_word=$2 8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8456printf %s "checking for $ac_word... " >&6; } 8457if test ${ac_cv_prog_OTOOL64+y} 8458then : 8459 printf %s "(cached) " >&6 8460else case e in #( 8461 e) if test -n "$OTOOL64"; then 8462 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8463else 8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8465for as_dir in $PATH 8466do 8467 IFS=$as_save_IFS 8468 case $as_dir in #((( 8469 '') as_dir=./ ;; 8470 */) ;; 8471 *) as_dir=$as_dir/ ;; 8472 esac 8473 for ac_exec_ext in '' $ac_executable_extensions; do 8474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8475 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8477 break 2 8478 fi 8479done 8480 done 8481IFS=$as_save_IFS 8482 8483fi ;; 8484esac 8485fi 8486OTOOL64=$ac_cv_prog_OTOOL64 8487if test -n "$OTOOL64"; then 8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8489printf "%s\n" "$OTOOL64" >&6; } 8490else 8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8492printf "%s\n" "no" >&6; } 8493fi 8494 8495 8496fi 8497if test -z "$ac_cv_prog_OTOOL64"; then 8498 ac_ct_OTOOL64=$OTOOL64 8499 # Extract the first word of "otool64", so it can be a program name with args. 8500set dummy otool64; ac_word=$2 8501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8502printf %s "checking for $ac_word... " >&6; } 8503if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8504then : 8505 printf %s "(cached) " >&6 8506else case e in #( 8507 e) if test -n "$ac_ct_OTOOL64"; then 8508 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8509else 8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8511for as_dir in $PATH 8512do 8513 IFS=$as_save_IFS 8514 case $as_dir in #((( 8515 '') as_dir=./ ;; 8516 */) ;; 8517 *) as_dir=$as_dir/ ;; 8518 esac 8519 for ac_exec_ext in '' $ac_executable_extensions; do 8520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8521 ac_cv_prog_ac_ct_OTOOL64="otool64" 8522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8523 break 2 8524 fi 8525done 8526 done 8527IFS=$as_save_IFS 8528 8529fi ;; 8530esac 8531fi 8532ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8533if test -n "$ac_ct_OTOOL64"; then 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8535printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8536else 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538printf "%s\n" "no" >&6; } 8539fi 8540 8541 if test "x$ac_ct_OTOOL64" = x; then 8542 OTOOL64=":" 8543 else 8544 case $cross_compiling:$ac_tool_warned in 8545yes:) 8546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8547printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8548ac_tool_warned=yes ;; 8549esac 8550 OTOOL64=$ac_ct_OTOOL64 8551 fi 8552else 8553 OTOOL64="$ac_cv_prog_OTOOL64" 8554fi 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8583printf %s "checking for -single_module linker flag... " >&6; } 8584if test ${lt_cv_apple_cc_single_mod+y} 8585then : 8586 printf %s "(cached) " >&6 8587else case e in #( 8588 e) lt_cv_apple_cc_single_mod=no 8589 if test -z "$LT_MULTI_MODULE"; then 8590 # By default we will add the -single_module flag. You can override 8591 # by either setting the environment variable LT_MULTI_MODULE 8592 # non-empty at configure time, or by adding -multi_module to the 8593 # link flags. 8594 rm -rf libconftest.dylib* 8595 echo "int foo(void){return 1;}" > conftest.c 8596 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8597-dynamiclib -Wl,-single_module conftest.c" >&5 8598 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8599 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8600 _lt_result=$? 8601 # If there is a non-empty error log, and "single_module" 8602 # appears in it, assume the flag caused a linker warning 8603 if test -s conftest.err && $GREP single_module conftest.err; then 8604 cat conftest.err >&5 8605 # Otherwise, if the output was created with a 0 exit code from 8606 # the compiler, it worked. 8607 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8608 lt_cv_apple_cc_single_mod=yes 8609 else 8610 cat conftest.err >&5 8611 fi 8612 rm -rf libconftest.dylib* 8613 rm -f conftest.* 8614 fi ;; 8615esac 8616fi 8617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8618printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8619 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8621printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8622if test ${lt_cv_ld_exported_symbols_list+y} 8623then : 8624 printf %s "(cached) " >&6 8625else case e in #( 8626 e) lt_cv_ld_exported_symbols_list=no 8627 save_LDFLAGS=$LDFLAGS 8628 echo "_main" > conftest.sym 8629 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631/* end confdefs.h. */ 8632 8633int 8634main (void) 8635{ 8636 8637 ; 8638 return 0; 8639} 8640_ACEOF 8641if ac_fn_c_try_link "$LINENO" 8642then : 8643 lt_cv_ld_exported_symbols_list=yes 8644else case e in #( 8645 e) lt_cv_ld_exported_symbols_list=no ;; 8646esac 8647fi 8648rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8649 conftest$ac_exeext conftest.$ac_ext 8650 LDFLAGS=$save_LDFLAGS 8651 ;; 8652esac 8653fi 8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8655printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8656 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8658printf %s "checking for -force_load linker flag... " >&6; } 8659if test ${lt_cv_ld_force_load+y} 8660then : 8661 printf %s "(cached) " >&6 8662else case e in #( 8663 e) lt_cv_ld_force_load=no 8664 cat > conftest.c << _LT_EOF 8665int forced_loaded() { return 2;} 8666_LT_EOF 8667 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8668 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8669 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8670 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8671 echo "$RANLIB libconftest.a" >&5 8672 $RANLIB libconftest.a 2>&5 8673 cat > conftest.c << _LT_EOF 8674int main() { return 0;} 8675_LT_EOF 8676 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8677 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8678 _lt_result=$? 8679 if test -s conftest.err && $GREP force_load conftest.err; then 8680 cat conftest.err >&5 8681 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8682 lt_cv_ld_force_load=yes 8683 else 8684 cat conftest.err >&5 8685 fi 8686 rm -f conftest.err libconftest.a conftest conftest.c 8687 rm -rf conftest.dSYM 8688 ;; 8689esac 8690fi 8691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8692printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8693 case $host_os in 8694 rhapsody* | darwin1.[012]) 8695 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8696 darwin1.*) 8697 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8698 darwin*) 8699 case $MACOSX_DEPLOYMENT_TARGET,$host in 8700 10.[012],*|,*powerpc*-darwin[5-8]*) 8701 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8702 *) 8703 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8704 esac 8705 ;; 8706 esac 8707 if test yes = "$lt_cv_apple_cc_single_mod"; then 8708 _lt_dar_single_mod='$single_module' 8709 fi 8710 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8711 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8712 else 8713 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8714 fi 8715 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8716 _lt_dsymutil='~$DSYMUTIL $lib || :' 8717 else 8718 _lt_dsymutil= 8719 fi 8720 ;; 8721 esac 8722 8723# func_munge_path_list VARIABLE PATH 8724# ----------------------------------- 8725# VARIABLE is name of variable containing _space_ separated list of 8726# directories to be munged by the contents of PATH, which is string 8727# having a format: 8728# "DIR[:DIR]:" 8729# string "DIR[ DIR]" will be prepended to VARIABLE 8730# ":DIR[:DIR]" 8731# string "DIR[ DIR]" will be appended to VARIABLE 8732# "DIRP[:DIRP]::[DIRA:]DIRA" 8733# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8734# "DIRA[ DIRA]" will be appended to VARIABLE 8735# "DIR[:DIR]" 8736# VARIABLE will be replaced by "DIR[ DIR]" 8737func_munge_path_list () 8738{ 8739 case x$2 in 8740 x) 8741 ;; 8742 *:) 8743 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8744 ;; 8745 x:*) 8746 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8747 ;; 8748 *::*) 8749 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8750 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8751 ;; 8752 *) 8753 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8754 ;; 8755 esac 8756} 8757 8758ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8759" 8760if test "x$ac_cv_header_dlfcn_h" = xyes 8761then : 8762 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8763 8764fi 8765 8766 8767 8768 8769 8770# Set options 8771 8772 8773 8774 enable_dlopen=no 8775 8776 8777 enable_win32_dll=no 8778 8779 8780 # Check whether --enable-shared was given. 8781if test ${enable_shared+y} 8782then : 8783 enableval=$enable_shared; p=${PACKAGE-default} 8784 case $enableval in 8785 yes) enable_shared=yes ;; 8786 no) enable_shared=no ;; 8787 *) 8788 enable_shared=no 8789 # Look at the argument we got. We use all the common list separators. 8790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8791 for pkg in $enableval; do 8792 IFS=$lt_save_ifs 8793 if test "X$pkg" = "X$p"; then 8794 enable_shared=yes 8795 fi 8796 done 8797 IFS=$lt_save_ifs 8798 ;; 8799 esac 8800else case e in #( 8801 e) enable_shared=yes ;; 8802esac 8803fi 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 # Check whether --enable-static was given. 8814if test ${enable_static+y} 8815then : 8816 enableval=$enable_static; p=${PACKAGE-default} 8817 case $enableval in 8818 yes) enable_static=yes ;; 8819 no) enable_static=no ;; 8820 *) 8821 enable_static=no 8822 # Look at the argument we got. We use all the common list separators. 8823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8824 for pkg in $enableval; do 8825 IFS=$lt_save_ifs 8826 if test "X$pkg" = "X$p"; then 8827 enable_static=yes 8828 fi 8829 done 8830 IFS=$lt_save_ifs 8831 ;; 8832 esac 8833else case e in #( 8834 e) enable_static=yes ;; 8835esac 8836fi 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847# Check whether --with-pic was given. 8848if test ${with_pic+y} 8849then : 8850 withval=$with_pic; lt_p=${PACKAGE-default} 8851 case $withval in 8852 yes|no) pic_mode=$withval ;; 8853 *) 8854 pic_mode=default 8855 # Look at the argument we got. We use all the common list separators. 8856 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8857 for lt_pkg in $withval; do 8858 IFS=$lt_save_ifs 8859 if test "X$lt_pkg" = "X$lt_p"; then 8860 pic_mode=yes 8861 fi 8862 done 8863 IFS=$lt_save_ifs 8864 ;; 8865 esac 8866else case e in #( 8867 e) pic_mode=default ;; 8868esac 8869fi 8870 8871 8872 8873 8874 8875 8876 8877 8878 # Check whether --enable-fast-install was given. 8879if test ${enable_fast_install+y} 8880then : 8881 enableval=$enable_fast_install; p=${PACKAGE-default} 8882 case $enableval in 8883 yes) enable_fast_install=yes ;; 8884 no) enable_fast_install=no ;; 8885 *) 8886 enable_fast_install=no 8887 # Look at the argument we got. We use all the common list separators. 8888 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8889 for pkg in $enableval; do 8890 IFS=$lt_save_ifs 8891 if test "X$pkg" = "X$p"; then 8892 enable_fast_install=yes 8893 fi 8894 done 8895 IFS=$lt_save_ifs 8896 ;; 8897 esac 8898else case e in #( 8899 e) enable_fast_install=yes ;; 8900esac 8901fi 8902 8903 8904 8905 8906 8907 8908 8909 8910 shared_archive_member_spec= 8911case $host,$enable_shared in 8912power*-*-aix[5-9]*,yes) 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8914printf %s "checking which variant of shared library versioning to provide... " >&6; } 8915 8916# Check whether --with-aix-soname was given. 8917if test ${with_aix_soname+y} 8918then : 8919 withval=$with_aix_soname; case $withval in 8920 aix|svr4|both) 8921 ;; 8922 *) 8923 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8924 ;; 8925 esac 8926 lt_cv_with_aix_soname=$with_aix_soname 8927else case e in #( 8928 e) if test ${lt_cv_with_aix_soname+y} 8929then : 8930 printf %s "(cached) " >&6 8931else case e in #( 8932 e) lt_cv_with_aix_soname=aix ;; 8933esac 8934fi 8935 8936 with_aix_soname=$lt_cv_with_aix_soname ;; 8937esac 8938fi 8939 8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8941printf "%s\n" "$with_aix_soname" >&6; } 8942 if test aix != "$with_aix_soname"; then 8943 # For the AIX way of multilib, we name the shared archive member 8944 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8945 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8946 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8947 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8948 if test 64 = "${OBJECT_MODE-32}"; then 8949 shared_archive_member_spec=shr_64 8950 else 8951 shared_archive_member_spec=shr 8952 fi 8953 fi 8954 ;; 8955*) 8956 with_aix_soname=aix 8957 ;; 8958esac 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969# This can be used to rebuild libtool when needed 8970LIBTOOL_DEPS=$ltmain 8971 8972# Always use our own libtool. 8973LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004test -z "$LN_S" && LN_S="ln -s" 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019if test -n "${ZSH_VERSION+set}"; then 9020 setopt NO_GLOB_SUBST 9021fi 9022 9023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9024printf %s "checking for objdir... " >&6; } 9025if test ${lt_cv_objdir+y} 9026then : 9027 printf %s "(cached) " >&6 9028else case e in #( 9029 e) rm -f .libs 2>/dev/null 9030mkdir .libs 2>/dev/null 9031if test -d .libs; then 9032 lt_cv_objdir=.libs 9033else 9034 # MS-DOS does not allow filenames that begin with a dot. 9035 lt_cv_objdir=_libs 9036fi 9037rmdir .libs 2>/dev/null ;; 9038esac 9039fi 9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9041printf "%s\n" "$lt_cv_objdir" >&6; } 9042objdir=$lt_cv_objdir 9043 9044 9045 9046 9047 9048printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9049 9050 9051 9052 9053case $host_os in 9054aix3*) 9055 # AIX sometimes has problems with the GCC collect2 program. For some 9056 # reason, if we set the COLLECT_NAMES environment variable, the problems 9057 # vanish in a puff of smoke. 9058 if test set != "${COLLECT_NAMES+set}"; then 9059 COLLECT_NAMES= 9060 export COLLECT_NAMES 9061 fi 9062 ;; 9063esac 9064 9065# Global variables: 9066ofile=libtool 9067can_build_shared=yes 9068 9069# All known linkers require a '.a' archive for static linking (except MSVC and 9070# ICC, which need '.lib'). 9071libext=a 9072 9073with_gnu_ld=$lt_cv_prog_gnu_ld 9074 9075old_CC=$CC 9076old_CFLAGS=$CFLAGS 9077 9078# Set sane defaults for various variables 9079test -z "$CC" && CC=cc 9080test -z "$LTCC" && LTCC=$CC 9081test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9082test -z "$LD" && LD=ld 9083test -z "$ac_objext" && ac_objext=o 9084 9085func_cc_basename $compiler 9086cc_basename=$func_cc_basename_result 9087 9088 9089# Only perform the check for file, if the check method requires it 9090test -z "$MAGIC_CMD" && MAGIC_CMD=file 9091case $deplibs_check_method in 9092file_magic*) 9093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9095printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9096if test ${lt_cv_path_MAGIC_CMD+y} 9097then : 9098 printf %s "(cached) " >&6 9099else case e in #( 9100 e) case $MAGIC_CMD in 9101[\\/*] | ?:[\\/]*) 9102 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9103 ;; 9104*) 9105 lt_save_MAGIC_CMD=$MAGIC_CMD 9106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9108 for ac_dir in $ac_dummy; do 9109 IFS=$lt_save_ifs 9110 test -z "$ac_dir" && ac_dir=. 9111 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9112 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9113 if test -n "$file_magic_test_file"; then 9114 case $deplibs_check_method in 9115 "file_magic "*) 9116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9119 $EGREP "$file_magic_regex" > /dev/null; then 9120 : 9121 else 9122 cat <<_LT_EOF 1>&2 9123 9124*** Warning: the command libtool uses to detect shared libraries, 9125*** $file_magic_cmd, produces output that libtool cannot recognize. 9126*** The result is that libtool may fail to recognize shared libraries 9127*** as such. This will affect the creation of libtool libraries that 9128*** depend on shared libraries, but programs linked with such libtool 9129*** libraries will work regardless of this problem. Nevertheless, you 9130*** may want to report the problem to your system manager and/or to 9131*** bug-libtool@gnu.org 9132 9133_LT_EOF 9134 fi ;; 9135 esac 9136 fi 9137 break 9138 fi 9139 done 9140 IFS=$lt_save_ifs 9141 MAGIC_CMD=$lt_save_MAGIC_CMD 9142 ;; 9143esac ;; 9144esac 9145fi 9146 9147MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9148if test -n "$MAGIC_CMD"; then 9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9150printf "%s\n" "$MAGIC_CMD" >&6; } 9151else 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9153printf "%s\n" "no" >&6; } 9154fi 9155 9156 9157 9158 9159 9160if test -z "$lt_cv_path_MAGIC_CMD"; then 9161 if test -n "$ac_tool_prefix"; then 9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9163printf %s "checking for file... " >&6; } 9164if test ${lt_cv_path_MAGIC_CMD+y} 9165then : 9166 printf %s "(cached) " >&6 9167else case e in #( 9168 e) case $MAGIC_CMD in 9169[\\/*] | ?:[\\/]*) 9170 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9171 ;; 9172*) 9173 lt_save_MAGIC_CMD=$MAGIC_CMD 9174 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9176 for ac_dir in $ac_dummy; do 9177 IFS=$lt_save_ifs 9178 test -z "$ac_dir" && ac_dir=. 9179 if test -f "$ac_dir/file"; then 9180 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9181 if test -n "$file_magic_test_file"; then 9182 case $deplibs_check_method in 9183 "file_magic "*) 9184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9185 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9187 $EGREP "$file_magic_regex" > /dev/null; then 9188 : 9189 else 9190 cat <<_LT_EOF 1>&2 9191 9192*** Warning: the command libtool uses to detect shared libraries, 9193*** $file_magic_cmd, produces output that libtool cannot recognize. 9194*** The result is that libtool may fail to recognize shared libraries 9195*** as such. This will affect the creation of libtool libraries that 9196*** depend on shared libraries, but programs linked with such libtool 9197*** libraries will work regardless of this problem. Nevertheless, you 9198*** may want to report the problem to your system manager and/or to 9199*** bug-libtool@gnu.org 9200 9201_LT_EOF 9202 fi ;; 9203 esac 9204 fi 9205 break 9206 fi 9207 done 9208 IFS=$lt_save_ifs 9209 MAGIC_CMD=$lt_save_MAGIC_CMD 9210 ;; 9211esac ;; 9212esac 9213fi 9214 9215MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9216if test -n "$MAGIC_CMD"; then 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9218printf "%s\n" "$MAGIC_CMD" >&6; } 9219else 9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9221printf "%s\n" "no" >&6; } 9222fi 9223 9224 9225 else 9226 MAGIC_CMD=: 9227 fi 9228fi 9229 9230 fi 9231 ;; 9232esac 9233 9234# Use C for the default configuration in the libtool script 9235 9236lt_save_CC=$CC 9237ac_ext=c 9238ac_cpp='$CPP $CPPFLAGS' 9239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9241ac_compiler_gnu=$ac_cv_c_compiler_gnu 9242 9243 9244# Source file extension for C test sources. 9245ac_ext=c 9246 9247# Object file extension for compiled C test sources. 9248objext=o 9249objext=$objext 9250 9251# Code to be used in simple compile tests 9252lt_simple_compile_test_code="int some_variable = 0;" 9253 9254# Code to be used in simple link tests 9255lt_simple_link_test_code='int main(){return(0);}' 9256 9257 9258 9259 9260 9261 9262 9263# If no C compiler was specified, use CC. 9264LTCC=${LTCC-"$CC"} 9265 9266# If no C compiler flags were specified, use CFLAGS. 9267LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9268 9269# Allow CC to be a program name with arguments. 9270compiler=$CC 9271 9272# Save the default compiler, since it gets overwritten when the other 9273# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9274compiler_DEFAULT=$CC 9275 9276# save warnings/boilerplate of simple test code 9277ac_outfile=conftest.$ac_objext 9278echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9279eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9280_lt_compiler_boilerplate=`cat conftest.err` 9281$RM conftest* 9282 9283ac_outfile=conftest.$ac_objext 9284echo "$lt_simple_link_test_code" >conftest.$ac_ext 9285eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9286_lt_linker_boilerplate=`cat conftest.err` 9287$RM -r conftest* 9288 9289 9290## CAVEAT EMPTOR: 9291## There is no encapsulation within the following macros, do not change 9292## the running order or otherwise move them around unless you know exactly 9293## what you are doing... 9294if test -n "$compiler"; then 9295 9296lt_prog_compiler_no_builtin_flag= 9297 9298if test yes = "$GCC"; then 9299 case $cc_basename in 9300 nvcc*) 9301 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9302 *) 9303 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9304 esac 9305 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9307printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9308if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9309then : 9310 printf %s "(cached) " >&6 9311else case e in #( 9312 e) lt_cv_prog_compiler_rtti_exceptions=no 9313 ac_outfile=conftest.$ac_objext 9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9315 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9316 # Insert the option either (1) after the last *FLAGS variable, or 9317 # (2) before a word containing "conftest.", or (3) at the end. 9318 # Note that $ac_compile itself does not contain backslashes and begins 9319 # with a dollar sign (not a hyphen), so the echo should work correctly. 9320 # The option is referenced via a variable to avoid confusing sed. 9321 lt_compile=`echo "$ac_compile" | $SED \ 9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9324 -e 's:$: $lt_compiler_flag:'` 9325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9326 (eval "$lt_compile" 2>conftest.err) 9327 ac_status=$? 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 if (exit $ac_status) && test -s "$ac_outfile"; then 9331 # The compiler can only warn and ignore the option if not recognized 9332 # So say no if there are warnings other than the usual output. 9333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9336 lt_cv_prog_compiler_rtti_exceptions=yes 9337 fi 9338 fi 9339 $RM conftest* 9340 ;; 9341esac 9342fi 9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9344printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9345 9346if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9348else 9349 : 9350fi 9351 9352fi 9353 9354 9355 9356 9357 9358 9359 lt_prog_compiler_wl= 9360lt_prog_compiler_pic= 9361lt_prog_compiler_static= 9362 9363 9364 if test yes = "$GCC"; then 9365 lt_prog_compiler_wl='-Wl,' 9366 lt_prog_compiler_static='-static' 9367 9368 case $host_os in 9369 aix*) 9370 # All AIX code is PIC. 9371 if test ia64 = "$host_cpu"; then 9372 # AIX 5 now supports IA64 processor 9373 lt_prog_compiler_static='-Bstatic' 9374 fi 9375 lt_prog_compiler_pic='-fPIC' 9376 ;; 9377 9378 amigaos*) 9379 case $host_cpu in 9380 powerpc) 9381 # see comment about AmigaOS4 .so support 9382 lt_prog_compiler_pic='-fPIC' 9383 ;; 9384 m68k) 9385 # FIXME: we need at least 68020 code to build shared libraries, but 9386 # adding the '-m68020' flag to GCC prevents building anything better, 9387 # like '-m68040'. 9388 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9389 ;; 9390 esac 9391 ;; 9392 9393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9394 # PIC is the default for these OSes. 9395 ;; 9396 9397 mingw* | cygwin* | pw32* | os2* | cegcc*) 9398 # This hack is so that the source file can tell whether it is being 9399 # built for inclusion in a dll (and should export symbols for example). 9400 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9401 # (--disable-auto-import) libraries 9402 lt_prog_compiler_pic='-DDLL_EXPORT' 9403 case $host_os in 9404 os2*) 9405 lt_prog_compiler_static='$wl-static' 9406 ;; 9407 esac 9408 ;; 9409 9410 darwin* | rhapsody*) 9411 # PIC is the default on this platform 9412 # Common symbols not allowed in MH_DYLIB files 9413 lt_prog_compiler_pic='-fno-common' 9414 ;; 9415 9416 haiku*) 9417 # PIC is the default for Haiku. 9418 # The "-static" flag exists, but is broken. 9419 lt_prog_compiler_static= 9420 ;; 9421 9422 hpux*) 9423 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9424 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9425 # sets the default TLS model and affects inlining. 9426 case $host_cpu in 9427 hppa*64*) 9428 # +Z the default 9429 ;; 9430 *) 9431 lt_prog_compiler_pic='-fPIC' 9432 ;; 9433 esac 9434 ;; 9435 9436 interix[3-9]*) 9437 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9438 # Instead, we relocate shared libraries at runtime. 9439 ;; 9440 9441 msdosdjgpp*) 9442 # Just because we use GCC doesn't mean we suddenly get shared libraries 9443 # on systems that don't support them. 9444 lt_prog_compiler_can_build_shared=no 9445 enable_shared=no 9446 ;; 9447 9448 *nto* | *qnx*) 9449 # QNX uses GNU C++, but need to define -shared option too, otherwise 9450 # it will coredump. 9451 lt_prog_compiler_pic='-fPIC -shared' 9452 ;; 9453 9454 sysv4*MP*) 9455 if test -d /usr/nec; then 9456 lt_prog_compiler_pic=-Kconform_pic 9457 fi 9458 ;; 9459 9460 *) 9461 lt_prog_compiler_pic='-fPIC' 9462 ;; 9463 esac 9464 9465 case $cc_basename in 9466 nvcc*) # Cuda Compiler Driver 2.2 9467 lt_prog_compiler_wl='-Xlinker ' 9468 if test -n "$lt_prog_compiler_pic"; then 9469 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9470 fi 9471 ;; 9472 esac 9473 else 9474 # PORTME Check for flag to pass linker flags through the system compiler. 9475 case $host_os in 9476 aix*) 9477 lt_prog_compiler_wl='-Wl,' 9478 if test ia64 = "$host_cpu"; then 9479 # AIX 5 now supports IA64 processor 9480 lt_prog_compiler_static='-Bstatic' 9481 else 9482 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9483 fi 9484 ;; 9485 9486 darwin* | rhapsody*) 9487 # PIC is the default on this platform 9488 # Common symbols not allowed in MH_DYLIB files 9489 lt_prog_compiler_pic='-fno-common' 9490 case $cc_basename in 9491 nagfor*) 9492 # NAG Fortran compiler 9493 lt_prog_compiler_wl='-Wl,-Wl,,' 9494 lt_prog_compiler_pic='-PIC' 9495 lt_prog_compiler_static='-Bstatic' 9496 ;; 9497 esac 9498 ;; 9499 9500 mingw* | cygwin* | pw32* | os2* | cegcc*) 9501 # This hack is so that the source file can tell whether it is being 9502 # built for inclusion in a dll (and should export symbols for example). 9503 lt_prog_compiler_pic='-DDLL_EXPORT' 9504 case $host_os in 9505 os2*) 9506 lt_prog_compiler_static='$wl-static' 9507 ;; 9508 esac 9509 ;; 9510 9511 hpux9* | hpux10* | hpux11*) 9512 lt_prog_compiler_wl='-Wl,' 9513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9514 # not for PA HP-UX. 9515 case $host_cpu in 9516 hppa*64*|ia64*) 9517 # +Z the default 9518 ;; 9519 *) 9520 lt_prog_compiler_pic='+Z' 9521 ;; 9522 esac 9523 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9524 lt_prog_compiler_static='$wl-a ${wl}archive' 9525 ;; 9526 9527 irix5* | irix6* | nonstopux*) 9528 lt_prog_compiler_wl='-Wl,' 9529 # PIC (with -KPIC) is the default. 9530 lt_prog_compiler_static='-non_shared' 9531 ;; 9532 9533 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9534 case $cc_basename in 9535 # old Intel for x86_64, which still supported -KPIC. 9536 ecc*) 9537 lt_prog_compiler_wl='-Wl,' 9538 lt_prog_compiler_pic='-KPIC' 9539 lt_prog_compiler_static='-static' 9540 ;; 9541 # icc used to be incompatible with GCC. 9542 # ICC 10 doesn't accept -KPIC any more. 9543 icc* | ifort*) 9544 lt_prog_compiler_wl='-Wl,' 9545 lt_prog_compiler_pic='-fPIC' 9546 lt_prog_compiler_static='-static' 9547 ;; 9548 # Lahey Fortran 8.1. 9549 lf95*) 9550 lt_prog_compiler_wl='-Wl,' 9551 lt_prog_compiler_pic='--shared' 9552 lt_prog_compiler_static='--static' 9553 ;; 9554 nagfor*) 9555 # NAG Fortran compiler 9556 lt_prog_compiler_wl='-Wl,-Wl,,' 9557 lt_prog_compiler_pic='-PIC' 9558 lt_prog_compiler_static='-Bstatic' 9559 ;; 9560 tcc*) 9561 # Fabrice Bellard et al's Tiny C Compiler 9562 lt_prog_compiler_wl='-Wl,' 9563 lt_prog_compiler_pic='-fPIC' 9564 lt_prog_compiler_static='-static' 9565 ;; 9566 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9567 # Portland Group compilers (*not* the Pentium gcc compiler, 9568 # which looks to be a dead project) 9569 lt_prog_compiler_wl='-Wl,' 9570 lt_prog_compiler_pic='-fpic' 9571 lt_prog_compiler_static='-Bstatic' 9572 ;; 9573 ccc*) 9574 lt_prog_compiler_wl='-Wl,' 9575 # All Alpha code is PIC. 9576 lt_prog_compiler_static='-non_shared' 9577 ;; 9578 xl* | bgxl* | bgf* | mpixl*) 9579 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9580 lt_prog_compiler_wl='-Wl,' 9581 lt_prog_compiler_pic='-qpic' 9582 lt_prog_compiler_static='-qstaticlink' 9583 ;; 9584 *) 9585 case `$CC -V 2>&1 | $SED 5q` in 9586 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9587 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9588 lt_prog_compiler_pic='-KPIC' 9589 lt_prog_compiler_static='-Bstatic' 9590 lt_prog_compiler_wl='' 9591 ;; 9592 *Sun\ F* | *Sun*Fortran*) 9593 lt_prog_compiler_pic='-KPIC' 9594 lt_prog_compiler_static='-Bstatic' 9595 lt_prog_compiler_wl='-Qoption ld ' 9596 ;; 9597 *Sun\ C*) 9598 # Sun C 5.9 9599 lt_prog_compiler_pic='-KPIC' 9600 lt_prog_compiler_static='-Bstatic' 9601 lt_prog_compiler_wl='-Wl,' 9602 ;; 9603 *Intel*\ [CF]*Compiler*) 9604 lt_prog_compiler_wl='-Wl,' 9605 lt_prog_compiler_pic='-fPIC' 9606 lt_prog_compiler_static='-static' 9607 ;; 9608 *Portland\ Group*) 9609 lt_prog_compiler_wl='-Wl,' 9610 lt_prog_compiler_pic='-fpic' 9611 lt_prog_compiler_static='-Bstatic' 9612 ;; 9613 esac 9614 ;; 9615 esac 9616 ;; 9617 9618 newsos6) 9619 lt_prog_compiler_pic='-KPIC' 9620 lt_prog_compiler_static='-Bstatic' 9621 ;; 9622 9623 *nto* | *qnx*) 9624 # QNX uses GNU C++, but need to define -shared option too, otherwise 9625 # it will coredump. 9626 lt_prog_compiler_pic='-fPIC -shared' 9627 ;; 9628 9629 osf3* | osf4* | osf5*) 9630 lt_prog_compiler_wl='-Wl,' 9631 # All OSF/1 code is PIC. 9632 lt_prog_compiler_static='-non_shared' 9633 ;; 9634 9635 rdos*) 9636 lt_prog_compiler_static='-non_shared' 9637 ;; 9638 9639 solaris*) 9640 lt_prog_compiler_pic='-KPIC' 9641 lt_prog_compiler_static='-Bstatic' 9642 case $cc_basename in 9643 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9644 lt_prog_compiler_wl='-Qoption ld ';; 9645 *) 9646 lt_prog_compiler_wl='-Wl,';; 9647 esac 9648 ;; 9649 9650 sunos4*) 9651 lt_prog_compiler_wl='-Qoption ld ' 9652 lt_prog_compiler_pic='-PIC' 9653 lt_prog_compiler_static='-Bstatic' 9654 ;; 9655 9656 sysv4 | sysv4.2uw2* | sysv4.3*) 9657 lt_prog_compiler_wl='-Wl,' 9658 lt_prog_compiler_pic='-KPIC' 9659 lt_prog_compiler_static='-Bstatic' 9660 ;; 9661 9662 sysv4*MP*) 9663 if test -d /usr/nec; then 9664 lt_prog_compiler_pic='-Kconform_pic' 9665 lt_prog_compiler_static='-Bstatic' 9666 fi 9667 ;; 9668 9669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9670 lt_prog_compiler_wl='-Wl,' 9671 lt_prog_compiler_pic='-KPIC' 9672 lt_prog_compiler_static='-Bstatic' 9673 ;; 9674 9675 unicos*) 9676 lt_prog_compiler_wl='-Wl,' 9677 lt_prog_compiler_can_build_shared=no 9678 ;; 9679 9680 uts4*) 9681 lt_prog_compiler_pic='-pic' 9682 lt_prog_compiler_static='-Bstatic' 9683 ;; 9684 9685 *) 9686 lt_prog_compiler_can_build_shared=no 9687 ;; 9688 esac 9689 fi 9690 9691case $host_os in 9692 # For platforms that do not support PIC, -DPIC is meaningless: 9693 *djgpp*) 9694 lt_prog_compiler_pic= 9695 ;; 9696 *) 9697 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9698 ;; 9699esac 9700 9701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9702printf %s "checking for $compiler option to produce PIC... " >&6; } 9703if test ${lt_cv_prog_compiler_pic+y} 9704then : 9705 printf %s "(cached) " >&6 9706else case e in #( 9707 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9708esac 9709fi 9710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9711printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9712lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9713 9714# 9715# Check to make sure the PIC flag actually works. 9716# 9717if test -n "$lt_prog_compiler_pic"; then 9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9719printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9720if test ${lt_cv_prog_compiler_pic_works+y} 9721then : 9722 printf %s "(cached) " >&6 9723else case e in #( 9724 e) lt_cv_prog_compiler_pic_works=no 9725 ac_outfile=conftest.$ac_objext 9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9727 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9728 # Insert the option either (1) after the last *FLAGS variable, or 9729 # (2) before a word containing "conftest.", or (3) at the end. 9730 # Note that $ac_compile itself does not contain backslashes and begins 9731 # with a dollar sign (not a hyphen), so the echo should work correctly. 9732 # The option is referenced via a variable to avoid confusing sed. 9733 lt_compile=`echo "$ac_compile" | $SED \ 9734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9736 -e 's:$: $lt_compiler_flag:'` 9737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9738 (eval "$lt_compile" 2>conftest.err) 9739 ac_status=$? 9740 cat conftest.err >&5 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 if (exit $ac_status) && test -s "$ac_outfile"; then 9743 # The compiler can only warn and ignore the option if not recognized 9744 # So say no if there are warnings other than the usual output. 9745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9748 lt_cv_prog_compiler_pic_works=yes 9749 fi 9750 fi 9751 $RM conftest* 9752 ;; 9753esac 9754fi 9755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9756printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9757 9758if test yes = "$lt_cv_prog_compiler_pic_works"; then 9759 case $lt_prog_compiler_pic in 9760 "" | " "*) ;; 9761 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9762 esac 9763else 9764 lt_prog_compiler_pic= 9765 lt_prog_compiler_can_build_shared=no 9766fi 9767 9768fi 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780# 9781# Check to make sure the static flag actually works. 9782# 9783wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9785printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9786if test ${lt_cv_prog_compiler_static_works+y} 9787then : 9788 printf %s "(cached) " >&6 9789else case e in #( 9790 e) lt_cv_prog_compiler_static_works=no 9791 save_LDFLAGS=$LDFLAGS 9792 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9793 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9794 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9795 # The linker can only warn and ignore the option if not recognized 9796 # So say no if there are warnings 9797 if test -s conftest.err; then 9798 # Append any errors to the config.log. 9799 cat conftest.err 1>&5 9800 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9802 if diff conftest.exp conftest.er2 >/dev/null; then 9803 lt_cv_prog_compiler_static_works=yes 9804 fi 9805 else 9806 lt_cv_prog_compiler_static_works=yes 9807 fi 9808 fi 9809 $RM -r conftest* 9810 LDFLAGS=$save_LDFLAGS 9811 ;; 9812esac 9813fi 9814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9815printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9816 9817if test yes = "$lt_cv_prog_compiler_static_works"; then 9818 : 9819else 9820 lt_prog_compiler_static= 9821fi 9822 9823 9824 9825 9826 9827 9828 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9830printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9831if test ${lt_cv_prog_compiler_c_o+y} 9832then : 9833 printf %s "(cached) " >&6 9834else case e in #( 9835 e) lt_cv_prog_compiler_c_o=no 9836 $RM -r conftest 2>/dev/null 9837 mkdir conftest 9838 cd conftest 9839 mkdir out 9840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9841 9842 lt_compiler_flag="-o out/conftest2.$ac_objext" 9843 # Insert the option either (1) after the last *FLAGS variable, or 9844 # (2) before a word containing "conftest.", or (3) at the end. 9845 # Note that $ac_compile itself does not contain backslashes and begins 9846 # with a dollar sign (not a hyphen), so the echo should work correctly. 9847 lt_compile=`echo "$ac_compile" | $SED \ 9848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9850 -e 's:$: $lt_compiler_flag:'` 9851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9852 (eval "$lt_compile" 2>out/conftest.err) 9853 ac_status=$? 9854 cat out/conftest.err >&5 9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9856 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9857 then 9858 # The compiler can only warn and ignore the option if not recognized 9859 # So say no if there are warnings 9860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9863 lt_cv_prog_compiler_c_o=yes 9864 fi 9865 fi 9866 chmod u+w . 2>&5 9867 $RM conftest* 9868 # SGI C++ compiler will create directory out/ii_files/ for 9869 # template instantiation 9870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9871 $RM out/* && rmdir out 9872 cd .. 9873 $RM -r conftest 9874 $RM conftest* 9875 ;; 9876esac 9877fi 9878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9879printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9880 9881 9882 9883 9884 9885 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9887printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9888if test ${lt_cv_prog_compiler_c_o+y} 9889then : 9890 printf %s "(cached) " >&6 9891else case e in #( 9892 e) lt_cv_prog_compiler_c_o=no 9893 $RM -r conftest 2>/dev/null 9894 mkdir conftest 9895 cd conftest 9896 mkdir out 9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9898 9899 lt_compiler_flag="-o out/conftest2.$ac_objext" 9900 # Insert the option either (1) after the last *FLAGS variable, or 9901 # (2) before a word containing "conftest.", or (3) at the end. 9902 # Note that $ac_compile itself does not contain backslashes and begins 9903 # with a dollar sign (not a hyphen), so the echo should work correctly. 9904 lt_compile=`echo "$ac_compile" | $SED \ 9905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9907 -e 's:$: $lt_compiler_flag:'` 9908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9909 (eval "$lt_compile" 2>out/conftest.err) 9910 ac_status=$? 9911 cat out/conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9914 then 9915 # The compiler can only warn and ignore the option if not recognized 9916 # So say no if there are warnings 9917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9920 lt_cv_prog_compiler_c_o=yes 9921 fi 9922 fi 9923 chmod u+w . 2>&5 9924 $RM conftest* 9925 # SGI C++ compiler will create directory out/ii_files/ for 9926 # template instantiation 9927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9928 $RM out/* && rmdir out 9929 cd .. 9930 $RM -r conftest 9931 $RM conftest* 9932 ;; 9933esac 9934fi 9935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9936printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9937 9938 9939 9940 9941hard_links=nottested 9942if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9943 # do not overwrite the value of need_locks provided by the user 9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9945printf %s "checking if we can lock with hard links... " >&6; } 9946 hard_links=yes 9947 $RM conftest* 9948 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9949 touch conftest.a 9950 ln conftest.a conftest.b 2>&5 || hard_links=no 9951 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9953printf "%s\n" "$hard_links" >&6; } 9954 if test no = "$hard_links"; then 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9956printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9957 need_locks=warn 9958 fi 9959else 9960 need_locks=no 9961fi 9962 9963 9964 9965 9966 9967 9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9969printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9970 9971 runpath_var= 9972 allow_undefined_flag= 9973 always_export_symbols=no 9974 archive_cmds= 9975 archive_expsym_cmds= 9976 compiler_needs_object=no 9977 enable_shared_with_static_runtimes=no 9978 export_dynamic_flag_spec= 9979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9980 hardcode_automatic=no 9981 hardcode_direct=no 9982 hardcode_direct_absolute=no 9983 hardcode_libdir_flag_spec= 9984 hardcode_libdir_separator= 9985 hardcode_minus_L=no 9986 hardcode_shlibpath_var=unsupported 9987 inherit_rpath=no 9988 link_all_deplibs=unknown 9989 module_cmds= 9990 module_expsym_cmds= 9991 old_archive_from_new_cmds= 9992 old_archive_from_expsyms_cmds= 9993 thread_safe_flag_spec= 9994 whole_archive_flag_spec= 9995 # include_expsyms should be a list of space-separated symbols to be *always* 9996 # included in the symbol list 9997 include_expsyms= 9998 # exclude_expsyms can be an extended regexp of symbols to exclude 9999 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10000 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10001 # as well as any symbol that contains 'd'. 10002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10004 # platforms (ab)use it in PIC code, but their linkers get confused if 10005 # the symbol is explicitly referenced. Since portable code cannot 10006 # rely on this symbol name, it's probably fine to never include it in 10007 # preloaded symbol tables. 10008 # Exclude shared library initialization/finalization symbols. 10009 extract_expsyms_cmds= 10010 10011 case $host_os in 10012 cygwin* | mingw* | pw32* | cegcc*) 10013 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10014 # When not using gcc, we currently assume that we are using 10015 # Microsoft Visual C++ or Intel C++ Compiler. 10016 if test yes != "$GCC"; then 10017 with_gnu_ld=no 10018 fi 10019 ;; 10020 interix*) 10021 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10022 with_gnu_ld=yes 10023 ;; 10024 openbsd* | bitrig*) 10025 with_gnu_ld=no 10026 ;; 10027 esac 10028 10029 ld_shlibs=yes 10030 10031 # On some targets, GNU ld is compatible enough with the native linker 10032 # that we're better off using the native interface for both. 10033 lt_use_gnu_ld_interface=no 10034 if test yes = "$with_gnu_ld"; then 10035 case $host_os in 10036 aix*) 10037 # The AIX port of GNU ld has always aspired to compatibility 10038 # with the native linker. However, as the warning in the GNU ld 10039 # block says, versions before 2.19.5* couldn't really create working 10040 # shared libraries, regardless of the interface used. 10041 case `$LD -v 2>&1` in 10042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10044 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10045 *) 10046 lt_use_gnu_ld_interface=yes 10047 ;; 10048 esac 10049 ;; 10050 *) 10051 lt_use_gnu_ld_interface=yes 10052 ;; 10053 esac 10054 fi 10055 10056 if test yes = "$lt_use_gnu_ld_interface"; then 10057 # If archive_cmds runs LD, not CC, wlarc should be empty 10058 wlarc='$wl' 10059 10060 # Set some defaults for GNU ld with shared library support. These 10061 # are reset later if shared libraries are not supported. Putting them 10062 # here allows them to be overridden if necessary. 10063 runpath_var=LD_RUN_PATH 10064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10065 export_dynamic_flag_spec='$wl--export-dynamic' 10066 # ancient GNU ld didn't support --whole-archive et. al. 10067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10068 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10069 else 10070 whole_archive_flag_spec= 10071 fi 10072 supports_anon_versioning=no 10073 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10074 *GNU\ gold*) supports_anon_versioning=yes ;; 10075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10078 *\ 2.11.*) ;; # other 2.11 versions 10079 *) supports_anon_versioning=yes ;; 10080 esac 10081 10082 # See if GNU ld supports shared libraries. 10083 case $host_os in 10084 aix[3-9]*) 10085 # On AIX/PPC, the GNU linker is very broken 10086 if test ia64 != "$host_cpu"; then 10087 ld_shlibs=no 10088 cat <<_LT_EOF 1>&2 10089 10090*** Warning: the GNU linker, at least up to release 2.19, is reported 10091*** to be unable to reliably create shared libraries on AIX. 10092*** Therefore, libtool is disabling shared libraries support. If you 10093*** really care for shared libraries, you may want to install binutils 10094*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10095*** You will then need to restart the configuration process. 10096 10097_LT_EOF 10098 fi 10099 ;; 10100 10101 amigaos*) 10102 case $host_cpu in 10103 powerpc) 10104 # see comment about AmigaOS4 .so support 10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10106 archive_expsym_cmds='' 10107 ;; 10108 m68k) 10109 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)' 10110 hardcode_libdir_flag_spec='-L$libdir' 10111 hardcode_minus_L=yes 10112 ;; 10113 esac 10114 ;; 10115 10116 beos*) 10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10118 allow_undefined_flag=unsupported 10119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10120 # support --undefined. This deserves some investigation. FIXME 10121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10122 else 10123 ld_shlibs=no 10124 fi 10125 ;; 10126 10127 cygwin* | mingw* | pw32* | cegcc*) 10128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10129 # as there is no search path for DLLs. 10130 hardcode_libdir_flag_spec='-L$libdir' 10131 export_dynamic_flag_spec='$wl--export-all-symbols' 10132 allow_undefined_flag=unsupported 10133 always_export_symbols=no 10134 enable_shared_with_static_runtimes=yes 10135 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' 10136 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10137 10138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10140 # If the export-symbols file already is a .def file, use it as 10141 # is; otherwise, prepend EXPORTS... 10142 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10143 cp $export_symbols $output_objdir/$soname.def; 10144 else 10145 echo EXPORTS > $output_objdir/$soname.def; 10146 cat $export_symbols >> $output_objdir/$soname.def; 10147 fi~ 10148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10149 else 10150 ld_shlibs=no 10151 fi 10152 ;; 10153 10154 haiku*) 10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10156 link_all_deplibs=yes 10157 ;; 10158 10159 os2*) 10160 hardcode_libdir_flag_spec='-L$libdir' 10161 hardcode_minus_L=yes 10162 allow_undefined_flag=unsupported 10163 shrext_cmds=.dll 10164 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10165 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10166 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10167 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10168 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10169 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10170 emximp -o $lib $output_objdir/$libname.def' 10171 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10172 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10173 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10174 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10175 prefix_cmds="$SED"~ 10176 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10177 prefix_cmds="$prefix_cmds -e 1d"; 10178 fi~ 10179 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10180 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10181 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10182 emximp -o $lib $output_objdir/$libname.def' 10183 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10184 enable_shared_with_static_runtimes=yes 10185 file_list_spec='@' 10186 ;; 10187 10188 interix[3-9]*) 10189 hardcode_direct=no 10190 hardcode_shlibpath_var=no 10191 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10192 export_dynamic_flag_spec='$wl-E' 10193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10194 # Instead, shared libraries are loaded at an image base (0x10000000 by 10195 # default) and relocated if they conflict, which is a slow very memory 10196 # consuming and fragmenting process. To avoid this, we pick a random, 10197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10198 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10199 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10200 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' 10201 ;; 10202 10203 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10204 tmp_diet=no 10205 if test linux-dietlibc = "$host_os"; then 10206 case $cc_basename in 10207 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10208 esac 10209 fi 10210 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10211 && test no = "$tmp_diet" 10212 then 10213 tmp_addflag=' $pic_flag' 10214 tmp_sharedflag='-shared' 10215 case $cc_basename,$host_cpu in 10216 pgcc*) # Portland Group C compiler 10217 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' 10218 tmp_addflag=' $pic_flag' 10219 ;; 10220 pgf77* | pgf90* | pgf95* | pgfortran*) 10221 # Portland Group f77 and f90 compilers 10222 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' 10223 tmp_addflag=' $pic_flag -Mnomain' ;; 10224 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10225 tmp_addflag=' -i_dynamic' ;; 10226 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10227 tmp_addflag=' -i_dynamic -nofor_main' ;; 10228 ifc* | ifort*) # Intel Fortran compiler 10229 tmp_addflag=' -nofor_main' ;; 10230 lf95*) # Lahey Fortran 8.1 10231 whole_archive_flag_spec= 10232 tmp_sharedflag='--shared' ;; 10233 nagfor*) # NAGFOR 5.3 10234 tmp_sharedflag='-Wl,-shared' ;; 10235 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10236 tmp_sharedflag='-qmkshrobj' 10237 tmp_addflag= ;; 10238 nvcc*) # Cuda Compiler Driver 2.2 10239 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' 10240 compiler_needs_object=yes 10241 ;; 10242 esac 10243 case `$CC -V 2>&1 | $SED 5q` in 10244 *Sun\ C*) # Sun C 5.9 10245 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' 10246 compiler_needs_object=yes 10247 tmp_sharedflag='-G' ;; 10248 *Sun\ F*) # Sun Fortran 8.3 10249 tmp_sharedflag='-G' ;; 10250 esac 10251 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10252 10253 if test yes = "$supports_anon_versioning"; then 10254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10255 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10256 echo "local: *; };" >> $output_objdir/$libname.ver~ 10257 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10258 fi 10259 10260 case $cc_basename in 10261 tcc*) 10262 export_dynamic_flag_spec='-rdynamic' 10263 ;; 10264 xlf* | bgf* | bgxlf* | mpixlf*) 10265 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10266 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10268 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10269 if test yes = "$supports_anon_versioning"; then 10270 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10271 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10272 echo "local: *; };" >> $output_objdir/$libname.ver~ 10273 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10274 fi 10275 ;; 10276 esac 10277 else 10278 ld_shlibs=no 10279 fi 10280 ;; 10281 10282 netbsd*) 10283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10284 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10285 wlarc= 10286 else 10287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10288 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10289 fi 10290 ;; 10291 10292 solaris*) 10293 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10294 ld_shlibs=no 10295 cat <<_LT_EOF 1>&2 10296 10297*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10298*** create shared libraries on Solaris systems. Therefore, libtool 10299*** is disabling shared libraries support. We urge you to upgrade GNU 10300*** binutils to release 2.9.1 or newer. Another option is to modify 10301*** your PATH or compiler configuration so that the native linker is 10302*** used, and then restart. 10303 10304_LT_EOF 10305 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10307 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10308 else 10309 ld_shlibs=no 10310 fi 10311 ;; 10312 10313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10314 case `$LD -v 2>&1` in 10315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10316 ld_shlibs=no 10317 cat <<_LT_EOF 1>&2 10318 10319*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10320*** reliably create shared libraries on SCO systems. Therefore, libtool 10321*** is disabling shared libraries support. We urge you to upgrade GNU 10322*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10323*** your PATH or compiler configuration so that the native linker is 10324*** used, and then restart. 10325 10326_LT_EOF 10327 ;; 10328 *) 10329 # For security reasons, it is highly recommended that you always 10330 # use absolute paths for naming shared libraries, and exclude the 10331 # DT_RUNPATH tag from executables and libraries. But doing so 10332 # requires that you compile everything twice, which is a pain. 10333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10337 else 10338 ld_shlibs=no 10339 fi 10340 ;; 10341 esac 10342 ;; 10343 10344 sunos4*) 10345 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10346 wlarc= 10347 hardcode_direct=yes 10348 hardcode_shlibpath_var=no 10349 ;; 10350 10351 *) 10352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10355 else 10356 ld_shlibs=no 10357 fi 10358 ;; 10359 esac 10360 10361 if test no = "$ld_shlibs"; then 10362 runpath_var= 10363 hardcode_libdir_flag_spec= 10364 export_dynamic_flag_spec= 10365 whole_archive_flag_spec= 10366 fi 10367 else 10368 # PORTME fill in a description of your system's linker (not GNU ld) 10369 case $host_os in 10370 aix3*) 10371 allow_undefined_flag=unsupported 10372 always_export_symbols=yes 10373 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' 10374 # Note: this linker hardcodes the directories in LIBPATH if there 10375 # are no directories specified by -L. 10376 hardcode_minus_L=yes 10377 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10378 # Neither direct hardcoding nor static linking is supported with a 10379 # broken collect2. 10380 hardcode_direct=unsupported 10381 fi 10382 ;; 10383 10384 aix[4-9]*) 10385 if test ia64 = "$host_cpu"; then 10386 # On IA64, the linker does run time linking by default, so we don't 10387 # have to do anything special. 10388 aix_use_runtimelinking=no 10389 exp_sym_flag='-Bexport' 10390 no_entry_flag= 10391 else 10392 # If we're using GNU nm, then we don't want the "-C" option. 10393 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10394 # Without the "-l" option, or with the "-B" option, AIX nm treats 10395 # weak defined symbols like other global defined symbols, whereas 10396 # GNU nm marks them as "W". 10397 # While the 'weak' keyword is ignored in the Export File, we need 10398 # it in the Import File for the 'aix-soname' feature, so we have 10399 # to replace the "-B" option with "-P" for AIX nm. 10400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10401 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' 10402 else 10403 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' 10404 fi 10405 aix_use_runtimelinking=no 10406 10407 # Test if we are trying to use run time linking or normal 10408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10409 # have runtime linking enabled, and use it for executables. 10410 # For shared libraries, we enable/disable runtime linking 10411 # depending on the kind of the shared library created - 10412 # when "with_aix_soname,aix_use_runtimelinking" is: 10413 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10414 # "aix,yes" lib.so shared, rtl:yes, for executables 10415 # lib.a static archive 10416 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10417 # lib.a(lib.so.V) shared, rtl:no, for executables 10418 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10419 # lib.a(lib.so.V) shared, rtl:no 10420 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10421 # lib.a static archive 10422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10423 for ld_flag in $LDFLAGS; do 10424 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10425 aix_use_runtimelinking=yes 10426 break 10427 fi 10428 done 10429 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10430 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10431 # so we don't have lib.a shared libs to link our executables. 10432 # We have to force runtime linking in this case. 10433 aix_use_runtimelinking=yes 10434 LDFLAGS="$LDFLAGS -Wl,-brtl" 10435 fi 10436 ;; 10437 esac 10438 10439 exp_sym_flag='-bexport' 10440 no_entry_flag='-bnoentry' 10441 fi 10442 10443 # When large executables or shared objects are built, AIX ld can 10444 # have problems creating the table of contents. If linking a library 10445 # or program results in "error TOC overflow" add -mminimal-toc to 10446 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10447 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10448 10449 archive_cmds='' 10450 hardcode_direct=yes 10451 hardcode_direct_absolute=yes 10452 hardcode_libdir_separator=':' 10453 link_all_deplibs=yes 10454 file_list_spec='$wl-f,' 10455 case $with_aix_soname,$aix_use_runtimelinking in 10456 aix,*) ;; # traditional, no import file 10457 svr4,* | *,yes) # use import file 10458 # The Import File defines what to hardcode. 10459 hardcode_direct=no 10460 hardcode_direct_absolute=no 10461 ;; 10462 esac 10463 10464 if test yes = "$GCC"; then 10465 case $host_os in aix4.[012]|aix4.[012].*) 10466 # We only want to do this on AIX 4.2 and lower, the check 10467 # below for broken collect2 doesn't work under 4.3+ 10468 collect2name=`$CC -print-prog-name=collect2` 10469 if test -f "$collect2name" && 10470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10471 then 10472 # We have reworked collect2 10473 : 10474 else 10475 # We have old collect2 10476 hardcode_direct=unsupported 10477 # It fails to find uninstalled libraries when the uninstalled 10478 # path is not listed in the libpath. Setting hardcode_minus_L 10479 # to unsupported forces relinking 10480 hardcode_minus_L=yes 10481 hardcode_libdir_flag_spec='-L$libdir' 10482 hardcode_libdir_separator= 10483 fi 10484 ;; 10485 esac 10486 shared_flag='-shared' 10487 if test yes = "$aix_use_runtimelinking"; then 10488 shared_flag="$shared_flag "'$wl-G' 10489 fi 10490 # Need to ensure runtime linking is disabled for the traditional 10491 # shared library, or the linker may eventually find shared libraries 10492 # /with/ Import File - we do not want to mix them. 10493 shared_flag_aix='-shared' 10494 shared_flag_svr4='-shared $wl-G' 10495 else 10496 # not using gcc 10497 if test ia64 = "$host_cpu"; then 10498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10499 # chokes on -Wl,-G. The following line is correct: 10500 shared_flag='-G' 10501 else 10502 if test yes = "$aix_use_runtimelinking"; then 10503 shared_flag='$wl-G' 10504 else 10505 shared_flag='$wl-bM:SRE' 10506 fi 10507 shared_flag_aix='$wl-bM:SRE' 10508 shared_flag_svr4='$wl-G' 10509 fi 10510 fi 10511 10512 export_dynamic_flag_spec='$wl-bexpall' 10513 # It seems that -bexpall does not export symbols beginning with 10514 # underscore (_), so it is better to generate a list of symbols to export. 10515 always_export_symbols=yes 10516 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10517 # Warning - without using the other runtime loading flags (-brtl), 10518 # -berok will link without error, but may produce a broken library. 10519 allow_undefined_flag='-berok' 10520 # Determine the default libpath from the value encoded in an 10521 # empty executable. 10522 if test set = "${lt_cv_aix_libpath+set}"; then 10523 aix_libpath=$lt_cv_aix_libpath 10524else 10525 if test ${lt_cv_aix_libpath_+y} 10526then : 10527 printf %s "(cached) " >&6 10528else case e in #( 10529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531 10532int 10533main (void) 10534{ 10535 10536 ; 10537 return 0; 10538} 10539_ACEOF 10540if ac_fn_c_try_link "$LINENO" 10541then : 10542 10543 lt_aix_libpath_sed=' 10544 /Import File Strings/,/^$/ { 10545 /^0/ { 10546 s/^0 *\([^ ]*\) *$/\1/ 10547 p 10548 } 10549 }' 10550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10551 # Check for a 64-bit object if we didn't find anything. 10552 if test -z "$lt_cv_aix_libpath_"; then 10553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10554 fi 10555fi 10556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10557 conftest$ac_exeext conftest.$ac_ext 10558 if test -z "$lt_cv_aix_libpath_"; then 10559 lt_cv_aix_libpath_=/usr/lib:/lib 10560 fi 10561 ;; 10562esac 10563fi 10564 10565 aix_libpath=$lt_cv_aix_libpath_ 10566fi 10567 10568 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10569 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 10570 else 10571 if test ia64 = "$host_cpu"; then 10572 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10573 allow_undefined_flag="-z nodefs" 10574 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" 10575 else 10576 # Determine the default libpath from the value encoded in an 10577 # empty executable. 10578 if test set = "${lt_cv_aix_libpath+set}"; then 10579 aix_libpath=$lt_cv_aix_libpath 10580else 10581 if test ${lt_cv_aix_libpath_+y} 10582then : 10583 printf %s "(cached) " >&6 10584else case e in #( 10585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10586/* end confdefs.h. */ 10587 10588int 10589main (void) 10590{ 10591 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_link "$LINENO" 10597then : 10598 10599 lt_aix_libpath_sed=' 10600 /Import File Strings/,/^$/ { 10601 /^0/ { 10602 s/^0 *\([^ ]*\) *$/\1/ 10603 p 10604 } 10605 }' 10606 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10607 # Check for a 64-bit object if we didn't find anything. 10608 if test -z "$lt_cv_aix_libpath_"; then 10609 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10610 fi 10611fi 10612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10613 conftest$ac_exeext conftest.$ac_ext 10614 if test -z "$lt_cv_aix_libpath_"; then 10615 lt_cv_aix_libpath_=/usr/lib:/lib 10616 fi 10617 ;; 10618esac 10619fi 10620 10621 aix_libpath=$lt_cv_aix_libpath_ 10622fi 10623 10624 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10625 # Warning - without using the other run time loading flags, 10626 # -berok will link without error, but may produce a broken library. 10627 no_undefined_flag=' $wl-bernotok' 10628 allow_undefined_flag=' $wl-berok' 10629 if test yes = "$with_gnu_ld"; then 10630 # We only use this code for GNU lds that support --whole-archive. 10631 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10632 else 10633 # Exported symbols can be pulled into shared objects from archives 10634 whole_archive_flag_spec='$convenience' 10635 fi 10636 archive_cmds_need_lc=yes 10637 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10638 # -brtl affects multiple linker settings, -berok does not and is overridden later 10639 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10640 if test svr4 != "$with_aix_soname"; then 10641 # This is similar to how AIX traditionally builds its shared libraries. 10642 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' 10643 fi 10644 if test aix != "$with_aix_soname"; then 10645 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' 10646 else 10647 # used by -dlpreopen to get the symbols 10648 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10649 fi 10650 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10651 fi 10652 fi 10653 ;; 10654 10655 amigaos*) 10656 case $host_cpu in 10657 powerpc) 10658 # see comment about AmigaOS4 .so support 10659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10660 archive_expsym_cmds='' 10661 ;; 10662 m68k) 10663 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)' 10664 hardcode_libdir_flag_spec='-L$libdir' 10665 hardcode_minus_L=yes 10666 ;; 10667 esac 10668 ;; 10669 10670 bsdi[45]*) 10671 export_dynamic_flag_spec=-rdynamic 10672 ;; 10673 10674 cygwin* | mingw* | pw32* | cegcc*) 10675 # When not using gcc, we currently assume that we are using 10676 # Microsoft Visual C++ or Intel C++ Compiler. 10677 # hardcode_libdir_flag_spec is actually meaningless, as there is 10678 # no search path for DLLs. 10679 case $cc_basename in 10680 cl* | icl*) 10681 # Native MSVC or ICC 10682 hardcode_libdir_flag_spec=' ' 10683 allow_undefined_flag=unsupported 10684 always_export_symbols=yes 10685 file_list_spec='@' 10686 # Tell ltmain to make .lib files, not .a files. 10687 libext=lib 10688 # Tell ltmain to make .dll files, not .so files. 10689 shrext_cmds=.dll 10690 # FIXME: Setting linknames here is a bad hack. 10691 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10692 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10693 cp "$export_symbols" "$output_objdir/$soname.def"; 10694 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10695 else 10696 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10697 fi~ 10698 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10699 linknames=' 10700 # The linker will not automatically build a static lib if we build a DLL. 10701 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10702 enable_shared_with_static_runtimes=yes 10703 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10705 # Don't use ranlib 10706 old_postinstall_cmds='chmod 644 $oldlib' 10707 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10708 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10709 case $lt_outputfile in 10710 *.exe|*.EXE) ;; 10711 *) 10712 lt_outputfile=$lt_outputfile.exe 10713 lt_tool_outputfile=$lt_tool_outputfile.exe 10714 ;; 10715 esac~ 10716 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10717 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10718 $RM "$lt_outputfile.manifest"; 10719 fi' 10720 ;; 10721 *) 10722 # Assume MSVC and ICC wrapper 10723 hardcode_libdir_flag_spec=' ' 10724 allow_undefined_flag=unsupported 10725 # Tell ltmain to make .lib files, not .a files. 10726 libext=lib 10727 # Tell ltmain to make .dll files, not .so files. 10728 shrext_cmds=.dll 10729 # FIXME: Setting linknames here is a bad hack. 10730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10731 # The linker will automatically build a .lib file if we build a DLL. 10732 old_archive_from_new_cmds='true' 10733 # FIXME: Should let the user specify the lib program. 10734 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10735 enable_shared_with_static_runtimes=yes 10736 ;; 10737 esac 10738 ;; 10739 10740 darwin* | rhapsody*) 10741 10742 10743 archive_cmds_need_lc=no 10744 hardcode_direct=no 10745 hardcode_automatic=yes 10746 hardcode_shlibpath_var=unsupported 10747 if test yes = "$lt_cv_ld_force_load"; then 10748 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\"`' 10749 10750 else 10751 whole_archive_flag_spec='' 10752 fi 10753 link_all_deplibs=yes 10754 allow_undefined_flag=$_lt_dar_allow_undefined 10755 case $cc_basename in 10756 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10757 *) _lt_dar_can_shared=$GCC ;; 10758 esac 10759 if test yes = "$_lt_dar_can_shared"; then 10760 output_verbose_link_cmd=func_echo_all 10761 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10762 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10763 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" 10764 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" 10765 10766 else 10767 ld_shlibs=no 10768 fi 10769 10770 ;; 10771 10772 dgux*) 10773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10774 hardcode_libdir_flag_spec='-L$libdir' 10775 hardcode_shlibpath_var=no 10776 ;; 10777 10778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10779 # support. Future versions do this automatically, but an explicit c++rt0.o 10780 # does not break anything, and helps significantly (at the cost of a little 10781 # extra space). 10782 freebsd2.2*) 10783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10784 hardcode_libdir_flag_spec='-R$libdir' 10785 hardcode_direct=yes 10786 hardcode_shlibpath_var=no 10787 ;; 10788 10789 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10790 freebsd2.*) 10791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10792 hardcode_direct=yes 10793 hardcode_minus_L=yes 10794 hardcode_shlibpath_var=no 10795 ;; 10796 10797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10798 freebsd* | dragonfly* | midnightbsd*) 10799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10800 hardcode_libdir_flag_spec='-R$libdir' 10801 hardcode_direct=yes 10802 hardcode_shlibpath_var=no 10803 ;; 10804 10805 hpux9*) 10806 if test yes = "$GCC"; then 10807 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' 10808 else 10809 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' 10810 fi 10811 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10812 hardcode_libdir_separator=: 10813 hardcode_direct=yes 10814 10815 # hardcode_minus_L: Not really in the search PATH, 10816 # but as the default location of the library. 10817 hardcode_minus_L=yes 10818 export_dynamic_flag_spec='$wl-E' 10819 ;; 10820 10821 hpux10*) 10822 if test yes,no = "$GCC,$with_gnu_ld"; then 10823 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10824 else 10825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10826 fi 10827 if test no = "$with_gnu_ld"; then 10828 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10829 hardcode_libdir_separator=: 10830 hardcode_direct=yes 10831 hardcode_direct_absolute=yes 10832 export_dynamic_flag_spec='$wl-E' 10833 # hardcode_minus_L: Not really in the search PATH, 10834 # but as the default location of the library. 10835 hardcode_minus_L=yes 10836 fi 10837 ;; 10838 10839 hpux11*) 10840 if test yes,no = "$GCC,$with_gnu_ld"; then 10841 case $host_cpu in 10842 hppa*64*) 10843 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10844 ;; 10845 ia64*) 10846 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10847 ;; 10848 *) 10849 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10850 ;; 10851 esac 10852 else 10853 case $host_cpu in 10854 hppa*64*) 10855 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10856 ;; 10857 ia64*) 10858 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10859 ;; 10860 *) 10861 10862 # Older versions of the 11.00 compiler do not understand -b yet 10863 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10865printf %s "checking if $CC understands -b... " >&6; } 10866if test ${lt_cv_prog_compiler__b+y} 10867then : 10868 printf %s "(cached) " >&6 10869else case e in #( 10870 e) lt_cv_prog_compiler__b=no 10871 save_LDFLAGS=$LDFLAGS 10872 LDFLAGS="$LDFLAGS -b" 10873 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10875 # The linker can only warn and ignore the option if not recognized 10876 # So say no if there are warnings 10877 if test -s conftest.err; then 10878 # Append any errors to the config.log. 10879 cat conftest.err 1>&5 10880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10882 if diff conftest.exp conftest.er2 >/dev/null; then 10883 lt_cv_prog_compiler__b=yes 10884 fi 10885 else 10886 lt_cv_prog_compiler__b=yes 10887 fi 10888 fi 10889 $RM -r conftest* 10890 LDFLAGS=$save_LDFLAGS 10891 ;; 10892esac 10893fi 10894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10895printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10896 10897if test yes = "$lt_cv_prog_compiler__b"; then 10898 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10899else 10900 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10901fi 10902 10903 ;; 10904 esac 10905 fi 10906 if test no = "$with_gnu_ld"; then 10907 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10908 hardcode_libdir_separator=: 10909 10910 case $host_cpu in 10911 hppa*64*|ia64*) 10912 hardcode_direct=no 10913 hardcode_shlibpath_var=no 10914 ;; 10915 *) 10916 hardcode_direct=yes 10917 hardcode_direct_absolute=yes 10918 export_dynamic_flag_spec='$wl-E' 10919 10920 # hardcode_minus_L: Not really in the search PATH, 10921 # but as the default location of the library. 10922 hardcode_minus_L=yes 10923 ;; 10924 esac 10925 fi 10926 ;; 10927 10928 irix5* | irix6* | nonstopux*) 10929 if test yes = "$GCC"; then 10930 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' 10931 # Try to use the -exported_symbol ld option, if it does not 10932 # work, assume that -exports_file does not work either and 10933 # implicitly export all symbols. 10934 # This should be the same for all languages, so no per-tag cache variable. 10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10936printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10937if test ${lt_cv_irix_exported_symbol+y} 10938then : 10939 printf %s "(cached) " >&6 10940else case e in #( 10941 e) save_LDFLAGS=$LDFLAGS 10942 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944/* end confdefs.h. */ 10945int foo (void) { return 0; } 10946_ACEOF 10947if ac_fn_c_try_link "$LINENO" 10948then : 10949 lt_cv_irix_exported_symbol=yes 10950else case e in #( 10951 e) lt_cv_irix_exported_symbol=no ;; 10952esac 10953fi 10954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10955 conftest$ac_exeext conftest.$ac_ext 10956 LDFLAGS=$save_LDFLAGS ;; 10957esac 10958fi 10959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10960printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10961 if test yes = "$lt_cv_irix_exported_symbol"; then 10962 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' 10963 fi 10964 else 10965 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' 10966 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' 10967 fi 10968 archive_cmds_need_lc='no' 10969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10970 hardcode_libdir_separator=: 10971 inherit_rpath=yes 10972 link_all_deplibs=yes 10973 ;; 10974 10975 linux*) 10976 case $cc_basename in 10977 tcc*) 10978 # Fabrice Bellard et al's Tiny C Compiler 10979 ld_shlibs=yes 10980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10981 ;; 10982 esac 10983 ;; 10984 10985 netbsd*) 10986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10988 else 10989 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10990 fi 10991 hardcode_libdir_flag_spec='-R$libdir' 10992 hardcode_direct=yes 10993 hardcode_shlibpath_var=no 10994 ;; 10995 10996 newsos6) 10997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10998 hardcode_direct=yes 10999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11000 hardcode_libdir_separator=: 11001 hardcode_shlibpath_var=no 11002 ;; 11003 11004 *nto* | *qnx*) 11005 ;; 11006 11007 openbsd* | bitrig*) 11008 if test -f /usr/libexec/ld.so; then 11009 hardcode_direct=yes 11010 hardcode_shlibpath_var=no 11011 hardcode_direct_absolute=yes 11012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11014 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11015 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11016 export_dynamic_flag_spec='$wl-E' 11017 else 11018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11019 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11020 fi 11021 else 11022 ld_shlibs=no 11023 fi 11024 ;; 11025 11026 os2*) 11027 hardcode_libdir_flag_spec='-L$libdir' 11028 hardcode_minus_L=yes 11029 allow_undefined_flag=unsupported 11030 shrext_cmds=.dll 11031 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11034 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11035 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11037 emximp -o $lib $output_objdir/$libname.def' 11038 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11039 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11040 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11041 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11042 prefix_cmds="$SED"~ 11043 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11044 prefix_cmds="$prefix_cmds -e 1d"; 11045 fi~ 11046 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11047 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11048 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11049 emximp -o $lib $output_objdir/$libname.def' 11050 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11051 enable_shared_with_static_runtimes=yes 11052 file_list_spec='@' 11053 ;; 11054 11055 osf3*) 11056 if test yes = "$GCC"; then 11057 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11058 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' 11059 else 11060 allow_undefined_flag=' -expect_unresolved \*' 11061 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' 11062 fi 11063 archive_cmds_need_lc='no' 11064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11065 hardcode_libdir_separator=: 11066 ;; 11067 11068 osf4* | osf5*) # as osf3* with the addition of -msym flag 11069 if test yes = "$GCC"; then 11070 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11071 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' 11072 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11073 else 11074 allow_undefined_flag=' -expect_unresolved \*' 11075 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' 11076 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~ 11077 $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' 11078 11079 # Both c and cxx compiler support -rpath directly 11080 hardcode_libdir_flag_spec='-rpath $libdir' 11081 fi 11082 archive_cmds_need_lc='no' 11083 hardcode_libdir_separator=: 11084 ;; 11085 11086 solaris*) 11087 no_undefined_flag=' -z defs' 11088 if test yes = "$GCC"; then 11089 wlarc='$wl' 11090 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11092 $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' 11093 else 11094 case `$CC -V 2>&1` in 11095 *"Compilers 5.0"*) 11096 wlarc='' 11097 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11099 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11100 ;; 11101 *) 11102 wlarc='$wl' 11103 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11104 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11105 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11106 ;; 11107 esac 11108 fi 11109 hardcode_libdir_flag_spec='-R$libdir' 11110 hardcode_shlibpath_var=no 11111 case $host_os in 11112 solaris2.[0-5] | solaris2.[0-5].*) ;; 11113 *) 11114 # The compiler driver will combine and reorder linker options, 11115 # but understands '-z linker_flag'. GCC discards it without '$wl', 11116 # but is careful enough not to reorder. 11117 # Supported since Solaris 2.6 (maybe 2.5.1?) 11118 if test yes = "$GCC"; then 11119 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11120 else 11121 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11122 fi 11123 ;; 11124 esac 11125 link_all_deplibs=yes 11126 ;; 11127 11128 sunos4*) 11129 if test sequent = "$host_vendor"; then 11130 # Use $CC to link under sequent, because it throws in some extra .o 11131 # files that make .init and .fini sections work. 11132 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11133 else 11134 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11135 fi 11136 hardcode_libdir_flag_spec='-L$libdir' 11137 hardcode_direct=yes 11138 hardcode_minus_L=yes 11139 hardcode_shlibpath_var=no 11140 ;; 11141 11142 sysv4) 11143 case $host_vendor in 11144 sni) 11145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11146 hardcode_direct=yes # is this really true??? 11147 ;; 11148 siemens) 11149 ## LD is ld it makes a PLAMLIB 11150 ## CC just makes a GrossModule. 11151 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11152 reload_cmds='$CC -r -o $output$reload_objs' 11153 hardcode_direct=no 11154 ;; 11155 motorola) 11156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11157 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11158 ;; 11159 esac 11160 runpath_var='LD_RUN_PATH' 11161 hardcode_shlibpath_var=no 11162 ;; 11163 11164 sysv4.3*) 11165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11166 hardcode_shlibpath_var=no 11167 export_dynamic_flag_spec='-Bexport' 11168 ;; 11169 11170 sysv4*MP*) 11171 if test -d /usr/nec; then 11172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11173 hardcode_shlibpath_var=no 11174 runpath_var=LD_RUN_PATH 11175 hardcode_runpath_var=yes 11176 ld_shlibs=yes 11177 fi 11178 ;; 11179 11180 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11181 no_undefined_flag='$wl-z,text' 11182 archive_cmds_need_lc=no 11183 hardcode_shlibpath_var=no 11184 runpath_var='LD_RUN_PATH' 11185 11186 if test yes = "$GCC"; then 11187 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11188 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11189 else 11190 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11191 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11192 fi 11193 ;; 11194 11195 sysv5* | sco3.2v5* | sco5v6*) 11196 # Note: We CANNOT use -z defs as we might desire, because we do not 11197 # link with -lc, and that would cause any symbols used from libc to 11198 # always be unresolved, which means just about no library would 11199 # ever link correctly. If we're not using GNU ld we use -z text 11200 # though, which does catch some bad symbols but isn't as heavy-handed 11201 # as -z defs. 11202 no_undefined_flag='$wl-z,text' 11203 allow_undefined_flag='$wl-z,nodefs' 11204 archive_cmds_need_lc=no 11205 hardcode_shlibpath_var=no 11206 hardcode_libdir_flag_spec='$wl-R,$libdir' 11207 hardcode_libdir_separator=':' 11208 link_all_deplibs=yes 11209 export_dynamic_flag_spec='$wl-Bexport' 11210 runpath_var='LD_RUN_PATH' 11211 11212 if test yes = "$GCC"; then 11213 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11214 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11215 else 11216 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11217 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11218 fi 11219 ;; 11220 11221 uts4*) 11222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11223 hardcode_libdir_flag_spec='-L$libdir' 11224 hardcode_shlibpath_var=no 11225 ;; 11226 11227 *) 11228 ld_shlibs=no 11229 ;; 11230 esac 11231 11232 if test sni = "$host_vendor"; then 11233 case $host in 11234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11235 export_dynamic_flag_spec='$wl-Blargedynsym' 11236 ;; 11237 esac 11238 fi 11239 fi 11240 11241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11242printf "%s\n" "$ld_shlibs" >&6; } 11243test no = "$ld_shlibs" && can_build_shared=no 11244 11245with_gnu_ld=$with_gnu_ld 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261# 11262# Do we need to explicitly link libc? 11263# 11264case "x$archive_cmds_need_lc" in 11265x|xyes) 11266 # Assume -lc should be added 11267 archive_cmds_need_lc=yes 11268 11269 if test yes,yes = "$GCC,$enable_shared"; then 11270 case $archive_cmds in 11271 *'~'*) 11272 # FIXME: we may have to deal with multi-command sequences. 11273 ;; 11274 '$CC '*) 11275 # Test whether the compiler implicitly links with -lc since on some 11276 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11277 # to ld, don't add -lc before -lgcc. 11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11279printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11280if test ${lt_cv_archive_cmds_need_lc+y} 11281then : 11282 printf %s "(cached) " >&6 11283else case e in #( 11284 e) $RM conftest* 11285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11286 11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11288 (eval $ac_compile) 2>&5 11289 ac_status=$? 11290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11291 test $ac_status = 0; } 2>conftest.err; then 11292 soname=conftest 11293 lib=conftest 11294 libobjs=conftest.$ac_objext 11295 deplibs= 11296 wl=$lt_prog_compiler_wl 11297 pic_flag=$lt_prog_compiler_pic 11298 compiler_flags=-v 11299 linker_flags=-v 11300 verstring= 11301 output_objdir=. 11302 libname=conftest 11303 lt_save_allow_undefined_flag=$allow_undefined_flag 11304 allow_undefined_flag= 11305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11306 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11307 ac_status=$? 11308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11309 test $ac_status = 0; } 11310 then 11311 lt_cv_archive_cmds_need_lc=no 11312 else 11313 lt_cv_archive_cmds_need_lc=yes 11314 fi 11315 allow_undefined_flag=$lt_save_allow_undefined_flag 11316 else 11317 cat conftest.err 1>&5 11318 fi 11319 $RM conftest* 11320 ;; 11321esac 11322fi 11323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11324printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11325 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11326 ;; 11327 esac 11328 fi 11329 ;; 11330esac 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11484printf %s "checking dynamic linker characteristics... " >&6; } 11485 11486if test yes = "$GCC"; then 11487 case $host_os in 11488 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11489 *) lt_awk_arg='/^libraries:/' ;; 11490 esac 11491 case $host_os in 11492 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11493 *) lt_sed_strip_eq='s|=/|/|g' ;; 11494 esac 11495 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11496 case $lt_search_path_spec in 11497 *\;*) 11498 # if the path contains ";" then we assume it to be the separator 11499 # otherwise default to the standard path separator (i.e. ":") - it is 11500 # assumed that no part of a normal pathname contains ";" but that should 11501 # okay in the real world where ";" in dirpaths is itself problematic. 11502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11503 ;; 11504 *) 11505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11506 ;; 11507 esac 11508 # Ok, now we have the path, separated by spaces, we can step through it 11509 # and add multilib dir if necessary... 11510 lt_tmp_lt_search_path_spec= 11511 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11512 # ...but if some path component already ends with the multilib dir we assume 11513 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11514 case "$lt_multi_os_dir; $lt_search_path_spec " in 11515 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11516 lt_multi_os_dir= 11517 ;; 11518 esac 11519 for lt_sys_path in $lt_search_path_spec; do 11520 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11522 elif test -n "$lt_multi_os_dir"; then 11523 test -d "$lt_sys_path" && \ 11524 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11525 fi 11526 done 11527 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11528BEGIN {RS = " "; FS = "/|\n";} { 11529 lt_foo = ""; 11530 lt_count = 0; 11531 for (lt_i = NF; lt_i > 0; lt_i--) { 11532 if ($lt_i != "" && $lt_i != ".") { 11533 if ($lt_i == "..") { 11534 lt_count++; 11535 } else { 11536 if (lt_count == 0) { 11537 lt_foo = "/" $lt_i lt_foo; 11538 } else { 11539 lt_count--; 11540 } 11541 } 11542 } 11543 } 11544 if (lt_foo != "") { lt_freq[lt_foo]++; } 11545 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11546}'` 11547 # AWK program above erroneously prepends '/' to C:/dos/paths 11548 # for these hosts. 11549 case $host_os in 11550 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11551 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11552 esac 11553 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11554else 11555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11556fi 11557library_names_spec= 11558libname_spec='lib$name' 11559soname_spec= 11560shrext_cmds=.so 11561postinstall_cmds= 11562postuninstall_cmds= 11563finish_cmds= 11564finish_eval= 11565shlibpath_var= 11566shlibpath_overrides_runpath=unknown 11567version_type=none 11568dynamic_linker="$host_os ld.so" 11569sys_lib_dlsearch_path_spec="/lib /usr/lib" 11570need_lib_prefix=unknown 11571hardcode_into_libs=no 11572 11573# when you set need_version to no, make sure it does not cause -set_version 11574# flags to be left without arguments 11575need_version=unknown 11576 11577 11578 11579case $host_os in 11580aix3*) 11581 version_type=linux # correct to gnu/linux during the next big refactor 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11583 shlibpath_var=LIBPATH 11584 11585 # AIX 3 has no versioning support, so we append a major version to the name. 11586 soname_spec='$libname$release$shared_ext$major' 11587 ;; 11588 11589aix[4-9]*) 11590 version_type=linux # correct to gnu/linux during the next big refactor 11591 need_lib_prefix=no 11592 need_version=no 11593 hardcode_into_libs=yes 11594 if test ia64 = "$host_cpu"; then 11595 # AIX 5 supports IA64 11596 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 else 11599 # With GCC up to 2.95.x, collect2 would create an import file 11600 # for dependence libraries. The import file would start with 11601 # the line '#! .'. This would cause the generated library to 11602 # depend on '.', always an invalid library. This was fixed in 11603 # development snapshots of GCC prior to 3.0. 11604 case $host_os in 11605 aix4 | aix4.[01] | aix4.[01].*) 11606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11607 echo ' yes ' 11608 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11609 : 11610 else 11611 can_build_shared=no 11612 fi 11613 ;; 11614 esac 11615 # Using Import Files as archive members, it is possible to support 11616 # filename-based versioning of shared library archives on AIX. While 11617 # this would work for both with and without runtime linking, it will 11618 # prevent static linking of such archives. So we do filename-based 11619 # shared library versioning with .so extension only, which is used 11620 # when both runtime linking and shared linking is enabled. 11621 # Unfortunately, runtime linking may impact performance, so we do 11622 # not want this to be the default eventually. Also, we use the 11623 # versioned .so libs for executables only if there is the -brtl 11624 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11625 # To allow for filename-based versioning support, we need to create 11626 # libNAME.so.V as an archive file, containing: 11627 # *) an Import File, referring to the versioned filename of the 11628 # archive as well as the shared archive member, telling the 11629 # bitwidth (32 or 64) of that shared object, and providing the 11630 # list of exported symbols of that shared object, eventually 11631 # decorated with the 'weak' keyword 11632 # *) the shared object with the F_LOADONLY flag set, to really avoid 11633 # it being seen by the linker. 11634 # At run time we better use the real file rather than another symlink, 11635 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11636 11637 case $with_aix_soname,$aix_use_runtimelinking in 11638 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11639 # soname into executable. Probably we can add versioning support to 11640 # collect2, so additional links can be useful in future. 11641 aix,yes) # traditional libtool 11642 dynamic_linker='AIX unversionable lib.so' 11643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11644 # instead of lib<name>.a to let people know that these are not 11645 # typical AIX shared libraries. 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11647 ;; 11648 aix,no) # traditional AIX only 11649 dynamic_linker='AIX lib.a(lib.so.V)' 11650 # We preserve .a as extension for shared libraries through AIX4.2 11651 # and later when we are not doing run time linking. 11652 library_names_spec='$libname$release.a $libname.a' 11653 soname_spec='$libname$release$shared_ext$major' 11654 ;; 11655 svr4,*) # full svr4 only 11656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11658 # We do not specify a path in Import Files, so LIBPATH fires. 11659 shlibpath_overrides_runpath=yes 11660 ;; 11661 *,yes) # both, prefer svr4 11662 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11663 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11664 # unpreferred sharedlib libNAME.a needs extra handling 11665 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"' 11666 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"' 11667 # We do not specify a path in Import Files, so LIBPATH fires. 11668 shlibpath_overrides_runpath=yes 11669 ;; 11670 *,no) # both, prefer aix 11671 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11672 library_names_spec='$libname$release.a $libname.a' 11673 soname_spec='$libname$release$shared_ext$major' 11674 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11675 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)' 11676 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"' 11677 ;; 11678 esac 11679 shlibpath_var=LIBPATH 11680 fi 11681 ;; 11682 11683amigaos*) 11684 case $host_cpu in 11685 powerpc) 11686 # Since July 2007 AmigaOS4 officially supports .so libraries. 11687 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11689 ;; 11690 m68k) 11691 library_names_spec='$libname.ixlibrary $libname.a' 11692 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11693 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' 11694 ;; 11695 esac 11696 ;; 11697 11698beos*) 11699 library_names_spec='$libname$shared_ext' 11700 dynamic_linker="$host_os ld.so" 11701 shlibpath_var=LIBRARY_PATH 11702 ;; 11703 11704bsdi[45]*) 11705 version_type=linux # correct to gnu/linux during the next big refactor 11706 need_version=no 11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11708 soname_spec='$libname$release$shared_ext$major' 11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11713 # the default ld.so.conf also contains /usr/contrib/lib and 11714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11715 # libtool to hard-code these into programs 11716 ;; 11717 11718cygwin* | mingw* | pw32* | cegcc*) 11719 version_type=windows 11720 shrext_cmds=.dll 11721 need_version=no 11722 need_lib_prefix=no 11723 11724 case $GCC,$cc_basename in 11725 yes,*) 11726 # gcc 11727 library_names_spec='$libname.dll.a' 11728 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11729 postinstall_cmds='base_file=`basename \$file`~ 11730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11731 dldir=$destdir/`dirname \$dlpath`~ 11732 test -d \$dldir || mkdir -p \$dldir~ 11733 $install_prog $dir/$dlname \$dldir/$dlname~ 11734 chmod a+x \$dldir/$dlname~ 11735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11737 fi' 11738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11739 dlpath=$dir/\$dldll~ 11740 $RM \$dlpath' 11741 shlibpath_overrides_runpath=yes 11742 11743 case $host_os in 11744 cygwin*) 11745 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11746 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11747 11748 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11749 ;; 11750 mingw* | cegcc*) 11751 # MinGW DLLs use traditional 'lib' prefix 11752 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11753 ;; 11754 pw32*) 11755 # pw32 DLLs use 'pw' prefix rather than 'lib' 11756 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11757 ;; 11758 esac 11759 dynamic_linker='Win32 ld.exe' 11760 ;; 11761 11762 *,cl* | *,icl*) 11763 # Native MSVC or ICC 11764 libname_spec='$name' 11765 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11766 library_names_spec='$libname.dll.lib' 11767 11768 case $build_os in 11769 mingw*) 11770 sys_lib_search_path_spec= 11771 lt_save_ifs=$IFS 11772 IFS=';' 11773 for lt_path in $LIB 11774 do 11775 IFS=$lt_save_ifs 11776 # Let DOS variable expansion print the short 8.3 style file name. 11777 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11778 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11779 done 11780 IFS=$lt_save_ifs 11781 # Convert to MSYS style. 11782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11783 ;; 11784 cygwin*) 11785 # Convert to unix form, then to dos form, then back to unix form 11786 # but this time dos style (no spaces!) so that the unix form looks 11787 # like /cygdrive/c/PROGRA~1:/cygdr... 11788 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11789 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11790 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11791 ;; 11792 *) 11793 sys_lib_search_path_spec=$LIB 11794 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11795 # It is most probably a Windows format PATH. 11796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11797 else 11798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11799 fi 11800 # FIXME: find the short name or the path components, as spaces are 11801 # common. (e.g. "Program Files" -> "PROGRA~1") 11802 ;; 11803 esac 11804 11805 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11806 postinstall_cmds='base_file=`basename \$file`~ 11807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11808 dldir=$destdir/`dirname \$dlpath`~ 11809 test -d \$dldir || mkdir -p \$dldir~ 11810 $install_prog $dir/$dlname \$dldir/$dlname' 11811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11812 dlpath=$dir/\$dldll~ 11813 $RM \$dlpath' 11814 shlibpath_overrides_runpath=yes 11815 dynamic_linker='Win32 link.exe' 11816 ;; 11817 11818 *) 11819 # Assume MSVC and ICC wrapper 11820 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11821 dynamic_linker='Win32 ld.exe' 11822 ;; 11823 esac 11824 # FIXME: first we should search . and the directory the executable is in 11825 shlibpath_var=PATH 11826 ;; 11827 11828darwin* | rhapsody*) 11829 dynamic_linker="$host_os dyld" 11830 version_type=darwin 11831 need_lib_prefix=no 11832 need_version=no 11833 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11834 soname_spec='$libname$release$major$shared_ext' 11835 shlibpath_overrides_runpath=yes 11836 shlibpath_var=DYLD_LIBRARY_PATH 11837 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11838 11839 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11841 ;; 11842 11843dgux*) 11844 version_type=linux # correct to gnu/linux during the next big refactor 11845 need_lib_prefix=no 11846 need_version=no 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11848 soname_spec='$libname$release$shared_ext$major' 11849 shlibpath_var=LD_LIBRARY_PATH 11850 ;; 11851 11852freebsd* | dragonfly* | midnightbsd*) 11853 # DragonFly does not have aout. When/if they implement a new 11854 # versioning mechanism, adjust this. 11855 if test -x /usr/bin/objformat; then 11856 objformat=`/usr/bin/objformat` 11857 else 11858 case $host_os in 11859 freebsd[23].*) objformat=aout ;; 11860 *) objformat=elf ;; 11861 esac 11862 fi 11863 # Handle Gentoo/FreeBSD as it was Linux 11864 case $host_vendor in 11865 gentoo) 11866 version_type=linux ;; 11867 *) 11868 version_type=freebsd-$objformat ;; 11869 esac 11870 11871 case $version_type in 11872 freebsd-elf*) 11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11874 soname_spec='$libname$release$shared_ext$major' 11875 need_version=no 11876 need_lib_prefix=no 11877 ;; 11878 freebsd-*) 11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11880 need_version=yes 11881 ;; 11882 linux) 11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11884 soname_spec='${libname}${release}${shared_ext}$major' 11885 need_lib_prefix=no 11886 need_version=no 11887 ;; 11888 esac 11889 shlibpath_var=LD_LIBRARY_PATH 11890 case $host_os in 11891 freebsd2.*) 11892 shlibpath_overrides_runpath=yes 11893 ;; 11894 freebsd3.[01]* | freebsdelf3.[01]*) 11895 shlibpath_overrides_runpath=yes 11896 hardcode_into_libs=yes 11897 ;; 11898 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11899 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11900 shlibpath_overrides_runpath=no 11901 hardcode_into_libs=yes 11902 ;; 11903 *) # from 4.6 on, and DragonFly 11904 shlibpath_overrides_runpath=yes 11905 hardcode_into_libs=yes 11906 ;; 11907 esac 11908 ;; 11909 11910haiku*) 11911 version_type=linux # correct to gnu/linux during the next big refactor 11912 need_lib_prefix=no 11913 need_version=no 11914 dynamic_linker="$host_os runtime_loader" 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 soname_spec='$libname$release$shared_ext$major' 11917 shlibpath_var=LIBRARY_PATH 11918 shlibpath_overrides_runpath=no 11919 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11920 hardcode_into_libs=yes 11921 ;; 11922 11923hpux9* | hpux10* | hpux11*) 11924 # Give a soname corresponding to the major version so that dld.sl refuses to 11925 # link against other versions. 11926 version_type=sunos 11927 need_lib_prefix=no 11928 need_version=no 11929 case $host_cpu in 11930 ia64*) 11931 shrext_cmds='.so' 11932 hardcode_into_libs=yes 11933 dynamic_linker="$host_os dld.so" 11934 shlibpath_var=LD_LIBRARY_PATH 11935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11937 soname_spec='$libname$release$shared_ext$major' 11938 if test 32 = "$HPUX_IA64_MODE"; then 11939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11940 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11941 else 11942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11943 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11944 fi 11945 ;; 11946 hppa*64*) 11947 shrext_cmds='.sl' 11948 hardcode_into_libs=yes 11949 dynamic_linker="$host_os dld.sl" 11950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11953 soname_spec='$libname$release$shared_ext$major' 11954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11956 ;; 11957 *) 11958 shrext_cmds='.sl' 11959 dynamic_linker="$host_os dld.sl" 11960 shlibpath_var=SHLIB_PATH 11961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11963 soname_spec='$libname$release$shared_ext$major' 11964 ;; 11965 esac 11966 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11967 postinstall_cmds='chmod 555 $lib' 11968 # or fails outright, so override atomically: 11969 install_override_mode=555 11970 ;; 11971 11972interix[3-9]*) 11973 version_type=linux # correct to gnu/linux during the next big refactor 11974 need_lib_prefix=no 11975 need_version=no 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11977 soname_spec='$libname$release$shared_ext$major' 11978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 shlibpath_overrides_runpath=no 11981 hardcode_into_libs=yes 11982 ;; 11983 11984irix5* | irix6* | nonstopux*) 11985 case $host_os in 11986 nonstopux*) version_type=nonstopux ;; 11987 *) 11988 if test yes = "$lt_cv_prog_gnu_ld"; then 11989 version_type=linux # correct to gnu/linux during the next big refactor 11990 else 11991 version_type=irix 11992 fi ;; 11993 esac 11994 need_lib_prefix=no 11995 need_version=no 11996 soname_spec='$libname$release$shared_ext$major' 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11998 case $host_os in 11999 irix5* | nonstopux*) 12000 libsuff= shlibsuff= 12001 ;; 12002 *) 12003 case $LD in # libtool.m4 will add one of these switches to LD 12004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12005 libsuff= shlibsuff= libmagic=32-bit;; 12006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12007 libsuff=32 shlibsuff=N32 libmagic=N32;; 12008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12009 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12010 *) libsuff= shlibsuff= libmagic=never-match;; 12011 esac 12012 ;; 12013 esac 12014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12015 shlibpath_overrides_runpath=no 12016 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12017 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12018 hardcode_into_libs=yes 12019 ;; 12020 12021# No shared lib support for Linux oldld, aout, or coff. 12022linux*oldld* | linux*aout* | linux*coff*) 12023 dynamic_linker=no 12024 ;; 12025 12026linux*android*) 12027 version_type=none # Android doesn't support versioned libraries. 12028 need_lib_prefix=no 12029 need_version=no 12030 library_names_spec='$libname$release$shared_ext' 12031 soname_spec='$libname$release$shared_ext' 12032 finish_cmds= 12033 shlibpath_var=LD_LIBRARY_PATH 12034 shlibpath_overrides_runpath=yes 12035 12036 # This implies no fast_install, which is unacceptable. 12037 # Some rework will be needed to allow for fast_install 12038 # before this can be enabled. 12039 hardcode_into_libs=yes 12040 12041 dynamic_linker='Android linker' 12042 # Don't embed -rpath directories since the linker doesn't support them. 12043 hardcode_libdir_flag_spec='-L$libdir' 12044 ;; 12045 12046# This must be glibc/ELF. 12047linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12048 version_type=linux # correct to gnu/linux during the next big refactor 12049 need_lib_prefix=no 12050 need_version=no 12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12052 soname_spec='$libname$release$shared_ext$major' 12053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12054 shlibpath_var=LD_LIBRARY_PATH 12055 shlibpath_overrides_runpath=no 12056 12057 # Some binutils ld are patched to set DT_RUNPATH 12058 if test ${lt_cv_shlibpath_overrides_runpath+y} 12059then : 12060 printf %s "(cached) " >&6 12061else case e in #( 12062 e) lt_cv_shlibpath_overrides_runpath=no 12063 save_LDFLAGS=$LDFLAGS 12064 save_libdir=$libdir 12065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12068/* end confdefs.h. */ 12069 12070int 12071main (void) 12072{ 12073 12074 ; 12075 return 0; 12076} 12077_ACEOF 12078if ac_fn_c_try_link "$LINENO" 12079then : 12080 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12081then : 12082 lt_cv_shlibpath_overrides_runpath=yes 12083fi 12084fi 12085rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12086 conftest$ac_exeext conftest.$ac_ext 12087 LDFLAGS=$save_LDFLAGS 12088 libdir=$save_libdir 12089 ;; 12090esac 12091fi 12092 12093 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12094 12095 # This implies no fast_install, which is unacceptable. 12096 # Some rework will be needed to allow for fast_install 12097 # before this can be enabled. 12098 hardcode_into_libs=yes 12099 12100 # Ideally, we could use ldconfig to report *all* directores which are 12101 # searched for libraries, however this is still not possible. Aside from not 12102 # being certain /sbin/ldconfig is available, command 12103 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12104 # even though it is searched at run-time. Try to do the best guess by 12105 # appending ld.so.conf contents (and includes) to the search path. 12106 if test -f /etc/ld.so.conf; then 12107 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' ' '` 12108 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12109 fi 12110 12111 # We used to test for /lib/ld.so.1 and disable shared libraries on 12112 # powerpc, because MkLinux only supported shared libraries with the 12113 # GNU dynamic linker. Since this was broken with cross compilers, 12114 # most powerpc-linux boxes support dynamic linking these days and 12115 # people can always --disable-shared, the test was removed, and we 12116 # assume the GNU/Linux dynamic linker is in use. 12117 dynamic_linker='GNU/Linux ld.so' 12118 ;; 12119 12120netbsd*) 12121 version_type=sunos 12122 need_lib_prefix=no 12123 need_version=no 12124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12127 dynamic_linker='NetBSD (a.out) ld.so' 12128 else 12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12130 soname_spec='$libname$release$shared_ext$major' 12131 dynamic_linker='NetBSD ld.elf_so' 12132 fi 12133 shlibpath_var=LD_LIBRARY_PATH 12134 shlibpath_overrides_runpath=yes 12135 hardcode_into_libs=yes 12136 ;; 12137 12138newsos6) 12139 version_type=linux # correct to gnu/linux during the next big refactor 12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12141 shlibpath_var=LD_LIBRARY_PATH 12142 shlibpath_overrides_runpath=yes 12143 ;; 12144 12145*nto* | *qnx*) 12146 version_type=qnx 12147 need_lib_prefix=no 12148 need_version=no 12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12150 soname_spec='$libname$release$shared_ext$major' 12151 shlibpath_var=LD_LIBRARY_PATH 12152 shlibpath_overrides_runpath=no 12153 hardcode_into_libs=yes 12154 dynamic_linker='ldqnx.so' 12155 ;; 12156 12157openbsd* | bitrig*) 12158 version_type=sunos 12159 sys_lib_dlsearch_path_spec=/usr/lib 12160 need_lib_prefix=no 12161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12162 need_version=no 12163 else 12164 need_version=yes 12165 fi 12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12168 shlibpath_var=LD_LIBRARY_PATH 12169 shlibpath_overrides_runpath=yes 12170 ;; 12171 12172os2*) 12173 libname_spec='$name' 12174 version_type=windows 12175 shrext_cmds=.dll 12176 need_version=no 12177 need_lib_prefix=no 12178 # OS/2 can only load a DLL with a base name of 8 characters or less. 12179 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12180 v=$($ECHO $release$versuffix | tr -d .-); 12181 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12182 $ECHO $n$v`$shared_ext' 12183 library_names_spec='${libname}_dll.$libext' 12184 dynamic_linker='OS/2 ld.exe' 12185 shlibpath_var=BEGINLIBPATH 12186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12188 postinstall_cmds='base_file=`basename \$file`~ 12189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12190 dldir=$destdir/`dirname \$dlpath`~ 12191 test -d \$dldir || mkdir -p \$dldir~ 12192 $install_prog $dir/$dlname \$dldir/$dlname~ 12193 chmod a+x \$dldir/$dlname~ 12194 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12195 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12196 fi' 12197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12198 dlpath=$dir/\$dldll~ 12199 $RM \$dlpath' 12200 ;; 12201 12202osf3* | osf4* | osf5*) 12203 version_type=osf 12204 need_lib_prefix=no 12205 need_version=no 12206 soname_spec='$libname$release$shared_ext$major' 12207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12208 shlibpath_var=LD_LIBRARY_PATH 12209 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12211 ;; 12212 12213rdos*) 12214 dynamic_linker=no 12215 ;; 12216 12217solaris*) 12218 version_type=linux # correct to gnu/linux during the next big refactor 12219 need_lib_prefix=no 12220 need_version=no 12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12222 soname_spec='$libname$release$shared_ext$major' 12223 shlibpath_var=LD_LIBRARY_PATH 12224 shlibpath_overrides_runpath=yes 12225 hardcode_into_libs=yes 12226 # ldd complains unless libraries are executable 12227 postinstall_cmds='chmod +x $lib' 12228 ;; 12229 12230sunos4*) 12231 version_type=sunos 12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12234 shlibpath_var=LD_LIBRARY_PATH 12235 shlibpath_overrides_runpath=yes 12236 if test yes = "$with_gnu_ld"; then 12237 need_lib_prefix=no 12238 fi 12239 need_version=yes 12240 ;; 12241 12242sysv4 | sysv4.3*) 12243 version_type=linux # correct to gnu/linux during the next big refactor 12244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12245 soname_spec='$libname$release$shared_ext$major' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 case $host_vendor in 12248 sni) 12249 shlibpath_overrides_runpath=no 12250 need_lib_prefix=no 12251 runpath_var=LD_RUN_PATH 12252 ;; 12253 siemens) 12254 need_lib_prefix=no 12255 ;; 12256 motorola) 12257 need_lib_prefix=no 12258 need_version=no 12259 shlibpath_overrides_runpath=no 12260 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12261 ;; 12262 esac 12263 ;; 12264 12265sysv4*MP*) 12266 if test -d /usr/nec; then 12267 version_type=linux # correct to gnu/linux during the next big refactor 12268 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12269 soname_spec='$libname$shared_ext.$major' 12270 shlibpath_var=LD_LIBRARY_PATH 12271 fi 12272 ;; 12273 12274sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12275 version_type=sco 12276 need_lib_prefix=no 12277 need_version=no 12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12279 soname_spec='$libname$release$shared_ext$major' 12280 shlibpath_var=LD_LIBRARY_PATH 12281 shlibpath_overrides_runpath=yes 12282 hardcode_into_libs=yes 12283 if test yes = "$with_gnu_ld"; then 12284 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12285 else 12286 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12287 case $host_os in 12288 sco3.2v5*) 12289 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12290 ;; 12291 esac 12292 fi 12293 sys_lib_dlsearch_path_spec='/usr/lib' 12294 ;; 12295 12296tpf*) 12297 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12298 version_type=linux # correct to gnu/linux during the next big refactor 12299 need_lib_prefix=no 12300 need_version=no 12301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12302 shlibpath_var=LD_LIBRARY_PATH 12303 shlibpath_overrides_runpath=no 12304 hardcode_into_libs=yes 12305 ;; 12306 12307uts4*) 12308 version_type=linux # correct to gnu/linux during the next big refactor 12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12310 soname_spec='$libname$release$shared_ext$major' 12311 shlibpath_var=LD_LIBRARY_PATH 12312 ;; 12313 12314*) 12315 dynamic_linker=no 12316 ;; 12317esac 12318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12319printf "%s\n" "$dynamic_linker" >&6; } 12320test no = "$dynamic_linker" && can_build_shared=no 12321 12322variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12323if test yes = "$GCC"; then 12324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12325fi 12326 12327if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12328 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12329fi 12330 12331if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12332 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12333fi 12334 12335# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12336configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12337 12338# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12339func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12340 12341# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12342configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12441printf %s "checking how to hardcode library paths into programs... " >&6; } 12442hardcode_action= 12443if test -n "$hardcode_libdir_flag_spec" || 12444 test -n "$runpath_var" || 12445 test yes = "$hardcode_automatic"; then 12446 12447 # We can hardcode non-existent directories. 12448 if test no != "$hardcode_direct" && 12449 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12450 # have to relink, otherwise we might link with an installed library 12451 # when we should be linking with a yet-to-be-installed one 12452 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12453 test no != "$hardcode_minus_L"; then 12454 # Linking always hardcodes the temporary library directory. 12455 hardcode_action=relink 12456 else 12457 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12458 hardcode_action=immediate 12459 fi 12460else 12461 # We cannot hardcode anything, or else we can only hardcode existing 12462 # directories. 12463 hardcode_action=unsupported 12464fi 12465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12466printf "%s\n" "$hardcode_action" >&6; } 12467 12468if test relink = "$hardcode_action" || 12469 test yes = "$inherit_rpath"; then 12470 # Fast installation is not supported 12471 enable_fast_install=no 12472elif test yes = "$shlibpath_overrides_runpath" || 12473 test no = "$enable_shared"; then 12474 # Fast installation is not necessary 12475 enable_fast_install=needless 12476fi 12477 12478 12479 12480 12481 12482 12483 if test yes != "$enable_dlopen"; then 12484 enable_dlopen=unknown 12485 enable_dlopen_self=unknown 12486 enable_dlopen_self_static=unknown 12487else 12488 lt_cv_dlopen=no 12489 lt_cv_dlopen_libs= 12490 12491 case $host_os in 12492 beos*) 12493 lt_cv_dlopen=load_add_on 12494 lt_cv_dlopen_libs= 12495 lt_cv_dlopen_self=yes 12496 ;; 12497 12498 mingw* | pw32* | cegcc*) 12499 lt_cv_dlopen=LoadLibrary 12500 lt_cv_dlopen_libs= 12501 ;; 12502 12503 cygwin*) 12504 lt_cv_dlopen=dlopen 12505 lt_cv_dlopen_libs= 12506 ;; 12507 12508 darwin*) 12509 # if libdl is installed we need to link against it 12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12511printf %s "checking for dlopen in -ldl... " >&6; } 12512if test ${ac_cv_lib_dl_dlopen+y} 12513then : 12514 printf %s "(cached) " >&6 12515else case e in #( 12516 e) ac_check_lib_save_LIBS=$LIBS 12517LIBS="-ldl $LIBS" 12518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12519/* end confdefs.h. */ 12520 12521/* Override any GCC internal prototype to avoid an error. 12522 Use char because int might match the return type of a GCC 12523 builtin and then its argument prototype would still apply. 12524 The 'extern "C"' is for builds by C++ compilers; 12525 although this is not generally supported in C code supporting it here 12526 has little cost and some practical benefit (sr 110532). */ 12527#ifdef __cplusplus 12528extern "C" 12529#endif 12530char dlopen (void); 12531int 12532main (void) 12533{ 12534return dlopen (); 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539if ac_fn_c_try_link "$LINENO" 12540then : 12541 ac_cv_lib_dl_dlopen=yes 12542else case e in #( 12543 e) ac_cv_lib_dl_dlopen=no ;; 12544esac 12545fi 12546rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12547 conftest$ac_exeext conftest.$ac_ext 12548LIBS=$ac_check_lib_save_LIBS ;; 12549esac 12550fi 12551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12552printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12553if test "x$ac_cv_lib_dl_dlopen" = xyes 12554then : 12555 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12556else case e in #( 12557 e) 12558 lt_cv_dlopen=dyld 12559 lt_cv_dlopen_libs= 12560 lt_cv_dlopen_self=yes 12561 ;; 12562esac 12563fi 12564 12565 ;; 12566 12567 tpf*) 12568 # Don't try to run any link tests for TPF. We know it's impossible 12569 # because TPF is a cross-compiler, and we know how we open DSOs. 12570 lt_cv_dlopen=dlopen 12571 lt_cv_dlopen_libs= 12572 lt_cv_dlopen_self=no 12573 ;; 12574 12575 *) 12576 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12577if test "x$ac_cv_func_shl_load" = xyes 12578then : 12579 lt_cv_dlopen=shl_load 12580else case e in #( 12581 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12582printf %s "checking for shl_load in -ldld... " >&6; } 12583if test ${ac_cv_lib_dld_shl_load+y} 12584then : 12585 printf %s "(cached) " >&6 12586else case e in #( 12587 e) ac_check_lib_save_LIBS=$LIBS 12588LIBS="-ldld $LIBS" 12589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590/* end confdefs.h. */ 12591 12592/* Override any GCC internal prototype to avoid an error. 12593 Use char because int might match the return type of a GCC 12594 builtin and then its argument prototype would still apply. 12595 The 'extern "C"' is for builds by C++ compilers; 12596 although this is not generally supported in C code supporting it here 12597 has little cost and some practical benefit (sr 110532). */ 12598#ifdef __cplusplus 12599extern "C" 12600#endif 12601char shl_load (void); 12602int 12603main (void) 12604{ 12605return shl_load (); 12606 ; 12607 return 0; 12608} 12609_ACEOF 12610if ac_fn_c_try_link "$LINENO" 12611then : 12612 ac_cv_lib_dld_shl_load=yes 12613else case e in #( 12614 e) ac_cv_lib_dld_shl_load=no ;; 12615esac 12616fi 12617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12618 conftest$ac_exeext conftest.$ac_ext 12619LIBS=$ac_check_lib_save_LIBS ;; 12620esac 12621fi 12622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12623printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12624if test "x$ac_cv_lib_dld_shl_load" = xyes 12625then : 12626 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12627else case e in #( 12628 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12629if test "x$ac_cv_func_dlopen" = xyes 12630then : 12631 lt_cv_dlopen=dlopen 12632else case e in #( 12633 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12634printf %s "checking for dlopen in -ldl... " >&6; } 12635if test ${ac_cv_lib_dl_dlopen+y} 12636then : 12637 printf %s "(cached) " >&6 12638else case e in #( 12639 e) ac_check_lib_save_LIBS=$LIBS 12640LIBS="-ldl $LIBS" 12641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12642/* end confdefs.h. */ 12643 12644/* Override any GCC internal prototype to avoid an error. 12645 Use char because int might match the return type of a GCC 12646 builtin and then its argument prototype would still apply. 12647 The 'extern "C"' is for builds by C++ compilers; 12648 although this is not generally supported in C code supporting it here 12649 has little cost and some practical benefit (sr 110532). */ 12650#ifdef __cplusplus 12651extern "C" 12652#endif 12653char dlopen (void); 12654int 12655main (void) 12656{ 12657return dlopen (); 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662if ac_fn_c_try_link "$LINENO" 12663then : 12664 ac_cv_lib_dl_dlopen=yes 12665else case e in #( 12666 e) ac_cv_lib_dl_dlopen=no ;; 12667esac 12668fi 12669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12670 conftest$ac_exeext conftest.$ac_ext 12671LIBS=$ac_check_lib_save_LIBS ;; 12672esac 12673fi 12674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12675printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12676if test "x$ac_cv_lib_dl_dlopen" = xyes 12677then : 12678 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12679else case e in #( 12680 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12681printf %s "checking for dlopen in -lsvld... " >&6; } 12682if test ${ac_cv_lib_svld_dlopen+y} 12683then : 12684 printf %s "(cached) " >&6 12685else case e in #( 12686 e) ac_check_lib_save_LIBS=$LIBS 12687LIBS="-lsvld $LIBS" 12688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12689/* end confdefs.h. */ 12690 12691/* Override any GCC internal prototype to avoid an error. 12692 Use char because int might match the return type of a GCC 12693 builtin and then its argument prototype would still apply. 12694 The 'extern "C"' is for builds by C++ compilers; 12695 although this is not generally supported in C code supporting it here 12696 has little cost and some practical benefit (sr 110532). */ 12697#ifdef __cplusplus 12698extern "C" 12699#endif 12700char dlopen (void); 12701int 12702main (void) 12703{ 12704return dlopen (); 12705 ; 12706 return 0; 12707} 12708_ACEOF 12709if ac_fn_c_try_link "$LINENO" 12710then : 12711 ac_cv_lib_svld_dlopen=yes 12712else case e in #( 12713 e) ac_cv_lib_svld_dlopen=no ;; 12714esac 12715fi 12716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12717 conftest$ac_exeext conftest.$ac_ext 12718LIBS=$ac_check_lib_save_LIBS ;; 12719esac 12720fi 12721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12722printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12723if test "x$ac_cv_lib_svld_dlopen" = xyes 12724then : 12725 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12726else case e in #( 12727 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12728printf %s "checking for dld_link in -ldld... " >&6; } 12729if test ${ac_cv_lib_dld_dld_link+y} 12730then : 12731 printf %s "(cached) " >&6 12732else case e in #( 12733 e) ac_check_lib_save_LIBS=$LIBS 12734LIBS="-ldld $LIBS" 12735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737 12738/* Override any GCC internal prototype to avoid an error. 12739 Use char because int might match the return type of a GCC 12740 builtin and then its argument prototype would still apply. 12741 The 'extern "C"' is for builds by C++ compilers; 12742 although this is not generally supported in C code supporting it here 12743 has little cost and some practical benefit (sr 110532). */ 12744#ifdef __cplusplus 12745extern "C" 12746#endif 12747char dld_link (void); 12748int 12749main (void) 12750{ 12751return dld_link (); 12752 ; 12753 return 0; 12754} 12755_ACEOF 12756if ac_fn_c_try_link "$LINENO" 12757then : 12758 ac_cv_lib_dld_dld_link=yes 12759else case e in #( 12760 e) ac_cv_lib_dld_dld_link=no ;; 12761esac 12762fi 12763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12764 conftest$ac_exeext conftest.$ac_ext 12765LIBS=$ac_check_lib_save_LIBS ;; 12766esac 12767fi 12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12769printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12770if test "x$ac_cv_lib_dld_dld_link" = xyes 12771then : 12772 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12773fi 12774 12775 ;; 12776esac 12777fi 12778 12779 ;; 12780esac 12781fi 12782 12783 ;; 12784esac 12785fi 12786 12787 ;; 12788esac 12789fi 12790 12791 ;; 12792esac 12793fi 12794 12795 ;; 12796 esac 12797 12798 if test no = "$lt_cv_dlopen"; then 12799 enable_dlopen=no 12800 else 12801 enable_dlopen=yes 12802 fi 12803 12804 case $lt_cv_dlopen in 12805 dlopen) 12806 save_CPPFLAGS=$CPPFLAGS 12807 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12808 12809 save_LDFLAGS=$LDFLAGS 12810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12811 12812 save_LIBS=$LIBS 12813 LIBS="$lt_cv_dlopen_libs $LIBS" 12814 12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12816printf %s "checking whether a program can dlopen itself... " >&6; } 12817if test ${lt_cv_dlopen_self+y} 12818then : 12819 printf %s "(cached) " >&6 12820else case e in #( 12821 e) if test yes = "$cross_compiling"; then : 12822 lt_cv_dlopen_self=cross 12823else 12824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12825 lt_status=$lt_dlunknown 12826 cat > conftest.$ac_ext <<_LT_EOF 12827#line $LINENO "configure" 12828#include "confdefs.h" 12829 12830#if HAVE_DLFCN_H 12831#include <dlfcn.h> 12832#endif 12833 12834#include <stdio.h> 12835 12836#ifdef RTLD_GLOBAL 12837# define LT_DLGLOBAL RTLD_GLOBAL 12838#else 12839# ifdef DL_GLOBAL 12840# define LT_DLGLOBAL DL_GLOBAL 12841# else 12842# define LT_DLGLOBAL 0 12843# endif 12844#endif 12845 12846/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12847 find out it does not work in some platform. */ 12848#ifndef LT_DLLAZY_OR_NOW 12849# ifdef RTLD_LAZY 12850# define LT_DLLAZY_OR_NOW RTLD_LAZY 12851# else 12852# ifdef DL_LAZY 12853# define LT_DLLAZY_OR_NOW DL_LAZY 12854# else 12855# ifdef RTLD_NOW 12856# define LT_DLLAZY_OR_NOW RTLD_NOW 12857# else 12858# ifdef DL_NOW 12859# define LT_DLLAZY_OR_NOW DL_NOW 12860# else 12861# define LT_DLLAZY_OR_NOW 0 12862# endif 12863# endif 12864# endif 12865# endif 12866#endif 12867 12868/* When -fvisibility=hidden is used, assume the code has been annotated 12869 correspondingly for the symbols needed. */ 12870#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12871int fnord () __attribute__((visibility("default"))); 12872#endif 12873 12874int fnord () { return 42; } 12875int main () 12876{ 12877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12878 int status = $lt_dlunknown; 12879 12880 if (self) 12881 { 12882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12883 else 12884 { 12885 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12886 else puts (dlerror ()); 12887 } 12888 /* dlclose (self); */ 12889 } 12890 else 12891 puts (dlerror ()); 12892 12893 return status; 12894} 12895_LT_EOF 12896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12897 (eval $ac_link) 2>&5 12898 ac_status=$? 12899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12900 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12901 (./conftest; exit; ) >&5 2>/dev/null 12902 lt_status=$? 12903 case x$lt_status in 12904 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12905 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12906 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12907 esac 12908 else : 12909 # compilation failed 12910 lt_cv_dlopen_self=no 12911 fi 12912fi 12913rm -fr conftest* 12914 12915 ;; 12916esac 12917fi 12918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12919printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12920 12921 if test yes = "$lt_cv_dlopen_self"; then 12922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12924printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12925if test ${lt_cv_dlopen_self_static+y} 12926then : 12927 printf %s "(cached) " >&6 12928else case e in #( 12929 e) if test yes = "$cross_compiling"; then : 12930 lt_cv_dlopen_self_static=cross 12931else 12932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12933 lt_status=$lt_dlunknown 12934 cat > conftest.$ac_ext <<_LT_EOF 12935#line $LINENO "configure" 12936#include "confdefs.h" 12937 12938#if HAVE_DLFCN_H 12939#include <dlfcn.h> 12940#endif 12941 12942#include <stdio.h> 12943 12944#ifdef RTLD_GLOBAL 12945# define LT_DLGLOBAL RTLD_GLOBAL 12946#else 12947# ifdef DL_GLOBAL 12948# define LT_DLGLOBAL DL_GLOBAL 12949# else 12950# define LT_DLGLOBAL 0 12951# endif 12952#endif 12953 12954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12955 find out it does not work in some platform. */ 12956#ifndef LT_DLLAZY_OR_NOW 12957# ifdef RTLD_LAZY 12958# define LT_DLLAZY_OR_NOW RTLD_LAZY 12959# else 12960# ifdef DL_LAZY 12961# define LT_DLLAZY_OR_NOW DL_LAZY 12962# else 12963# ifdef RTLD_NOW 12964# define LT_DLLAZY_OR_NOW RTLD_NOW 12965# else 12966# ifdef DL_NOW 12967# define LT_DLLAZY_OR_NOW DL_NOW 12968# else 12969# define LT_DLLAZY_OR_NOW 0 12970# endif 12971# endif 12972# endif 12973# endif 12974#endif 12975 12976/* When -fvisibility=hidden is used, assume the code has been annotated 12977 correspondingly for the symbols needed. */ 12978#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12979int fnord () __attribute__((visibility("default"))); 12980#endif 12981 12982int fnord () { return 42; } 12983int main () 12984{ 12985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12986 int status = $lt_dlunknown; 12987 12988 if (self) 12989 { 12990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12991 else 12992 { 12993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12994 else puts (dlerror ()); 12995 } 12996 /* dlclose (self); */ 12997 } 12998 else 12999 puts (dlerror ()); 13000 13001 return status; 13002} 13003_LT_EOF 13004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13005 (eval $ac_link) 2>&5 13006 ac_status=$? 13007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13008 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13009 (./conftest; exit; ) >&5 2>/dev/null 13010 lt_status=$? 13011 case x$lt_status in 13012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13015 esac 13016 else : 13017 # compilation failed 13018 lt_cv_dlopen_self_static=no 13019 fi 13020fi 13021rm -fr conftest* 13022 13023 ;; 13024esac 13025fi 13026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13027printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13028 fi 13029 13030 CPPFLAGS=$save_CPPFLAGS 13031 LDFLAGS=$save_LDFLAGS 13032 LIBS=$save_LIBS 13033 ;; 13034 esac 13035 13036 case $lt_cv_dlopen_self in 13037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13038 *) enable_dlopen_self=unknown ;; 13039 esac 13040 13041 case $lt_cv_dlopen_self_static in 13042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13043 *) enable_dlopen_self_static=unknown ;; 13044 esac 13045fi 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063striplib= 13064old_striplib= 13065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13066printf %s "checking whether stripping libraries is possible... " >&6; } 13067if test -z "$STRIP"; then 13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069printf "%s\n" "no" >&6; } 13070else 13071 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13072 old_striplib="$STRIP --strip-debug" 13073 striplib="$STRIP --strip-unneeded" 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13075printf "%s\n" "yes" >&6; } 13076 else 13077 case $host_os in 13078 darwin*) 13079 # FIXME - insert some real tests, host_os isn't really good enough 13080 striplib="$STRIP -x" 13081 old_striplib="$STRIP -S" 13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13083printf "%s\n" "yes" >&6; } 13084 ;; 13085 freebsd*) 13086 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13087 old_striplib="$STRIP --strip-debug" 13088 striplib="$STRIP --strip-unneeded" 13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13090printf "%s\n" "yes" >&6; } 13091 else 13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13093printf "%s\n" "no" >&6; } 13094 fi 13095 ;; 13096 *) 13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13098printf "%s\n" "no" >&6; } 13099 ;; 13100 esac 13101 fi 13102fi 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 # Report what library types will actually be built 13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13117printf %s "checking if libtool supports shared libraries... " >&6; } 13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13119printf "%s\n" "$can_build_shared" >&6; } 13120 13121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13122printf %s "checking whether to build shared libraries... " >&6; } 13123 test no = "$can_build_shared" && enable_shared=no 13124 13125 # On AIX, shared libraries and static libraries use the same namespace, and 13126 # are all built from PIC. 13127 case $host_os in 13128 aix3*) 13129 test yes = "$enable_shared" && enable_static=no 13130 if test -n "$RANLIB"; then 13131 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13132 postinstall_cmds='$RANLIB $lib' 13133 fi 13134 ;; 13135 13136 aix[4-9]*) 13137 if test ia64 != "$host_cpu"; then 13138 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13139 yes,aix,yes) ;; # shared object as lib.so file only 13140 yes,svr4,*) ;; # shared object as lib.so archive member only 13141 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13142 esac 13143 fi 13144 ;; 13145 esac 13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13147printf "%s\n" "$enable_shared" >&6; } 13148 13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13150printf %s "checking whether to build static libraries... " >&6; } 13151 # Make sure either enable_shared or enable_static is yes. 13152 test yes = "$enable_shared" || enable_static=yes 13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13154printf "%s\n" "$enable_static" >&6; } 13155 13156 13157 13158 13159fi 13160ac_ext=c 13161ac_cpp='$CPP $CPPFLAGS' 13162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13164ac_compiler_gnu=$ac_cv_c_compiler_gnu 13165 13166CC=$lt_save_CC 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 ac_config_commands="$ac_config_commands libtool" 13183 13184 13185 13186 13187# Only expand once: 13188 13189 13190 13191# Require X.Org macros 1.16 or later for XORG_MEMORY_CHECK_FLAGS 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13204printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13205if test ${ac_cv_c_undeclared_builtin_options+y} 13206then : 13207 printf %s "(cached) " >&6 13208else case e in #( 13209 e) ac_save_CFLAGS=$CFLAGS 13210 ac_cv_c_undeclared_builtin_options='cannot detect' 13211 for ac_arg in '' -fno-builtin; do 13212 CFLAGS="$ac_save_CFLAGS $ac_arg" 13213 # This test program should *not* compile successfully. 13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13215/* end confdefs.h. */ 13216 13217int 13218main (void) 13219{ 13220(void) strchr; 13221 ; 13222 return 0; 13223} 13224_ACEOF 13225if ac_fn_c_try_compile "$LINENO" 13226then : 13227 13228else case e in #( 13229 e) # This test program should compile successfully. 13230 # No library function is consistently available on 13231 # freestanding implementations, so test against a dummy 13232 # declaration. Include always-available headers on the 13233 # off chance that they somehow elicit warnings. 13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13235/* end confdefs.h. */ 13236#include <float.h> 13237#include <limits.h> 13238#include <stdarg.h> 13239#include <stddef.h> 13240extern void ac_decl (int, char *); 13241 13242int 13243main (void) 13244{ 13245(void) ac_decl (0, (char *) 0); 13246 (void) ac_decl; 13247 13248 ; 13249 return 0; 13250} 13251_ACEOF 13252if ac_fn_c_try_compile "$LINENO" 13253then : 13254 if test x"$ac_arg" = x 13255then : 13256 ac_cv_c_undeclared_builtin_options='none needed' 13257else case e in #( 13258 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13259esac 13260fi 13261 break 13262fi 13263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13264esac 13265fi 13266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13267 done 13268 CFLAGS=$ac_save_CFLAGS 13269 ;; 13270esac 13271fi 13272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13273printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13274 case $ac_cv_c_undeclared_builtin_options in #( 13275 'cannot detect') : 13276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13277printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13278as_fn_error $? "cannot make $CC report undeclared builtins 13279See 'config.log' for more details" "$LINENO" 5; } ;; #( 13280 'none needed') : 13281 ac_c_undeclared_builtin_options='' ;; #( 13282 *) : 13283 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13284esac 13285 13286 13287 13288 13289 13290ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13291if test "x$ac_cv_have_decl___clang__" = xyes 13292then : 13293 CLANGCC="yes" 13294else case e in #( 13295 e) CLANGCC="no" ;; 13296esac 13297fi 13298ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13299if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13300then : 13301 INTELCC="yes" 13302else case e in #( 13303 e) INTELCC="no" ;; 13304esac 13305fi 13306ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13307if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13308then : 13309 SUNCC="yes" 13310else case e in #( 13311 e) SUNCC="no" ;; 13312esac 13313fi 13314 13315 13316 13317 13318 13319 13320 13321 13322if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13323 if test -n "$ac_tool_prefix"; then 13324 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13325set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13327printf %s "checking for $ac_word... " >&6; } 13328if test ${ac_cv_path_PKG_CONFIG+y} 13329then : 13330 printf %s "(cached) " >&6 13331else case e in #( 13332 e) case $PKG_CONFIG in 13333 [\\/]* | ?:[\\/]*) 13334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13335 ;; 13336 *) 13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13338for as_dir in $PATH 13339do 13340 IFS=$as_save_IFS 13341 case $as_dir in #((( 13342 '') as_dir=./ ;; 13343 */) ;; 13344 *) as_dir=$as_dir/ ;; 13345 esac 13346 for ac_exec_ext in '' $ac_executable_extensions; do 13347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13348 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13350 break 2 13351 fi 13352done 13353 done 13354IFS=$as_save_IFS 13355 13356 ;; 13357esac ;; 13358esac 13359fi 13360PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13361if test -n "$PKG_CONFIG"; then 13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13363printf "%s\n" "$PKG_CONFIG" >&6; } 13364else 13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13366printf "%s\n" "no" >&6; } 13367fi 13368 13369 13370fi 13371if test -z "$ac_cv_path_PKG_CONFIG"; then 13372 ac_pt_PKG_CONFIG=$PKG_CONFIG 13373 # Extract the first word of "pkg-config", so it can be a program name with args. 13374set dummy pkg-config; ac_word=$2 13375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13376printf %s "checking for $ac_word... " >&6; } 13377if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13378then : 13379 printf %s "(cached) " >&6 13380else case e in #( 13381 e) case $ac_pt_PKG_CONFIG in 13382 [\\/]* | ?:[\\/]*) 13383 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13384 ;; 13385 *) 13386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13387for as_dir in $PATH 13388do 13389 IFS=$as_save_IFS 13390 case $as_dir in #((( 13391 '') as_dir=./ ;; 13392 */) ;; 13393 *) as_dir=$as_dir/ ;; 13394 esac 13395 for ac_exec_ext in '' $ac_executable_extensions; do 13396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13397 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13399 break 2 13400 fi 13401done 13402 done 13403IFS=$as_save_IFS 13404 13405 ;; 13406esac ;; 13407esac 13408fi 13409ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13410if test -n "$ac_pt_PKG_CONFIG"; then 13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13412printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13413else 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13415printf "%s\n" "no" >&6; } 13416fi 13417 13418 if test "x$ac_pt_PKG_CONFIG" = x; then 13419 PKG_CONFIG="" 13420 else 13421 case $cross_compiling:$ac_tool_warned in 13422yes:) 13423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13424printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13425ac_tool_warned=yes ;; 13426esac 13427 PKG_CONFIG=$ac_pt_PKG_CONFIG 13428 fi 13429else 13430 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13431fi 13432 13433fi 13434if test -n "$PKG_CONFIG"; then 13435 _pkg_min_version=0.9.0 13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13437printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13438 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13440printf "%s\n" "yes" >&6; } 13441 else 13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13443printf "%s\n" "no" >&6; } 13444 PKG_CONFIG="" 13445 fi 13446fi 13447if test -z "$PKG_CONFIG"; then 13448 as_fn_error $? "pkg-config not found" "$LINENO" 5 13449fi 13450 13451 13452 13453 13454 13455# Check whether --enable-selective-werror was given. 13456if test ${enable_selective_werror+y} 13457then : 13458 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13459else case e in #( 13460 e) SELECTIVE_WERROR=yes ;; 13461esac 13462fi 13463 13464 13465 13466 13467 13468# -v is too short to test reliably with XORG_TESTSET_CFLAG 13469if test "x$SUNCC" = "xyes"; then 13470 BASE_CFLAGS="-v" 13471else 13472 BASE_CFLAGS="" 13473fi 13474 13475# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489xorg_testset_save_CFLAGS="$CFLAGS" 13490 13491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13496then : 13497 printf %s "(cached) " >&6 13498else case e in #( 13499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13500/* end confdefs.h. */ 13501int i; 13502_ACEOF 13503if ac_fn_c_try_compile "$LINENO" 13504then : 13505 xorg_cv_cc_flag_unknown_warning_option=yes 13506else case e in #( 13507 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13508esac 13509fi 13510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13511esac 13512fi 13513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13516 CFLAGS="$xorg_testset_save_CFLAGS" 13517fi 13518 13519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13522 fi 13523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13526if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13527then : 13528 printf %s "(cached) " >&6 13529else case e in #( 13530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13531/* end confdefs.h. */ 13532int i; 13533_ACEOF 13534if ac_fn_c_try_compile "$LINENO" 13535then : 13536 xorg_cv_cc_flag_unused_command_line_argument=yes 13537else case e in #( 13538 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13539esac 13540fi 13541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13542esac 13543fi 13544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13547 CFLAGS="$xorg_testset_save_CFLAGS" 13548fi 13549 13550found="no" 13551 13552 if test $found = "no" ; then 13553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13555 fi 13556 13557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13559 fi 13560 13561 CFLAGS="$CFLAGS -Wall" 13562 13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13564printf %s "checking if $CC supports -Wall... " >&6; } 13565 cacheid=xorg_cv_cc_flag__Wall 13566 if eval test \${$cacheid+y} 13567then : 13568 printf %s "(cached) " >&6 13569else case e in #( 13570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572int i; 13573int 13574main (void) 13575{ 13576 13577 ; 13578 return 0; 13579} 13580_ACEOF 13581if ac_fn_c_try_link "$LINENO" 13582then : 13583 eval $cacheid=yes 13584else case e in #( 13585 e) eval $cacheid=no ;; 13586esac 13587fi 13588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13589 conftest$ac_exeext conftest.$ac_ext ;; 13590esac 13591fi 13592 13593 13594 CFLAGS="$xorg_testset_save_CFLAGS" 13595 13596 eval supported=\$$cacheid 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13598printf "%s\n" "$supported" >&6; } 13599 if test "$supported" = "yes" ; then 13600 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13601 found="yes" 13602 fi 13603 fi 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619xorg_testset_save_CFLAGS="$CFLAGS" 13620 13621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13625if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13626then : 13627 printf %s "(cached) " >&6 13628else case e in #( 13629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13630/* end confdefs.h. */ 13631int i; 13632_ACEOF 13633if ac_fn_c_try_compile "$LINENO" 13634then : 13635 xorg_cv_cc_flag_unknown_warning_option=yes 13636else case e in #( 13637 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13638esac 13639fi 13640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13641esac 13642fi 13643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13646 CFLAGS="$xorg_testset_save_CFLAGS" 13647fi 13648 13649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13652 fi 13653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13656if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13657then : 13658 printf %s "(cached) " >&6 13659else case e in #( 13660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661/* end confdefs.h. */ 13662int i; 13663_ACEOF 13664if ac_fn_c_try_compile "$LINENO" 13665then : 13666 xorg_cv_cc_flag_unused_command_line_argument=yes 13667else case e in #( 13668 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13669esac 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13672esac 13673fi 13674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13677 CFLAGS="$xorg_testset_save_CFLAGS" 13678fi 13679 13680found="no" 13681 13682 if test $found = "no" ; then 13683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13685 fi 13686 13687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13689 fi 13690 13691 CFLAGS="$CFLAGS -Wpointer-arith" 13692 13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13694printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13695 cacheid=xorg_cv_cc_flag__Wpointer_arith 13696 if eval test \${$cacheid+y} 13697then : 13698 printf %s "(cached) " >&6 13699else case e in #( 13700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13701/* end confdefs.h. */ 13702int i; 13703int 13704main (void) 13705{ 13706 13707 ; 13708 return 0; 13709} 13710_ACEOF 13711if ac_fn_c_try_link "$LINENO" 13712then : 13713 eval $cacheid=yes 13714else case e in #( 13715 e) eval $cacheid=no ;; 13716esac 13717fi 13718rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13719 conftest$ac_exeext conftest.$ac_ext ;; 13720esac 13721fi 13722 13723 13724 CFLAGS="$xorg_testset_save_CFLAGS" 13725 13726 eval supported=\$$cacheid 13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13728printf "%s\n" "$supported" >&6; } 13729 if test "$supported" = "yes" ; then 13730 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13731 found="yes" 13732 fi 13733 fi 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749xorg_testset_save_CFLAGS="$CFLAGS" 13750 13751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13756then : 13757 printf %s "(cached) " >&6 13758else case e in #( 13759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13760/* end confdefs.h. */ 13761int i; 13762_ACEOF 13763if ac_fn_c_try_compile "$LINENO" 13764then : 13765 xorg_cv_cc_flag_unknown_warning_option=yes 13766else case e in #( 13767 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13768esac 13769fi 13770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13771esac 13772fi 13773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13776 CFLAGS="$xorg_testset_save_CFLAGS" 13777fi 13778 13779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13782 fi 13783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13786if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13787then : 13788 printf %s "(cached) " >&6 13789else case e in #( 13790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13791/* end confdefs.h. */ 13792int i; 13793_ACEOF 13794if ac_fn_c_try_compile "$LINENO" 13795then : 13796 xorg_cv_cc_flag_unused_command_line_argument=yes 13797else case e in #( 13798 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13799esac 13800fi 13801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13802esac 13803fi 13804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13807 CFLAGS="$xorg_testset_save_CFLAGS" 13808fi 13809 13810found="no" 13811 13812 if test $found = "no" ; then 13813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13815 fi 13816 13817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13819 fi 13820 13821 CFLAGS="$CFLAGS -Wmissing-declarations" 13822 13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13824printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13825 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13826 if eval test \${$cacheid+y} 13827then : 13828 printf %s "(cached) " >&6 13829else case e in #( 13830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13831/* end confdefs.h. */ 13832int i; 13833int 13834main (void) 13835{ 13836 13837 ; 13838 return 0; 13839} 13840_ACEOF 13841if ac_fn_c_try_link "$LINENO" 13842then : 13843 eval $cacheid=yes 13844else case e in #( 13845 e) eval $cacheid=no ;; 13846esac 13847fi 13848rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13849 conftest$ac_exeext conftest.$ac_ext ;; 13850esac 13851fi 13852 13853 13854 CFLAGS="$xorg_testset_save_CFLAGS" 13855 13856 eval supported=\$$cacheid 13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13858printf "%s\n" "$supported" >&6; } 13859 if test "$supported" = "yes" ; then 13860 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13861 found="yes" 13862 fi 13863 fi 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879xorg_testset_save_CFLAGS="$CFLAGS" 13880 13881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13884printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13885if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13886then : 13887 printf %s "(cached) " >&6 13888else case e in #( 13889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891int i; 13892_ACEOF 13893if ac_fn_c_try_compile "$LINENO" 13894then : 13895 xorg_cv_cc_flag_unknown_warning_option=yes 13896else case e in #( 13897 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13898esac 13899fi 13900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13901esac 13902fi 13903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13906 CFLAGS="$xorg_testset_save_CFLAGS" 13907fi 13908 13909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13912 fi 13913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13917then : 13918 printf %s "(cached) " >&6 13919else case e in #( 13920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13921/* end confdefs.h. */ 13922int i; 13923_ACEOF 13924if ac_fn_c_try_compile "$LINENO" 13925then : 13926 xorg_cv_cc_flag_unused_command_line_argument=yes 13927else case e in #( 13928 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13929esac 13930fi 13931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13932esac 13933fi 13934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13937 CFLAGS="$xorg_testset_save_CFLAGS" 13938fi 13939 13940found="no" 13941 13942 if test $found = "no" ; then 13943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13945 fi 13946 13947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13949 fi 13950 13951 CFLAGS="$CFLAGS -Wformat=2" 13952 13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13954printf %s "checking if $CC supports -Wformat=2... " >&6; } 13955 cacheid=xorg_cv_cc_flag__Wformat_2 13956 if eval test \${$cacheid+y} 13957then : 13958 printf %s "(cached) " >&6 13959else case e in #( 13960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13961/* end confdefs.h. */ 13962int i; 13963int 13964main (void) 13965{ 13966 13967 ; 13968 return 0; 13969} 13970_ACEOF 13971if ac_fn_c_try_link "$LINENO" 13972then : 13973 eval $cacheid=yes 13974else case e in #( 13975 e) eval $cacheid=no ;; 13976esac 13977fi 13978rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13979 conftest$ac_exeext conftest.$ac_ext ;; 13980esac 13981fi 13982 13983 13984 CFLAGS="$xorg_testset_save_CFLAGS" 13985 13986 eval supported=\$$cacheid 13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13988printf "%s\n" "$supported" >&6; } 13989 if test "$supported" = "yes" ; then 13990 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13991 found="yes" 13992 fi 13993 fi 13994 13995 if test $found = "no" ; then 13996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13998 fi 13999 14000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14002 fi 14003 14004 CFLAGS="$CFLAGS -Wformat" 14005 14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14007printf %s "checking if $CC supports -Wformat... " >&6; } 14008 cacheid=xorg_cv_cc_flag__Wformat 14009 if eval test \${$cacheid+y} 14010then : 14011 printf %s "(cached) " >&6 14012else case e in #( 14013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14014/* end confdefs.h. */ 14015int i; 14016int 14017main (void) 14018{ 14019 14020 ; 14021 return 0; 14022} 14023_ACEOF 14024if ac_fn_c_try_link "$LINENO" 14025then : 14026 eval $cacheid=yes 14027else case e in #( 14028 e) eval $cacheid=no ;; 14029esac 14030fi 14031rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14032 conftest$ac_exeext conftest.$ac_ext ;; 14033esac 14034fi 14035 14036 14037 CFLAGS="$xorg_testset_save_CFLAGS" 14038 14039 eval supported=\$$cacheid 14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14041printf "%s\n" "$supported" >&6; } 14042 if test "$supported" = "yes" ; then 14043 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14044 found="yes" 14045 fi 14046 fi 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064xorg_testset_save_CFLAGS="$CFLAGS" 14065 14066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14070if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14071then : 14072 printf %s "(cached) " >&6 14073else case e in #( 14074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14075/* end confdefs.h. */ 14076int i; 14077_ACEOF 14078if ac_fn_c_try_compile "$LINENO" 14079then : 14080 xorg_cv_cc_flag_unknown_warning_option=yes 14081else case e in #( 14082 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14083esac 14084fi 14085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14086esac 14087fi 14088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14091 CFLAGS="$xorg_testset_save_CFLAGS" 14092fi 14093 14094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14097 fi 14098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14101if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14102then : 14103 printf %s "(cached) " >&6 14104else case e in #( 14105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106/* end confdefs.h. */ 14107int i; 14108_ACEOF 14109if ac_fn_c_try_compile "$LINENO" 14110then : 14111 xorg_cv_cc_flag_unused_command_line_argument=yes 14112else case e in #( 14113 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14114esac 14115fi 14116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14117esac 14118fi 14119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14122 CFLAGS="$xorg_testset_save_CFLAGS" 14123fi 14124 14125found="no" 14126 14127 if test $found = "no" ; then 14128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14130 fi 14131 14132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14134 fi 14135 14136 CFLAGS="$CFLAGS -Wstrict-prototypes" 14137 14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14139printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14140 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14141 if eval test \${$cacheid+y} 14142then : 14143 printf %s "(cached) " >&6 14144else case e in #( 14145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146/* end confdefs.h. */ 14147int i; 14148int 14149main (void) 14150{ 14151 14152 ; 14153 return 0; 14154} 14155_ACEOF 14156if ac_fn_c_try_link "$LINENO" 14157then : 14158 eval $cacheid=yes 14159else case e in #( 14160 e) eval $cacheid=no ;; 14161esac 14162fi 14163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14164 conftest$ac_exeext conftest.$ac_ext ;; 14165esac 14166fi 14167 14168 14169 CFLAGS="$xorg_testset_save_CFLAGS" 14170 14171 eval supported=\$$cacheid 14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14173printf "%s\n" "$supported" >&6; } 14174 if test "$supported" = "yes" ; then 14175 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14176 found="yes" 14177 fi 14178 fi 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194xorg_testset_save_CFLAGS="$CFLAGS" 14195 14196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14200if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14201then : 14202 printf %s "(cached) " >&6 14203else case e in #( 14204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14205/* end confdefs.h. */ 14206int i; 14207_ACEOF 14208if ac_fn_c_try_compile "$LINENO" 14209then : 14210 xorg_cv_cc_flag_unknown_warning_option=yes 14211else case e in #( 14212 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14213esac 14214fi 14215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14216esac 14217fi 14218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14221 CFLAGS="$xorg_testset_save_CFLAGS" 14222fi 14223 14224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14227 fi 14228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14232then : 14233 printf %s "(cached) " >&6 14234else case e in #( 14235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14236/* end confdefs.h. */ 14237int i; 14238_ACEOF 14239if ac_fn_c_try_compile "$LINENO" 14240then : 14241 xorg_cv_cc_flag_unused_command_line_argument=yes 14242else case e in #( 14243 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14244esac 14245fi 14246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14247esac 14248fi 14249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14250printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14252 CFLAGS="$xorg_testset_save_CFLAGS" 14253fi 14254 14255found="no" 14256 14257 if test $found = "no" ; then 14258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14260 fi 14261 14262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14264 fi 14265 14266 CFLAGS="$CFLAGS -Wmissing-prototypes" 14267 14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14269printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14270 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14271 if eval test \${$cacheid+y} 14272then : 14273 printf %s "(cached) " >&6 14274else case e in #( 14275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14276/* end confdefs.h. */ 14277int i; 14278int 14279main (void) 14280{ 14281 14282 ; 14283 return 0; 14284} 14285_ACEOF 14286if ac_fn_c_try_link "$LINENO" 14287then : 14288 eval $cacheid=yes 14289else case e in #( 14290 e) eval $cacheid=no ;; 14291esac 14292fi 14293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14294 conftest$ac_exeext conftest.$ac_ext ;; 14295esac 14296fi 14297 14298 14299 CFLAGS="$xorg_testset_save_CFLAGS" 14300 14301 eval supported=\$$cacheid 14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14303printf "%s\n" "$supported" >&6; } 14304 if test "$supported" = "yes" ; then 14305 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14306 found="yes" 14307 fi 14308 fi 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324xorg_testset_save_CFLAGS="$CFLAGS" 14325 14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14330if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14331then : 14332 printf %s "(cached) " >&6 14333else case e in #( 14334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335/* end confdefs.h. */ 14336int i; 14337_ACEOF 14338if ac_fn_c_try_compile "$LINENO" 14339then : 14340 xorg_cv_cc_flag_unknown_warning_option=yes 14341else case e in #( 14342 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14343esac 14344fi 14345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14346esac 14347fi 14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14351 CFLAGS="$xorg_testset_save_CFLAGS" 14352fi 14353 14354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14357 fi 14358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14361if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14362then : 14363 printf %s "(cached) " >&6 14364else case e in #( 14365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366/* end confdefs.h. */ 14367int i; 14368_ACEOF 14369if ac_fn_c_try_compile "$LINENO" 14370then : 14371 xorg_cv_cc_flag_unused_command_line_argument=yes 14372else case e in #( 14373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14374esac 14375fi 14376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14377esac 14378fi 14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14382 CFLAGS="$xorg_testset_save_CFLAGS" 14383fi 14384 14385found="no" 14386 14387 if test $found = "no" ; then 14388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14390 fi 14391 14392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14394 fi 14395 14396 CFLAGS="$CFLAGS -Wnested-externs" 14397 14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14399printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14400 cacheid=xorg_cv_cc_flag__Wnested_externs 14401 if eval test \${$cacheid+y} 14402then : 14403 printf %s "(cached) " >&6 14404else case e in #( 14405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14406/* end confdefs.h. */ 14407int i; 14408int 14409main (void) 14410{ 14411 14412 ; 14413 return 0; 14414} 14415_ACEOF 14416if ac_fn_c_try_link "$LINENO" 14417then : 14418 eval $cacheid=yes 14419else case e in #( 14420 e) eval $cacheid=no ;; 14421esac 14422fi 14423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14424 conftest$ac_exeext conftest.$ac_ext ;; 14425esac 14426fi 14427 14428 14429 CFLAGS="$xorg_testset_save_CFLAGS" 14430 14431 eval supported=\$$cacheid 14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14433printf "%s\n" "$supported" >&6; } 14434 if test "$supported" = "yes" ; then 14435 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14436 found="yes" 14437 fi 14438 fi 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454xorg_testset_save_CFLAGS="$CFLAGS" 14455 14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14460if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14461then : 14462 printf %s "(cached) " >&6 14463else case e in #( 14464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465/* end confdefs.h. */ 14466int i; 14467_ACEOF 14468if ac_fn_c_try_compile "$LINENO" 14469then : 14470 xorg_cv_cc_flag_unknown_warning_option=yes 14471else case e in #( 14472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14473esac 14474fi 14475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14476esac 14477fi 14478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14481 CFLAGS="$xorg_testset_save_CFLAGS" 14482fi 14483 14484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14487 fi 14488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14492then : 14493 printf %s "(cached) " >&6 14494else case e in #( 14495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14496/* end confdefs.h. */ 14497int i; 14498_ACEOF 14499if ac_fn_c_try_compile "$LINENO" 14500then : 14501 xorg_cv_cc_flag_unused_command_line_argument=yes 14502else case e in #( 14503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14504esac 14505fi 14506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14507esac 14508fi 14509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14512 CFLAGS="$xorg_testset_save_CFLAGS" 14513fi 14514 14515found="no" 14516 14517 if test $found = "no" ; then 14518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14520 fi 14521 14522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14524 fi 14525 14526 CFLAGS="$CFLAGS -Wbad-function-cast" 14527 14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14529printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14530 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14531 if eval test \${$cacheid+y} 14532then : 14533 printf %s "(cached) " >&6 14534else case e in #( 14535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14536/* end confdefs.h. */ 14537int i; 14538int 14539main (void) 14540{ 14541 14542 ; 14543 return 0; 14544} 14545_ACEOF 14546if ac_fn_c_try_link "$LINENO" 14547then : 14548 eval $cacheid=yes 14549else case e in #( 14550 e) eval $cacheid=no ;; 14551esac 14552fi 14553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14554 conftest$ac_exeext conftest.$ac_ext ;; 14555esac 14556fi 14557 14558 14559 CFLAGS="$xorg_testset_save_CFLAGS" 14560 14561 eval supported=\$$cacheid 14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14563printf "%s\n" "$supported" >&6; } 14564 if test "$supported" = "yes" ; then 14565 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14566 found="yes" 14567 fi 14568 fi 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584xorg_testset_save_CFLAGS="$CFLAGS" 14585 14586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14590if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14591then : 14592 printf %s "(cached) " >&6 14593else case e in #( 14594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14595/* end confdefs.h. */ 14596int i; 14597_ACEOF 14598if ac_fn_c_try_compile "$LINENO" 14599then : 14600 xorg_cv_cc_flag_unknown_warning_option=yes 14601else case e in #( 14602 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14603esac 14604fi 14605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14606esac 14607fi 14608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14611 CFLAGS="$xorg_testset_save_CFLAGS" 14612fi 14613 14614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14617 fi 14618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14621if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14622then : 14623 printf %s "(cached) " >&6 14624else case e in #( 14625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14626/* end confdefs.h. */ 14627int i; 14628_ACEOF 14629if ac_fn_c_try_compile "$LINENO" 14630then : 14631 xorg_cv_cc_flag_unused_command_line_argument=yes 14632else case e in #( 14633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14634esac 14635fi 14636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14637esac 14638fi 14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14642 CFLAGS="$xorg_testset_save_CFLAGS" 14643fi 14644 14645found="no" 14646 14647 if test $found = "no" ; then 14648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14650 fi 14651 14652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14654 fi 14655 14656 CFLAGS="$CFLAGS -Wold-style-definition" 14657 14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14659printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14660 cacheid=xorg_cv_cc_flag__Wold_style_definition 14661 if eval test \${$cacheid+y} 14662then : 14663 printf %s "(cached) " >&6 14664else case e in #( 14665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14666/* end confdefs.h. */ 14667int i; 14668int 14669main (void) 14670{ 14671 14672 ; 14673 return 0; 14674} 14675_ACEOF 14676if ac_fn_c_try_link "$LINENO" 14677then : 14678 eval $cacheid=yes 14679else case e in #( 14680 e) eval $cacheid=no ;; 14681esac 14682fi 14683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14684 conftest$ac_exeext conftest.$ac_ext ;; 14685esac 14686fi 14687 14688 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690 14691 eval supported=\$$cacheid 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14693printf "%s\n" "$supported" >&6; } 14694 if test "$supported" = "yes" ; then 14695 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14696 found="yes" 14697 fi 14698 fi 14699 14700 if test $found = "no" ; then 14701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14703 fi 14704 14705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14707 fi 14708 14709 CFLAGS="$CFLAGS -fd" 14710 14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14712printf %s "checking if $CC supports -fd... " >&6; } 14713 cacheid=xorg_cv_cc_flag__fd 14714 if eval test \${$cacheid+y} 14715then : 14716 printf %s "(cached) " >&6 14717else case e in #( 14718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14719/* end confdefs.h. */ 14720int i; 14721int 14722main (void) 14723{ 14724 14725 ; 14726 return 0; 14727} 14728_ACEOF 14729if ac_fn_c_try_link "$LINENO" 14730then : 14731 eval $cacheid=yes 14732else case e in #( 14733 e) eval $cacheid=no ;; 14734esac 14735fi 14736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14737 conftest$ac_exeext conftest.$ac_ext ;; 14738esac 14739fi 14740 14741 14742 CFLAGS="$xorg_testset_save_CFLAGS" 14743 14744 eval supported=\$$cacheid 14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14746printf "%s\n" "$supported" >&6; } 14747 if test "$supported" = "yes" ; then 14748 BASE_CFLAGS="$BASE_CFLAGS -fd" 14749 found="yes" 14750 fi 14751 fi 14752 14753 14754 14755 14756 14757# This chunk adds additional warnings that could catch undesired effects. 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771xorg_testset_save_CFLAGS="$CFLAGS" 14772 14773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14777if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14778then : 14779 printf %s "(cached) " >&6 14780else case e in #( 14781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14782/* end confdefs.h. */ 14783int i; 14784_ACEOF 14785if ac_fn_c_try_compile "$LINENO" 14786then : 14787 xorg_cv_cc_flag_unknown_warning_option=yes 14788else case e in #( 14789 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14790esac 14791fi 14792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14793esac 14794fi 14795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14798 CFLAGS="$xorg_testset_save_CFLAGS" 14799fi 14800 14801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14804 fi 14805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14809then : 14810 printf %s "(cached) " >&6 14811else case e in #( 14812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814int i; 14815_ACEOF 14816if ac_fn_c_try_compile "$LINENO" 14817then : 14818 xorg_cv_cc_flag_unused_command_line_argument=yes 14819else case e in #( 14820 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14821esac 14822fi 14823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14824esac 14825fi 14826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14829 CFLAGS="$xorg_testset_save_CFLAGS" 14830fi 14831 14832found="no" 14833 14834 if test $found = "no" ; then 14835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14837 fi 14838 14839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14841 fi 14842 14843 CFLAGS="$CFLAGS -Wunused" 14844 14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14846printf %s "checking if $CC supports -Wunused... " >&6; } 14847 cacheid=xorg_cv_cc_flag__Wunused 14848 if eval test \${$cacheid+y} 14849then : 14850 printf %s "(cached) " >&6 14851else case e in #( 14852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854int i; 14855int 14856main (void) 14857{ 14858 14859 ; 14860 return 0; 14861} 14862_ACEOF 14863if ac_fn_c_try_link "$LINENO" 14864then : 14865 eval $cacheid=yes 14866else case e in #( 14867 e) eval $cacheid=no ;; 14868esac 14869fi 14870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14871 conftest$ac_exeext conftest.$ac_ext ;; 14872esac 14873fi 14874 14875 14876 CFLAGS="$xorg_testset_save_CFLAGS" 14877 14878 eval supported=\$$cacheid 14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14880printf "%s\n" "$supported" >&6; } 14881 if test "$supported" = "yes" ; then 14882 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14883 found="yes" 14884 fi 14885 fi 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901xorg_testset_save_CFLAGS="$CFLAGS" 14902 14903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14908then : 14909 printf %s "(cached) " >&6 14910else case e in #( 14911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14912/* end confdefs.h. */ 14913int i; 14914_ACEOF 14915if ac_fn_c_try_compile "$LINENO" 14916then : 14917 xorg_cv_cc_flag_unknown_warning_option=yes 14918else case e in #( 14919 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14920esac 14921fi 14922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14923esac 14924fi 14925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14928 CFLAGS="$xorg_testset_save_CFLAGS" 14929fi 14930 14931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14934 fi 14935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14939then : 14940 printf %s "(cached) " >&6 14941else case e in #( 14942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944int i; 14945_ACEOF 14946if ac_fn_c_try_compile "$LINENO" 14947then : 14948 xorg_cv_cc_flag_unused_command_line_argument=yes 14949else case e in #( 14950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14951esac 14952fi 14953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14954esac 14955fi 14956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14959 CFLAGS="$xorg_testset_save_CFLAGS" 14960fi 14961 14962found="no" 14963 14964 if test $found = "no" ; then 14965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14967 fi 14968 14969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14971 fi 14972 14973 CFLAGS="$CFLAGS -Wuninitialized" 14974 14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14976printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14977 cacheid=xorg_cv_cc_flag__Wuninitialized 14978 if eval test \${$cacheid+y} 14979then : 14980 printf %s "(cached) " >&6 14981else case e in #( 14982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984int i; 14985int 14986main (void) 14987{ 14988 14989 ; 14990 return 0; 14991} 14992_ACEOF 14993if ac_fn_c_try_link "$LINENO" 14994then : 14995 eval $cacheid=yes 14996else case e in #( 14997 e) eval $cacheid=no ;; 14998esac 14999fi 15000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15001 conftest$ac_exeext conftest.$ac_ext ;; 15002esac 15003fi 15004 15005 15006 CFLAGS="$xorg_testset_save_CFLAGS" 15007 15008 eval supported=\$$cacheid 15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15010printf "%s\n" "$supported" >&6; } 15011 if test "$supported" = "yes" ; then 15012 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15013 found="yes" 15014 fi 15015 fi 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031xorg_testset_save_CFLAGS="$CFLAGS" 15032 15033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15038then : 15039 printf %s "(cached) " >&6 15040else case e in #( 15041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15042/* end confdefs.h. */ 15043int i; 15044_ACEOF 15045if ac_fn_c_try_compile "$LINENO" 15046then : 15047 xorg_cv_cc_flag_unknown_warning_option=yes 15048else case e in #( 15049 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15050esac 15051fi 15052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15053esac 15054fi 15055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15058 CFLAGS="$xorg_testset_save_CFLAGS" 15059fi 15060 15061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15064 fi 15065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15069then : 15070 printf %s "(cached) " >&6 15071else case e in #( 15072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15073/* end confdefs.h. */ 15074int i; 15075_ACEOF 15076if ac_fn_c_try_compile "$LINENO" 15077then : 15078 xorg_cv_cc_flag_unused_command_line_argument=yes 15079else case e in #( 15080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15081esac 15082fi 15083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15084esac 15085fi 15086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090fi 15091 15092found="no" 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 -Wshadow" 15104 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15106printf %s "checking if $CC supports -Wshadow... " >&6; } 15107 cacheid=xorg_cv_cc_flag__Wshadow 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 -Wshadow" 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 -Wmissing-noreturn" 15234 15235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15236printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15237 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 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 -Wmissing-noreturn" 15273 found="yes" 15274 fi 15275 fi 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291xorg_testset_save_CFLAGS="$CFLAGS" 15292 15293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15297if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15298then : 15299 printf %s "(cached) " >&6 15300else case e in #( 15301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15302/* end confdefs.h. */ 15303int i; 15304_ACEOF 15305if ac_fn_c_try_compile "$LINENO" 15306then : 15307 xorg_cv_cc_flag_unknown_warning_option=yes 15308else case e in #( 15309 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15310esac 15311fi 15312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15313esac 15314fi 15315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15318 CFLAGS="$xorg_testset_save_CFLAGS" 15319fi 15320 15321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15324 fi 15325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15328if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15329then : 15330 printf %s "(cached) " >&6 15331else case e in #( 15332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333/* end confdefs.h. */ 15334int i; 15335_ACEOF 15336if ac_fn_c_try_compile "$LINENO" 15337then : 15338 xorg_cv_cc_flag_unused_command_line_argument=yes 15339else case e in #( 15340 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15341esac 15342fi 15343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15344esac 15345fi 15346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15349 CFLAGS="$xorg_testset_save_CFLAGS" 15350fi 15351 15352found="no" 15353 15354 if test $found = "no" ; then 15355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15357 fi 15358 15359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15361 fi 15362 15363 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15364 15365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15366printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15367 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15368 if eval test \${$cacheid+y} 15369then : 15370 printf %s "(cached) " >&6 15371else case e in #( 15372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15373/* end confdefs.h. */ 15374int i; 15375int 15376main (void) 15377{ 15378 15379 ; 15380 return 0; 15381} 15382_ACEOF 15383if ac_fn_c_try_link "$LINENO" 15384then : 15385 eval $cacheid=yes 15386else case e in #( 15387 e) eval $cacheid=no ;; 15388esac 15389fi 15390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15391 conftest$ac_exeext conftest.$ac_ext ;; 15392esac 15393fi 15394 15395 15396 CFLAGS="$xorg_testset_save_CFLAGS" 15397 15398 eval supported=\$$cacheid 15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15400printf "%s\n" "$supported" >&6; } 15401 if test "$supported" = "yes" ; then 15402 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15403 found="yes" 15404 fi 15405 fi 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421xorg_testset_save_CFLAGS="$CFLAGS" 15422 15423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15428then : 15429 printf %s "(cached) " >&6 15430else case e in #( 15431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432/* end confdefs.h. */ 15433int i; 15434_ACEOF 15435if ac_fn_c_try_compile "$LINENO" 15436then : 15437 xorg_cv_cc_flag_unknown_warning_option=yes 15438else case e in #( 15439 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15440esac 15441fi 15442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15443esac 15444fi 15445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15448 CFLAGS="$xorg_testset_save_CFLAGS" 15449fi 15450 15451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15454 fi 15455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15458if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15459then : 15460 printf %s "(cached) " >&6 15461else case e in #( 15462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15463/* end confdefs.h. */ 15464int i; 15465_ACEOF 15466if ac_fn_c_try_compile "$LINENO" 15467then : 15468 xorg_cv_cc_flag_unused_command_line_argument=yes 15469else case e in #( 15470 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15471esac 15472fi 15473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15474esac 15475fi 15476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15477printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480fi 15481 15482found="no" 15483 15484 if test $found = "no" ; then 15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15487 fi 15488 15489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15491 fi 15492 15493 CFLAGS="$CFLAGS -Wredundant-decls" 15494 15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15496printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15497 cacheid=xorg_cv_cc_flag__Wredundant_decls 15498 if eval test \${$cacheid+y} 15499then : 15500 printf %s "(cached) " >&6 15501else case e in #( 15502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15503/* end confdefs.h. */ 15504int i; 15505int 15506main (void) 15507{ 15508 15509 ; 15510 return 0; 15511} 15512_ACEOF 15513if ac_fn_c_try_link "$LINENO" 15514then : 15515 eval $cacheid=yes 15516else case e in #( 15517 e) eval $cacheid=no ;; 15518esac 15519fi 15520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15521 conftest$ac_exeext conftest.$ac_ext ;; 15522esac 15523fi 15524 15525 15526 CFLAGS="$xorg_testset_save_CFLAGS" 15527 15528 eval supported=\$$cacheid 15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15530printf "%s\n" "$supported" >&6; } 15531 if test "$supported" = "yes" ; then 15532 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15533 found="yes" 15534 fi 15535 fi 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551xorg_testset_save_CFLAGS="$CFLAGS" 15552 15553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15556printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15557if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15558then : 15559 printf %s "(cached) " >&6 15560else case e in #( 15561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15562/* end confdefs.h. */ 15563int i; 15564_ACEOF 15565if ac_fn_c_try_compile "$LINENO" 15566then : 15567 xorg_cv_cc_flag_unknown_warning_option=yes 15568else case e in #( 15569 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15570esac 15571fi 15572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15573esac 15574fi 15575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579fi 15580 15581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15584 fi 15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15588if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15589then : 15590 printf %s "(cached) " >&6 15591else case e in #( 15592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594int i; 15595_ACEOF 15596if ac_fn_c_try_compile "$LINENO" 15597then : 15598 xorg_cv_cc_flag_unused_command_line_argument=yes 15599else case e in #( 15600 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15601esac 15602fi 15603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15604esac 15605fi 15606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15607printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15609 CFLAGS="$xorg_testset_save_CFLAGS" 15610fi 15611 15612found="no" 15613 15614 if test $found = "no" ; then 15615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15617 fi 15618 15619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15621 fi 15622 15623 CFLAGS="$CFLAGS -Wlogical-op" 15624 15625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15626printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15627 cacheid=xorg_cv_cc_flag__Wlogical_op 15628 if eval test \${$cacheid+y} 15629then : 15630 printf %s "(cached) " >&6 15631else case e in #( 15632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15633/* end confdefs.h. */ 15634int i; 15635int 15636main (void) 15637{ 15638 15639 ; 15640 return 0; 15641} 15642_ACEOF 15643if ac_fn_c_try_link "$LINENO" 15644then : 15645 eval $cacheid=yes 15646else case e in #( 15647 e) eval $cacheid=no ;; 15648esac 15649fi 15650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15651 conftest$ac_exeext conftest.$ac_ext ;; 15652esac 15653fi 15654 15655 15656 CFLAGS="$xorg_testset_save_CFLAGS" 15657 15658 eval supported=\$$cacheid 15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15660printf "%s\n" "$supported" >&6; } 15661 if test "$supported" = "yes" ; then 15662 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15663 found="yes" 15664 fi 15665 fi 15666 15667 15668 15669# These are currently disabled because they are noisy. They will be enabled 15670# in the future once the codebase is sufficiently modernized to silence 15671# them. For now, I don't want them to drown out the other warnings. 15672# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15673# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15674# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15675 15676# Turn some warnings into errors, so we don't accidentally get successful builds 15677# when there are problems that should be fixed. 15678 15679if test "x$SELECTIVE_WERROR" = "xyes" ; then 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693xorg_testset_save_CFLAGS="$CFLAGS" 15694 15695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15700then : 15701 printf %s "(cached) " >&6 15702else case e in #( 15703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15704/* end confdefs.h. */ 15705int i; 15706_ACEOF 15707if ac_fn_c_try_compile "$LINENO" 15708then : 15709 xorg_cv_cc_flag_unknown_warning_option=yes 15710else case e in #( 15711 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15712esac 15713fi 15714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15715esac 15716fi 15717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15720 CFLAGS="$xorg_testset_save_CFLAGS" 15721fi 15722 15723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15726 fi 15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15731then : 15732 printf %s "(cached) " >&6 15733else case e in #( 15734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735/* end confdefs.h. */ 15736int i; 15737_ACEOF 15738if ac_fn_c_try_compile "$LINENO" 15739then : 15740 xorg_cv_cc_flag_unused_command_line_argument=yes 15741else case e in #( 15742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15743esac 15744fi 15745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15746esac 15747fi 15748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15751 CFLAGS="$xorg_testset_save_CFLAGS" 15752fi 15753 15754found="no" 15755 15756 if test $found = "no" ; then 15757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15759 fi 15760 15761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15763 fi 15764 15765 CFLAGS="$CFLAGS -Werror=implicit" 15766 15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15768printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15769 cacheid=xorg_cv_cc_flag__Werror_implicit 15770 if eval test \${$cacheid+y} 15771then : 15772 printf %s "(cached) " >&6 15773else case e in #( 15774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15775/* end confdefs.h. */ 15776int i; 15777int 15778main (void) 15779{ 15780 15781 ; 15782 return 0; 15783} 15784_ACEOF 15785if ac_fn_c_try_link "$LINENO" 15786then : 15787 eval $cacheid=yes 15788else case e in #( 15789 e) eval $cacheid=no ;; 15790esac 15791fi 15792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15793 conftest$ac_exeext conftest.$ac_ext ;; 15794esac 15795fi 15796 15797 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799 15800 eval supported=\$$cacheid 15801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15802printf "%s\n" "$supported" >&6; } 15803 if test "$supported" = "yes" ; then 15804 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15805 found="yes" 15806 fi 15807 fi 15808 15809 if test $found = "no" ; then 15810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15812 fi 15813 15814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15816 fi 15817 15818 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15819 15820 { 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 15821printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15822 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15823 if eval test \${$cacheid+y} 15824then : 15825 printf %s "(cached) " >&6 15826else case e in #( 15827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829int i; 15830int 15831main (void) 15832{ 15833 15834 ; 15835 return 0; 15836} 15837_ACEOF 15838if ac_fn_c_try_link "$LINENO" 15839then : 15840 eval $cacheid=yes 15841else case e in #( 15842 e) eval $cacheid=no ;; 15843esac 15844fi 15845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15846 conftest$ac_exeext conftest.$ac_ext ;; 15847esac 15848fi 15849 15850 15851 CFLAGS="$xorg_testset_save_CFLAGS" 15852 15853 eval supported=\$$cacheid 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15855printf "%s\n" "$supported" >&6; } 15856 if test "$supported" = "yes" ; then 15857 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15858 found="yes" 15859 fi 15860 fi 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876xorg_testset_save_CFLAGS="$CFLAGS" 15877 15878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15882if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15883then : 15884 printf %s "(cached) " >&6 15885else case e in #( 15886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887/* end confdefs.h. */ 15888int i; 15889_ACEOF 15890if ac_fn_c_try_compile "$LINENO" 15891then : 15892 xorg_cv_cc_flag_unknown_warning_option=yes 15893else case e in #( 15894 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15895esac 15896fi 15897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15898esac 15899fi 15900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15903 CFLAGS="$xorg_testset_save_CFLAGS" 15904fi 15905 15906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15909 fi 15910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15913if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15914then : 15915 printf %s "(cached) " >&6 15916else case e in #( 15917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15918/* end confdefs.h. */ 15919int i; 15920_ACEOF 15921if ac_fn_c_try_compile "$LINENO" 15922then : 15923 xorg_cv_cc_flag_unused_command_line_argument=yes 15924else case e in #( 15925 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15926esac 15927fi 15928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15929esac 15930fi 15931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15934 CFLAGS="$xorg_testset_save_CFLAGS" 15935fi 15936 15937found="no" 15938 15939 if test $found = "no" ; then 15940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15942 fi 15943 15944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15946 fi 15947 15948 CFLAGS="$CFLAGS -Werror=nonnull" 15949 15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15951printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15952 cacheid=xorg_cv_cc_flag__Werror_nonnull 15953 if eval test \${$cacheid+y} 15954then : 15955 printf %s "(cached) " >&6 15956else case e in #( 15957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15958/* end confdefs.h. */ 15959int i; 15960int 15961main (void) 15962{ 15963 15964 ; 15965 return 0; 15966} 15967_ACEOF 15968if ac_fn_c_try_link "$LINENO" 15969then : 15970 eval $cacheid=yes 15971else case e in #( 15972 e) eval $cacheid=no ;; 15973esac 15974fi 15975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15976 conftest$ac_exeext conftest.$ac_ext ;; 15977esac 15978fi 15979 15980 15981 CFLAGS="$xorg_testset_save_CFLAGS" 15982 15983 eval supported=\$$cacheid 15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15985printf "%s\n" "$supported" >&6; } 15986 if test "$supported" = "yes" ; then 15987 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15988 found="yes" 15989 fi 15990 fi 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006xorg_testset_save_CFLAGS="$CFLAGS" 16007 16008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16012if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16013then : 16014 printf %s "(cached) " >&6 16015else case e in #( 16016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16017/* end confdefs.h. */ 16018int i; 16019_ACEOF 16020if ac_fn_c_try_compile "$LINENO" 16021then : 16022 xorg_cv_cc_flag_unknown_warning_option=yes 16023else case e in #( 16024 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16025esac 16026fi 16027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16028esac 16029fi 16030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16033 CFLAGS="$xorg_testset_save_CFLAGS" 16034fi 16035 16036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16039 fi 16040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16043if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16044then : 16045 printf %s "(cached) " >&6 16046else case e in #( 16047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16048/* end confdefs.h. */ 16049int i; 16050_ACEOF 16051if ac_fn_c_try_compile "$LINENO" 16052then : 16053 xorg_cv_cc_flag_unused_command_line_argument=yes 16054else case e in #( 16055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16056esac 16057fi 16058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16059esac 16060fi 16061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16064 CFLAGS="$xorg_testset_save_CFLAGS" 16065fi 16066 16067found="no" 16068 16069 if test $found = "no" ; then 16070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16072 fi 16073 16074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16076 fi 16077 16078 CFLAGS="$CFLAGS -Werror=init-self" 16079 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16081printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16082 cacheid=xorg_cv_cc_flag__Werror_init_self 16083 if eval test \${$cacheid+y} 16084then : 16085 printf %s "(cached) " >&6 16086else case e in #( 16087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090int 16091main (void) 16092{ 16093 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098if ac_fn_c_try_link "$LINENO" 16099then : 16100 eval $cacheid=yes 16101else case e in #( 16102 e) eval $cacheid=no ;; 16103esac 16104fi 16105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16106 conftest$ac_exeext conftest.$ac_ext ;; 16107esac 16108fi 16109 16110 16111 CFLAGS="$xorg_testset_save_CFLAGS" 16112 16113 eval supported=\$$cacheid 16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16115printf "%s\n" "$supported" >&6; } 16116 if test "$supported" = "yes" ; then 16117 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16118 found="yes" 16119 fi 16120 fi 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136xorg_testset_save_CFLAGS="$CFLAGS" 16137 16138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16142if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16143then : 16144 printf %s "(cached) " >&6 16145else case e in #( 16146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16147/* end confdefs.h. */ 16148int i; 16149_ACEOF 16150if ac_fn_c_try_compile "$LINENO" 16151then : 16152 xorg_cv_cc_flag_unknown_warning_option=yes 16153else case e in #( 16154 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16155esac 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16158esac 16159fi 16160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16163 CFLAGS="$xorg_testset_save_CFLAGS" 16164fi 16165 16166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16169 fi 16170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16173if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16174then : 16175 printf %s "(cached) " >&6 16176else case e in #( 16177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178/* end confdefs.h. */ 16179int i; 16180_ACEOF 16181if ac_fn_c_try_compile "$LINENO" 16182then : 16183 xorg_cv_cc_flag_unused_command_line_argument=yes 16184else case e in #( 16185 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16186esac 16187fi 16188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16189esac 16190fi 16191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16194 CFLAGS="$xorg_testset_save_CFLAGS" 16195fi 16196 16197found="no" 16198 16199 if test $found = "no" ; then 16200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16202 fi 16203 16204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16206 fi 16207 16208 CFLAGS="$CFLAGS -Werror=main" 16209 16210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16211printf %s "checking if $CC supports -Werror=main... " >&6; } 16212 cacheid=xorg_cv_cc_flag__Werror_main 16213 if eval test \${$cacheid+y} 16214then : 16215 printf %s "(cached) " >&6 16216else case e in #( 16217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16218/* end confdefs.h. */ 16219int i; 16220int 16221main (void) 16222{ 16223 16224 ; 16225 return 0; 16226} 16227_ACEOF 16228if ac_fn_c_try_link "$LINENO" 16229then : 16230 eval $cacheid=yes 16231else case e in #( 16232 e) eval $cacheid=no ;; 16233esac 16234fi 16235rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16236 conftest$ac_exeext conftest.$ac_ext ;; 16237esac 16238fi 16239 16240 16241 CFLAGS="$xorg_testset_save_CFLAGS" 16242 16243 eval supported=\$$cacheid 16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16245printf "%s\n" "$supported" >&6; } 16246 if test "$supported" = "yes" ; then 16247 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16248 found="yes" 16249 fi 16250 fi 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266xorg_testset_save_CFLAGS="$CFLAGS" 16267 16268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16272if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16273then : 16274 printf %s "(cached) " >&6 16275else case e in #( 16276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16277/* end confdefs.h. */ 16278int i; 16279_ACEOF 16280if ac_fn_c_try_compile "$LINENO" 16281then : 16282 xorg_cv_cc_flag_unknown_warning_option=yes 16283else case e in #( 16284 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16285esac 16286fi 16287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16288esac 16289fi 16290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16293 CFLAGS="$xorg_testset_save_CFLAGS" 16294fi 16295 16296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16299 fi 16300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16303if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16304then : 16305 printf %s "(cached) " >&6 16306else case e in #( 16307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16308/* end confdefs.h. */ 16309int i; 16310_ACEOF 16311if ac_fn_c_try_compile "$LINENO" 16312then : 16313 xorg_cv_cc_flag_unused_command_line_argument=yes 16314else case e in #( 16315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16316esac 16317fi 16318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16319esac 16320fi 16321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325fi 16326 16327found="no" 16328 16329 if test $found = "no" ; then 16330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16332 fi 16333 16334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16336 fi 16337 16338 CFLAGS="$CFLAGS -Werror=missing-braces" 16339 16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16341printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16342 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16343 if eval test \${$cacheid+y} 16344then : 16345 printf %s "(cached) " >&6 16346else case e in #( 16347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16348/* end confdefs.h. */ 16349int i; 16350int 16351main (void) 16352{ 16353 16354 ; 16355 return 0; 16356} 16357_ACEOF 16358if ac_fn_c_try_link "$LINENO" 16359then : 16360 eval $cacheid=yes 16361else case e in #( 16362 e) eval $cacheid=no ;; 16363esac 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16366 conftest$ac_exeext conftest.$ac_ext ;; 16367esac 16368fi 16369 16370 16371 CFLAGS="$xorg_testset_save_CFLAGS" 16372 16373 eval supported=\$$cacheid 16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16375printf "%s\n" "$supported" >&6; } 16376 if test "$supported" = "yes" ; then 16377 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16378 found="yes" 16379 fi 16380 fi 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396xorg_testset_save_CFLAGS="$CFLAGS" 16397 16398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16402if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16403then : 16404 printf %s "(cached) " >&6 16405else case e in #( 16406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16407/* end confdefs.h. */ 16408int i; 16409_ACEOF 16410if ac_fn_c_try_compile "$LINENO" 16411then : 16412 xorg_cv_cc_flag_unknown_warning_option=yes 16413else case e in #( 16414 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16415esac 16416fi 16417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16418esac 16419fi 16420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16423 CFLAGS="$xorg_testset_save_CFLAGS" 16424fi 16425 16426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16429 fi 16430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16433if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16434then : 16435 printf %s "(cached) " >&6 16436else case e in #( 16437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16438/* end confdefs.h. */ 16439int i; 16440_ACEOF 16441if ac_fn_c_try_compile "$LINENO" 16442then : 16443 xorg_cv_cc_flag_unused_command_line_argument=yes 16444else case e in #( 16445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16446esac 16447fi 16448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16449esac 16450fi 16451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16454 CFLAGS="$xorg_testset_save_CFLAGS" 16455fi 16456 16457found="no" 16458 16459 if test $found = "no" ; then 16460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16462 fi 16463 16464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16466 fi 16467 16468 CFLAGS="$CFLAGS -Werror=sequence-point" 16469 16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16471printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16472 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16473 if eval test \${$cacheid+y} 16474then : 16475 printf %s "(cached) " >&6 16476else case e in #( 16477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16478/* end confdefs.h. */ 16479int i; 16480int 16481main (void) 16482{ 16483 16484 ; 16485 return 0; 16486} 16487_ACEOF 16488if ac_fn_c_try_link "$LINENO" 16489then : 16490 eval $cacheid=yes 16491else case e in #( 16492 e) eval $cacheid=no ;; 16493esac 16494fi 16495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16496 conftest$ac_exeext conftest.$ac_ext ;; 16497esac 16498fi 16499 16500 16501 CFLAGS="$xorg_testset_save_CFLAGS" 16502 16503 eval supported=\$$cacheid 16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16505printf "%s\n" "$supported" >&6; } 16506 if test "$supported" = "yes" ; then 16507 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16508 found="yes" 16509 fi 16510 fi 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526xorg_testset_save_CFLAGS="$CFLAGS" 16527 16528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16532if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16533then : 16534 printf %s "(cached) " >&6 16535else case e in #( 16536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16537/* end confdefs.h. */ 16538int i; 16539_ACEOF 16540if ac_fn_c_try_compile "$LINENO" 16541then : 16542 xorg_cv_cc_flag_unknown_warning_option=yes 16543else case e in #( 16544 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16545esac 16546fi 16547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16548esac 16549fi 16550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16553 CFLAGS="$xorg_testset_save_CFLAGS" 16554fi 16555 16556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16559 fi 16560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16563if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16564then : 16565 printf %s "(cached) " >&6 16566else case e in #( 16567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16568/* end confdefs.h. */ 16569int i; 16570_ACEOF 16571if ac_fn_c_try_compile "$LINENO" 16572then : 16573 xorg_cv_cc_flag_unused_command_line_argument=yes 16574else case e in #( 16575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16576esac 16577fi 16578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16579esac 16580fi 16581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16584 CFLAGS="$xorg_testset_save_CFLAGS" 16585fi 16586 16587found="no" 16588 16589 if test $found = "no" ; then 16590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16592 fi 16593 16594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16596 fi 16597 16598 CFLAGS="$CFLAGS -Werror=return-type" 16599 16600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16601printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16602 cacheid=xorg_cv_cc_flag__Werror_return_type 16603 if eval test \${$cacheid+y} 16604then : 16605 printf %s "(cached) " >&6 16606else case e in #( 16607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609int i; 16610int 16611main (void) 16612{ 16613 16614 ; 16615 return 0; 16616} 16617_ACEOF 16618if ac_fn_c_try_link "$LINENO" 16619then : 16620 eval $cacheid=yes 16621else case e in #( 16622 e) eval $cacheid=no ;; 16623esac 16624fi 16625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16626 conftest$ac_exeext conftest.$ac_ext ;; 16627esac 16628fi 16629 16630 16631 CFLAGS="$xorg_testset_save_CFLAGS" 16632 16633 eval supported=\$$cacheid 16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16635printf "%s\n" "$supported" >&6; } 16636 if test "$supported" = "yes" ; then 16637 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16638 found="yes" 16639 fi 16640 fi 16641 16642 if test $found = "no" ; then 16643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16645 fi 16646 16647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16649 fi 16650 16651 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16652 16653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16654printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16655 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16656 if eval test \${$cacheid+y} 16657then : 16658 printf %s "(cached) " >&6 16659else case e in #( 16660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16661/* end confdefs.h. */ 16662int i; 16663int 16664main (void) 16665{ 16666 16667 ; 16668 return 0; 16669} 16670_ACEOF 16671if ac_fn_c_try_link "$LINENO" 16672then : 16673 eval $cacheid=yes 16674else case e in #( 16675 e) eval $cacheid=no ;; 16676esac 16677fi 16678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16679 conftest$ac_exeext conftest.$ac_ext ;; 16680esac 16681fi 16682 16683 16684 CFLAGS="$xorg_testset_save_CFLAGS" 16685 16686 eval supported=\$$cacheid 16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16688printf "%s\n" "$supported" >&6; } 16689 if test "$supported" = "yes" ; then 16690 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16691 found="yes" 16692 fi 16693 fi 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709xorg_testset_save_CFLAGS="$CFLAGS" 16710 16711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16715if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16716then : 16717 printf %s "(cached) " >&6 16718else case e in #( 16719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16720/* end confdefs.h. */ 16721int i; 16722_ACEOF 16723if ac_fn_c_try_compile "$LINENO" 16724then : 16725 xorg_cv_cc_flag_unknown_warning_option=yes 16726else case e in #( 16727 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16728esac 16729fi 16730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16731esac 16732fi 16733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16736 CFLAGS="$xorg_testset_save_CFLAGS" 16737fi 16738 16739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16742 fi 16743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16747then : 16748 printf %s "(cached) " >&6 16749else case e in #( 16750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751/* end confdefs.h. */ 16752int i; 16753_ACEOF 16754if ac_fn_c_try_compile "$LINENO" 16755then : 16756 xorg_cv_cc_flag_unused_command_line_argument=yes 16757else case e in #( 16758 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16759esac 16760fi 16761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16762esac 16763fi 16764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16765printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16767 CFLAGS="$xorg_testset_save_CFLAGS" 16768fi 16769 16770found="no" 16771 16772 if test $found = "no" ; then 16773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16775 fi 16776 16777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16779 fi 16780 16781 CFLAGS="$CFLAGS -Werror=trigraphs" 16782 16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16784printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16785 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16786 if eval test \${$cacheid+y} 16787then : 16788 printf %s "(cached) " >&6 16789else case e in #( 16790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16791/* end confdefs.h. */ 16792int i; 16793int 16794main (void) 16795{ 16796 16797 ; 16798 return 0; 16799} 16800_ACEOF 16801if ac_fn_c_try_link "$LINENO" 16802then : 16803 eval $cacheid=yes 16804else case e in #( 16805 e) eval $cacheid=no ;; 16806esac 16807fi 16808rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16809 conftest$ac_exeext conftest.$ac_ext ;; 16810esac 16811fi 16812 16813 16814 CFLAGS="$xorg_testset_save_CFLAGS" 16815 16816 eval supported=\$$cacheid 16817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16818printf "%s\n" "$supported" >&6; } 16819 if test "$supported" = "yes" ; then 16820 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16821 found="yes" 16822 fi 16823 fi 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839xorg_testset_save_CFLAGS="$CFLAGS" 16840 16841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16845if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16846then : 16847 printf %s "(cached) " >&6 16848else case e in #( 16849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16850/* end confdefs.h. */ 16851int i; 16852_ACEOF 16853if ac_fn_c_try_compile "$LINENO" 16854then : 16855 xorg_cv_cc_flag_unknown_warning_option=yes 16856else case e in #( 16857 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16858esac 16859fi 16860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16861esac 16862fi 16863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16866 CFLAGS="$xorg_testset_save_CFLAGS" 16867fi 16868 16869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16872 fi 16873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16877then : 16878 printf %s "(cached) " >&6 16879else case e in #( 16880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881/* end confdefs.h. */ 16882int i; 16883_ACEOF 16884if ac_fn_c_try_compile "$LINENO" 16885then : 16886 xorg_cv_cc_flag_unused_command_line_argument=yes 16887else case e in #( 16888 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16889esac 16890fi 16891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16892esac 16893fi 16894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898fi 16899 16900found="no" 16901 16902 if test $found = "no" ; then 16903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16905 fi 16906 16907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 fi 16910 16911 CFLAGS="$CFLAGS -Werror=array-bounds" 16912 16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16914printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16915 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16916 if eval test \${$cacheid+y} 16917then : 16918 printf %s "(cached) " >&6 16919else case e in #( 16920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16921/* end confdefs.h. */ 16922int i; 16923int 16924main (void) 16925{ 16926 16927 ; 16928 return 0; 16929} 16930_ACEOF 16931if ac_fn_c_try_link "$LINENO" 16932then : 16933 eval $cacheid=yes 16934else case e in #( 16935 e) eval $cacheid=no ;; 16936esac 16937fi 16938rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16939 conftest$ac_exeext conftest.$ac_ext ;; 16940esac 16941fi 16942 16943 16944 CFLAGS="$xorg_testset_save_CFLAGS" 16945 16946 eval supported=\$$cacheid 16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16948printf "%s\n" "$supported" >&6; } 16949 if test "$supported" = "yes" ; then 16950 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16951 found="yes" 16952 fi 16953 fi 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969xorg_testset_save_CFLAGS="$CFLAGS" 16970 16971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16975if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16976then : 16977 printf %s "(cached) " >&6 16978else case e in #( 16979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981int i; 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO" 16984then : 16985 xorg_cv_cc_flag_unknown_warning_option=yes 16986else case e in #( 16987 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16988esac 16989fi 16990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16991esac 16992fi 16993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16996 CFLAGS="$xorg_testset_save_CFLAGS" 16997fi 16998 16999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17002 fi 17003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17006if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17007then : 17008 printf %s "(cached) " >&6 17009else case e in #( 17010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17011/* end confdefs.h. */ 17012int i; 17013_ACEOF 17014if ac_fn_c_try_compile "$LINENO" 17015then : 17016 xorg_cv_cc_flag_unused_command_line_argument=yes 17017else case e in #( 17018 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17019esac 17020fi 17021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17022esac 17023fi 17024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17027 CFLAGS="$xorg_testset_save_CFLAGS" 17028fi 17029 17030found="no" 17031 17032 if test $found = "no" ; then 17033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17035 fi 17036 17037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17039 fi 17040 17041 CFLAGS="$CFLAGS -Werror=write-strings" 17042 17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17044printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17045 cacheid=xorg_cv_cc_flag__Werror_write_strings 17046 if eval test \${$cacheid+y} 17047then : 17048 printf %s "(cached) " >&6 17049else case e in #( 17050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17051/* end confdefs.h. */ 17052int i; 17053int 17054main (void) 17055{ 17056 17057 ; 17058 return 0; 17059} 17060_ACEOF 17061if ac_fn_c_try_link "$LINENO" 17062then : 17063 eval $cacheid=yes 17064else case e in #( 17065 e) eval $cacheid=no ;; 17066esac 17067fi 17068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17069 conftest$ac_exeext conftest.$ac_ext ;; 17070esac 17071fi 17072 17073 17074 CFLAGS="$xorg_testset_save_CFLAGS" 17075 17076 eval supported=\$$cacheid 17077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17078printf "%s\n" "$supported" >&6; } 17079 if test "$supported" = "yes" ; then 17080 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17081 found="yes" 17082 fi 17083 fi 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099xorg_testset_save_CFLAGS="$CFLAGS" 17100 17101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17105if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17106then : 17107 printf %s "(cached) " >&6 17108else case e in #( 17109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17110/* end confdefs.h. */ 17111int i; 17112_ACEOF 17113if ac_fn_c_try_compile "$LINENO" 17114then : 17115 xorg_cv_cc_flag_unknown_warning_option=yes 17116else case e in #( 17117 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17118esac 17119fi 17120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17121esac 17122fi 17123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17126 CFLAGS="$xorg_testset_save_CFLAGS" 17127fi 17128 17129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17132 fi 17133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17136if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17137then : 17138 printf %s "(cached) " >&6 17139else case e in #( 17140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141/* end confdefs.h. */ 17142int i; 17143_ACEOF 17144if ac_fn_c_try_compile "$LINENO" 17145then : 17146 xorg_cv_cc_flag_unused_command_line_argument=yes 17147else case e in #( 17148 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17149esac 17150fi 17151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17152esac 17153fi 17154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17157 CFLAGS="$xorg_testset_save_CFLAGS" 17158fi 17159 17160found="no" 17161 17162 if test $found = "no" ; then 17163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17165 fi 17166 17167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17169 fi 17170 17171 CFLAGS="$CFLAGS -Werror=address" 17172 17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17174printf %s "checking if $CC supports -Werror=address... " >&6; } 17175 cacheid=xorg_cv_cc_flag__Werror_address 17176 if eval test \${$cacheid+y} 17177then : 17178 printf %s "(cached) " >&6 17179else case e in #( 17180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17181/* end confdefs.h. */ 17182int i; 17183int 17184main (void) 17185{ 17186 17187 ; 17188 return 0; 17189} 17190_ACEOF 17191if ac_fn_c_try_link "$LINENO" 17192then : 17193 eval $cacheid=yes 17194else case e in #( 17195 e) eval $cacheid=no ;; 17196esac 17197fi 17198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17199 conftest$ac_exeext conftest.$ac_ext ;; 17200esac 17201fi 17202 17203 17204 CFLAGS="$xorg_testset_save_CFLAGS" 17205 17206 eval supported=\$$cacheid 17207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17208printf "%s\n" "$supported" >&6; } 17209 if test "$supported" = "yes" ; then 17210 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17211 found="yes" 17212 fi 17213 fi 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229xorg_testset_save_CFLAGS="$CFLAGS" 17230 17231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17235if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17236then : 17237 printf %s "(cached) " >&6 17238else case e in #( 17239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17240/* end confdefs.h. */ 17241int i; 17242_ACEOF 17243if ac_fn_c_try_compile "$LINENO" 17244then : 17245 xorg_cv_cc_flag_unknown_warning_option=yes 17246else case e in #( 17247 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17248esac 17249fi 17250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17251esac 17252fi 17253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17256 CFLAGS="$xorg_testset_save_CFLAGS" 17257fi 17258 17259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17262 fi 17263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17267then : 17268 printf %s "(cached) " >&6 17269else case e in #( 17270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int i; 17273_ACEOF 17274if ac_fn_c_try_compile "$LINENO" 17275then : 17276 xorg_cv_cc_flag_unused_command_line_argument=yes 17277else case e in #( 17278 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17279esac 17280fi 17281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17282esac 17283fi 17284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17287 CFLAGS="$xorg_testset_save_CFLAGS" 17288fi 17289 17290found="no" 17291 17292 if test $found = "no" ; then 17293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17295 fi 17296 17297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17299 fi 17300 17301 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17302 17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17304printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17305 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17306 if eval test \${$cacheid+y} 17307then : 17308 printf %s "(cached) " >&6 17309else case e in #( 17310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17311/* end confdefs.h. */ 17312int i; 17313int 17314main (void) 17315{ 17316 17317 ; 17318 return 0; 17319} 17320_ACEOF 17321if ac_fn_c_try_link "$LINENO" 17322then : 17323 eval $cacheid=yes 17324else case e in #( 17325 e) eval $cacheid=no ;; 17326esac 17327fi 17328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17329 conftest$ac_exeext conftest.$ac_ext ;; 17330esac 17331fi 17332 17333 17334 CFLAGS="$xorg_testset_save_CFLAGS" 17335 17336 eval supported=\$$cacheid 17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17338printf "%s\n" "$supported" >&6; } 17339 if test "$supported" = "yes" ; then 17340 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17341 found="yes" 17342 fi 17343 fi 17344 17345 if test $found = "no" ; then 17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 fi 17349 17350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17352 fi 17353 17354 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17355 17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17357printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17358 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17359 if eval test \${$cacheid+y} 17360then : 17361 printf %s "(cached) " >&6 17362else case e in #( 17363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365int i; 17366int 17367main (void) 17368{ 17369 17370 ; 17371 return 0; 17372} 17373_ACEOF 17374if ac_fn_c_try_link "$LINENO" 17375then : 17376 eval $cacheid=yes 17377else case e in #( 17378 e) eval $cacheid=no ;; 17379esac 17380fi 17381rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17382 conftest$ac_exeext conftest.$ac_ext ;; 17383esac 17384fi 17385 17386 17387 CFLAGS="$xorg_testset_save_CFLAGS" 17388 17389 eval supported=\$$cacheid 17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17391printf "%s\n" "$supported" >&6; } 17392 if test "$supported" = "yes" ; then 17393 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17394 found="yes" 17395 fi 17396 fi 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412xorg_testset_save_CFLAGS="$CFLAGS" 17413 17414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17418if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17419then : 17420 printf %s "(cached) " >&6 17421else case e in #( 17422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17423/* end confdefs.h. */ 17424int i; 17425_ACEOF 17426if ac_fn_c_try_compile "$LINENO" 17427then : 17428 xorg_cv_cc_flag_unknown_warning_option=yes 17429else case e in #( 17430 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17431esac 17432fi 17433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17434esac 17435fi 17436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440fi 17441 17442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17445 fi 17446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17449if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17450then : 17451 printf %s "(cached) " >&6 17452else case e in #( 17453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17454/* end confdefs.h. */ 17455int i; 17456_ACEOF 17457if ac_fn_c_try_compile "$LINENO" 17458then : 17459 xorg_cv_cc_flag_unused_command_line_argument=yes 17460else case e in #( 17461 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17462esac 17463fi 17464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17465esac 17466fi 17467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17468printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17470 CFLAGS="$xorg_testset_save_CFLAGS" 17471fi 17472 17473found="no" 17474 17475 if test $found = "no" ; then 17476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17478 fi 17479 17480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17482 fi 17483 17484 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17485 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17487printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17488 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17489 if eval test \${$cacheid+y} 17490then : 17491 printf %s "(cached) " >&6 17492else case e in #( 17493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17494/* end confdefs.h. */ 17495int i; 17496int 17497main (void) 17498{ 17499 17500 ; 17501 return 0; 17502} 17503_ACEOF 17504if ac_fn_c_try_link "$LINENO" 17505then : 17506 eval $cacheid=yes 17507else case e in #( 17508 e) eval $cacheid=no ;; 17509esac 17510fi 17511rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17512 conftest$ac_exeext conftest.$ac_ext ;; 17513esac 17514fi 17515 17516 17517 CFLAGS="$xorg_testset_save_CFLAGS" 17518 17519 eval supported=\$$cacheid 17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17521printf "%s\n" "$supported" >&6; } 17522 if test "$supported" = "yes" ; then 17523 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17524 found="yes" 17525 fi 17526 fi 17527 17528 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17529else 17530{ 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 17531printf "%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;} 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545xorg_testset_save_CFLAGS="$CFLAGS" 17546 17547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17552then : 17553 printf %s "(cached) " >&6 17554else case e in #( 17555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557int i; 17558_ACEOF 17559if ac_fn_c_try_compile "$LINENO" 17560then : 17561 xorg_cv_cc_flag_unknown_warning_option=yes 17562else case e in #( 17563 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17564esac 17565fi 17566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17567esac 17568fi 17569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17572 CFLAGS="$xorg_testset_save_CFLAGS" 17573fi 17574 17575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17578 fi 17579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17583then : 17584 printf %s "(cached) " >&6 17585else case e in #( 17586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587/* end confdefs.h. */ 17588int i; 17589_ACEOF 17590if ac_fn_c_try_compile "$LINENO" 17591then : 17592 xorg_cv_cc_flag_unused_command_line_argument=yes 17593else case e in #( 17594 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17595esac 17596fi 17597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17598esac 17599fi 17600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17603 CFLAGS="$xorg_testset_save_CFLAGS" 17604fi 17605 17606found="no" 17607 17608 if test $found = "no" ; then 17609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17611 fi 17612 17613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17615 fi 17616 17617 CFLAGS="$CFLAGS -Wimplicit" 17618 17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17620printf %s "checking if $CC supports -Wimplicit... " >&6; } 17621 cacheid=xorg_cv_cc_flag__Wimplicit 17622 if eval test \${$cacheid+y} 17623then : 17624 printf %s "(cached) " >&6 17625else case e in #( 17626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17627/* end confdefs.h. */ 17628int i; 17629int 17630main (void) 17631{ 17632 17633 ; 17634 return 0; 17635} 17636_ACEOF 17637if ac_fn_c_try_link "$LINENO" 17638then : 17639 eval $cacheid=yes 17640else case e in #( 17641 e) eval $cacheid=no ;; 17642esac 17643fi 17644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17645 conftest$ac_exeext conftest.$ac_ext ;; 17646esac 17647fi 17648 17649 17650 CFLAGS="$xorg_testset_save_CFLAGS" 17651 17652 eval supported=\$$cacheid 17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17654printf "%s\n" "$supported" >&6; } 17655 if test "$supported" = "yes" ; then 17656 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17657 found="yes" 17658 fi 17659 fi 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675xorg_testset_save_CFLAGS="$CFLAGS" 17676 17677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17681if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17682then : 17683 printf %s "(cached) " >&6 17684else case e in #( 17685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17686/* end confdefs.h. */ 17687int i; 17688_ACEOF 17689if ac_fn_c_try_compile "$LINENO" 17690then : 17691 xorg_cv_cc_flag_unknown_warning_option=yes 17692else case e in #( 17693 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17694esac 17695fi 17696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17697esac 17698fi 17699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17702 CFLAGS="$xorg_testset_save_CFLAGS" 17703fi 17704 17705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17708 fi 17709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17712if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17713then : 17714 printf %s "(cached) " >&6 17715else case e in #( 17716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17717/* end confdefs.h. */ 17718int i; 17719_ACEOF 17720if ac_fn_c_try_compile "$LINENO" 17721then : 17722 xorg_cv_cc_flag_unused_command_line_argument=yes 17723else case e in #( 17724 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17725esac 17726fi 17727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17728esac 17729fi 17730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17733 CFLAGS="$xorg_testset_save_CFLAGS" 17734fi 17735 17736found="no" 17737 17738 if test $found = "no" ; then 17739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17741 fi 17742 17743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17745 fi 17746 17747 CFLAGS="$CFLAGS -Wnonnull" 17748 17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17750printf %s "checking if $CC supports -Wnonnull... " >&6; } 17751 cacheid=xorg_cv_cc_flag__Wnonnull 17752 if eval test \${$cacheid+y} 17753then : 17754 printf %s "(cached) " >&6 17755else case e in #( 17756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758int i; 17759int 17760main (void) 17761{ 17762 17763 ; 17764 return 0; 17765} 17766_ACEOF 17767if ac_fn_c_try_link "$LINENO" 17768then : 17769 eval $cacheid=yes 17770else case e in #( 17771 e) eval $cacheid=no ;; 17772esac 17773fi 17774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17775 conftest$ac_exeext conftest.$ac_ext ;; 17776esac 17777fi 17778 17779 17780 CFLAGS="$xorg_testset_save_CFLAGS" 17781 17782 eval supported=\$$cacheid 17783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17784printf "%s\n" "$supported" >&6; } 17785 if test "$supported" = "yes" ; then 17786 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17787 found="yes" 17788 fi 17789 fi 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805xorg_testset_save_CFLAGS="$CFLAGS" 17806 17807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17812then : 17813 printf %s "(cached) " >&6 17814else case e in #( 17815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17816/* end confdefs.h. */ 17817int i; 17818_ACEOF 17819if ac_fn_c_try_compile "$LINENO" 17820then : 17821 xorg_cv_cc_flag_unknown_warning_option=yes 17822else case e in #( 17823 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17824esac 17825fi 17826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17827esac 17828fi 17829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17832 CFLAGS="$xorg_testset_save_CFLAGS" 17833fi 17834 17835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17838 fi 17839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17843then : 17844 printf %s "(cached) " >&6 17845else case e in #( 17846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847/* end confdefs.h. */ 17848int i; 17849_ACEOF 17850if ac_fn_c_try_compile "$LINENO" 17851then : 17852 xorg_cv_cc_flag_unused_command_line_argument=yes 17853else case e in #( 17854 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17855esac 17856fi 17857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17858esac 17859fi 17860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17863 CFLAGS="$xorg_testset_save_CFLAGS" 17864fi 17865 17866found="no" 17867 17868 if test $found = "no" ; then 17869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17871 fi 17872 17873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17875 fi 17876 17877 CFLAGS="$CFLAGS -Winit-self" 17878 17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17880printf %s "checking if $CC supports -Winit-self... " >&6; } 17881 cacheid=xorg_cv_cc_flag__Winit_self 17882 if eval test \${$cacheid+y} 17883then : 17884 printf %s "(cached) " >&6 17885else case e in #( 17886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17887/* end confdefs.h. */ 17888int i; 17889int 17890main (void) 17891{ 17892 17893 ; 17894 return 0; 17895} 17896_ACEOF 17897if ac_fn_c_try_link "$LINENO" 17898then : 17899 eval $cacheid=yes 17900else case e in #( 17901 e) eval $cacheid=no ;; 17902esac 17903fi 17904rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17905 conftest$ac_exeext conftest.$ac_ext ;; 17906esac 17907fi 17908 17909 17910 CFLAGS="$xorg_testset_save_CFLAGS" 17911 17912 eval supported=\$$cacheid 17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17914printf "%s\n" "$supported" >&6; } 17915 if test "$supported" = "yes" ; then 17916 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17917 found="yes" 17918 fi 17919 fi 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935xorg_testset_save_CFLAGS="$CFLAGS" 17936 17937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17942then : 17943 printf %s "(cached) " >&6 17944else case e in #( 17945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17946/* end confdefs.h. */ 17947int i; 17948_ACEOF 17949if ac_fn_c_try_compile "$LINENO" 17950then : 17951 xorg_cv_cc_flag_unknown_warning_option=yes 17952else case e in #( 17953 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17954esac 17955fi 17956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17957esac 17958fi 17959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17962 CFLAGS="$xorg_testset_save_CFLAGS" 17963fi 17964 17965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17968 fi 17969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17972if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17973then : 17974 printf %s "(cached) " >&6 17975else case e in #( 17976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977/* end confdefs.h. */ 17978int i; 17979_ACEOF 17980if ac_fn_c_try_compile "$LINENO" 17981then : 17982 xorg_cv_cc_flag_unused_command_line_argument=yes 17983else case e in #( 17984 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17985esac 17986fi 17987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17988esac 17989fi 17990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17993 CFLAGS="$xorg_testset_save_CFLAGS" 17994fi 17995 17996found="no" 17997 17998 if test $found = "no" ; then 17999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18001 fi 18002 18003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18005 fi 18006 18007 CFLAGS="$CFLAGS -Wmain" 18008 18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18010printf %s "checking if $CC supports -Wmain... " >&6; } 18011 cacheid=xorg_cv_cc_flag__Wmain 18012 if eval test \${$cacheid+y} 18013then : 18014 printf %s "(cached) " >&6 18015else case e in #( 18016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18017/* end confdefs.h. */ 18018int i; 18019int 18020main (void) 18021{ 18022 18023 ; 18024 return 0; 18025} 18026_ACEOF 18027if ac_fn_c_try_link "$LINENO" 18028then : 18029 eval $cacheid=yes 18030else case e in #( 18031 e) eval $cacheid=no ;; 18032esac 18033fi 18034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18035 conftest$ac_exeext conftest.$ac_ext ;; 18036esac 18037fi 18038 18039 18040 CFLAGS="$xorg_testset_save_CFLAGS" 18041 18042 eval supported=\$$cacheid 18043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18044printf "%s\n" "$supported" >&6; } 18045 if test "$supported" = "yes" ; then 18046 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18047 found="yes" 18048 fi 18049 fi 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065xorg_testset_save_CFLAGS="$CFLAGS" 18066 18067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18071if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18072then : 18073 printf %s "(cached) " >&6 18074else case e in #( 18075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18076/* end confdefs.h. */ 18077int i; 18078_ACEOF 18079if ac_fn_c_try_compile "$LINENO" 18080then : 18081 xorg_cv_cc_flag_unknown_warning_option=yes 18082else case e in #( 18083 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18084esac 18085fi 18086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18087esac 18088fi 18089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18092 CFLAGS="$xorg_testset_save_CFLAGS" 18093fi 18094 18095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18098 fi 18099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18103then : 18104 printf %s "(cached) " >&6 18105else case e in #( 18106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18107/* end confdefs.h. */ 18108int i; 18109_ACEOF 18110if ac_fn_c_try_compile "$LINENO" 18111then : 18112 xorg_cv_cc_flag_unused_command_line_argument=yes 18113else case e in #( 18114 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18115esac 18116fi 18117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18118esac 18119fi 18120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18123 CFLAGS="$xorg_testset_save_CFLAGS" 18124fi 18125 18126found="no" 18127 18128 if test $found = "no" ; then 18129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18131 fi 18132 18133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18135 fi 18136 18137 CFLAGS="$CFLAGS -Wmissing-braces" 18138 18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18140printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18141 cacheid=xorg_cv_cc_flag__Wmissing_braces 18142 if eval test \${$cacheid+y} 18143then : 18144 printf %s "(cached) " >&6 18145else case e in #( 18146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18147/* end confdefs.h. */ 18148int i; 18149int 18150main (void) 18151{ 18152 18153 ; 18154 return 0; 18155} 18156_ACEOF 18157if ac_fn_c_try_link "$LINENO" 18158then : 18159 eval $cacheid=yes 18160else case e in #( 18161 e) eval $cacheid=no ;; 18162esac 18163fi 18164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18165 conftest$ac_exeext conftest.$ac_ext ;; 18166esac 18167fi 18168 18169 18170 CFLAGS="$xorg_testset_save_CFLAGS" 18171 18172 eval supported=\$$cacheid 18173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18174printf "%s\n" "$supported" >&6; } 18175 if test "$supported" = "yes" ; then 18176 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18177 found="yes" 18178 fi 18179 fi 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195xorg_testset_save_CFLAGS="$CFLAGS" 18196 18197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18202then : 18203 printf %s "(cached) " >&6 18204else case e in #( 18205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18206/* end confdefs.h. */ 18207int i; 18208_ACEOF 18209if ac_fn_c_try_compile "$LINENO" 18210then : 18211 xorg_cv_cc_flag_unknown_warning_option=yes 18212else case e in #( 18213 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18214esac 18215fi 18216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18217esac 18218fi 18219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18220printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18222 CFLAGS="$xorg_testset_save_CFLAGS" 18223fi 18224 18225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18228 fi 18229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18231printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18232if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18233then : 18234 printf %s "(cached) " >&6 18235else case e in #( 18236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237/* end confdefs.h. */ 18238int i; 18239_ACEOF 18240if ac_fn_c_try_compile "$LINENO" 18241then : 18242 xorg_cv_cc_flag_unused_command_line_argument=yes 18243else case e in #( 18244 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18245esac 18246fi 18247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18248esac 18249fi 18250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18253 CFLAGS="$xorg_testset_save_CFLAGS" 18254fi 18255 18256found="no" 18257 18258 if test $found = "no" ; then 18259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18261 fi 18262 18263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18265 fi 18266 18267 CFLAGS="$CFLAGS -Wsequence-point" 18268 18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18270printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18271 cacheid=xorg_cv_cc_flag__Wsequence_point 18272 if eval test \${$cacheid+y} 18273then : 18274 printf %s "(cached) " >&6 18275else case e in #( 18276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18277/* end confdefs.h. */ 18278int i; 18279int 18280main (void) 18281{ 18282 18283 ; 18284 return 0; 18285} 18286_ACEOF 18287if ac_fn_c_try_link "$LINENO" 18288then : 18289 eval $cacheid=yes 18290else case e in #( 18291 e) eval $cacheid=no ;; 18292esac 18293fi 18294rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18295 conftest$ac_exeext conftest.$ac_ext ;; 18296esac 18297fi 18298 18299 18300 CFLAGS="$xorg_testset_save_CFLAGS" 18301 18302 eval supported=\$$cacheid 18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18304printf "%s\n" "$supported" >&6; } 18305 if test "$supported" = "yes" ; then 18306 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18307 found="yes" 18308 fi 18309 fi 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325xorg_testset_save_CFLAGS="$CFLAGS" 18326 18327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18331if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18332then : 18333 printf %s "(cached) " >&6 18334else case e in #( 18335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18336/* end confdefs.h. */ 18337int i; 18338_ACEOF 18339if ac_fn_c_try_compile "$LINENO" 18340then : 18341 xorg_cv_cc_flag_unknown_warning_option=yes 18342else case e in #( 18343 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18344esac 18345fi 18346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18347esac 18348fi 18349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18352 CFLAGS="$xorg_testset_save_CFLAGS" 18353fi 18354 18355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18358 fi 18359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18362if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18363then : 18364 printf %s "(cached) " >&6 18365else case e in #( 18366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367/* end confdefs.h. */ 18368int i; 18369_ACEOF 18370if ac_fn_c_try_compile "$LINENO" 18371then : 18372 xorg_cv_cc_flag_unused_command_line_argument=yes 18373else case e in #( 18374 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18375esac 18376fi 18377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18378esac 18379fi 18380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384fi 18385 18386found="no" 18387 18388 if test $found = "no" ; then 18389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18391 fi 18392 18393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18395 fi 18396 18397 CFLAGS="$CFLAGS -Wreturn-type" 18398 18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18400printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18401 cacheid=xorg_cv_cc_flag__Wreturn_type 18402 if eval test \${$cacheid+y} 18403then : 18404 printf %s "(cached) " >&6 18405else case e in #( 18406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18407/* end confdefs.h. */ 18408int i; 18409int 18410main (void) 18411{ 18412 18413 ; 18414 return 0; 18415} 18416_ACEOF 18417if ac_fn_c_try_link "$LINENO" 18418then : 18419 eval $cacheid=yes 18420else case e in #( 18421 e) eval $cacheid=no ;; 18422esac 18423fi 18424rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18425 conftest$ac_exeext conftest.$ac_ext ;; 18426esac 18427fi 18428 18429 18430 CFLAGS="$xorg_testset_save_CFLAGS" 18431 18432 eval supported=\$$cacheid 18433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18434printf "%s\n" "$supported" >&6; } 18435 if test "$supported" = "yes" ; then 18436 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18437 found="yes" 18438 fi 18439 fi 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455xorg_testset_save_CFLAGS="$CFLAGS" 18456 18457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18461if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18462then : 18463 printf %s "(cached) " >&6 18464else case e in #( 18465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18466/* end confdefs.h. */ 18467int i; 18468_ACEOF 18469if ac_fn_c_try_compile "$LINENO" 18470then : 18471 xorg_cv_cc_flag_unknown_warning_option=yes 18472else case e in #( 18473 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18474esac 18475fi 18476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18477esac 18478fi 18479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18482 CFLAGS="$xorg_testset_save_CFLAGS" 18483fi 18484 18485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18488 fi 18489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18492if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18493then : 18494 printf %s "(cached) " >&6 18495else case e in #( 18496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497/* end confdefs.h. */ 18498int i; 18499_ACEOF 18500if ac_fn_c_try_compile "$LINENO" 18501then : 18502 xorg_cv_cc_flag_unused_command_line_argument=yes 18503else case e in #( 18504 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18505esac 18506fi 18507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18508esac 18509fi 18510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18513 CFLAGS="$xorg_testset_save_CFLAGS" 18514fi 18515 18516found="no" 18517 18518 if test $found = "no" ; then 18519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18521 fi 18522 18523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18525 fi 18526 18527 CFLAGS="$CFLAGS -Wtrigraphs" 18528 18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18530printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18531 cacheid=xorg_cv_cc_flag__Wtrigraphs 18532 if eval test \${$cacheid+y} 18533then : 18534 printf %s "(cached) " >&6 18535else case e in #( 18536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18537/* end confdefs.h. */ 18538int i; 18539int 18540main (void) 18541{ 18542 18543 ; 18544 return 0; 18545} 18546_ACEOF 18547if ac_fn_c_try_link "$LINENO" 18548then : 18549 eval $cacheid=yes 18550else case e in #( 18551 e) eval $cacheid=no ;; 18552esac 18553fi 18554rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18555 conftest$ac_exeext conftest.$ac_ext ;; 18556esac 18557fi 18558 18559 18560 CFLAGS="$xorg_testset_save_CFLAGS" 18561 18562 eval supported=\$$cacheid 18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18564printf "%s\n" "$supported" >&6; } 18565 if test "$supported" = "yes" ; then 18566 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18567 found="yes" 18568 fi 18569 fi 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585xorg_testset_save_CFLAGS="$CFLAGS" 18586 18587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18591if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18592then : 18593 printf %s "(cached) " >&6 18594else case e in #( 18595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596/* end confdefs.h. */ 18597int i; 18598_ACEOF 18599if ac_fn_c_try_compile "$LINENO" 18600then : 18601 xorg_cv_cc_flag_unknown_warning_option=yes 18602else case e in #( 18603 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18604esac 18605fi 18606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18607esac 18608fi 18609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18612 CFLAGS="$xorg_testset_save_CFLAGS" 18613fi 18614 18615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18618 fi 18619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18623then : 18624 printf %s "(cached) " >&6 18625else case e in #( 18626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18627/* end confdefs.h. */ 18628int i; 18629_ACEOF 18630if ac_fn_c_try_compile "$LINENO" 18631then : 18632 xorg_cv_cc_flag_unused_command_line_argument=yes 18633else case e in #( 18634 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18635esac 18636fi 18637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18638esac 18639fi 18640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18643 CFLAGS="$xorg_testset_save_CFLAGS" 18644fi 18645 18646found="no" 18647 18648 if test $found = "no" ; then 18649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18651 fi 18652 18653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18655 fi 18656 18657 CFLAGS="$CFLAGS -Warray-bounds" 18658 18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18660printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18661 cacheid=xorg_cv_cc_flag__Warray_bounds 18662 if eval test \${$cacheid+y} 18663then : 18664 printf %s "(cached) " >&6 18665else case e in #( 18666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667/* end confdefs.h. */ 18668int i; 18669int 18670main (void) 18671{ 18672 18673 ; 18674 return 0; 18675} 18676_ACEOF 18677if ac_fn_c_try_link "$LINENO" 18678then : 18679 eval $cacheid=yes 18680else case e in #( 18681 e) eval $cacheid=no ;; 18682esac 18683fi 18684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18685 conftest$ac_exeext conftest.$ac_ext ;; 18686esac 18687fi 18688 18689 18690 CFLAGS="$xorg_testset_save_CFLAGS" 18691 18692 eval supported=\$$cacheid 18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18694printf "%s\n" "$supported" >&6; } 18695 if test "$supported" = "yes" ; then 18696 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18697 found="yes" 18698 fi 18699 fi 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715xorg_testset_save_CFLAGS="$CFLAGS" 18716 18717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18721if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18722then : 18723 printf %s "(cached) " >&6 18724else case e in #( 18725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18726/* end confdefs.h. */ 18727int i; 18728_ACEOF 18729if ac_fn_c_try_compile "$LINENO" 18730then : 18731 xorg_cv_cc_flag_unknown_warning_option=yes 18732else case e in #( 18733 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18734esac 18735fi 18736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18737esac 18738fi 18739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18742 CFLAGS="$xorg_testset_save_CFLAGS" 18743fi 18744 18745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18748 fi 18749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18753then : 18754 printf %s "(cached) " >&6 18755else case e in #( 18756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757/* end confdefs.h. */ 18758int i; 18759_ACEOF 18760if ac_fn_c_try_compile "$LINENO" 18761then : 18762 xorg_cv_cc_flag_unused_command_line_argument=yes 18763else case e in #( 18764 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18765esac 18766fi 18767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18768esac 18769fi 18770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18771printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18773 CFLAGS="$xorg_testset_save_CFLAGS" 18774fi 18775 18776found="no" 18777 18778 if test $found = "no" ; then 18779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18781 fi 18782 18783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18785 fi 18786 18787 CFLAGS="$CFLAGS -Wwrite-strings" 18788 18789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18790printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18791 cacheid=xorg_cv_cc_flag__Wwrite_strings 18792 if eval test \${$cacheid+y} 18793then : 18794 printf %s "(cached) " >&6 18795else case e in #( 18796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18797/* end confdefs.h. */ 18798int i; 18799int 18800main (void) 18801{ 18802 18803 ; 18804 return 0; 18805} 18806_ACEOF 18807if ac_fn_c_try_link "$LINENO" 18808then : 18809 eval $cacheid=yes 18810else case e in #( 18811 e) eval $cacheid=no ;; 18812esac 18813fi 18814rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18815 conftest$ac_exeext conftest.$ac_ext ;; 18816esac 18817fi 18818 18819 18820 CFLAGS="$xorg_testset_save_CFLAGS" 18821 18822 eval supported=\$$cacheid 18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18824printf "%s\n" "$supported" >&6; } 18825 if test "$supported" = "yes" ; then 18826 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18827 found="yes" 18828 fi 18829 fi 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845xorg_testset_save_CFLAGS="$CFLAGS" 18846 18847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18851if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18852then : 18853 printf %s "(cached) " >&6 18854else case e in #( 18855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18856/* end confdefs.h. */ 18857int i; 18858_ACEOF 18859if ac_fn_c_try_compile "$LINENO" 18860then : 18861 xorg_cv_cc_flag_unknown_warning_option=yes 18862else case e in #( 18863 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18864esac 18865fi 18866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18867esac 18868fi 18869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18872 CFLAGS="$xorg_testset_save_CFLAGS" 18873fi 18874 18875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18878 fi 18879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18882if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18883then : 18884 printf %s "(cached) " >&6 18885else case e in #( 18886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18887/* end confdefs.h. */ 18888int i; 18889_ACEOF 18890if ac_fn_c_try_compile "$LINENO" 18891then : 18892 xorg_cv_cc_flag_unused_command_line_argument=yes 18893else case e in #( 18894 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18895esac 18896fi 18897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18898esac 18899fi 18900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18901printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18903 CFLAGS="$xorg_testset_save_CFLAGS" 18904fi 18905 18906found="no" 18907 18908 if test $found = "no" ; then 18909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18911 fi 18912 18913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18915 fi 18916 18917 CFLAGS="$CFLAGS -Waddress" 18918 18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18920printf %s "checking if $CC supports -Waddress... " >&6; } 18921 cacheid=xorg_cv_cc_flag__Waddress 18922 if eval test \${$cacheid+y} 18923then : 18924 printf %s "(cached) " >&6 18925else case e in #( 18926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927/* end confdefs.h. */ 18928int i; 18929int 18930main (void) 18931{ 18932 18933 ; 18934 return 0; 18935} 18936_ACEOF 18937if ac_fn_c_try_link "$LINENO" 18938then : 18939 eval $cacheid=yes 18940else case e in #( 18941 e) eval $cacheid=no ;; 18942esac 18943fi 18944rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18945 conftest$ac_exeext conftest.$ac_ext ;; 18946esac 18947fi 18948 18949 18950 CFLAGS="$xorg_testset_save_CFLAGS" 18951 18952 eval supported=\$$cacheid 18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18954printf "%s\n" "$supported" >&6; } 18955 if test "$supported" = "yes" ; then 18956 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18957 found="yes" 18958 fi 18959 fi 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975xorg_testset_save_CFLAGS="$CFLAGS" 18976 18977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18981if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18982then : 18983 printf %s "(cached) " >&6 18984else case e in #( 18985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986/* end confdefs.h. */ 18987int i; 18988_ACEOF 18989if ac_fn_c_try_compile "$LINENO" 18990then : 18991 xorg_cv_cc_flag_unknown_warning_option=yes 18992else case e in #( 18993 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18994esac 18995fi 18996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18997esac 18998fi 18999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19002 CFLAGS="$xorg_testset_save_CFLAGS" 19003fi 19004 19005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19008 fi 19009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19012if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19013then : 19014 printf %s "(cached) " >&6 19015else case e in #( 19016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19017/* end confdefs.h. */ 19018int i; 19019_ACEOF 19020if ac_fn_c_try_compile "$LINENO" 19021then : 19022 xorg_cv_cc_flag_unused_command_line_argument=yes 19023else case e in #( 19024 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19025esac 19026fi 19027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19028esac 19029fi 19030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19033 CFLAGS="$xorg_testset_save_CFLAGS" 19034fi 19035 19036found="no" 19037 19038 if test $found = "no" ; then 19039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19041 fi 19042 19043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19045 fi 19046 19047 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19048 19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19050printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19051 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19052 if eval test \${$cacheid+y} 19053then : 19054 printf %s "(cached) " >&6 19055else case e in #( 19056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19057/* end confdefs.h. */ 19058int i; 19059int 19060main (void) 19061{ 19062 19063 ; 19064 return 0; 19065} 19066_ACEOF 19067if ac_fn_c_try_link "$LINENO" 19068then : 19069 eval $cacheid=yes 19070else case e in #( 19071 e) eval $cacheid=no ;; 19072esac 19073fi 19074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19075 conftest$ac_exeext conftest.$ac_ext ;; 19076esac 19077fi 19078 19079 19080 CFLAGS="$xorg_testset_save_CFLAGS" 19081 19082 eval supported=\$$cacheid 19083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19084printf "%s\n" "$supported" >&6; } 19085 if test "$supported" = "yes" ; then 19086 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19087 found="yes" 19088 fi 19089 fi 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105xorg_testset_save_CFLAGS="$CFLAGS" 19106 19107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19111if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19112then : 19113 printf %s "(cached) " >&6 19114else case e in #( 19115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19116/* end confdefs.h. */ 19117int i; 19118_ACEOF 19119if ac_fn_c_try_compile "$LINENO" 19120then : 19121 xorg_cv_cc_flag_unknown_warning_option=yes 19122else case e in #( 19123 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19124esac 19125fi 19126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19127esac 19128fi 19129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19132 CFLAGS="$xorg_testset_save_CFLAGS" 19133fi 19134 19135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19138 fi 19139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19142if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19143then : 19144 printf %s "(cached) " >&6 19145else case e in #( 19146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19147/* end confdefs.h. */ 19148int i; 19149_ACEOF 19150if ac_fn_c_try_compile "$LINENO" 19151then : 19152 xorg_cv_cc_flag_unused_command_line_argument=yes 19153else case e in #( 19154 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19155esac 19156fi 19157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19158esac 19159fi 19160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19163 CFLAGS="$xorg_testset_save_CFLAGS" 19164fi 19165 19166found="no" 19167 19168 if test $found = "no" ; then 19169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19171 fi 19172 19173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19175 fi 19176 19177 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19178 19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19180printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19181 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19182 if eval test \${$cacheid+y} 19183then : 19184 printf %s "(cached) " >&6 19185else case e in #( 19186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19187/* end confdefs.h. */ 19188int i; 19189int 19190main (void) 19191{ 19192 19193 ; 19194 return 0; 19195} 19196_ACEOF 19197if ac_fn_c_try_link "$LINENO" 19198then : 19199 eval $cacheid=yes 19200else case e in #( 19201 e) eval $cacheid=no ;; 19202esac 19203fi 19204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19205 conftest$ac_exeext conftest.$ac_ext ;; 19206esac 19207fi 19208 19209 19210 CFLAGS="$xorg_testset_save_CFLAGS" 19211 19212 eval supported=\$$cacheid 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19214printf "%s\n" "$supported" >&6; } 19215 if test "$supported" = "yes" ; then 19216 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19217 found="yes" 19218 fi 19219 fi 19220 19221 19222fi 19223 19224 19225 19226 19227 19228 19229 19230 CWARNFLAGS="$BASE_CFLAGS" 19231 if test "x$GCC" = xyes ; then 19232 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19233 fi 19234 19235 19236 19237 19238 19239 19240 19241 19242# Check whether --enable-strict-compilation was given. 19243if test ${enable_strict_compilation+y} 19244then : 19245 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19246else case e in #( 19247 e) STRICT_COMPILE=no ;; 19248esac 19249fi 19250 19251 19252 19253 19254 19255 19256STRICT_CFLAGS="" 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270xorg_testset_save_CFLAGS="$CFLAGS" 19271 19272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19276if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes 19287else case e in #( 19288 e) xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 19295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19297 CFLAGS="$xorg_testset_save_CFLAGS" 19298fi 19299 19300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19303 fi 19304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19307if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19308then : 19309 printf %s "(cached) " >&6 19310else case e in #( 19311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19312/* end confdefs.h. */ 19313int i; 19314_ACEOF 19315if ac_fn_c_try_compile "$LINENO" 19316then : 19317 xorg_cv_cc_flag_unused_command_line_argument=yes 19318else case e in #( 19319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19320esac 19321fi 19322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19323esac 19324fi 19325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19328 CFLAGS="$xorg_testset_save_CFLAGS" 19329fi 19330 19331found="no" 19332 19333 if test $found = "no" ; then 19334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19336 fi 19337 19338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19340 fi 19341 19342 CFLAGS="$CFLAGS -pedantic" 19343 19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19345printf %s "checking if $CC supports -pedantic... " >&6; } 19346 cacheid=xorg_cv_cc_flag__pedantic 19347 if eval test \${$cacheid+y} 19348then : 19349 printf %s "(cached) " >&6 19350else case e in #( 19351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19352/* end confdefs.h. */ 19353int i; 19354int 19355main (void) 19356{ 19357 19358 ; 19359 return 0; 19360} 19361_ACEOF 19362if ac_fn_c_try_link "$LINENO" 19363then : 19364 eval $cacheid=yes 19365else case e in #( 19366 e) eval $cacheid=no ;; 19367esac 19368fi 19369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19370 conftest$ac_exeext conftest.$ac_ext ;; 19371esac 19372fi 19373 19374 19375 CFLAGS="$xorg_testset_save_CFLAGS" 19376 19377 eval supported=\$$cacheid 19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19379printf "%s\n" "$supported" >&6; } 19380 if test "$supported" = "yes" ; then 19381 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19382 found="yes" 19383 fi 19384 fi 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400xorg_testset_save_CFLAGS="$CFLAGS" 19401 19402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19406if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes 19417else case e in #( 19418 e) xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 19425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19427 CFLAGS="$xorg_testset_save_CFLAGS" 19428fi 19429 19430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19433 fi 19434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19438then : 19439 printf %s "(cached) " >&6 19440else case e in #( 19441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19442/* end confdefs.h. */ 19443int i; 19444_ACEOF 19445if ac_fn_c_try_compile "$LINENO" 19446then : 19447 xorg_cv_cc_flag_unused_command_line_argument=yes 19448else case e in #( 19449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19450esac 19451fi 19452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19453esac 19454fi 19455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19458 CFLAGS="$xorg_testset_save_CFLAGS" 19459fi 19460 19461found="no" 19462 19463 if test $found = "no" ; then 19464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19466 fi 19467 19468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19470 fi 19471 19472 CFLAGS="$CFLAGS -Werror" 19473 19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19475printf %s "checking if $CC supports -Werror... " >&6; } 19476 cacheid=xorg_cv_cc_flag__Werror 19477 if eval test \${$cacheid+y} 19478then : 19479 printf %s "(cached) " >&6 19480else case e in #( 19481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19482/* end confdefs.h. */ 19483int i; 19484int 19485main (void) 19486{ 19487 19488 ; 19489 return 0; 19490} 19491_ACEOF 19492if ac_fn_c_try_link "$LINENO" 19493then : 19494 eval $cacheid=yes 19495else case e in #( 19496 e) eval $cacheid=no ;; 19497esac 19498fi 19499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19500 conftest$ac_exeext conftest.$ac_ext ;; 19501esac 19502fi 19503 19504 19505 CFLAGS="$xorg_testset_save_CFLAGS" 19506 19507 eval supported=\$$cacheid 19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19509printf "%s\n" "$supported" >&6; } 19510 if test "$supported" = "yes" ; then 19511 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19512 found="yes" 19513 fi 19514 fi 19515 19516 if test $found = "no" ; then 19517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19519 fi 19520 19521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19523 fi 19524 19525 CFLAGS="$CFLAGS -errwarn" 19526 19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19528printf %s "checking if $CC supports -errwarn... " >&6; } 19529 cacheid=xorg_cv_cc_flag__errwarn 19530 if eval test \${$cacheid+y} 19531then : 19532 printf %s "(cached) " >&6 19533else case e in #( 19534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19535/* end confdefs.h. */ 19536int i; 19537int 19538main (void) 19539{ 19540 19541 ; 19542 return 0; 19543} 19544_ACEOF 19545if ac_fn_c_try_link "$LINENO" 19546then : 19547 eval $cacheid=yes 19548else case e in #( 19549 e) eval $cacheid=no ;; 19550esac 19551fi 19552rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19553 conftest$ac_exeext conftest.$ac_ext ;; 19554esac 19555fi 19556 19557 19558 CFLAGS="$xorg_testset_save_CFLAGS" 19559 19560 eval supported=\$$cacheid 19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19562printf "%s\n" "$supported" >&6; } 19563 if test "$supported" = "yes" ; then 19564 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19565 found="yes" 19566 fi 19567 fi 19568 19569 19570 19571# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19572# activate it with -Werror, so we add it here explicitly. 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586xorg_testset_save_CFLAGS="$CFLAGS" 19587 19588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19592if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19593then : 19594 printf %s "(cached) " >&6 19595else case e in #( 19596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19597/* end confdefs.h. */ 19598int i; 19599_ACEOF 19600if ac_fn_c_try_compile "$LINENO" 19601then : 19602 xorg_cv_cc_flag_unknown_warning_option=yes 19603else case e in #( 19604 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19605esac 19606fi 19607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19608esac 19609fi 19610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19613 CFLAGS="$xorg_testset_save_CFLAGS" 19614fi 19615 19616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19619 fi 19620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19623if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19624then : 19625 printf %s "(cached) " >&6 19626else case e in #( 19627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19628/* end confdefs.h. */ 19629int i; 19630_ACEOF 19631if ac_fn_c_try_compile "$LINENO" 19632then : 19633 xorg_cv_cc_flag_unused_command_line_argument=yes 19634else case e in #( 19635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19636esac 19637fi 19638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19639esac 19640fi 19641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19644 CFLAGS="$xorg_testset_save_CFLAGS" 19645fi 19646 19647found="no" 19648 19649 if test $found = "no" ; then 19650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19652 fi 19653 19654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19656 fi 19657 19658 CFLAGS="$CFLAGS -Werror=attributes" 19659 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19661printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19662 cacheid=xorg_cv_cc_flag__Werror_attributes 19663 if eval test \${$cacheid+y} 19664then : 19665 printf %s "(cached) " >&6 19666else case e in #( 19667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19668/* end confdefs.h. */ 19669int i; 19670int 19671main (void) 19672{ 19673 19674 ; 19675 return 0; 19676} 19677_ACEOF 19678if ac_fn_c_try_link "$LINENO" 19679then : 19680 eval $cacheid=yes 19681else case e in #( 19682 e) eval $cacheid=no ;; 19683esac 19684fi 19685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19686 conftest$ac_exeext conftest.$ac_ext ;; 19687esac 19688fi 19689 19690 19691 CFLAGS="$xorg_testset_save_CFLAGS" 19692 19693 eval supported=\$$cacheid 19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19695printf "%s\n" "$supported" >&6; } 19696 if test "$supported" = "yes" ; then 19697 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19698 found="yes" 19699 fi 19700 fi 19701 19702 19703 19704if test "x$STRICT_COMPILE" = "xyes"; then 19705 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19706 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19707fi 19708 19709 19710 19711 19712 19713 19714 19715 19716cat >>confdefs.h <<_ACEOF 19717#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19718_ACEOF 19719 19720 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19721 if test "x$PVM" = "x"; then 19722 PVM="0" 19723 fi 19724 19725printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19726 19727 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19728 if test "x$PVP" = "x"; then 19729 PVP="0" 19730 fi 19731 19732printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19733 19734 19735 19736CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19737mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19738|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19739touch \$(top_srcdir)/ChangeLog; \ 19740echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19741 19742 19743 19744 19745macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19746INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19747mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19748|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19749touch \$(top_srcdir)/INSTALL; \ 19750echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19751 19752 19753 19754 19755 19756 19757case $host_os in 19758 solaris*) 19759 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19760 # check for a man page file found in later versions that use 19761 # traditional section numbers instead 19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19763printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19764if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19765then : 19766 printf %s "(cached) " >&6 19767else case e in #( 19768 e) test "$cross_compiling" = yes && 19769 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19770if test -r "/usr/share/man/man7/attributes.7"; then 19771 ac_cv_file__usr_share_man_man7_attributes_7=yes 19772else 19773 ac_cv_file__usr_share_man_man7_attributes_7=no 19774fi ;; 19775esac 19776fi 19777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19778printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19779if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19780then : 19781 SYSV_MAN_SECTIONS=false 19782else case e in #( 19783 e) SYSV_MAN_SECTIONS=true ;; 19784esac 19785fi 19786 19787 ;; 19788 *) SYSV_MAN_SECTIONS=false ;; 19789esac 19790 19791if test x$APP_MAN_SUFFIX = x ; then 19792 APP_MAN_SUFFIX=1 19793fi 19794if test x$APP_MAN_DIR = x ; then 19795 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19796fi 19797 19798if test x$LIB_MAN_SUFFIX = x ; then 19799 LIB_MAN_SUFFIX=3 19800fi 19801if test x$LIB_MAN_DIR = x ; then 19802 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19803fi 19804 19805if test x$FILE_MAN_SUFFIX = x ; then 19806 case $SYSV_MAN_SECTIONS in 19807 true) FILE_MAN_SUFFIX=4 ;; 19808 *) FILE_MAN_SUFFIX=5 ;; 19809 esac 19810fi 19811if test x$FILE_MAN_DIR = x ; then 19812 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19813fi 19814 19815if test x$MISC_MAN_SUFFIX = x ; then 19816 case $SYSV_MAN_SECTIONS in 19817 true) MISC_MAN_SUFFIX=5 ;; 19818 *) MISC_MAN_SUFFIX=7 ;; 19819 esac 19820fi 19821if test x$MISC_MAN_DIR = x ; then 19822 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19823fi 19824 19825if test x$DRIVER_MAN_SUFFIX = x ; then 19826 case $SYSV_MAN_SECTIONS in 19827 true) DRIVER_MAN_SUFFIX=7 ;; 19828 *) DRIVER_MAN_SUFFIX=4 ;; 19829 esac 19830fi 19831if test x$DRIVER_MAN_DIR = x ; then 19832 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19833fi 19834 19835if test x$ADMIN_MAN_SUFFIX = x ; then 19836 case $SYSV_MAN_SECTIONS in 19837 true) ADMIN_MAN_SUFFIX=1m ;; 19838 *) ADMIN_MAN_SUFFIX=8 ;; 19839 esac 19840fi 19841if test x$ADMIN_MAN_DIR = x ; then 19842 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19843fi 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859XORG_MAN_PAGE="X Version 11" 19860 19861MAN_SUBSTS="\ 19862 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19863 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19864 -e 's|__xservername__|Xorg|g' \ 19865 -e 's|__xconfigfile__|xorg.conf|g' \ 19866 -e 's|__projectroot__|\$(prefix)|g' \ 19867 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19868 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19869 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19870 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19871 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19872 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19873 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19874 19875 19876 19877# Check whether --enable-silent-rules was given. 19878if test ${enable_silent_rules+y} 19879then : 19880 enableval=$enable_silent_rules; 19881fi 19882 19883case $enable_silent_rules in # ((( 19884 yes) AM_DEFAULT_VERBOSITY=0;; 19885 no) AM_DEFAULT_VERBOSITY=1;; 19886 *) AM_DEFAULT_VERBOSITY=0;; 19887esac 19888am_make=${MAKE-make} 19889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19890printf %s "checking whether $am_make supports nested variables... " >&6; } 19891if test ${am_cv_make_support_nested_variables+y} 19892then : 19893 printf %s "(cached) " >&6 19894else case e in #( 19895 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 19896BAR0=false 19897BAR1=true 19898V=1 19899am__doit: 19900 @$(TRUE) 19901.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19902 am_cv_make_support_nested_variables=yes 19903else 19904 am_cv_make_support_nested_variables=no 19905fi ;; 19906esac 19907fi 19908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19909printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19910if test $am_cv_make_support_nested_variables = yes; then 19911 AM_V='$(V)' 19912 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19913else 19914 AM_V=$AM_DEFAULT_VERBOSITY 19915 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19916fi 19917AM_BACKSLASH='\' 19918 19919 19920 19921 19922# Check whether --enable-malloc0returnsnull was given. 19923if test ${enable_malloc0returnsnull+y} 19924then : 19925 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19926else case e in #( 19927 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 19928esac 19929fi 19930 19931 19932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 19933printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 19934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19935printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19936 19937if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19938 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19939 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19940 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19941else 19942 MALLOC_ZERO_CFLAGS="" 19943 XMALLOC_ZERO_CFLAGS="" 19944 XTMALLOC_ZERO_CFLAGS="" 19945fi 19946 19947 19948 19949 19950 19951 19952 19953# Check whether --enable-specs was given. 19954if test ${enable_specs+y} 19955then : 19956 enableval=$enable_specs; build_specs=$enableval 19957else case e in #( 19958 e) build_specs=yes ;; 19959esac 19960fi 19961 19962 19963 if test x$build_specs = xyes; then 19964 ENABLE_SPECS_TRUE= 19965 ENABLE_SPECS_FALSE='#' 19966else 19967 ENABLE_SPECS_TRUE='#' 19968 ENABLE_SPECS_FALSE= 19969fi 19970 19971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19972printf %s "checking whether to build functional specifications... " >&6; } 19973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19974printf "%s\n" "$build_specs" >&6; } 19975 19976 19977 19978 19979 19980# Check whether --with-xmlto was given. 19981if test ${with_xmlto+y} 19982then : 19983 withval=$with_xmlto; use_xmlto=$withval 19984else case e in #( 19985 e) use_xmlto=auto ;; 19986esac 19987fi 19988 19989 19990 19991if test "x$use_xmlto" = x"auto"; then 19992 # Extract the first word of "xmlto", so it can be a program name with args. 19993set dummy xmlto; ac_word=$2 19994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19995printf %s "checking for $ac_word... " >&6; } 19996if test ${ac_cv_path_XMLTO+y} 19997then : 19998 printf %s "(cached) " >&6 19999else case e in #( 20000 e) case $XMLTO in 20001 [\\/]* | ?:[\\/]*) 20002 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20003 ;; 20004 *) 20005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20006for as_dir in $PATH 20007do 20008 IFS=$as_save_IFS 20009 case $as_dir in #((( 20010 '') as_dir=./ ;; 20011 */) ;; 20012 *) as_dir=$as_dir/ ;; 20013 esac 20014 for ac_exec_ext in '' $ac_executable_extensions; do 20015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20016 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20018 break 2 20019 fi 20020done 20021 done 20022IFS=$as_save_IFS 20023 20024 ;; 20025esac ;; 20026esac 20027fi 20028XMLTO=$ac_cv_path_XMLTO 20029if test -n "$XMLTO"; then 20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20031printf "%s\n" "$XMLTO" >&6; } 20032else 20033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20034printf "%s\n" "no" >&6; } 20035fi 20036 20037 20038 if test "x$XMLTO" = "x"; then 20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20040printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20041 have_xmlto=no 20042 else 20043 have_xmlto=yes 20044 fi 20045elif test "x$use_xmlto" = x"yes" ; then 20046 # Extract the first word of "xmlto", so it can be a program name with args. 20047set dummy xmlto; ac_word=$2 20048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20049printf %s "checking for $ac_word... " >&6; } 20050if test ${ac_cv_path_XMLTO+y} 20051then : 20052 printf %s "(cached) " >&6 20053else case e in #( 20054 e) case $XMLTO in 20055 [\\/]* | ?:[\\/]*) 20056 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20057 ;; 20058 *) 20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20060for as_dir in $PATH 20061do 20062 IFS=$as_save_IFS 20063 case $as_dir in #((( 20064 '') as_dir=./ ;; 20065 */) ;; 20066 *) as_dir=$as_dir/ ;; 20067 esac 20068 for ac_exec_ext in '' $ac_executable_extensions; do 20069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20070 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20072 break 2 20073 fi 20074done 20075 done 20076IFS=$as_save_IFS 20077 20078 ;; 20079esac ;; 20080esac 20081fi 20082XMLTO=$ac_cv_path_XMLTO 20083if test -n "$XMLTO"; then 20084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20085printf "%s\n" "$XMLTO" >&6; } 20086else 20087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20088printf "%s\n" "no" >&6; } 20089fi 20090 20091 20092 if test "x$XMLTO" = "x"; then 20093 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20094 fi 20095 have_xmlto=yes 20096elif test "x$use_xmlto" = x"no" ; then 20097 if test "x$XMLTO" != "x"; then 20098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20099printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20100 fi 20101 have_xmlto=no 20102else 20103 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20104fi 20105 20106# Test for a minimum version of xmlto, if provided. 20107if test "$have_xmlto" = yes; then 20108 # scrape the xmlto version 20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20110printf %s "checking the xmlto version... " >&6; } 20111 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20113printf "%s\n" "$xmlto_version" >&6; } 20114 as_arg_v1=$xmlto_version 20115as_arg_v2=0.0.20 20116awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20117case $? in #( 20118 1) : 20119 if test "x$use_xmlto" = xauto; then 20120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 20121printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 20122 have_xmlto=no 20123 else 20124 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 20125 fi ;; #( 20126 0) : 20127 ;; #( 20128 2) : 20129 ;; #( 20130 *) : 20131 ;; 20132esac 20133fi 20134 20135# Test for the ability of xmlto to generate a text target 20136# 20137# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20138# following test for empty XML docbook files. 20139# For compatibility reasons use the following empty XML docbook file and if 20140# it fails try it again with a non-empty XML file. 20141have_xmlto_text=no 20142cat > conftest.xml << "EOF" 20143EOF 20144if test "$have_xmlto" = yes 20145then : 20146 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20147then : 20148 have_xmlto_text=yes 20149else case e in #( 20150 e) # Try it again with a non-empty XML file. 20151 cat > conftest.xml << "EOF" 20152<x></x> 20153EOF 20154 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20155then : 20156 have_xmlto_text=yes 20157else case e in #( 20158 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20159printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20160esac 20161fi ;; 20162esac 20163fi 20164fi 20165rm -f conftest.xml 20166 if test $have_xmlto_text = yes; then 20167 HAVE_XMLTO_TEXT_TRUE= 20168 HAVE_XMLTO_TEXT_FALSE='#' 20169else 20170 HAVE_XMLTO_TEXT_TRUE='#' 20171 HAVE_XMLTO_TEXT_FALSE= 20172fi 20173 20174 if test "$have_xmlto" = yes; then 20175 HAVE_XMLTO_TRUE= 20176 HAVE_XMLTO_FALSE='#' 20177else 20178 HAVE_XMLTO_TRUE='#' 20179 HAVE_XMLTO_FALSE= 20180fi 20181 20182 20183 20184 20185 20186 20187# Check whether --with-fop was given. 20188if test ${with_fop+y} 20189then : 20190 withval=$with_fop; use_fop=$withval 20191else case e in #( 20192 e) use_fop=auto ;; 20193esac 20194fi 20195 20196 20197 20198if test "x$use_fop" = x"auto"; then 20199 # Extract the first word of "fop", so it can be a program name with args. 20200set dummy fop; ac_word=$2 20201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20202printf %s "checking for $ac_word... " >&6; } 20203if test ${ac_cv_path_FOP+y} 20204then : 20205 printf %s "(cached) " >&6 20206else case e in #( 20207 e) case $FOP in 20208 [\\/]* | ?:[\\/]*) 20209 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20210 ;; 20211 *) 20212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20213for as_dir in $PATH 20214do 20215 IFS=$as_save_IFS 20216 case $as_dir in #((( 20217 '') as_dir=./ ;; 20218 */) ;; 20219 *) as_dir=$as_dir/ ;; 20220 esac 20221 for ac_exec_ext in '' $ac_executable_extensions; do 20222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20223 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20225 break 2 20226 fi 20227done 20228 done 20229IFS=$as_save_IFS 20230 20231 ;; 20232esac ;; 20233esac 20234fi 20235FOP=$ac_cv_path_FOP 20236if test -n "$FOP"; then 20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20238printf "%s\n" "$FOP" >&6; } 20239else 20240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20241printf "%s\n" "no" >&6; } 20242fi 20243 20244 20245 if test "x$FOP" = "x"; then 20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20247printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20248 have_fop=no 20249 else 20250 have_fop=yes 20251 fi 20252elif test "x$use_fop" = x"yes" ; then 20253 # Extract the first word of "fop", so it can be a program name with args. 20254set dummy fop; ac_word=$2 20255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20256printf %s "checking for $ac_word... " >&6; } 20257if test ${ac_cv_path_FOP+y} 20258then : 20259 printf %s "(cached) " >&6 20260else case e in #( 20261 e) case $FOP in 20262 [\\/]* | ?:[\\/]*) 20263 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20264 ;; 20265 *) 20266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20267for as_dir in $PATH 20268do 20269 IFS=$as_save_IFS 20270 case $as_dir in #((( 20271 '') as_dir=./ ;; 20272 */) ;; 20273 *) as_dir=$as_dir/ ;; 20274 esac 20275 for ac_exec_ext in '' $ac_executable_extensions; do 20276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20277 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20279 break 2 20280 fi 20281done 20282 done 20283IFS=$as_save_IFS 20284 20285 ;; 20286esac ;; 20287esac 20288fi 20289FOP=$ac_cv_path_FOP 20290if test -n "$FOP"; then 20291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20292printf "%s\n" "$FOP" >&6; } 20293else 20294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20295printf "%s\n" "no" >&6; } 20296fi 20297 20298 20299 if test "x$FOP" = "x"; then 20300 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20301 fi 20302 have_fop=yes 20303elif test "x$use_fop" = x"no" ; then 20304 if test "x$FOP" != "x"; then 20305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20306printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20307 fi 20308 have_fop=no 20309else 20310 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20311fi 20312 20313# Test for a minimum version of fop, if provided. 20314 20315 if test "$have_fop" = yes; then 20316 HAVE_FOP_TRUE= 20317 HAVE_FOP_FALSE='#' 20318else 20319 HAVE_FOP_TRUE='#' 20320 HAVE_FOP_FALSE= 20321fi 20322 20323 20324 20325 20326# Preserves the interface, should it be implemented later 20327 20328 20329 20330# Check whether --with-xsltproc was given. 20331if test ${with_xsltproc+y} 20332then : 20333 withval=$with_xsltproc; use_xsltproc=$withval 20334else case e in #( 20335 e) use_xsltproc=auto ;; 20336esac 20337fi 20338 20339 20340 20341if test "x$use_xsltproc" = x"auto"; then 20342 # Extract the first word of "xsltproc", so it can be a program name with args. 20343set dummy xsltproc; ac_word=$2 20344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20345printf %s "checking for $ac_word... " >&6; } 20346if test ${ac_cv_path_XSLTPROC+y} 20347then : 20348 printf %s "(cached) " >&6 20349else case e in #( 20350 e) case $XSLTPROC in 20351 [\\/]* | ?:[\\/]*) 20352 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20353 ;; 20354 *) 20355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20356for as_dir in $PATH 20357do 20358 IFS=$as_save_IFS 20359 case $as_dir in #((( 20360 '') as_dir=./ ;; 20361 */) ;; 20362 *) as_dir=$as_dir/ ;; 20363 esac 20364 for ac_exec_ext in '' $ac_executable_extensions; do 20365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20366 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20368 break 2 20369 fi 20370done 20371 done 20372IFS=$as_save_IFS 20373 20374 ;; 20375esac ;; 20376esac 20377fi 20378XSLTPROC=$ac_cv_path_XSLTPROC 20379if test -n "$XSLTPROC"; then 20380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20381printf "%s\n" "$XSLTPROC" >&6; } 20382else 20383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20384printf "%s\n" "no" >&6; } 20385fi 20386 20387 20388 if test "x$XSLTPROC" = "x"; then 20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20390printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20391 have_xsltproc=no 20392 else 20393 have_xsltproc=yes 20394 fi 20395elif test "x$use_xsltproc" = x"yes" ; then 20396 # Extract the first word of "xsltproc", so it can be a program name with args. 20397set dummy xsltproc; ac_word=$2 20398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20399printf %s "checking for $ac_word... " >&6; } 20400if test ${ac_cv_path_XSLTPROC+y} 20401then : 20402 printf %s "(cached) " >&6 20403else case e in #( 20404 e) case $XSLTPROC in 20405 [\\/]* | ?:[\\/]*) 20406 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20407 ;; 20408 *) 20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20410for as_dir in $PATH 20411do 20412 IFS=$as_save_IFS 20413 case $as_dir in #((( 20414 '') as_dir=./ ;; 20415 */) ;; 20416 *) as_dir=$as_dir/ ;; 20417 esac 20418 for ac_exec_ext in '' $ac_executable_extensions; do 20419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20420 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20422 break 2 20423 fi 20424done 20425 done 20426IFS=$as_save_IFS 20427 20428 ;; 20429esac ;; 20430esac 20431fi 20432XSLTPROC=$ac_cv_path_XSLTPROC 20433if test -n "$XSLTPROC"; then 20434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20435printf "%s\n" "$XSLTPROC" >&6; } 20436else 20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20438printf "%s\n" "no" >&6; } 20439fi 20440 20441 20442 if test "x$XSLTPROC" = "x"; then 20443 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 20444 fi 20445 have_xsltproc=yes 20446elif test "x$use_xsltproc" = x"no" ; then 20447 if test "x$XSLTPROC" != "x"; then 20448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 20449printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 20450 fi 20451 have_xsltproc=no 20452else 20453 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 20454fi 20455 20456 if test "$have_xsltproc" = yes; then 20457 HAVE_XSLTPROC_TRUE= 20458 HAVE_XSLTPROC_FALSE='#' 20459else 20460 HAVE_XSLTPROC_TRUE='#' 20461 HAVE_XSLTPROC_FALSE= 20462fi 20463 20464 20465 20466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.01" >&5 20467printf %s "checking for X.Org SGML entities >= 1.01... " >&6; } 20468XORG_SGML_PATH= 20469if test -n "$PKG_CONFIG" && \ 20470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.01\""; } >&5 20471 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.01") 2>&5 20472 ac_status=$? 20473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20474 test $ac_status = 0; }; then 20475 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20476else 20477 : 20478 20479fi 20480 20481# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20482# the path and the name of the doc stylesheet 20483if test "x$XORG_SGML_PATH" != "x" ; then 20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20485printf "%s\n" "$XORG_SGML_PATH" >&6; } 20486 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20487 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20488else 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20490printf "%s\n" "no" >&6; } 20491fi 20492 20493 20494 20495 20496 if test "x$XSL_STYLESHEET" != "x"; then 20497 HAVE_STYLESHEETS_TRUE= 20498 HAVE_STYLESHEETS_FALSE='#' 20499else 20500 HAVE_STYLESHEETS_TRUE='#' 20501 HAVE_STYLESHEETS_FALSE= 20502fi 20503 20504 20505ac_ext=c 20506ac_cpp='$CPP $CPPFLAGS' 20507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20509ac_compiler_gnu=$ac_cv_c_compiler_gnu 20510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20511printf %s "checking how to run the C preprocessor... " >&6; } 20512# On Suns, sometimes $CPP names a directory. 20513if test -n "$CPP" && test -d "$CPP"; then 20514 CPP= 20515fi 20516if test -z "$CPP"; then 20517 if test ${ac_cv_prog_CPP+y} 20518then : 20519 printf %s "(cached) " >&6 20520else case e in #( 20521 e) # Double quotes because $CC needs to be expanded 20522 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20523 do 20524 ac_preproc_ok=false 20525for ac_c_preproc_warn_flag in '' yes 20526do 20527 # Use a header file that comes with gcc, so configuring glibc 20528 # with a fresh cross-compiler works. 20529 # On the NeXT, cc -E runs the code through the compiler's parser, 20530 # not just through cpp. "Syntax error" is here to catch this case. 20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20532/* end confdefs.h. */ 20533#include <limits.h> 20534 Syntax error 20535_ACEOF 20536if ac_fn_c_try_cpp "$LINENO" 20537then : 20538 20539else case e in #( 20540 e) # Broken: fails on valid input. 20541continue ;; 20542esac 20543fi 20544rm -f conftest.err conftest.i conftest.$ac_ext 20545 20546 # OK, works on sane cases. Now check whether nonexistent headers 20547 # can be detected and how. 20548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20549/* end confdefs.h. */ 20550#include <ac_nonexistent.h> 20551_ACEOF 20552if ac_fn_c_try_cpp "$LINENO" 20553then : 20554 # Broken: success on invalid input. 20555continue 20556else case e in #( 20557 e) # Passes both tests. 20558ac_preproc_ok=: 20559break ;; 20560esac 20561fi 20562rm -f conftest.err conftest.i conftest.$ac_ext 20563 20564done 20565# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20566rm -f conftest.i conftest.err conftest.$ac_ext 20567if $ac_preproc_ok 20568then : 20569 break 20570fi 20571 20572 done 20573 ac_cv_prog_CPP=$CPP 20574 ;; 20575esac 20576fi 20577 CPP=$ac_cv_prog_CPP 20578else 20579 ac_cv_prog_CPP=$CPP 20580fi 20581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20582printf "%s\n" "$CPP" >&6; } 20583ac_preproc_ok=false 20584for ac_c_preproc_warn_flag in '' yes 20585do 20586 # Use a header file that comes with gcc, so configuring glibc 20587 # with a fresh cross-compiler works. 20588 # On the NeXT, cc -E runs the code through the compiler's parser, 20589 # not just through cpp. "Syntax error" is here to catch this case. 20590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20591/* end confdefs.h. */ 20592#include <limits.h> 20593 Syntax error 20594_ACEOF 20595if ac_fn_c_try_cpp "$LINENO" 20596then : 20597 20598else case e in #( 20599 e) # Broken: fails on valid input. 20600continue ;; 20601esac 20602fi 20603rm -f conftest.err conftest.i conftest.$ac_ext 20604 20605 # OK, works on sane cases. Now check whether nonexistent headers 20606 # can be detected and how. 20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20608/* end confdefs.h. */ 20609#include <ac_nonexistent.h> 20610_ACEOF 20611if ac_fn_c_try_cpp "$LINENO" 20612then : 20613 # Broken: success on invalid input. 20614continue 20615else case e in #( 20616 e) # Passes both tests. 20617ac_preproc_ok=: 20618break ;; 20619esac 20620fi 20621rm -f conftest.err conftest.i conftest.$ac_ext 20622 20623done 20624# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20625rm -f conftest.i conftest.err conftest.$ac_ext 20626if $ac_preproc_ok 20627then : 20628 20629else case e in #( 20630 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20631printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20632as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20633See 'config.log' for more details" "$LINENO" 5; } ;; 20634esac 20635fi 20636 20637ac_ext=c 20638ac_cpp='$CPP $CPPFLAGS' 20639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20641ac_compiler_gnu=$ac_cv_c_compiler_gnu 20642 20643 20644 20645if test -n "$ac_tool_prefix"; then 20646 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 20647set dummy ${ac_tool_prefix}cpp; ac_word=$2 20648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20649printf %s "checking for $ac_word... " >&6; } 20650if test ${ac_cv_path_RAWCPP+y} 20651then : 20652 printf %s "(cached) " >&6 20653else case e in #( 20654 e) case $RAWCPP in 20655 [\\/]* | ?:[\\/]*) 20656 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 20657 ;; 20658 *) 20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20660as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20661for as_dir in $as_dummy 20662do 20663 IFS=$as_save_IFS 20664 case $as_dir in #((( 20665 '') as_dir=./ ;; 20666 */) ;; 20667 *) as_dir=$as_dir/ ;; 20668 esac 20669 for ac_exec_ext in '' $ac_executable_extensions; do 20670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20671 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 20672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20673 break 2 20674 fi 20675done 20676 done 20677IFS=$as_save_IFS 20678 20679 ;; 20680esac ;; 20681esac 20682fi 20683RAWCPP=$ac_cv_path_RAWCPP 20684if test -n "$RAWCPP"; then 20685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 20686printf "%s\n" "$RAWCPP" >&6; } 20687else 20688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20689printf "%s\n" "no" >&6; } 20690fi 20691 20692 20693fi 20694if test -z "$ac_cv_path_RAWCPP"; then 20695 ac_pt_RAWCPP=$RAWCPP 20696 # Extract the first word of "cpp", so it can be a program name with args. 20697set dummy cpp; ac_word=$2 20698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20699printf %s "checking for $ac_word... " >&6; } 20700if test ${ac_cv_path_ac_pt_RAWCPP+y} 20701then : 20702 printf %s "(cached) " >&6 20703else case e in #( 20704 e) case $ac_pt_RAWCPP in 20705 [\\/]* | ?:[\\/]*) 20706 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 20707 ;; 20708 *) 20709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20710as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20711for as_dir in $as_dummy 20712do 20713 IFS=$as_save_IFS 20714 case $as_dir in #((( 20715 '') as_dir=./ ;; 20716 */) ;; 20717 *) as_dir=$as_dir/ ;; 20718 esac 20719 for ac_exec_ext in '' $ac_executable_extensions; do 20720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20721 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 20722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20723 break 2 20724 fi 20725done 20726 done 20727IFS=$as_save_IFS 20728 20729 ;; 20730esac ;; 20731esac 20732fi 20733ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 20734if test -n "$ac_pt_RAWCPP"; then 20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 20736printf "%s\n" "$ac_pt_RAWCPP" >&6; } 20737else 20738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20739printf "%s\n" "no" >&6; } 20740fi 20741 20742 if test "x$ac_pt_RAWCPP" = x; then 20743 RAWCPP="${CPP}" 20744 else 20745 case $cross_compiling:$ac_tool_warned in 20746yes:) 20747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20749ac_tool_warned=yes ;; 20750esac 20751 RAWCPP=$ac_pt_RAWCPP 20752 fi 20753else 20754 RAWCPP="$ac_cv_path_RAWCPP" 20755fi 20756 20757 20758# Check for flag to avoid builtin definitions - assumes unix is predefined, 20759# which is not the best choice for supporting other OS'es, but covers most 20760# of the ones we need for now. 20761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 20762printf %s "checking if $RAWCPP requires -undef... " >&6; } 20763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20764/* end confdefs.h. */ 20765Does cpp redefine unix ? 20766_ACEOF 20767if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20769printf "%s\n" "no" >&6; } 20770else 20771 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20772 RAWCPPFLAGS=-undef 20773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20774printf "%s\n" "yes" >&6; } 20775 # under Cygwin unix is still defined even with -undef 20776 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20777 RAWCPPFLAGS="-undef -ansi" 20778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 20779printf "%s\n" "yes, with -ansi" >&6; } 20780 else 20781 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 20782 fi 20783fi 20784rm -f conftest.$ac_ext 20785 20786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 20787printf %s "checking if $RAWCPP requires -traditional... " >&6; } 20788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20789/* end confdefs.h. */ 20790Does cpp preserve "whitespace"? 20791_ACEOF 20792if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20794printf "%s\n" "no" >&6; } 20795else 20796 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 20797 TRADITIONALCPPFLAGS="-traditional" 20798 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 20799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20800printf "%s\n" "yes" >&6; } 20801 else 20802 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 20803 fi 20804fi 20805rm -f conftest.$ac_ext 20806 20807 20808 20809 20810 20811# Preserves the interface, should it be implemented later 20812 20813 20814 20815# Check whether --with-perl was given. 20816if test ${with_perl+y} 20817then : 20818 withval=$with_perl; use_perl=$withval 20819else case e in #( 20820 e) use_perl=auto ;; 20821esac 20822fi 20823 20824 20825 20826if test "x$use_perl" = x"auto"; then 20827 # Extract the first word of "perl", so it can be a program name with args. 20828set dummy perl; ac_word=$2 20829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20830printf %s "checking for $ac_word... " >&6; } 20831if test ${ac_cv_path_PERL+y} 20832then : 20833 printf %s "(cached) " >&6 20834else case e in #( 20835 e) case $PERL in 20836 [\\/]* | ?:[\\/]*) 20837 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 20838 ;; 20839 *) 20840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20841for as_dir in $PATH 20842do 20843 IFS=$as_save_IFS 20844 case $as_dir in #((( 20845 '') as_dir=./ ;; 20846 */) ;; 20847 *) as_dir=$as_dir/ ;; 20848 esac 20849 for ac_exec_ext in '' $ac_executable_extensions; do 20850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20851 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 20852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20853 break 2 20854 fi 20855done 20856 done 20857IFS=$as_save_IFS 20858 20859 ;; 20860esac ;; 20861esac 20862fi 20863PERL=$ac_cv_path_PERL 20864if test -n "$PERL"; then 20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 20866printf "%s\n" "$PERL" >&6; } 20867else 20868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20869printf "%s\n" "no" >&6; } 20870fi 20871 20872 20873 if test "x$PERL" = "x"; then 20874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 20875printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 20876 have_perl=no 20877 else 20878 have_perl=yes 20879 fi 20880elif test "x$use_perl" = x"yes" ; then 20881 # Extract the first word of "perl", so it can be a program name with args. 20882set dummy perl; ac_word=$2 20883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20884printf %s "checking for $ac_word... " >&6; } 20885if test ${ac_cv_path_PERL+y} 20886then : 20887 printf %s "(cached) " >&6 20888else case e in #( 20889 e) case $PERL in 20890 [\\/]* | ?:[\\/]*) 20891 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 20892 ;; 20893 *) 20894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20895for as_dir in $PATH 20896do 20897 IFS=$as_save_IFS 20898 case $as_dir in #((( 20899 '') as_dir=./ ;; 20900 */) ;; 20901 *) as_dir=$as_dir/ ;; 20902 esac 20903 for ac_exec_ext in '' $ac_executable_extensions; do 20904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20905 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 20906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20907 break 2 20908 fi 20909done 20910 done 20911IFS=$as_save_IFS 20912 20913 ;; 20914esac ;; 20915esac 20916fi 20917PERL=$ac_cv_path_PERL 20918if test -n "$PERL"; then 20919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 20920printf "%s\n" "$PERL" >&6; } 20921else 20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20923printf "%s\n" "no" >&6; } 20924fi 20925 20926 20927 if test "x$PERL" = "x"; then 20928 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 20929 fi 20930 have_perl=yes 20931elif test "x$use_perl" = x"no" ; then 20932 if test "x$PERL" != "x"; then 20933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 20934printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 20935 fi 20936 have_perl=no 20937else 20938 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 20939fi 20940 20941 if test "$have_perl" = yes; then 20942 HAVE_PERL_TRUE= 20943 HAVE_PERL_FALSE='#' 20944else 20945 HAVE_PERL_TRUE='#' 20946 HAVE_PERL_FALSE= 20947fi 20948 20949 20950 20951 20952# Checks for header files. 20953ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 20954if test "x$ac_cv_header_alloca_h" = xyes 20955then : 20956 20957printf "%s\n" "#define INCLUDE_ALLOCA_H 1" >>confdefs.h 20958 20959fi 20960 20961 20962# Checks for library functions. 20963ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20964if test "x$ac_cv_func_reallocarray" = xyes 20965then : 20966 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20967 20968fi 20969 20970 20971# Obtain compiler/linker options for dependencies 20972 20973pkg_failed=no 20974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sm ice x11 xproto kbproto" >&5 20975printf %s "checking for sm ice x11 xproto kbproto... " >&6; } 20976 20977if test -n "$XT_CFLAGS"; then 20978 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 20979 elif test -n "$PKG_CONFIG"; then 20980 if test -n "$PKG_CONFIG" && \ 20981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 20982 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 20983 ac_status=$? 20984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20985 test $ac_status = 0; }; then 20986 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null` 20987 test "x$?" != "x0" && pkg_failed=yes 20988else 20989 pkg_failed=yes 20990fi 20991 else 20992 pkg_failed=untried 20993fi 20994if test -n "$XT_LIBS"; then 20995 pkg_cv_XT_LIBS="$XT_LIBS" 20996 elif test -n "$PKG_CONFIG"; then 20997 if test -n "$PKG_CONFIG" && \ 20998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 20999 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 21000 ac_status=$? 21001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21002 test $ac_status = 0; }; then 21003 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null` 21004 test "x$?" != "x0" && pkg_failed=yes 21005else 21006 pkg_failed=yes 21007fi 21008 else 21009 pkg_failed=untried 21010fi 21011 21012 21013 21014if test $pkg_failed = yes; then 21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21016printf "%s\n" "no" >&6; } 21017 21018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21019 _pkg_short_errors_supported=yes 21020else 21021 _pkg_short_errors_supported=no 21022fi 21023 if test $_pkg_short_errors_supported = yes; then 21024 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1` 21025 else 21026 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1` 21027 fi 21028 # Put the nasty error message in config.log where it belongs 21029 echo "$XT_PKG_ERRORS" >&5 21030 21031 as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met: 21032 21033$XT_PKG_ERRORS 21034 21035Consider adjusting the PKG_CONFIG_PATH environment variable if you 21036installed software in a non-standard prefix. 21037 21038Alternatively, you may set the environment variables XT_CFLAGS 21039and XT_LIBS to avoid the need to call pkg-config. 21040See the pkg-config man page for more details." "$LINENO" 5 21041elif test $pkg_failed = untried; then 21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21043printf "%s\n" "no" >&6; } 21044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21045printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21046as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21047is in your PATH or set the PKG_CONFIG environment variable to the full 21048path to pkg-config. 21049 21050Alternatively, you may set the environment variables XT_CFLAGS 21051and XT_LIBS to avoid the need to call pkg-config. 21052See the pkg-config man page for more details. 21053 21054To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21055See 'config.log' for more details" "$LINENO" 5; } 21056else 21057 XT_CFLAGS=$pkg_cv_XT_CFLAGS 21058 XT_LIBS=$pkg_cv_XT_LIBS 21059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21060printf "%s\n" "yes" >&6; } 21061 21062fi 21063 21064# Set-up variables to use build machine compiler when cross-compiling 21065if test x"$CC_FOR_BUILD" = x; then 21066 if test x"$cross_compiling" = xyes; then 21067 for ac_prog in gcc cc 21068do 21069 # Extract the first word of "$ac_prog", so it can be a program name with args. 21070set dummy $ac_prog; ac_word=$2 21071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21072printf %s "checking for $ac_word... " >&6; } 21073if test ${ac_cv_prog_CC_FOR_BUILD+y} 21074then : 21075 printf %s "(cached) " >&6 21076else case e in #( 21077 e) if test -n "$CC_FOR_BUILD"; then 21078 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 21079else 21080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21081for as_dir in $PATH 21082do 21083 IFS=$as_save_IFS 21084 case $as_dir in #((( 21085 '') as_dir=./ ;; 21086 */) ;; 21087 *) as_dir=$as_dir/ ;; 21088 esac 21089 for ac_exec_ext in '' $ac_executable_extensions; do 21090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21091 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 21092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21093 break 2 21094 fi 21095done 21096 done 21097IFS=$as_save_IFS 21098 21099fi ;; 21100esac 21101fi 21102CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 21103if test -n "$CC_FOR_BUILD"; then 21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 21105printf "%s\n" "$CC_FOR_BUILD" >&6; } 21106else 21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21108printf "%s\n" "no" >&6; } 21109fi 21110 21111 21112 test -n "$CC_FOR_BUILD" && break 21113done 21114 21115 else 21116 CC_FOR_BUILD="$CC" 21117 fi 21118fi 21119if test x"$cross_compiling" != xyes; then 21120 : ${CFLAGS_FOR_BUILD=${CFLAGS}} 21121 : ${LDFLAGS_FOR_BUILD=${LDFLAGS}} 21122fi 21123 21124DEFAULT_CPPFLAGS_FOR_BUILD="${CPPFLAGS}" 21125ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 21126if test "x$ac_cv_func_asprintf" = xyes 21127then : 21128 DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF -D_GNU_SOURCE" 21129fi 21130 21131CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${DEFAULT_CPPFLAGS_FOR_BUILD}} 21132 21133DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}" 21134 21135 21136 21137# Map function checks to old Imake #defines 21138case $host_os in 21139 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 21140 darwin[789]*|darwin10*) ;; 21141 darwin*) 21142 _ac_xorg_macosx_version_min="" 21143 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 21144 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 21145 else 21146 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 21147 fi 21148 case $_ac_xorg_macosx_version_min in 21149 10.[0123456]|10.[0123456].*) ;; 21150 *) 21151 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21152if test "x$ac_cv_func_poll" = xyes 21153then : 21154 21155printf "%s\n" "#define USE_POLL 1" >>confdefs.h 21156 21157fi 21158 21159 ;; 21160 esac 21161 unset _ac_xorg_macosx_version_min 21162 ;; 21163 *) 21164 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21165if test "x$ac_cv_func_poll" = xyes 21166then : 21167 21168printf "%s\n" "#define USE_POLL 1" >>confdefs.h 21169 21170fi 21171 21172 ;; 21173esac 21174 21175# Link with winsock if mingw target 21176case $host_os in 21177 *mingw*) 21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21179printf %s "checking for main in -lws2_32... " >&6; } 21180if test ${ac_cv_lib_ws2_32_main+y} 21181then : 21182 printf %s "(cached) " >&6 21183else case e in #( 21184 e) ac_check_lib_save_LIBS=$LIBS 21185LIBS="-lws2_32 $LIBS" 21186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21187/* end confdefs.h. */ 21188 21189 21190int 21191main (void) 21192{ 21193return main (); 21194 ; 21195 return 0; 21196} 21197_ACEOF 21198if ac_fn_c_try_link "$LINENO" 21199then : 21200 ac_cv_lib_ws2_32_main=yes 21201else case e in #( 21202 e) ac_cv_lib_ws2_32_main=no ;; 21203esac 21204fi 21205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21206 conftest$ac_exeext conftest.$ac_ext 21207LIBS=$ac_check_lib_save_LIBS ;; 21208esac 21209fi 21210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21211printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 21212if test "x$ac_cv_lib_ws2_32_main" = xyes 21213then : 21214 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 21215 21216 LIBS="-lws2_32 $LIBS" 21217 21218fi 21219 21220 ;; 21221 *) 21222 ;; 21223esac 21224 21225# Options 21226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XKB support is wanted" >&5 21227printf %s "checking if XKB support is wanted... " >&6; } 21228# Check whether --enable-xkb was given. 21229if test ${enable_xkb+y} 21230then : 21231 enableval=$enable_xkb; XKB="$enableval" 21232else case e in #( 21233 e) XKB="yes" ;; 21234esac 21235fi 21236 21237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XKB" >&5 21238printf "%s\n" "$XKB" >&6; } 21239if test "x$XKB" = "xyes" ; then 21240 21241printf "%s\n" "#define XKB 1" >>confdefs.h 21242 21243fi 21244 21245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5 21246printf %s "checking if C const-support is wanted... " >&6; } 21247# Check whether --enable-const was given. 21248if test ${enable_const+y} 21249then : 21250 enableval=$enable_const; USE_CONST="$enableval" 21251else case e in #( 21252 e) USE_CONST="yes" ;; 21253esac 21254fi 21255 21256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5 21257printf "%s\n" "$USE_CONST" >&6; } 21258if test "x$USE_CONST" = "xyes" ; then 21259 21260printf "%s\n" "#define _CONST_X_STRING 1" >>confdefs.h 21261 21262fi 21263 21264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if geo-tattler traces are wanted" >&5 21265printf %s "checking if geo-tattler traces are wanted... " >&6; } 21266# Check whether --enable-geo-tattler was given. 21267if test ${enable_geo_tattler+y} 21268then : 21269 enableval=$enable_geo_tattler; GEO_TATTLER="$enableval" 21270else case e in #( 21271 e) GEO_TATTLER="no" ;; 21272esac 21273fi 21274 21275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GEO_TATTLER" >&5 21276printf "%s\n" "$GEO_TATTLER" >&6; } 21277if test "x$GEO_TATTLER" = "xyes" ; then 21278 21279printf "%s\n" "#define XT_GEO_TATTLER 1" >>confdefs.h 21280 21281fi 21282 21283# --enable-unit-tests 21284 21285 21286 21287 21288 21289# Check for different types of support on different platforms 21290case $host_os in 21291 solaris*) 21292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 21293printf %s "checking for umem_alloc in -lumem... " >&6; } 21294if test ${ac_cv_lib_umem_umem_alloc+y} 21295then : 21296 printf %s "(cached) " >&6 21297else case e in #( 21298 e) ac_check_lib_save_LIBS=$LIBS 21299LIBS="-lumem $LIBS" 21300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21301/* end confdefs.h. */ 21302 21303/* Override any GCC internal prototype to avoid an error. 21304 Use char because int might match the return type of a GCC 21305 builtin and then its argument prototype would still apply. 21306 The 'extern "C"' is for builds by C++ compilers; 21307 although this is not generally supported in C code supporting it here 21308 has little cost and some practical benefit (sr 110532). */ 21309#ifdef __cplusplus 21310extern "C" 21311#endif 21312char umem_alloc (void); 21313int 21314main (void) 21315{ 21316return umem_alloc (); 21317 ; 21318 return 0; 21319} 21320_ACEOF 21321if ac_fn_c_try_link "$LINENO" 21322then : 21323 ac_cv_lib_umem_umem_alloc=yes 21324else case e in #( 21325 e) ac_cv_lib_umem_umem_alloc=no ;; 21326esac 21327fi 21328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21329 conftest$ac_exeext conftest.$ac_ext 21330LIBS=$ac_check_lib_save_LIBS ;; 21331esac 21332fi 21333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 21334printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 21335if test "x$ac_cv_lib_umem_umem_alloc" = xyes 21336then : 21337 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 21338fi 21339 21340 ;; 21341 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 21342 # both directly and inverted, so should not be 0 or 255. 21343 malloc_debug_env='MALLOC_PERTURB_=15' 21344 ;; 21345 darwin*) 21346 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 21347 ;; 21348 *bsd*) 21349 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 21350 ;; 21351esac 21352 21353# User supplied flags override default flags 21354if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 21355 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 21356fi 21357 21358XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 21359 21360 21361 21362 21363 21364 21365 21366# Check whether --enable-unit-tests was given. 21367if test ${enable_unit_tests+y} 21368then : 21369 enableval=$enable_unit_tests; enable_unit_tests=$enableval 21370else case e in #( 21371 e) enable_unit_tests=auto ;; 21372esac 21373fi 21374 21375 21376 if test "x$enable_unit_tests" != xno; then 21377 ENABLE_UNIT_TESTS_TRUE= 21378 ENABLE_UNIT_TESTS_FALSE='#' 21379else 21380 ENABLE_UNIT_TESTS_TRUE='#' 21381 ENABLE_UNIT_TESTS_FALSE= 21382fi 21383 21384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 21385printf %s "checking whether to build unit test cases... " >&6; } 21386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 21387printf "%s\n" "$enable_unit_tests" >&6; } 21388 21389 21390 21391 21392 21393# Check whether --with-glib was given. 21394if test ${with_glib+y} 21395then : 21396 withval=$with_glib; with_glib=$withval 21397else case e in #( 21398 e) with_glib=auto ;; 21399esac 21400fi 21401 21402 21403 21404have_glib=no 21405# Do not probe GLib if user explicitly disabled unit testing 21406if test "x$enable_unit_tests" != x"no"; then 21407 # Do not probe GLib if user explicitly disabled it 21408 if test "x$with_glib" != x"no"; then 21409 21410pkg_failed=no 21411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.40" >&5 21412printf %s "checking for glib-2.0 >= 2.40... " >&6; } 21413 21414if test -n "$GLIB_CFLAGS"; then 21415 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 21416 elif test -n "$PKG_CONFIG"; then 21417 if test -n "$PKG_CONFIG" && \ 21418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.40\""; } >&5 21419 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.40") 2>&5 21420 ac_status=$? 21421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21422 test $ac_status = 0; }; then 21423 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.40" 2>/dev/null` 21424 test "x$?" != "x0" && pkg_failed=yes 21425else 21426 pkg_failed=yes 21427fi 21428 else 21429 pkg_failed=untried 21430fi 21431if test -n "$GLIB_LIBS"; then 21432 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 21433 elif test -n "$PKG_CONFIG"; then 21434 if test -n "$PKG_CONFIG" && \ 21435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.40\""; } >&5 21436 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.40") 2>&5 21437 ac_status=$? 21438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21439 test $ac_status = 0; }; then 21440 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.40" 2>/dev/null` 21441 test "x$?" != "x0" && pkg_failed=yes 21442else 21443 pkg_failed=yes 21444fi 21445 else 21446 pkg_failed=untried 21447fi 21448 21449 21450 21451if test $pkg_failed = yes; then 21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21453printf "%s\n" "no" >&6; } 21454 21455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21456 _pkg_short_errors_supported=yes 21457else 21458 _pkg_short_errors_supported=no 21459fi 21460 if test $_pkg_short_errors_supported = yes; then 21461 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.40" 2>&1` 21462 else 21463 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.40" 2>&1` 21464 fi 21465 # Put the nasty error message in config.log where it belongs 21466 echo "$GLIB_PKG_ERRORS" >&5 21467 21468 have_glib=no 21469elif test $pkg_failed = untried; then 21470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21471printf "%s\n" "no" >&6; } 21472 have_glib=no 21473else 21474 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 21475 GLIB_LIBS=$pkg_cv_GLIB_LIBS 21476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21477printf "%s\n" "yes" >&6; } 21478 have_glib=yes 21479fi 21480 fi 21481fi 21482 21483# Not having GLib when unit testing has been explicitly requested is an error 21484if test "x$enable_unit_tests" = x"yes"; then 21485 if test "x$have_glib" = x"no"; then 21486 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 21487 fi 21488fi 21489 21490# Having unit testing disabled when GLib has been explicitly requested is an error 21491if test "x$enable_unit_tests" = x"no"; then 21492 if test "x$with_glib" = x"yes"; then 21493 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 21494 fi 21495fi 21496 21497# Not having GLib when it has been explicitly requested is an error 21498if test "x$with_glib" = x"yes"; then 21499 if test "x$have_glib" = x"no"; then 21500 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 21501 fi 21502fi 21503 21504 if test "$have_glib" = yes; then 21505 HAVE_GLIB_TRUE= 21506 HAVE_GLIB_FALSE='#' 21507else 21508 HAVE_GLIB_TRUE='#' 21509 HAVE_GLIB_FALSE= 21510fi 21511 21512 21513 21514 21515 21516 21517 21518# Check for different types of support on different platforms 21519case $host_os in 21520 solaris*) 21521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 21522printf %s "checking for umem_alloc in -lumem... " >&6; } 21523if test ${ac_cv_lib_umem_umem_alloc+y} 21524then : 21525 printf %s "(cached) " >&6 21526else case e in #( 21527 e) ac_check_lib_save_LIBS=$LIBS 21528LIBS="-lumem $LIBS" 21529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21530/* end confdefs.h. */ 21531 21532/* Override any GCC internal prototype to avoid an error. 21533 Use char because int might match the return type of a GCC 21534 builtin and then its argument prototype would still apply. 21535 The 'extern "C"' is for builds by C++ compilers; 21536 although this is not generally supported in C code supporting it here 21537 has little cost and some practical benefit (sr 110532). */ 21538#ifdef __cplusplus 21539extern "C" 21540#endif 21541char umem_alloc (void); 21542int 21543main (void) 21544{ 21545return umem_alloc (); 21546 ; 21547 return 0; 21548} 21549_ACEOF 21550if ac_fn_c_try_link "$LINENO" 21551then : 21552 ac_cv_lib_umem_umem_alloc=yes 21553else case e in #( 21554 e) ac_cv_lib_umem_umem_alloc=no ;; 21555esac 21556fi 21557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21558 conftest$ac_exeext conftest.$ac_ext 21559LIBS=$ac_check_lib_save_LIBS ;; 21560esac 21561fi 21562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 21563printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 21564if test "x$ac_cv_lib_umem_umem_alloc" = xyes 21565then : 21566 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 21567fi 21568 21569 ;; 21570 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 21571 # both directly and inverted, so should not be 0 or 255. 21572 malloc_debug_env='MALLOC_PERTURB_=15' 21573 ;; 21574 darwin*) 21575 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 21576 ;; 21577 *bsd*) 21578 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 21579 ;; 21580esac 21581 21582# User supplied flags override default flags 21583if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 21584 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 21585fi 21586 21587XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 21588 21589 21590if test "x$enable_unit_tests" != "xno" ; then 21591 ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size" 21592if test "x$ac_cv_func_malloc_usable_size" = xyes 21593then : 21594 printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h 21595 21596fi 21597 21598 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 21599if test "x$ac_cv_header_malloc_h" = xyes 21600then : 21601 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 21602 21603fi 21604 21605fi 21606 21607# Replaces XFileSearchPathDefault from Imake configs 21608XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S' 21609 21610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X files search path" >&5 21611printf %s "checking for X files search path... " >&6; } 21612 21613# Check whether --with-xfile-search-path was given. 21614if test ${with_xfile_search_path+y} 21615then : 21616 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval" 21617fi 21618 21619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${XFILESEARCHPATHDEFAULT:-none}" >&5 21620printf "%s\n" "${XFILESEARCHPATHDEFAULT:-none}" >&6; } 21621 21622 21623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5 21624printf %s "checking for X app-defaults directory... " >&6; } 21625 21626# Check whether --with-appdefaultdir was given. 21627if test ${with_appdefaultdir+y} 21628then : 21629 withval=$with_appdefaultdir; appdefaultdir="$withval" 21630else case e in #( 21631 e) appdefaultdir=${datadir}/X11/app-defaults ;; 21632esac 21633fi 21634 21635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $appdefaultdir" >&5 21636printf "%s\n" "$appdefaultdir" >&6; } 21637 21638 prefix_NONE= 21639 exec_prefix_NONE= 21640 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21641 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21642 eval ax_define_dir="\"$appdefaultdir\"" 21643 eval ax_define_dir="\"$ax_define_dir\"" 21644 appdefaultdir="$ax_define_dir" 21645 21646 21647printf "%s\n" "#define appdefaultdir \"$ax_define_dir\"" >>confdefs.h 21648 21649 test "$prefix_NONE" && prefix=NONE 21650 test "$exec_prefix_NONE" && exec_prefix=NONE 21651 21652 21653# Replacement for Imake ToolkitStringsABIOptions, controls string tables 21654# generated by util/string.list in StringDefs.h & Shell.h 21655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ABI options" >&5 21656printf %s "checking for ABI options... " >&6; } 21657case $host_os in 21658 solaris*) 21659 # Solaris uses -intelabi even on SPARC 21660 STRINGSABIOPTIONS="-intelabi -solarisabinames" 21661 ;; 21662 sco* | svr4*) 21663 case $host_cpu in 21664 i*86) STRINGSABIOPTIONS="-intelabi" ;; 21665 *) STRINGSABIOPTIONS="" ;; 21666 esac 21667 ;; 21668esac 21669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${STRINGSABIOPTIONS:-none}" >&5 21670printf "%s\n" "${STRINGSABIOPTIONS:-none}" >&6; } 21671 21672 21673ERRORDBDIR=${datadir}/X11 21674 21675 21676ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile specs/libXt.ent test/Makefile xt.pc" 21677 21678cat >confcache <<\_ACEOF 21679# This file is a shell script that caches the results of configure 21680# tests run on this system so they can be shared between configure 21681# scripts and configure runs, see configure's option --config-cache. 21682# It is not useful on other systems. If it contains results you don't 21683# want to keep, you may remove or edit it. 21684# 21685# config.status only pays attention to the cache file if you give it 21686# the --recheck option to rerun configure. 21687# 21688# 'ac_cv_env_foo' variables (set or unset) will be overridden when 21689# loading this file, other *unset* 'ac_cv_foo' will be assigned the 21690# following values. 21691 21692_ACEOF 21693 21694# The following way of writing the cache mishandles newlines in values, 21695# but we know of no workaround that is simple, portable, and efficient. 21696# So, we kill variables containing newlines. 21697# Ultrix sh set writes to stderr and can't be redirected directly, 21698# and sets the high bit in the cache file unless we assign to the vars. 21699( 21700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21701 eval ac_val=\$$ac_var 21702 case $ac_val in #( 21703 *${as_nl}*) 21704 case $ac_var in #( 21705 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21706printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21707 esac 21708 case $ac_var in #( 21709 _ | IFS | as_nl) ;; #( 21710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21711 *) { eval $ac_var=; unset $ac_var;} ;; 21712 esac ;; 21713 esac 21714 done 21715 21716 (set) 2>&1 | 21717 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21718 *${as_nl}ac_space=\ *) 21719 # 'set' does not quote correctly, so add quotes: double-quote 21720 # substitution turns \\\\ into \\, and sed turns \\ into \. 21721 sed -n \ 21722 "s/'/'\\\\''/g; 21723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21724 ;; #( 21725 *) 21726 # 'set' quotes correctly as required by POSIX, so do not add quotes. 21727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21728 ;; 21729 esac | 21730 sort 21731) | 21732 sed ' 21733 /^ac_cv_env_/b end 21734 t clear 21735 :clear 21736 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21737 t end 21738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21739 :end' >>confcache 21740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21741 if test -w "$cache_file"; then 21742 if test "x$cache_file" != "x/dev/null"; then 21743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21744printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21745 if test ! -f "$cache_file" || test -h "$cache_file"; then 21746 cat confcache >"$cache_file" 21747 else 21748 case $cache_file in #( 21749 */* | ?:*) 21750 mv -f confcache "$cache_file"$$ && 21751 mv -f "$cache_file"$$ "$cache_file" ;; #( 21752 *) 21753 mv -f confcache "$cache_file" ;; 21754 esac 21755 fi 21756 fi 21757 else 21758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21759printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21760 fi 21761fi 21762rm -f confcache 21763 21764test "x$prefix" = xNONE && prefix=$ac_default_prefix 21765# Let make expand exec_prefix. 21766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21767 21768DEFS=-DHAVE_CONFIG_H 21769 21770ac_libobjs= 21771ac_ltlibobjs= 21772U= 21773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21774 # 1. Remove the extension, and $U if already installed. 21775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21776 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21778 # will be set to the directory where LIBOBJS objects are built. 21779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21781done 21782LIBOBJS=$ac_libobjs 21783 21784LTLIBOBJS=$ac_ltlibobjs 21785 21786 21787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21788printf %s "checking that generated files are newer than configure... " >&6; } 21789 if test -n "$am_sleep_pid"; then 21790 # Hide warnings about reused PIDs. 21791 wait $am_sleep_pid 2>/dev/null 21792 fi 21793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21794printf "%s\n" "done" >&6; } 21795if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21796 as_fn_error $? "conditional \"AMDEP\" was never defined. 21797Usually this means the macro was only invoked conditionally." "$LINENO" 5 21798fi 21799if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21801Usually this means the macro was only invoked conditionally." "$LINENO" 5 21802fi 21803 if test -n "$EXEEXT"; then 21804 am__EXEEXT_TRUE= 21805 am__EXEEXT_FALSE='#' 21806else 21807 am__EXEEXT_TRUE='#' 21808 am__EXEEXT_FALSE= 21809fi 21810 21811if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21812 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21813Usually this means the macro was only invoked conditionally." "$LINENO" 5 21814fi 21815if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21816 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21817Usually this means the macro was only invoked conditionally." "$LINENO" 5 21818fi 21819if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21820 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21821Usually this means the macro was only invoked conditionally." "$LINENO" 5 21822fi 21823if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21824 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21825Usually this means the macro was only invoked conditionally." "$LINENO" 5 21826fi 21827if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21828 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21829Usually this means the macro was only invoked conditionally." "$LINENO" 5 21830fi 21831if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21832 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21833Usually this means the macro was only invoked conditionally." "$LINENO" 5 21834fi 21835if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 21836 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 21837Usually this means the macro was only invoked conditionally." "$LINENO" 5 21838fi 21839if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 21840 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 21841Usually this means the macro was only invoked conditionally." "$LINENO" 5 21842fi 21843if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 21844 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 21845Usually this means the macro was only invoked conditionally." "$LINENO" 5 21846fi 21847 21848: "${CONFIG_STATUS=./config.status}" 21849ac_write_fail=0 21850ac_clean_files_save=$ac_clean_files 21851ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21853printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21854as_write_fail=0 21855cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21856#! $SHELL 21857# Generated by $as_me. 21858# Run this file to recreate the current configuration. 21859# Compiler output produced by configure, useful for debugging 21860# configure, is in config.log if it exists. 21861 21862debug=false 21863ac_cs_recheck=false 21864ac_cs_silent=false 21865 21866SHELL=\${CONFIG_SHELL-$SHELL} 21867export SHELL 21868_ASEOF 21869cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21870## -------------------- ## 21871## M4sh Initialization. ## 21872## -------------------- ## 21873 21874# Be more Bourne compatible 21875DUALCASE=1; export DUALCASE # for MKS sh 21876if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21877then : 21878 emulate sh 21879 NULLCMD=: 21880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21881 # is contrary to our usage. Disable this feature. 21882 alias -g '${1+"$@"}'='"$@"' 21883 setopt NO_GLOB_SUBST 21884else case e in #( 21885 e) case `(set -o) 2>/dev/null` in #( 21886 *posix*) : 21887 set -o posix ;; #( 21888 *) : 21889 ;; 21890esac ;; 21891esac 21892fi 21893 21894 21895 21896# Reset variables that may have inherited troublesome values from 21897# the environment. 21898 21899# IFS needs to be set, to space, tab, and newline, in precisely that order. 21900# (If _AS_PATH_WALK were called with IFS unset, it would have the 21901# side effect of setting IFS to empty, thus disabling word splitting.) 21902# Quoting is to prevent editors from complaining about space-tab. 21903as_nl=' 21904' 21905export as_nl 21906IFS=" "" $as_nl" 21907 21908PS1='$ ' 21909PS2='> ' 21910PS4='+ ' 21911 21912# Ensure predictable behavior from utilities with locale-dependent output. 21913LC_ALL=C 21914export LC_ALL 21915LANGUAGE=C 21916export LANGUAGE 21917 21918# We cannot yet rely on "unset" to work, but we need these variables 21919# to be unset--not just set to an empty or harmless value--now, to 21920# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21921# also avoids known problems related to "unset" and subshell syntax 21922# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21923for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21924do eval test \${$as_var+y} \ 21925 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21926done 21927 21928# Ensure that fds 0, 1, and 2 are open. 21929if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21930if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21931if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21932 21933# The user is always right. 21934if ${PATH_SEPARATOR+false} :; then 21935 PATH_SEPARATOR=: 21936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21938 PATH_SEPARATOR=';' 21939 } 21940fi 21941 21942 21943# Find who we are. Look in the path if we contain no directory separator. 21944as_myself= 21945case $0 in #(( 21946 *[\\/]* ) as_myself=$0 ;; 21947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21948for as_dir in $PATH 21949do 21950 IFS=$as_save_IFS 21951 case $as_dir in #((( 21952 '') as_dir=./ ;; 21953 */) ;; 21954 *) as_dir=$as_dir/ ;; 21955 esac 21956 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21957 done 21958IFS=$as_save_IFS 21959 21960 ;; 21961esac 21962# We did not find ourselves, most probably we were run as 'sh COMMAND' 21963# in which case we are not to be found in the path. 21964if test "x$as_myself" = x; then 21965 as_myself=$0 21966fi 21967if test ! -f "$as_myself"; then 21968 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21969 exit 1 21970fi 21971 21972 21973 21974# as_fn_error STATUS ERROR [LINENO LOG_FD] 21975# ---------------------------------------- 21976# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21977# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21978# script with STATUS, using 1 if that was 0. 21979as_fn_error () 21980{ 21981 as_status=$1; test $as_status -eq 0 && as_status=1 21982 if test "$4"; then 21983 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21985 fi 21986 printf "%s\n" "$as_me: error: $2" >&2 21987 as_fn_exit $as_status 21988} # as_fn_error 21989 21990 21991# as_fn_set_status STATUS 21992# ----------------------- 21993# Set $? to STATUS, without forking. 21994as_fn_set_status () 21995{ 21996 return $1 21997} # as_fn_set_status 21998 21999# as_fn_exit STATUS 22000# ----------------- 22001# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22002as_fn_exit () 22003{ 22004 set +e 22005 as_fn_set_status $1 22006 exit $1 22007} # as_fn_exit 22008 22009# as_fn_unset VAR 22010# --------------- 22011# Portably unset VAR. 22012as_fn_unset () 22013{ 22014 { eval $1=; unset $1;} 22015} 22016as_unset=as_fn_unset 22017 22018# as_fn_append VAR VALUE 22019# ---------------------- 22020# Append the text in VALUE to the end of the definition contained in VAR. Take 22021# advantage of any shell optimizations that allow amortized linear growth over 22022# repeated appends, instead of the typical quadratic growth present in naive 22023# implementations. 22024if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22025then : 22026 eval 'as_fn_append () 22027 { 22028 eval $1+=\$2 22029 }' 22030else case e in #( 22031 e) as_fn_append () 22032 { 22033 eval $1=\$$1\$2 22034 } ;; 22035esac 22036fi # as_fn_append 22037 22038# as_fn_arith ARG... 22039# ------------------ 22040# Perform arithmetic evaluation on the ARGs, and store the result in the 22041# global $as_val. Take advantage of shells that can avoid forks. The arguments 22042# must be portable across $(()) and expr. 22043if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22044then : 22045 eval 'as_fn_arith () 22046 { 22047 as_val=$(( $* )) 22048 }' 22049else case e in #( 22050 e) as_fn_arith () 22051 { 22052 as_val=`expr "$@" || test $? -eq 1` 22053 } ;; 22054esac 22055fi # as_fn_arith 22056 22057 22058if expr a : '\(a\)' >/dev/null 2>&1 && 22059 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22060 as_expr=expr 22061else 22062 as_expr=false 22063fi 22064 22065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22066 as_basename=basename 22067else 22068 as_basename=false 22069fi 22070 22071if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22072 as_dirname=dirname 22073else 22074 as_dirname=false 22075fi 22076 22077as_me=`$as_basename -- "$0" || 22078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22079 X"$0" : 'X\(//\)$' \| \ 22080 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22081printf "%s\n" X/"$0" | 22082 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22083 s//\1/ 22084 q 22085 } 22086 /^X\/\(\/\/\)$/{ 22087 s//\1/ 22088 q 22089 } 22090 /^X\/\(\/\).*/{ 22091 s//\1/ 22092 q 22093 } 22094 s/.*/./; q'` 22095 22096# Avoid depending upon Character Ranges. 22097as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22099as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22100as_cr_digits='0123456789' 22101as_cr_alnum=$as_cr_Letters$as_cr_digits 22102 22103 22104# Determine whether it's possible to make 'echo' print without a newline. 22105# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22106# for compatibility with existing Makefiles. 22107ECHO_C= ECHO_N= ECHO_T= 22108case `echo -n x` in #((((( 22109-n*) 22110 case `echo 'xy\c'` in 22111 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22112 xy) ECHO_C='\c';; 22113 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22114 ECHO_T=' ';; 22115 esac;; 22116*) 22117 ECHO_N='-n';; 22118esac 22119 22120# For backward compatibility with old third-party macros, we provide 22121# the shell variables $as_echo and $as_echo_n. New code should use 22122# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22123as_echo='printf %s\n' 22124as_echo_n='printf %s' 22125 22126rm -f conf$$ conf$$.exe conf$$.file 22127if test -d conf$$.dir; then 22128 rm -f conf$$.dir/conf$$.file 22129else 22130 rm -f conf$$.dir 22131 mkdir conf$$.dir 2>/dev/null 22132fi 22133if (echo >conf$$.file) 2>/dev/null; then 22134 if ln -s conf$$.file conf$$ 2>/dev/null; then 22135 as_ln_s='ln -s' 22136 # ... but there are two gotchas: 22137 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22138 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22139 # In both cases, we have to default to 'cp -pR'. 22140 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22141 as_ln_s='cp -pR' 22142 elif ln conf$$.file conf$$ 2>/dev/null; then 22143 as_ln_s=ln 22144 else 22145 as_ln_s='cp -pR' 22146 fi 22147else 22148 as_ln_s='cp -pR' 22149fi 22150rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22151rmdir conf$$.dir 2>/dev/null 22152 22153 22154# as_fn_mkdir_p 22155# ------------- 22156# Create "$as_dir" as a directory, including parents if necessary. 22157as_fn_mkdir_p () 22158{ 22159 22160 case $as_dir in #( 22161 -*) as_dir=./$as_dir;; 22162 esac 22163 test -d "$as_dir" || eval $as_mkdir_p || { 22164 as_dirs= 22165 while :; do 22166 case $as_dir in #( 22167 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22168 *) as_qdir=$as_dir;; 22169 esac 22170 as_dirs="'$as_qdir' $as_dirs" 22171 as_dir=`$as_dirname -- "$as_dir" || 22172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22173 X"$as_dir" : 'X\(//\)[^/]' \| \ 22174 X"$as_dir" : 'X\(//\)$' \| \ 22175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22176printf "%s\n" X"$as_dir" | 22177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22178 s//\1/ 22179 q 22180 } 22181 /^X\(\/\/\)[^/].*/{ 22182 s//\1/ 22183 q 22184 } 22185 /^X\(\/\/\)$/{ 22186 s//\1/ 22187 q 22188 } 22189 /^X\(\/\).*/{ 22190 s//\1/ 22191 q 22192 } 22193 s/.*/./; q'` 22194 test -d "$as_dir" && break 22195 done 22196 test -z "$as_dirs" || eval "mkdir $as_dirs" 22197 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22198 22199 22200} # as_fn_mkdir_p 22201if mkdir -p . 2>/dev/null; then 22202 as_mkdir_p='mkdir -p "$as_dir"' 22203else 22204 test -d ./-p && rmdir ./-p 22205 as_mkdir_p=false 22206fi 22207 22208 22209# as_fn_executable_p FILE 22210# ----------------------- 22211# Test if FILE is an executable regular file. 22212as_fn_executable_p () 22213{ 22214 test -f "$1" && test -x "$1" 22215} # as_fn_executable_p 22216as_test_x='test -x' 22217as_executable_p=as_fn_executable_p 22218 22219# Sed expression to map a string onto a valid CPP name. 22220as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22221as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22222 22223# Sed expression to map a string onto a valid variable name. 22224as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22225as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22226 22227 22228exec 6>&1 22229## ----------------------------------- ## 22230## Main body of $CONFIG_STATUS script. ## 22231## ----------------------------------- ## 22232_ASEOF 22233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22234 22235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22236# Save the log message, to keep $0 and so on meaningful, and to 22237# report actual input values of CONFIG_FILES etc. instead of their 22238# values after options handling. 22239ac_log=" 22240This file was extended by libXt $as_me 1.3.1, which was 22241generated by GNU Autoconf 2.72. Invocation command line was 22242 22243 CONFIG_FILES = $CONFIG_FILES 22244 CONFIG_HEADERS = $CONFIG_HEADERS 22245 CONFIG_LINKS = $CONFIG_LINKS 22246 CONFIG_COMMANDS = $CONFIG_COMMANDS 22247 $ $0 $@ 22248 22249on `(hostname || uname -n) 2>/dev/null | sed 1q` 22250" 22251 22252_ACEOF 22253 22254case $ac_config_files in *" 22255"*) set x $ac_config_files; shift; ac_config_files=$*;; 22256esac 22257 22258case $ac_config_headers in *" 22259"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22260esac 22261 22262 22263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22264# Files that config.status was made for. 22265config_files="$ac_config_files" 22266config_headers="$ac_config_headers" 22267config_commands="$ac_config_commands" 22268 22269_ACEOF 22270 22271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22272ac_cs_usage="\ 22273'$as_me' instantiates files and other configuration actions 22274from templates according to the current configuration. Unless the files 22275and actions are specified as TAGs, all are instantiated by default. 22276 22277Usage: $0 [OPTION]... [TAG]... 22278 22279 -h, --help print this help, then exit 22280 -V, --version print version number and configuration settings, then exit 22281 --config print configuration, then exit 22282 -q, --quiet, --silent 22283 do not print progress messages 22284 -d, --debug don't remove temporary files 22285 --recheck update $as_me by reconfiguring in the same conditions 22286 --file=FILE[:TEMPLATE] 22287 instantiate the configuration file FILE 22288 --header=FILE[:TEMPLATE] 22289 instantiate the configuration header FILE 22290 22291Configuration files: 22292$config_files 22293 22294Configuration headers: 22295$config_headers 22296 22297Configuration commands: 22298$config_commands 22299 22300Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/>." 22301 22302_ACEOF 22303ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22304ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22306ac_cs_config='$ac_cs_config_escaped' 22307ac_cs_version="\\ 22308libXt config.status 1.3.1 22309configured by $0, generated by GNU Autoconf 2.72, 22310 with options \\"\$ac_cs_config\\" 22311 22312Copyright (C) 2023 Free Software Foundation, Inc. 22313This config.status script is free software; the Free Software Foundation 22314gives unlimited permission to copy, distribute and modify it." 22315 22316ac_pwd='$ac_pwd' 22317srcdir='$srcdir' 22318INSTALL='$INSTALL' 22319MKDIR_P='$MKDIR_P' 22320AWK='$AWK' 22321test -n "\$AWK" || AWK=awk 22322_ACEOF 22323 22324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22325# The default lists apply if the user does not specify any file. 22326ac_need_defaults=: 22327while test $# != 0 22328do 22329 case $1 in 22330 --*=?*) 22331 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22333 ac_shift=: 22334 ;; 22335 --*=) 22336 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22337 ac_optarg= 22338 ac_shift=: 22339 ;; 22340 *) 22341 ac_option=$1 22342 ac_optarg=$2 22343 ac_shift=shift 22344 ;; 22345 esac 22346 22347 case $ac_option in 22348 # Handling of the options. 22349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22350 ac_cs_recheck=: ;; 22351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22352 printf "%s\n" "$ac_cs_version"; exit ;; 22353 --config | --confi | --conf | --con | --co | --c ) 22354 printf "%s\n" "$ac_cs_config"; exit ;; 22355 --debug | --debu | --deb | --de | --d | -d ) 22356 debug=: ;; 22357 --file | --fil | --fi | --f ) 22358 $ac_shift 22359 case $ac_optarg in 22360 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22361 '') as_fn_error $? "missing file argument" ;; 22362 esac 22363 as_fn_append CONFIG_FILES " '$ac_optarg'" 22364 ac_need_defaults=false;; 22365 --header | --heade | --head | --hea ) 22366 $ac_shift 22367 case $ac_optarg in 22368 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22369 esac 22370 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22371 ac_need_defaults=false;; 22372 --he | --h) 22373 # Conflict between --help and --header 22374 as_fn_error $? "ambiguous option: '$1' 22375Try '$0 --help' for more information.";; 22376 --help | --hel | -h ) 22377 printf "%s\n" "$ac_cs_usage"; exit ;; 22378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22379 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22380 ac_cs_silent=: ;; 22381 22382 # This is an error. 22383 -*) as_fn_error $? "unrecognized option: '$1' 22384Try '$0 --help' for more information." ;; 22385 22386 *) as_fn_append ac_config_targets " $1" 22387 ac_need_defaults=false ;; 22388 22389 esac 22390 shift 22391done 22392 22393ac_configure_extra_args= 22394 22395if $ac_cs_silent; then 22396 exec 6>/dev/null 22397 ac_configure_extra_args="$ac_configure_extra_args --silent" 22398fi 22399 22400_ACEOF 22401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22402if \$ac_cs_recheck; then 22403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22404 shift 22405 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22406 CONFIG_SHELL='$SHELL' 22407 export CONFIG_SHELL 22408 exec "\$@" 22409fi 22410 22411_ACEOF 22412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22413exec 5>>config.log 22414{ 22415 echo 22416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22417## Running $as_me. ## 22418_ASBOX 22419 printf "%s\n" "$ac_log" 22420} >&5 22421 22422_ACEOF 22423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22424# 22425# INIT-COMMANDS 22426# 22427AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22428 22429 22430# The HP-UX ksh and POSIX shell print the target directory to stdout 22431# if CDPATH is set. 22432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22433 22434sed_quote_subst='$sed_quote_subst' 22435double_quote_subst='$double_quote_subst' 22436delay_variable_subst='$delay_variable_subst' 22437macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22438macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22439enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22440enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22441pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22442enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22443shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22444SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22445ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22446PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22447host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22448host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22449host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22450build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22451build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22452build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22453SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22454Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22455GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22456EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22457FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22458LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22459NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22460LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22461max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22462ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22463exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22464lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22465lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22466lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22467lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22468lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22469reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22470reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22471FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 22472OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22473deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22474file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22475file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22476want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22477DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22478sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22479AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22480lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22481AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22482archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22483STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22484RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22485old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22486old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22487old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22488lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22489CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22490CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22491compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22492GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22493lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22494lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22495lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22496lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22497lt_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"`' 22498lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22499nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22500lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22501lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22502objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22503MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22504lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22505lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22506lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22507lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22508lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22509need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22510MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22511DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22512NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22513LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22514OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22515OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22516libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22517shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22518extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22519archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22520enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22521export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22522whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22523compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22524old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22525old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22526archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22527archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22528module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22529module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22530with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22531allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22532no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22533hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22534hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22535hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22536hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22537hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22538hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22539hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22540inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22541link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22542always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22543export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22544exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22545include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22546prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22547postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22548file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22549variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22550need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22551need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22552version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22553runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22554shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22555shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22556libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22557library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22558soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22559install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22560postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22561postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22562finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22563finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22564hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22565sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22566configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22567configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22568hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22569enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22570enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22571enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22572old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22573striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22574 22575LTCC='$LTCC' 22576LTCFLAGS='$LTCFLAGS' 22577compiler='$compiler_DEFAULT' 22578 22579# A function that is used when there is no print builtin or printf. 22580func_fallback_echo () 22581{ 22582 eval 'cat <<_LTECHO_EOF 22583\$1 22584_LTECHO_EOF' 22585} 22586 22587# Quote evaled strings. 22588for var in SHELL \ 22589ECHO \ 22590PATH_SEPARATOR \ 22591SED \ 22592GREP \ 22593EGREP \ 22594FGREP \ 22595LD \ 22596NM \ 22597LN_S \ 22598lt_SP2NL \ 22599lt_NL2SP \ 22600reload_flag \ 22601FILECMD \ 22602OBJDUMP \ 22603deplibs_check_method \ 22604file_magic_cmd \ 22605file_magic_glob \ 22606want_nocaseglob \ 22607DLLTOOL \ 22608sharedlib_from_linklib_cmd \ 22609AR \ 22610archiver_list_spec \ 22611STRIP \ 22612RANLIB \ 22613CC \ 22614CFLAGS \ 22615compiler \ 22616lt_cv_sys_global_symbol_pipe \ 22617lt_cv_sys_global_symbol_to_cdecl \ 22618lt_cv_sys_global_symbol_to_import \ 22619lt_cv_sys_global_symbol_to_c_name_address \ 22620lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22621lt_cv_nm_interface \ 22622nm_file_list_spec \ 22623lt_cv_truncate_bin \ 22624lt_prog_compiler_no_builtin_flag \ 22625lt_prog_compiler_pic \ 22626lt_prog_compiler_wl \ 22627lt_prog_compiler_static \ 22628lt_cv_prog_compiler_c_o \ 22629need_locks \ 22630MANIFEST_TOOL \ 22631DSYMUTIL \ 22632NMEDIT \ 22633LIPO \ 22634OTOOL \ 22635OTOOL64 \ 22636shrext_cmds \ 22637export_dynamic_flag_spec \ 22638whole_archive_flag_spec \ 22639compiler_needs_object \ 22640with_gnu_ld \ 22641allow_undefined_flag \ 22642no_undefined_flag \ 22643hardcode_libdir_flag_spec \ 22644hardcode_libdir_separator \ 22645exclude_expsyms \ 22646include_expsyms \ 22647file_list_spec \ 22648variables_saved_for_relink \ 22649libname_spec \ 22650library_names_spec \ 22651soname_spec \ 22652install_override_mode \ 22653finish_eval \ 22654old_striplib \ 22655striplib; do 22656 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22657 *[\\\\\\\`\\"\\\$]*) 22658 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22659 ;; 22660 *) 22661 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22662 ;; 22663 esac 22664done 22665 22666# Double-quote double-evaled strings. 22667for var in reload_cmds \ 22668old_postinstall_cmds \ 22669old_postuninstall_cmds \ 22670old_archive_cmds \ 22671extract_expsyms_cmds \ 22672old_archive_from_new_cmds \ 22673old_archive_from_expsyms_cmds \ 22674archive_cmds \ 22675archive_expsym_cmds \ 22676module_cmds \ 22677module_expsym_cmds \ 22678export_symbols_cmds \ 22679prelink_cmds \ 22680postlink_cmds \ 22681postinstall_cmds \ 22682postuninstall_cmds \ 22683finish_cmds \ 22684sys_lib_search_path_spec \ 22685configure_time_dlsearch_path \ 22686configure_time_lt_sys_library_path; do 22687 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22688 *[\\\\\\\`\\"\\\$]*) 22689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22690 ;; 22691 *) 22692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22693 ;; 22694 esac 22695done 22696 22697ac_aux_dir='$ac_aux_dir' 22698 22699# See if we are running on zsh, and set the options that allow our 22700# commands through without removal of \ escapes INIT. 22701if test -n "\${ZSH_VERSION+set}"; then 22702 setopt NO_GLOB_SUBST 22703fi 22704 22705 22706 PACKAGE='$PACKAGE' 22707 VERSION='$VERSION' 22708 RM='$RM' 22709 ofile='$ofile' 22710 22711 22712 22713 22714_ACEOF 22715 22716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22717 22718# Handling of arguments. 22719for ac_config_target in $ac_config_targets 22720do 22721 case $ac_config_target in 22722 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22723 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22724 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22726 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22727 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 22728 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22729 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22730 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22731 "specs/libXt.ent") CONFIG_FILES="$CONFIG_FILES specs/libXt.ent" ;; 22732 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22733 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;; 22734 22735 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 22736 esac 22737done 22738 22739 22740# If the user did not use the arguments to specify the items to instantiate, 22741# then the envvar interface is used. Set only those that are not. 22742# We use the long form for the default assignment because of an extremely 22743# bizarre bug on SunOS 4.1.3. 22744if $ac_need_defaults; then 22745 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22746 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22747 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22748fi 22749 22750# Have a temporary directory for convenience. Make it in the build tree 22751# simply because there is no reason against having it here, and in addition, 22752# creating and moving files from /tmp can sometimes cause problems. 22753# Hook for its removal unless debugging. 22754# Note that there is a small window in which the directory will not be cleaned: 22755# after its creation but before its name has been assigned to '$tmp'. 22756$debug || 22757{ 22758 tmp= ac_tmp= 22759 trap 'exit_status=$? 22760 : "${ac_tmp:=$tmp}" 22761 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22762' 0 22763 trap 'as_fn_exit 1' 1 2 13 15 22764} 22765# Create a (secure) tmp directory for tmp files. 22766 22767{ 22768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22769 test -d "$tmp" 22770} || 22771{ 22772 tmp=./conf$$-$RANDOM 22773 (umask 077 && mkdir "$tmp") 22774} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22775ac_tmp=$tmp 22776 22777# Set up the scripts for CONFIG_FILES section. 22778# No need to generate them if there are no CONFIG_FILES. 22779# This happens for instance with './config.status config.h'. 22780if test -n "$CONFIG_FILES"; then 22781 22782 22783ac_cr=`echo X | tr X '\015'` 22784# On cygwin, bash can eat \r inside `` if the user requested igncr. 22785# But we know of no other shell where ac_cr would be empty at this 22786# point, so we can use a bashism as a fallback. 22787if test "x$ac_cr" = x; then 22788 eval ac_cr=\$\'\\r\' 22789fi 22790ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22791if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22792 ac_cs_awk_cr='\\r' 22793else 22794 ac_cs_awk_cr=$ac_cr 22795fi 22796 22797echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22798_ACEOF 22799 22800 22801{ 22802 echo "cat >conf$$subs.awk <<_ACEOF" && 22803 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22804 echo "_ACEOF" 22805} >conf$$subs.sh || 22806 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22807ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22808ac_delim='%!_!# ' 22809for ac_last_try in false false false false false :; do 22810 . ./conf$$subs.sh || 22811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22812 22813 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22814 if test $ac_delim_n = $ac_delim_num; then 22815 break 22816 elif $ac_last_try; then 22817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22818 else 22819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22820 fi 22821done 22822rm -f conf$$subs.sh 22823 22824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22825cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22826_ACEOF 22827sed -n ' 22828h 22829s/^/S["/; s/!.*/"]=/ 22830p 22831g 22832s/^[^!]*!// 22833:repl 22834t repl 22835s/'"$ac_delim"'$// 22836t delim 22837:nl 22838h 22839s/\(.\{148\}\)..*/\1/ 22840t more1 22841s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22842p 22843n 22844b repl 22845:more1 22846s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22847p 22848g 22849s/.\{148\}// 22850t nl 22851:delim 22852h 22853s/\(.\{148\}\)..*/\1/ 22854t more2 22855s/["\\]/\\&/g; s/^/"/; s/$/"/ 22856p 22857b 22858:more2 22859s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22860p 22861g 22862s/.\{148\}// 22863t delim 22864' <conf$$subs.awk | sed ' 22865/^[^""]/{ 22866 N 22867 s/\n// 22868} 22869' >>$CONFIG_STATUS || ac_write_fail=1 22870rm -f conf$$subs.awk 22871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22872_ACAWK 22873cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22874 for (key in S) S_is_set[key] = 1 22875 FS = "" 22876 22877} 22878{ 22879 line = $ 0 22880 nfields = split(line, field, "@") 22881 substed = 0 22882 len = length(field[1]) 22883 for (i = 2; i < nfields; i++) { 22884 key = field[i] 22885 keylen = length(key) 22886 if (S_is_set[key]) { 22887 value = S[key] 22888 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22889 len += length(value) + length(field[++i]) 22890 substed = 1 22891 } else 22892 len += 1 + keylen 22893 } 22894 22895 print line 22896} 22897 22898_ACAWK 22899_ACEOF 22900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22901if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22903else 22904 cat 22905fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22906 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22907_ACEOF 22908 22909# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22910# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22911# trailing colons and then remove the whole line if VPATH becomes empty 22912# (actually we leave an empty line to preserve line numbers). 22913if test "x$srcdir" = x.; then 22914 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22915h 22916s/// 22917s/^/:/ 22918s/[ ]*$/:/ 22919s/:\$(srcdir):/:/g 22920s/:\${srcdir}:/:/g 22921s/:@srcdir@:/:/g 22922s/^:*// 22923s/:*$// 22924x 22925s/\(=[ ]*\).*/\1/ 22926G 22927s/\n// 22928s/^[^=]*=[ ]*$// 22929}' 22930fi 22931 22932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22933fi # test -n "$CONFIG_FILES" 22934 22935# Set up the scripts for CONFIG_HEADERS section. 22936# No need to generate them if there are no CONFIG_HEADERS. 22937# This happens for instance with './config.status Makefile'. 22938if test -n "$CONFIG_HEADERS"; then 22939cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22940BEGIN { 22941_ACEOF 22942 22943# Transform confdefs.h into an awk script 'defines.awk', embedded as 22944# here-document in config.status, that substitutes the proper values into 22945# config.h.in to produce config.h. 22946 22947# Create a delimiter string that does not exist in confdefs.h, to ease 22948# handling of long lines. 22949ac_delim='%!_!# ' 22950for ac_last_try in false false :; do 22951 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22952 if test -z "$ac_tt"; then 22953 break 22954 elif $ac_last_try; then 22955 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22956 else 22957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22958 fi 22959done 22960 22961# For the awk script, D is an array of macro values keyed by name, 22962# likewise P contains macro parameters if any. Preserve backslash 22963# newline sequences. 22964 22965ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22966sed -n ' 22967s/.\{148\}/&'"$ac_delim"'/g 22968t rset 22969:rset 22970s/^[ ]*#[ ]*define[ ][ ]*/ / 22971t def 22972d 22973:def 22974s/\\$// 22975t bsnl 22976s/["\\]/\\&/g 22977s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22978D["\1"]=" \3"/p 22979s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22980d 22981:bsnl 22982s/["\\]/\\&/g 22983s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22984D["\1"]=" \3\\\\\\n"\\/p 22985t cont 22986s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22987t cont 22988d 22989:cont 22990n 22991s/.\{148\}/&'"$ac_delim"'/g 22992t clear 22993:clear 22994s/\\$// 22995t bsnlc 22996s/["\\]/\\&/g; s/^/"/; s/$/"/p 22997d 22998:bsnlc 22999s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23000b cont 23001' <confdefs.h | sed ' 23002s/'"$ac_delim"'/"\\\ 23003"/g' >>$CONFIG_STATUS || ac_write_fail=1 23004 23005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23006 for (key in D) D_is_set[key] = 1 23007 FS = "" 23008} 23009/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23010 line = \$ 0 23011 split(line, arg, " ") 23012 if (arg[1] == "#") { 23013 defundef = arg[2] 23014 mac1 = arg[3] 23015 } else { 23016 defundef = substr(arg[1], 2) 23017 mac1 = arg[2] 23018 } 23019 split(mac1, mac2, "(") #) 23020 macro = mac2[1] 23021 prefix = substr(line, 1, index(line, defundef) - 1) 23022 if (D_is_set[macro]) { 23023 # Preserve the white space surrounding the "#". 23024 print prefix "define", macro P[macro] D[macro] 23025 next 23026 } else { 23027 # Replace #undef with comments. This is necessary, for example, 23028 # in the case of _POSIX_SOURCE, which is predefined and required 23029 # on some systems where configure will not decide to define it. 23030 if (defundef == "undef") { 23031 print "/*", prefix defundef, macro, "*/" 23032 next 23033 } 23034 } 23035} 23036{ print } 23037_ACAWK 23038_ACEOF 23039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23040 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23041fi # test -n "$CONFIG_HEADERS" 23042 23043 23044eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23045shift 23046for ac_tag 23047do 23048 case $ac_tag in 23049 :[FHLC]) ac_mode=$ac_tag; continue;; 23050 esac 23051 case $ac_mode$ac_tag in 23052 :[FHL]*:*);; 23053 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23054 :[FH]-) ac_tag=-:-;; 23055 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23056 esac 23057 ac_save_IFS=$IFS 23058 IFS=: 23059 set x $ac_tag 23060 IFS=$ac_save_IFS 23061 shift 23062 ac_file=$1 23063 shift 23064 23065 case $ac_mode in 23066 :L) ac_source=$1;; 23067 :[FH]) 23068 ac_file_inputs= 23069 for ac_f 23070 do 23071 case $ac_f in 23072 -) ac_f="$ac_tmp/stdin";; 23073 *) # Look for the file first in the build tree, then in the source tree 23074 # (if the path is not absolute). The absolute path cannot be DOS-style, 23075 # because $ac_f cannot contain ':'. 23076 test -f "$ac_f" || 23077 case $ac_f in 23078 [\\/$]*) false;; 23079 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23080 esac || 23081 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23082 esac 23083 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23084 as_fn_append ac_file_inputs " '$ac_f'" 23085 done 23086 23087 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23088 # use $as_me), people would be surprised to read: 23089 # /* config.h. Generated by config.status. */ 23090 configure_input='Generated from '` 23091 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23092 `' by configure.' 23093 if test x"$ac_file" != x-; then 23094 configure_input="$ac_file. $configure_input" 23095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23096printf "%s\n" "$as_me: creating $ac_file" >&6;} 23097 fi 23098 # Neutralize special characters interpreted by sed in replacement strings. 23099 case $configure_input in #( 23100 *\&* | *\|* | *\\* ) 23101 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23102 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23103 *) ac_sed_conf_input=$configure_input;; 23104 esac 23105 23106 case $ac_tag in 23107 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23109 esac 23110 ;; 23111 esac 23112 23113 ac_dir=`$as_dirname -- "$ac_file" || 23114$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23115 X"$ac_file" : 'X\(//\)[^/]' \| \ 23116 X"$ac_file" : 'X\(//\)$' \| \ 23117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23118printf "%s\n" X"$ac_file" | 23119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23120 s//\1/ 23121 q 23122 } 23123 /^X\(\/\/\)[^/].*/{ 23124 s//\1/ 23125 q 23126 } 23127 /^X\(\/\/\)$/{ 23128 s//\1/ 23129 q 23130 } 23131 /^X\(\/\).*/{ 23132 s//\1/ 23133 q 23134 } 23135 s/.*/./; q'` 23136 as_dir="$ac_dir"; as_fn_mkdir_p 23137 ac_builddir=. 23138 23139case "$ac_dir" in 23140.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23141*) 23142 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23143 # A ".." for each directory in $ac_dir_suffix. 23144 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23145 case $ac_top_builddir_sub in 23146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23148 esac ;; 23149esac 23150ac_abs_top_builddir=$ac_pwd 23151ac_abs_builddir=$ac_pwd$ac_dir_suffix 23152# for backward compatibility: 23153ac_top_builddir=$ac_top_build_prefix 23154 23155case $srcdir in 23156 .) # We are building in place. 23157 ac_srcdir=. 23158 ac_top_srcdir=$ac_top_builddir_sub 23159 ac_abs_top_srcdir=$ac_pwd ;; 23160 [\\/]* | ?:[\\/]* ) # Absolute name. 23161 ac_srcdir=$srcdir$ac_dir_suffix; 23162 ac_top_srcdir=$srcdir 23163 ac_abs_top_srcdir=$srcdir ;; 23164 *) # Relative name. 23165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23166 ac_top_srcdir=$ac_top_build_prefix$srcdir 23167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23168esac 23169ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23170 23171 23172 case $ac_mode in 23173 :F) 23174 # 23175 # CONFIG_FILE 23176 # 23177 23178 case $INSTALL in 23179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23180 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23181 esac 23182 ac_MKDIR_P=$MKDIR_P 23183 case $MKDIR_P in 23184 [\\/$]* | ?:[\\/]* ) ;; 23185 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23186 esac 23187_ACEOF 23188 23189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23190# If the template does not know about datarootdir, expand it. 23191# FIXME: This hack should be removed a few years after 2.60. 23192ac_datarootdir_hack=; ac_datarootdir_seen= 23193ac_sed_dataroot=' 23194/datarootdir/ { 23195 p 23196 q 23197} 23198/@datadir@/p 23199/@docdir@/p 23200/@infodir@/p 23201/@localedir@/p 23202/@mandir@/p' 23203case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23204*datarootdir*) ac_datarootdir_seen=yes;; 23205*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23207printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23208_ACEOF 23209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23210 ac_datarootdir_hack=' 23211 s&@datadir@&$datadir&g 23212 s&@docdir@&$docdir&g 23213 s&@infodir@&$infodir&g 23214 s&@localedir@&$localedir&g 23215 s&@mandir@&$mandir&g 23216 s&\\\${datarootdir}&$datarootdir&g' ;; 23217esac 23218_ACEOF 23219 23220# Neutralize VPATH when '$srcdir' = '.'. 23221# Shell code in configure.ac might set extrasub. 23222# FIXME: do we really want to maintain this feature? 23223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23224ac_sed_extra="$ac_vpsub 23225$extrasub 23226_ACEOF 23227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23228:t 23229/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23230s|@configure_input@|$ac_sed_conf_input|;t t 23231s&@top_builddir@&$ac_top_builddir_sub&;t t 23232s&@top_build_prefix@&$ac_top_build_prefix&;t t 23233s&@srcdir@&$ac_srcdir&;t t 23234s&@abs_srcdir@&$ac_abs_srcdir&;t t 23235s&@top_srcdir@&$ac_top_srcdir&;t t 23236s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23237s&@builddir@&$ac_builddir&;t t 23238s&@abs_builddir@&$ac_abs_builddir&;t t 23239s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23240s&@INSTALL@&$ac_INSTALL&;t t 23241s&@MKDIR_P@&$ac_MKDIR_P&;t t 23242$ac_datarootdir_hack 23243" 23244eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23245 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23246 23247test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23248 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23249 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23250 "$ac_tmp/out"`; test -z "$ac_out"; } && 23251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23252which seems to be undefined. Please make sure it is defined" >&5 23253printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23254which seems to be undefined. Please make sure it is defined" >&2;} 23255 23256 rm -f "$ac_tmp/stdin" 23257 case $ac_file in 23258 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23259 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23260 esac \ 23261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23262 ;; 23263 :H) 23264 # 23265 # CONFIG_HEADER 23266 # 23267 if test x"$ac_file" != x-; then 23268 { 23269 printf "%s\n" "/* $configure_input */" >&1 \ 23270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23271 } >"$ac_tmp/config.h" \ 23272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23273 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23275printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23276 else 23277 rm -f "$ac_file" 23278 mv "$ac_tmp/config.h" "$ac_file" \ 23279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23280 fi 23281 else 23282 printf "%s\n" "/* $configure_input */" >&1 \ 23283 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23284 || as_fn_error $? "could not create -" "$LINENO" 5 23285 fi 23286# Compute "$ac_file"'s index in $config_headers. 23287_am_arg="$ac_file" 23288_am_stamp_count=1 23289for _am_header in $config_headers :; do 23290 case $_am_header in 23291 $_am_arg | $_am_arg:* ) 23292 break ;; 23293 * ) 23294 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23295 esac 23296done 23297echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23298$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23299 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23300 X"$_am_arg" : 'X\(//\)$' \| \ 23301 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23302printf "%s\n" X"$_am_arg" | 23303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23304 s//\1/ 23305 q 23306 } 23307 /^X\(\/\/\)[^/].*/{ 23308 s//\1/ 23309 q 23310 } 23311 /^X\(\/\/\)$/{ 23312 s//\1/ 23313 q 23314 } 23315 /^X\(\/\).*/{ 23316 s//\1/ 23317 q 23318 } 23319 s/.*/./; q'`/stamp-h$_am_stamp_count 23320 ;; 23321 23322 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23323printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23324 ;; 23325 esac 23326 23327 23328 case $ac_file$ac_mode in 23329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23330 # Older Autoconf quotes --file arguments for eval, but not when files 23331 # are listed without --file. Let's play safe and only enable the eval 23332 # if we detect the quoting. 23333 # TODO: see whether this extra hack can be removed once we start 23334 # requiring Autoconf 2.70 or later. 23335 case $CONFIG_FILES in #( 23336 *\'*) : 23337 eval set x "$CONFIG_FILES" ;; #( 23338 *) : 23339 set x $CONFIG_FILES ;; #( 23340 *) : 23341 ;; 23342esac 23343 shift 23344 # Used to flag and report bootstrapping failures. 23345 am_rc=0 23346 for am_mf 23347 do 23348 # Strip MF so we end up with the name of the file. 23349 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23350 # Check whether this is an Automake generated Makefile which includes 23351 # dependency-tracking related rules and includes. 23352 # Grep'ing the whole file directly is not great: AIX grep has a line 23353 # limit of 2048, but all sed's we know have understand at least 4000. 23354 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23355 || continue 23356 am_dirpart=`$as_dirname -- "$am_mf" || 23357$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23358 X"$am_mf" : 'X\(//\)[^/]' \| \ 23359 X"$am_mf" : 'X\(//\)$' \| \ 23360 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23361printf "%s\n" X"$am_mf" | 23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23363 s//\1/ 23364 q 23365 } 23366 /^X\(\/\/\)[^/].*/{ 23367 s//\1/ 23368 q 23369 } 23370 /^X\(\/\/\)$/{ 23371 s//\1/ 23372 q 23373 } 23374 /^X\(\/\).*/{ 23375 s//\1/ 23376 q 23377 } 23378 s/.*/./; q'` 23379 am_filepart=`$as_basename -- "$am_mf" || 23380$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23381 X"$am_mf" : 'X\(//\)$' \| \ 23382 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23383printf "%s\n" X/"$am_mf" | 23384 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23385 s//\1/ 23386 q 23387 } 23388 /^X\/\(\/\/\)$/{ 23389 s//\1/ 23390 q 23391 } 23392 /^X\/\(\/\).*/{ 23393 s//\1/ 23394 q 23395 } 23396 s/.*/./; q'` 23397 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23398 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23399 | $MAKE -f - am--depfiles" >&5 23400 (cd "$am_dirpart" \ 23401 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23402 | $MAKE -f - am--depfiles) >&5 2>&5 23403 ac_status=$? 23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23405 (exit $ac_status); } || am_rc=$? 23406 done 23407 if test $am_rc -ne 0; then 23408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23409printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23410as_fn_error $? "Something went wrong bootstrapping makefile fragments 23411 for automatic dependency tracking. If GNU make was not used, consider 23412 re-running the configure script with MAKE=\"gmake\" (or whatever is 23413 necessary). You can also try re-running configure with the 23414 '--disable-dependency-tracking' option to at least be able to build 23415 the package (albeit without support for automatic dependency tracking). 23416See 'config.log' for more details" "$LINENO" 5; } 23417 fi 23418 { am_dirpart=; unset am_dirpart;} 23419 { am_filepart=; unset am_filepart;} 23420 { am_mf=; unset am_mf;} 23421 { am_rc=; unset am_rc;} 23422 rm -f conftest-deps.mk 23423} 23424 ;; 23425 "libtool":C) 23426 23427 # See if we are running on zsh, and set the options that allow our 23428 # commands through without removal of \ escapes. 23429 if test -n "${ZSH_VERSION+set}"; then 23430 setopt NO_GLOB_SUBST 23431 fi 23432 23433 cfgfile=${ofile}T 23434 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23435 $RM "$cfgfile" 23436 23437 cat <<_LT_EOF >> "$cfgfile" 23438#! $SHELL 23439# Generated automatically by $as_me ($PACKAGE) $VERSION 23440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23441# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23442 23443# Provide generalized library-building support services. 23444# Written by Gordon Matzigkeit, 1996 23445 23446# Copyright (C) 2014 Free Software Foundation, Inc. 23447# This is free software; see the source for copying conditions. There is NO 23448# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23449 23450# GNU Libtool is free software; you can redistribute it and/or modify 23451# it under the terms of the GNU General Public License as published by 23452# the Free Software Foundation; either version 2 of of the License, or 23453# (at your option) any later version. 23454# 23455# As a special exception to the GNU General Public License, if you 23456# distribute this file as part of a program or library that is built 23457# using GNU Libtool, you may include this file under the same 23458# distribution terms that you use for the rest of that program. 23459# 23460# GNU Libtool is distributed in the hope that it will be useful, but 23461# WITHOUT ANY WARRANTY; without even the implied warranty of 23462# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23463# GNU General Public License for more details. 23464# 23465# You should have received a copy of the GNU General Public License 23466# along with this program. If not, see <http://www.gnu.org/licenses/>. 23467 23468 23469# The names of the tagged configurations supported by this script. 23470available_tags='' 23471 23472# Configured defaults for sys_lib_dlsearch_path munging. 23473: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23474 23475# ### BEGIN LIBTOOL CONFIG 23476 23477# Which release of libtool.m4 was used? 23478macro_version=$macro_version 23479macro_revision=$macro_revision 23480 23481# Whether or not to build shared libraries. 23482build_libtool_libs=$enable_shared 23483 23484# Whether or not to build static libraries. 23485build_old_libs=$enable_static 23486 23487# What type of objects to build. 23488pic_mode=$pic_mode 23489 23490# Whether or not to optimize for fast installation. 23491fast_install=$enable_fast_install 23492 23493# Shared archive member basename,for filename based shared library versioning on AIX. 23494shared_archive_member_spec=$shared_archive_member_spec 23495 23496# Shell to use when invoking shell scripts. 23497SHELL=$lt_SHELL 23498 23499# An echo program that protects backslashes. 23500ECHO=$lt_ECHO 23501 23502# The PATH separator for the build system. 23503PATH_SEPARATOR=$lt_PATH_SEPARATOR 23504 23505# The host system. 23506host_alias=$host_alias 23507host=$host 23508host_os=$host_os 23509 23510# The build system. 23511build_alias=$build_alias 23512build=$build 23513build_os=$build_os 23514 23515# A sed program that does not truncate output. 23516SED=$lt_SED 23517 23518# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23519Xsed="\$SED -e 1s/^X//" 23520 23521# A grep program that handles long lines. 23522GREP=$lt_GREP 23523 23524# An ERE matcher. 23525EGREP=$lt_EGREP 23526 23527# A literal string matcher. 23528FGREP=$lt_FGREP 23529 23530# A BSD- or MS-compatible name lister. 23531NM=$lt_NM 23532 23533# Whether we need soft or hard links. 23534LN_S=$lt_LN_S 23535 23536# What is the maximum length of a command? 23537max_cmd_len=$max_cmd_len 23538 23539# Object file suffix (normally "o"). 23540objext=$ac_objext 23541 23542# Executable file suffix (normally ""). 23543exeext=$exeext 23544 23545# whether the shell understands "unset". 23546lt_unset=$lt_unset 23547 23548# turn spaces into newlines. 23549SP2NL=$lt_lt_SP2NL 23550 23551# turn newlines into spaces. 23552NL2SP=$lt_lt_NL2SP 23553 23554# convert \$build file names to \$host format. 23555to_host_file_cmd=$lt_cv_to_host_file_cmd 23556 23557# convert \$build files to toolchain format. 23558to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23559 23560# A file(cmd) program that detects file types. 23561FILECMD=$lt_FILECMD 23562 23563# An object symbol dumper. 23564OBJDUMP=$lt_OBJDUMP 23565 23566# Method to check whether dependent libraries are shared objects. 23567deplibs_check_method=$lt_deplibs_check_method 23568 23569# Command to use when deplibs_check_method = "file_magic". 23570file_magic_cmd=$lt_file_magic_cmd 23571 23572# How to find potential files when deplibs_check_method = "file_magic". 23573file_magic_glob=$lt_file_magic_glob 23574 23575# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23576want_nocaseglob=$lt_want_nocaseglob 23577 23578# DLL creation program. 23579DLLTOOL=$lt_DLLTOOL 23580 23581# Command to associate shared and link libraries. 23582sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23583 23584# The archiver. 23585AR=$lt_AR 23586 23587# Flags to create an archive (by configure). 23588lt_ar_flags=$lt_ar_flags 23589 23590# Flags to create an archive. 23591AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23592 23593# How to feed a file listing to the archiver. 23594archiver_list_spec=$lt_archiver_list_spec 23595 23596# A symbol stripping program. 23597STRIP=$lt_STRIP 23598 23599# Commands used to install an old-style archive. 23600RANLIB=$lt_RANLIB 23601old_postinstall_cmds=$lt_old_postinstall_cmds 23602old_postuninstall_cmds=$lt_old_postuninstall_cmds 23603 23604# Whether to use a lock for old archive extraction. 23605lock_old_archive_extraction=$lock_old_archive_extraction 23606 23607# A C compiler. 23608LTCC=$lt_CC 23609 23610# LTCC compiler flags. 23611LTCFLAGS=$lt_CFLAGS 23612 23613# Take the output of nm and produce a listing of raw symbols and C names. 23614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23615 23616# Transform the output of nm in a proper C declaration. 23617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23618 23619# Transform the output of nm into a list of symbols to manually relocate. 23620global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23621 23622# Transform the output of nm in a C name address pair. 23623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23624 23625# Transform the output of nm in a C name address pair when lib prefix is needed. 23626global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23627 23628# The name lister interface. 23629nm_interface=$lt_lt_cv_nm_interface 23630 23631# Specify filename containing input files for \$NM. 23632nm_file_list_spec=$lt_nm_file_list_spec 23633 23634# The root where to search for dependent libraries,and where our libraries should be installed. 23635lt_sysroot=$lt_sysroot 23636 23637# Command to truncate a binary pipe. 23638lt_truncate_bin=$lt_lt_cv_truncate_bin 23639 23640# The name of the directory that contains temporary libtool files. 23641objdir=$objdir 23642 23643# Used to examine libraries when file_magic_cmd begins with "file". 23644MAGIC_CMD=$MAGIC_CMD 23645 23646# Must we lock files when doing compilation? 23647need_locks=$lt_need_locks 23648 23649# Manifest tool. 23650MANIFEST_TOOL=$lt_MANIFEST_TOOL 23651 23652# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23653DSYMUTIL=$lt_DSYMUTIL 23654 23655# Tool to change global to local symbols on Mac OS X. 23656NMEDIT=$lt_NMEDIT 23657 23658# Tool to manipulate fat objects and archives on Mac OS X. 23659LIPO=$lt_LIPO 23660 23661# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23662OTOOL=$lt_OTOOL 23663 23664# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23665OTOOL64=$lt_OTOOL64 23666 23667# Old archive suffix (normally "a"). 23668libext=$libext 23669 23670# Shared library suffix (normally ".so"). 23671shrext_cmds=$lt_shrext_cmds 23672 23673# The commands to extract the exported symbol list from a shared archive. 23674extract_expsyms_cmds=$lt_extract_expsyms_cmds 23675 23676# Variables whose values should be saved in libtool wrapper scripts and 23677# restored at link time. 23678variables_saved_for_relink=$lt_variables_saved_for_relink 23679 23680# Do we need the "lib" prefix for modules? 23681need_lib_prefix=$need_lib_prefix 23682 23683# Do we need a version for libraries? 23684need_version=$need_version 23685 23686# Library versioning type. 23687version_type=$version_type 23688 23689# Shared library runtime path variable. 23690runpath_var=$runpath_var 23691 23692# Shared library path variable. 23693shlibpath_var=$shlibpath_var 23694 23695# Is shlibpath searched before the hard-coded library search path? 23696shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23697 23698# Format of library name prefix. 23699libname_spec=$lt_libname_spec 23700 23701# List of archive names. First name is the real one, the rest are links. 23702# The last name is the one that the linker finds with -lNAME 23703library_names_spec=$lt_library_names_spec 23704 23705# The coded name of the library, if different from the real name. 23706soname_spec=$lt_soname_spec 23707 23708# Permission mode override for installation of shared libraries. 23709install_override_mode=$lt_install_override_mode 23710 23711# Command to use after installation of a shared archive. 23712postinstall_cmds=$lt_postinstall_cmds 23713 23714# Command to use after uninstallation of a shared archive. 23715postuninstall_cmds=$lt_postuninstall_cmds 23716 23717# Commands used to finish a libtool library installation in a directory. 23718finish_cmds=$lt_finish_cmds 23719 23720# As "finish_cmds", except a single script fragment to be evaled but 23721# not shown. 23722finish_eval=$lt_finish_eval 23723 23724# Whether we should hardcode library paths into libraries. 23725hardcode_into_libs=$hardcode_into_libs 23726 23727# Compile-time system search path for libraries. 23728sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23729 23730# Detected run-time system search path for libraries. 23731sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23732 23733# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23734configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23735 23736# Whether dlopen is supported. 23737dlopen_support=$enable_dlopen 23738 23739# Whether dlopen of programs is supported. 23740dlopen_self=$enable_dlopen_self 23741 23742# Whether dlopen of statically linked programs is supported. 23743dlopen_self_static=$enable_dlopen_self_static 23744 23745# Commands to strip libraries. 23746old_striplib=$lt_old_striplib 23747striplib=$lt_striplib 23748 23749 23750# The linker used to build libraries. 23751LD=$lt_LD 23752 23753# How to create reloadable object files. 23754reload_flag=$lt_reload_flag 23755reload_cmds=$lt_reload_cmds 23756 23757# Commands used to build an old-style archive. 23758old_archive_cmds=$lt_old_archive_cmds 23759 23760# A language specific compiler. 23761CC=$lt_compiler 23762 23763# Is the compiler the GNU compiler? 23764with_gcc=$GCC 23765 23766# Compiler flag to turn off builtin functions. 23767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23768 23769# Additional compiler flags for building library objects. 23770pic_flag=$lt_lt_prog_compiler_pic 23771 23772# How to pass a linker flag through the compiler. 23773wl=$lt_lt_prog_compiler_wl 23774 23775# Compiler flag to prevent dynamic linking. 23776link_static_flag=$lt_lt_prog_compiler_static 23777 23778# Does compiler simultaneously support -c and -o options? 23779compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23780 23781# Whether or not to add -lc for building shared libraries. 23782build_libtool_need_lc=$archive_cmds_need_lc 23783 23784# Whether or not to disallow shared libs when runtime libs are static. 23785allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23786 23787# Compiler flag to allow reflexive dlopens. 23788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23789 23790# Compiler flag to generate shared objects directly from archives. 23791whole_archive_flag_spec=$lt_whole_archive_flag_spec 23792 23793# Whether the compiler copes with passing no objects directly. 23794compiler_needs_object=$lt_compiler_needs_object 23795 23796# Create an old-style archive from a shared archive. 23797old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23798 23799# Create a temporary old-style archive to link instead of a shared archive. 23800old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23801 23802# Commands used to build a shared archive. 23803archive_cmds=$lt_archive_cmds 23804archive_expsym_cmds=$lt_archive_expsym_cmds 23805 23806# Commands used to build a loadable module if different from building 23807# a shared archive. 23808module_cmds=$lt_module_cmds 23809module_expsym_cmds=$lt_module_expsym_cmds 23810 23811# Whether we are building with GNU ld or not. 23812with_gnu_ld=$lt_with_gnu_ld 23813 23814# Flag that allows shared libraries with undefined symbols to be built. 23815allow_undefined_flag=$lt_allow_undefined_flag 23816 23817# Flag that enforces no undefined symbols. 23818no_undefined_flag=$lt_no_undefined_flag 23819 23820# Flag to hardcode \$libdir into a binary during linking. 23821# This must work even if \$libdir does not exist 23822hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23823 23824# Whether we need a single "-rpath" flag with a separated argument. 23825hardcode_libdir_separator=$lt_hardcode_libdir_separator 23826 23827# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23828# DIR into the resulting binary. 23829hardcode_direct=$hardcode_direct 23830 23831# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23832# DIR into the resulting binary and the resulting library dependency is 23833# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23834# library is relocated. 23835hardcode_direct_absolute=$hardcode_direct_absolute 23836 23837# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23838# into the resulting binary. 23839hardcode_minus_L=$hardcode_minus_L 23840 23841# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23842# into the resulting binary. 23843hardcode_shlibpath_var=$hardcode_shlibpath_var 23844 23845# Set to "yes" if building a shared library automatically hardcodes DIR 23846# into the library and all subsequent libraries and executables linked 23847# against it. 23848hardcode_automatic=$hardcode_automatic 23849 23850# Set to yes if linker adds runtime paths of dependent libraries 23851# to runtime path list. 23852inherit_rpath=$inherit_rpath 23853 23854# Whether libtool must link a program against all its dependency libraries. 23855link_all_deplibs=$link_all_deplibs 23856 23857# Set to "yes" if exported symbols are required. 23858always_export_symbols=$always_export_symbols 23859 23860# The commands to list exported symbols. 23861export_symbols_cmds=$lt_export_symbols_cmds 23862 23863# Symbols that should not be listed in the preloaded symbols. 23864exclude_expsyms=$lt_exclude_expsyms 23865 23866# Symbols that must always be exported. 23867include_expsyms=$lt_include_expsyms 23868 23869# Commands necessary for linking programs (against libraries) with templates. 23870prelink_cmds=$lt_prelink_cmds 23871 23872# Commands necessary for finishing linking programs. 23873postlink_cmds=$lt_postlink_cmds 23874 23875# Specify filename containing input files. 23876file_list_spec=$lt_file_list_spec 23877 23878# How to hardcode a shared library path into an executable. 23879hardcode_action=$hardcode_action 23880 23881# ### END LIBTOOL CONFIG 23882 23883_LT_EOF 23884 23885 cat <<'_LT_EOF' >> "$cfgfile" 23886 23887# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23888 23889# func_munge_path_list VARIABLE PATH 23890# ----------------------------------- 23891# VARIABLE is name of variable containing _space_ separated list of 23892# directories to be munged by the contents of PATH, which is string 23893# having a format: 23894# "DIR[:DIR]:" 23895# string "DIR[ DIR]" will be prepended to VARIABLE 23896# ":DIR[:DIR]" 23897# string "DIR[ DIR]" will be appended to VARIABLE 23898# "DIRP[:DIRP]::[DIRA:]DIRA" 23899# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23900# "DIRA[ DIRA]" will be appended to VARIABLE 23901# "DIR[:DIR]" 23902# VARIABLE will be replaced by "DIR[ DIR]" 23903func_munge_path_list () 23904{ 23905 case x$2 in 23906 x) 23907 ;; 23908 *:) 23909 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23910 ;; 23911 x:*) 23912 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23913 ;; 23914 *::*) 23915 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23916 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23917 ;; 23918 *) 23919 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23920 ;; 23921 esac 23922} 23923 23924 23925# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23926func_cc_basename () 23927{ 23928 for cc_temp in $*""; do 23929 case $cc_temp in 23930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23932 \-*) ;; 23933 *) break;; 23934 esac 23935 done 23936 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23937} 23938 23939 23940# ### END FUNCTIONS SHARED WITH CONFIGURE 23941 23942_LT_EOF 23943 23944 case $host_os in 23945 aix3*) 23946 cat <<\_LT_EOF >> "$cfgfile" 23947# AIX sometimes has problems with the GCC collect2 program. For some 23948# reason, if we set the COLLECT_NAMES environment variable, the problems 23949# vanish in a puff of smoke. 23950if test set != "${COLLECT_NAMES+set}"; then 23951 COLLECT_NAMES= 23952 export COLLECT_NAMES 23953fi 23954_LT_EOF 23955 ;; 23956 esac 23957 23958 23959 23960ltmain=$ac_aux_dir/ltmain.sh 23961 23962 23963 # We use sed instead of cat because bash on DJGPP gets confused if 23964 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23965 # text mode, it properly converts lines to CR/LF. This bash problem 23966 # is reportedly fixed, but why not run on old versions too? 23967 $SED '$q' "$ltmain" >> "$cfgfile" \ 23968 || (rm -f "$cfgfile"; exit 1) 23969 23970 mv -f "$cfgfile" "$ofile" || 23971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23972 chmod +x "$ofile" 23973 23974 ;; 23975 23976 esac 23977done # for ac_tag 23978 23979 23980as_fn_exit 0 23981_ACEOF 23982ac_clean_files=$ac_clean_files_save 23983 23984test $ac_write_fail = 0 || 23985 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23986 23987 23988# configure is writing to config.log, and then calls config.status. 23989# config.status does its own redirection, appending to config.log. 23990# Unfortunately, on DOS this fails, as config.log is still kept open 23991# by configure, so config.status won't be able to write to it; its 23992# output is simply discarded. So we exec the FD to /dev/null, 23993# effectively closing config.log, so it can be properly (re)opened and 23994# appended to by config.status. When coming back to configure, we 23995# need to make the FD available again. 23996if test "$no_create" != yes; then 23997 ac_cs_success=: 23998 ac_config_status_args= 23999 test "$silent" = yes && 24000 ac_config_status_args="$ac_config_status_args --quiet" 24001 exec 5>/dev/null 24002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24003 exec 5>>config.log 24004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24005 # would make configure fail if this is the last instruction. 24006 $ac_cs_success || as_fn_exit 1 24007fi 24008if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24010printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24011fi 24012 24013 24014