1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libXfont2 2.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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/libxfont/-/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='libXfont2' 677PACKAGE_TARNAME='libXfont2' 678PACKAGE_VERSION='2.0.7' 679PACKAGE_STRING='libXfont2 2.0.7' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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_config_libobj_dir=src/util 717enable_year2038=no 718ac_subst_vars='am__EXEEXT_FALSE 719am__EXEEXT_TRUE 720LTLIBOBJS 721OS_CFLAGS 722XFONT_LIBS 723XFONT_CFLAGS 724MATH_LIBS 725XFONT_FC_FALSE 726XFONT_FC_TRUE 727XFONT_FONTFILE_FALSE 728XFONT_FONTFILE_TRUE 729XFONT_BITMAP_FALSE 730XFONT_BITMAP_TRUE 731XFONT_SNFFORMAT_FALSE 732XFONT_SNFFORMAT_TRUE 733XFONT_BDFFORMAT_FALSE 734XFONT_BDFFORMAT_TRUE 735XFONT_PCF_OR_BUILTIN_FALSE 736XFONT_PCF_OR_BUILTIN_TRUE 737XFONT_PCFFORMAT_FALSE 738XFONT_PCFFORMAT_TRUE 739XFONT_BUILTINS_FALSE 740XFONT_BUILTINS_TRUE 741Z_LIBS 742X_BZIP2_FONT_COMPRESSION_FALSE 743X_BZIP2_FONT_COMPRESSION_TRUE 744Z_REQUIRES 745ZLIB_LIBS 746ZLIB_CFLAGS 747X_GZIP_FONT_COMPRESSION 748FREETYPE_REQUIRES 749ft_config 750FREETYPE_LIBS 751FREETYPE_CFLAGS 752XFONT_FREETYPE_FALSE 753XFONT_FREETYPE_TRUE 754LIBOBJS 755LIBBSD_LIBS 756LIBBSD_CFLAGS 757HAVE_STYLESHEETS_FALSE 758HAVE_STYLESHEETS_TRUE 759XSL_STYLESHEET 760STYLESHEET_SRCDIR 761XORG_SGML_PATH 762HAVE_FOP_FALSE 763HAVE_FOP_TRUE 764FOP 765HAVE_XMLTO_FALSE 766HAVE_XMLTO_TRUE 767HAVE_XMLTO_TEXT_FALSE 768HAVE_XMLTO_TEXT_TRUE 769XMLTO 770ENABLE_DEVEL_DOCS_FALSE 771ENABLE_DEVEL_DOCS_TRUE 772MAN_SUBSTS 773XORG_MAN_PAGE 774ADMIN_MAN_DIR 775DRIVER_MAN_DIR 776MISC_MAN_DIR 777FILE_MAN_DIR 778LIB_MAN_DIR 779APP_MAN_DIR 780ADMIN_MAN_SUFFIX 781DRIVER_MAN_SUFFIX 782MISC_MAN_SUFFIX 783FILE_MAN_SUFFIX 784LIB_MAN_SUFFIX 785APP_MAN_SUFFIX 786INSTALL_CMD 787PKG_CONFIG_LIBDIR 788PKG_CONFIG_PATH 789PKG_CONFIG 790CHANGELOG_CMD 791STRICT_CFLAGS 792CWARNFLAGS 793BASE_CFLAGS 794LT_SYS_LIBRARY_PATH 795OTOOL64 796OTOOL 797LIPO 798NMEDIT 799DSYMUTIL 800MANIFEST_TOOL 801RANLIB 802ac_ct_AR 803AR 804DLLTOOL 805OBJDUMP 806FILECMD 807LN_S 808NM 809ac_ct_DUMPBIN 810DUMPBIN 811LD 812FGREP 813EGREP 814GREP 815SED 816host_os 817host_vendor 818host_cpu 819host 820build_os 821build_vendor 822build_cpu 823build 824LIBTOOL 825am__fastdepCC_FALSE 826am__fastdepCC_TRUE 827CCDEPMODE 828am__nodep 829AMDEPBACKSLASH 830AMDEP_FALSE 831AMDEP_TRUE 832am__include 833DEPDIR 834OBJEXT 835EXEEXT 836ac_ct_CC 837CPPFLAGS 838LDFLAGS 839CFLAGS 840CC 841am__xargs_n 842am__rm_f_notfound 843AM_BACKSLASH 844AM_DEFAULT_VERBOSITY 845AM_DEFAULT_V 846AM_V 847CSCOPE 848ETAGS 849CTAGS 850am__untar 851am__tar 852AMTAR 853am__leading_dot 854SET_MAKE 855AWK 856mkdir_p 857MKDIR_P 858INSTALL_STRIP_PROGRAM 859STRIP 860install_sh 861MAKEINFO 862AUTOHEADER 863AUTOMAKE 864AUTOCONF 865ACLOCAL 866VERSION 867PACKAGE 868CYGPATH_W 869am__isrc 870INSTALL_DATA 871INSTALL_SCRIPT 872INSTALL_PROGRAM 873target_alias 874host_alias 875build_alias 876LIBS 877ECHO_T 878ECHO_N 879ECHO_C 880DEFS 881mandir 882localedir 883libdir 884psdir 885pdfdir 886dvidir 887htmldir 888infodir 889docdir 890oldincludedir 891includedir 892runstatedir 893localstatedir 894sharedstatedir 895sysconfdir 896datadir 897datarootdir 898libexecdir 899sbindir 900bindir 901program_transform_name 902prefix 903exec_prefix 904PACKAGE_URL 905PACKAGE_BUGREPORT 906PACKAGE_STRING 907PACKAGE_VERSION 908PACKAGE_TARNAME 909PACKAGE_NAME 910PATH_SEPARATOR 911SHELL 912am__quote' 913ac_subst_files='' 914ac_user_opts=' 915enable_option_checking 916enable_silent_rules 917enable_dependency_tracking 918enable_shared 919enable_static 920with_pic 921enable_fast_install 922with_aix_soname 923with_gnu_ld 924with_sysroot 925enable_libtool_lock 926enable_selective_werror 927enable_strict_compilation 928enable_devel_docs 929with_xmlto 930with_fop 931enable_largefile 932enable_freetype 933with_freetype_config 934with_bzip2 935enable_builtins 936enable_pcfformat 937enable_bdfformat 938enable_snfformat 939enable_fc 940enable_unix_transport 941enable_tcp_transport 942enable_ipv6 943enable_local_transport 944enable_year2038 945' 946 ac_precious_vars='build_alias 947host_alias 948target_alias 949CC 950CFLAGS 951LDFLAGS 952LIBS 953CPPFLAGS 954LT_SYS_LIBRARY_PATH 955PKG_CONFIG 956PKG_CONFIG_PATH 957PKG_CONFIG_LIBDIR 958XMLTO 959FOP 960LIBBSD_CFLAGS 961LIBBSD_LIBS 962FREETYPE_CFLAGS 963FREETYPE_LIBS 964ZLIB_CFLAGS 965ZLIB_LIBS 966XFONT_CFLAGS 967XFONT_LIBS' 968 969 970# Initialize some variables set by options. 971ac_init_help= 972ac_init_version=false 973ac_unrecognized_opts= 974ac_unrecognized_sep= 975# The variables have the same names as the options, with 976# dashes changed to underlines. 977cache_file=/dev/null 978exec_prefix=NONE 979no_create= 980no_recursion= 981prefix=NONE 982program_prefix=NONE 983program_suffix=NONE 984program_transform_name=s,x,x, 985silent= 986site= 987srcdir= 988verbose= 989x_includes=NONE 990x_libraries=NONE 991 992# Installation directory options. 993# These are left unexpanded so users can "make install exec_prefix=/foo" 994# and all the variables that are supposed to be based on exec_prefix 995# by default will actually change. 996# Use braces instead of parens because sh, perl, etc. also accept them. 997# (The list follows the same order as the GNU Coding Standards.) 998bindir='${exec_prefix}/bin' 999sbindir='${exec_prefix}/sbin' 1000libexecdir='${exec_prefix}/libexec' 1001datarootdir='${prefix}/share' 1002datadir='${datarootdir}' 1003sysconfdir='${prefix}/etc' 1004sharedstatedir='${prefix}/com' 1005localstatedir='${prefix}/var' 1006runstatedir='${localstatedir}/run' 1007includedir='${prefix}/include' 1008oldincludedir='/usr/include' 1009docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1010infodir='${datarootdir}/info' 1011htmldir='${docdir}' 1012dvidir='${docdir}' 1013pdfdir='${docdir}' 1014psdir='${docdir}' 1015libdir='${exec_prefix}/lib' 1016localedir='${datarootdir}/locale' 1017mandir='${datarootdir}/man' 1018 1019ac_prev= 1020ac_dashdash= 1021for ac_option 1022do 1023 # If the previous option needs an argument, assign it. 1024 if test -n "$ac_prev"; then 1025 eval $ac_prev=\$ac_option 1026 ac_prev= 1027 continue 1028 fi 1029 1030 case $ac_option in 1031 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1032 *=) ac_optarg= ;; 1033 *) ac_optarg=yes ;; 1034 esac 1035 1036 case $ac_dashdash$ac_option in 1037 --) 1038 ac_dashdash=yes ;; 1039 1040 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1041 ac_prev=bindir ;; 1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1043 bindir=$ac_optarg ;; 1044 1045 -build | --build | --buil | --bui | --bu) 1046 ac_prev=build_alias ;; 1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1048 build_alias=$ac_optarg ;; 1049 1050 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1052 ac_prev=cache_file ;; 1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1055 cache_file=$ac_optarg ;; 1056 1057 --config-cache | -C) 1058 cache_file=config.cache ;; 1059 1060 -datadir | --datadir | --datadi | --datad) 1061 ac_prev=datadir ;; 1062 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1063 datadir=$ac_optarg ;; 1064 1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1066 | --dataroo | --dataro | --datar) 1067 ac_prev=datarootdir ;; 1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1070 datarootdir=$ac_optarg ;; 1071 1072 -disable-* | --disable-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error $? "invalid feature name: '$ac_useropt'" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"enable_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval enable_$ac_useropt=no ;; 1087 1088 -docdir | --docdir | --docdi | --doc | --do) 1089 ac_prev=docdir ;; 1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1091 docdir=$ac_optarg ;; 1092 1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1094 ac_prev=dvidir ;; 1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1096 dvidir=$ac_optarg ;; 1097 1098 -enable-* | --enable-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error $? "invalid feature name: '$ac_useropt'" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"enable_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval enable_$ac_useropt=\$ac_optarg ;; 1113 1114 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1115 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1116 | --exec | --exe | --ex) 1117 ac_prev=exec_prefix ;; 1118 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1119 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1120 | --exec=* | --exe=* | --ex=*) 1121 exec_prefix=$ac_optarg ;; 1122 1123 -gas | --gas | --ga | --g) 1124 # Obsolete; use --with-gas. 1125 with_gas=yes ;; 1126 1127 -help | --help | --hel | --he | -h) 1128 ac_init_help=long ;; 1129 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1130 ac_init_help=recursive ;; 1131 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1132 ac_init_help=short ;; 1133 1134 -host | --host | --hos | --ho) 1135 ac_prev=host_alias ;; 1136 -host=* | --host=* | --hos=* | --ho=*) 1137 host_alias=$ac_optarg ;; 1138 1139 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1140 ac_prev=htmldir ;; 1141 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1142 | --ht=*) 1143 htmldir=$ac_optarg ;; 1144 1145 -includedir | --includedir | --includedi | --included | --include \ 1146 | --includ | --inclu | --incl | --inc) 1147 ac_prev=includedir ;; 1148 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1149 | --includ=* | --inclu=* | --incl=* | --inc=*) 1150 includedir=$ac_optarg ;; 1151 1152 -infodir | --infodir | --infodi | --infod | --info | --inf) 1153 ac_prev=infodir ;; 1154 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1155 infodir=$ac_optarg ;; 1156 1157 -libdir | --libdir | --libdi | --libd) 1158 ac_prev=libdir ;; 1159 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1160 libdir=$ac_optarg ;; 1161 1162 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1163 | --libexe | --libex | --libe) 1164 ac_prev=libexecdir ;; 1165 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1166 | --libexe=* | --libex=* | --libe=*) 1167 libexecdir=$ac_optarg ;; 1168 1169 -localedir | --localedir | --localedi | --localed | --locale) 1170 ac_prev=localedir ;; 1171 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1172 localedir=$ac_optarg ;; 1173 1174 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1175 | --localstate | --localstat | --localsta | --localst | --locals) 1176 ac_prev=localstatedir ;; 1177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1178 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1179 localstatedir=$ac_optarg ;; 1180 1181 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1182 ac_prev=mandir ;; 1183 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1184 mandir=$ac_optarg ;; 1185 1186 -nfp | --nfp | --nf) 1187 # Obsolete; use --without-fp. 1188 with_fp=no ;; 1189 1190 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1191 | --no-cr | --no-c | -n) 1192 no_create=yes ;; 1193 1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1196 no_recursion=yes ;; 1197 1198 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1199 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1200 | --oldin | --oldi | --old | --ol | --o) 1201 ac_prev=oldincludedir ;; 1202 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1203 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1204 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1205 oldincludedir=$ac_optarg ;; 1206 1207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1208 ac_prev=prefix ;; 1209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1210 prefix=$ac_optarg ;; 1211 1212 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1213 | --program-pre | --program-pr | --program-p) 1214 ac_prev=program_prefix ;; 1215 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1216 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1217 program_prefix=$ac_optarg ;; 1218 1219 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1220 | --program-suf | --program-su | --program-s) 1221 ac_prev=program_suffix ;; 1222 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1223 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1224 program_suffix=$ac_optarg ;; 1225 1226 -program-transform-name | --program-transform-name \ 1227 | --program-transform-nam | --program-transform-na \ 1228 | --program-transform-n | --program-transform- \ 1229 | --program-transform | --program-transfor \ 1230 | --program-transfo | --program-transf \ 1231 | --program-trans | --program-tran \ 1232 | --progr-tra | --program-tr | --program-t) 1233 ac_prev=program_transform_name ;; 1234 -program-transform-name=* | --program-transform-name=* \ 1235 | --program-transform-nam=* | --program-transform-na=* \ 1236 | --program-transform-n=* | --program-transform-=* \ 1237 | --program-transform=* | --program-transfor=* \ 1238 | --program-transfo=* | --program-transf=* \ 1239 | --program-trans=* | --program-tran=* \ 1240 | --progr-tra=* | --program-tr=* | --program-t=*) 1241 program_transform_name=$ac_optarg ;; 1242 1243 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1244 ac_prev=pdfdir ;; 1245 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1246 pdfdir=$ac_optarg ;; 1247 1248 -psdir | --psdir | --psdi | --psd | --ps) 1249 ac_prev=psdir ;; 1250 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1251 psdir=$ac_optarg ;; 1252 1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1254 | -silent | --silent | --silen | --sile | --sil) 1255 silent=yes ;; 1256 1257 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1258 | --runstate | --runstat | --runsta | --runst | --runs \ 1259 | --run | --ru | --r) 1260 ac_prev=runstatedir ;; 1261 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1262 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1263 | --run=* | --ru=* | --r=*) 1264 runstatedir=$ac_optarg ;; 1265 1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1267 ac_prev=sbindir ;; 1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1269 | --sbi=* | --sb=*) 1270 sbindir=$ac_optarg ;; 1271 1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1274 | --sharedst | --shareds | --shared | --share | --shar \ 1275 | --sha | --sh) 1276 ac_prev=sharedstatedir ;; 1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1280 | --sha=* | --sh=*) 1281 sharedstatedir=$ac_optarg ;; 1282 1283 -site | --site | --sit) 1284 ac_prev=site ;; 1285 -site=* | --site=* | --sit=*) 1286 site=$ac_optarg ;; 1287 1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1289 ac_prev=srcdir ;; 1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1291 srcdir=$ac_optarg ;; 1292 1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1294 | --syscon | --sysco | --sysc | --sys | --sy) 1295 ac_prev=sysconfdir ;; 1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1298 sysconfdir=$ac_optarg ;; 1299 1300 -target | --target | --targe | --targ | --tar | --ta | --t) 1301 ac_prev=target_alias ;; 1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1303 target_alias=$ac_optarg ;; 1304 1305 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1306 verbose=yes ;; 1307 1308 -version | --version | --versio | --versi | --vers | -V) 1309 ac_init_version=: ;; 1310 1311 -with-* | --with-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 as_fn_error $? "invalid package name: '$ac_useropt'" 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"with_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval with_$ac_useropt=\$ac_optarg ;; 1326 1327 -without-* | --without-*) 1328 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1331 as_fn_error $? "invalid package name: '$ac_useropt'" 1332 ac_useropt_orig=$ac_useropt 1333 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1334 case $ac_user_opts in 1335 *" 1336"with_$ac_useropt" 1337"*) ;; 1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1339 ac_unrecognized_sep=', ';; 1340 esac 1341 eval with_$ac_useropt=no ;; 1342 1343 --x) 1344 # Obsolete; use --with-x. 1345 with_x=yes ;; 1346 1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1348 | --x-incl | --x-inc | --x-in | --x-i) 1349 ac_prev=x_includes ;; 1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1352 x_includes=$ac_optarg ;; 1353 1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1356 ac_prev=x_libraries ;; 1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1359 x_libraries=$ac_optarg ;; 1360 1361 -*) as_fn_error $? "unrecognized option: '$ac_option' 1362Try '$0 --help' for more information" 1363 ;; 1364 1365 *=*) 1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1367 # Reject names that are not valid shell variable names. 1368 case $ac_envvar in #( 1369 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1370 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1371 esac 1372 eval $ac_envvar=\$ac_optarg 1373 export $ac_envvar ;; 1374 1375 *) 1376 # FIXME: should be removed in autoconf 3.0. 1377 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1379 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1380 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1381 ;; 1382 1383 esac 1384done 1385 1386if test -n "$ac_prev"; then 1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1388 as_fn_error $? "missing argument to $ac_option" 1389fi 1390 1391if test -n "$ac_unrecognized_opts"; then 1392 case $enable_option_checking in 1393 no) ;; 1394 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1395 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1396 esac 1397fi 1398 1399# Check all directory arguments for consistency. 1400for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1401 datadir sysconfdir sharedstatedir localstatedir includedir \ 1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1403 libdir localedir mandir runstatedir 1404do 1405 eval ac_val=\$$ac_var 1406 # Remove trailing slashes. 1407 case $ac_val in 1408 */ ) 1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1410 eval $ac_var=\$ac_val;; 1411 esac 1412 # Be sure to have absolute directory names. 1413 case $ac_val in 1414 [\\/$]* | ?:[\\/]* ) continue;; 1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1416 esac 1417 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1418done 1419 1420# There might be people who depend on the old broken behavior: '$host' 1421# used to hold the argument of --host etc. 1422# FIXME: To remove some day. 1423build=$build_alias 1424host=$host_alias 1425target=$target_alias 1426 1427# FIXME: To remove some day. 1428if test "x$host_alias" != x; then 1429 if test "x$build_alias" = x; then 1430 cross_compiling=maybe 1431 elif test "x$build_alias" != "x$host_alias"; then 1432 cross_compiling=yes 1433 fi 1434fi 1435 1436ac_tool_prefix= 1437test -n "$host_alias" && ac_tool_prefix=$host_alias- 1438 1439test "$silent" = yes && exec 6>/dev/null 1440 1441 1442ac_pwd=`pwd` && test -n "$ac_pwd" && 1443ac_ls_di=`ls -di .` && 1444ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1445 as_fn_error $? "working directory cannot be determined" 1446test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1447 as_fn_error $? "pwd does not report name of working directory" 1448 1449 1450# Find the source files, if location was not specified. 1451if test -z "$srcdir"; then 1452 ac_srcdir_defaulted=yes 1453 # Try the directory containing this script, then the parent directory. 1454 ac_confdir=`$as_dirname -- "$as_myself" || 1455$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1456 X"$as_myself" : 'X\(//\)[^/]' \| \ 1457 X"$as_myself" : 'X\(//\)$' \| \ 1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1459printf "%s\n" X"$as_myself" | 1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1461 s//\1/ 1462 q 1463 } 1464 /^X\(\/\/\)[^/].*/{ 1465 s//\1/ 1466 q 1467 } 1468 /^X\(\/\/\)$/{ 1469 s//\1/ 1470 q 1471 } 1472 /^X\(\/\).*/{ 1473 s//\1/ 1474 q 1475 } 1476 s/.*/./; q'` 1477 srcdir=$ac_confdir 1478 if test ! -r "$srcdir/$ac_unique_file"; then 1479 srcdir=.. 1480 fi 1481else 1482 ac_srcdir_defaulted=no 1483fi 1484if test ! -r "$srcdir/$ac_unique_file"; then 1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1486 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1487fi 1488ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1489ac_abs_confdir=`( 1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1491 pwd)` 1492# When building in place, set srcdir=. 1493if test "$ac_abs_confdir" = "$ac_pwd"; then 1494 srcdir=. 1495fi 1496# Remove unnecessary trailing slashes from srcdir. 1497# Double slashes in file names in object file debugging info 1498# mess up M-x gdb in Emacs. 1499case $srcdir in 1500*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1501esac 1502for ac_var in $ac_precious_vars; do 1503 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1504 eval ac_env_${ac_var}_value=\$${ac_var} 1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1506 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1507done 1508 1509# 1510# Report the --help message. 1511# 1512if test "$ac_init_help" = "long"; then 1513 # Omit some internal or obsolete options to make the list less imposing. 1514 # This message is too long to be a string in the A/UX 3.1 sh. 1515 cat <<_ACEOF 1516'configure' configures libXfont2 2.0.7 to adapt to many kinds of systems. 1517 1518Usage: $0 [OPTION]... [VAR=VALUE]... 1519 1520To assign environment variables (e.g., CC, CFLAGS...), specify them as 1521VAR=VALUE. See below for descriptions of some of the useful variables. 1522 1523Defaults for the options are specified in brackets. 1524 1525Configuration: 1526 -h, --help display this help and exit 1527 --help=short display options specific to this package 1528 --help=recursive display the short help of all the included packages 1529 -V, --version display version information and exit 1530 -q, --quiet, --silent do not print 'checking ...' messages 1531 --cache-file=FILE cache test results in FILE [disabled] 1532 -C, --config-cache alias for '--cache-file=config.cache' 1533 -n, --no-create do not create output files 1534 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1535 1536Installation directories: 1537 --prefix=PREFIX install architecture-independent files in PREFIX 1538 [$ac_default_prefix] 1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1540 [PREFIX] 1541 1542By default, 'make install' will install all the files in 1543'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1544an installation prefix other than '$ac_default_prefix' using '--prefix', 1545for instance '--prefix=\$HOME'. 1546 1547For better control, use the options below. 1548 1549Fine tuning of the installation directories: 1550 --bindir=DIR user executables [EPREFIX/bin] 1551 --sbindir=DIR system admin executables [EPREFIX/sbin] 1552 --libexecdir=DIR program executables [EPREFIX/libexec] 1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1556 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1557 --libdir=DIR object code libraries [EPREFIX/lib] 1558 --includedir=DIR C header files [PREFIX/include] 1559 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1562 --infodir=DIR info documentation [DATAROOTDIR/info] 1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1564 --mandir=DIR man documentation [DATAROOTDIR/man] 1565 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont2] 1566 --htmldir=DIR html documentation [DOCDIR] 1567 --dvidir=DIR dvi documentation [DOCDIR] 1568 --pdfdir=DIR pdf documentation [DOCDIR] 1569 --psdir=DIR ps documentation [DOCDIR] 1570_ACEOF 1571 1572 cat <<\_ACEOF 1573 1574Program names: 1575 --program-prefix=PREFIX prepend PREFIX to installed program names 1576 --program-suffix=SUFFIX append SUFFIX to installed program names 1577 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1578 1579System types: 1580 --build=BUILD configure for building on BUILD [guessed] 1581 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1582_ACEOF 1583fi 1584 1585if test -n "$ac_init_help"; then 1586 case $ac_init_help in 1587 short | recursive ) echo "Configuration of libXfont2 2.0.7:";; 1588 esac 1589 cat <<\_ACEOF 1590 1591Optional Features: 1592 --disable-option-checking ignore unrecognized --enable/--with options 1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1595 --enable-silent-rules less verbose build output (undo: "make V=1") 1596 --disable-silent-rules verbose build output (undo: "make V=0") 1597 --enable-dependency-tracking 1598 do not reject slow dependency extractors 1599 --disable-dependency-tracking 1600 speeds up one-time build 1601 --enable-shared[=PKGS] build shared libraries [default=yes] 1602 --enable-static[=PKGS] build static libraries [default=yes] 1603 --enable-fast-install[=PKGS] 1604 optimize for fast installation [default=yes] 1605 --disable-libtool-lock avoid locking (might break parallel builds) 1606 --disable-selective-werror 1607 Turn off selective compiler errors. (default: 1608 enabled) 1609 --enable-strict-compilation 1610 Enable all warnings from compiler and make them 1611 errors (default: disabled) 1612 --enable-devel-docs Enable building the developer documentation 1613 (default: yes) 1614 --disable-largefile omit support for large files 1615 --disable-freetype Build freetype backend (default: enabled) 1616 --disable-builtins Support builtin fonts (default: enabled) 1617 --disable-pcfformat Support PCF format bitmap fonts (default: enabled) 1618 --disable-bdfformat Support BDF format bitmap fonts (default: enabled) 1619 --enable-snfformat Support SNF format bitmap fonts (default: disabled) 1620 --disable-fc Support connections to xfs servers (default: 1621 enabled) 1622 --enable-unix-transport Enable UNIX domain socket transport 1623 --enable-tcp-transport Enable TCP socket transport 1624 --enable-ipv6 Enable IPv6 support 1625 --enable-local-transport 1626 Enable os-specific local transport 1627 --enable-year2038 support timestamps after 2038 1628 1629Optional Packages: 1630 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1631 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1632 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1633 both] 1634 --with-aix-soname=aix|svr4|both 1635 shared library versioning (aka "SONAME") variant to 1636 provide on AIX, [default=aix]. 1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1638 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1639 compiler's sysroot if not specified). 1640 --with-xmlto Use xmlto to regenerate documentation (default: 1641 auto) 1642 --with-fop Use fop to regenerate documentation (default: auto) 1643 --with-freetype-config=PROG 1644 Use FreeType configuration program PROG 1645 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts 1646 (default: no) 1647 1648Some influential environment variables: 1649 CC C compiler command 1650 CFLAGS C compiler flags 1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1652 nonstandard directory <lib dir> 1653 LIBS libraries to pass to the linker, e.g. -l<library> 1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1655 you have headers in a nonstandard directory <include dir> 1656 LT_SYS_LIBRARY_PATH 1657 User-defined run-time library search path. 1658 PKG_CONFIG path to pkg-config utility 1659 PKG_CONFIG_PATH 1660 directories to add to pkg-config's search path 1661 PKG_CONFIG_LIBDIR 1662 path overriding pkg-config's built-in search path 1663 XMLTO Path to xmlto command 1664 FOP Path to fop command 1665 LIBBSD_CFLAGS 1666 C compiler flags for LIBBSD, overriding pkg-config 1667 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1668 FREETYPE_CFLAGS 1669 C compiler flags for FREETYPE, overriding pkg-config 1670 FREETYPE_LIBS 1671 linker flags for FREETYPE, overriding pkg-config 1672 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1673 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1674 XFONT_CFLAGS 1675 C compiler flags for XFONT, overriding pkg-config 1676 XFONT_LIBS linker flags for XFONT, overriding pkg-config 1677 1678Use these variables to override the choices made by 'configure' or to help 1679it to find libraries and programs with nonstandard names/locations. 1680 1681Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>. 1682_ACEOF 1683ac_status=$? 1684fi 1685 1686if test "$ac_init_help" = "recursive"; then 1687 # If there are subdirs, report their specific --help. 1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1689 test -d "$ac_dir" || 1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1691 continue 1692 ac_builddir=. 1693 1694case "$ac_dir" in 1695.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1696*) 1697 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1698 # A ".." for each directory in $ac_dir_suffix. 1699 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1700 case $ac_top_builddir_sub in 1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1703 esac ;; 1704esac 1705ac_abs_top_builddir=$ac_pwd 1706ac_abs_builddir=$ac_pwd$ac_dir_suffix 1707# for backward compatibility: 1708ac_top_builddir=$ac_top_build_prefix 1709 1710case $srcdir in 1711 .) # We are building in place. 1712 ac_srcdir=. 1713 ac_top_srcdir=$ac_top_builddir_sub 1714 ac_abs_top_srcdir=$ac_pwd ;; 1715 [\\/]* | ?:[\\/]* ) # Absolute name. 1716 ac_srcdir=$srcdir$ac_dir_suffix; 1717 ac_top_srcdir=$srcdir 1718 ac_abs_top_srcdir=$srcdir ;; 1719 *) # Relative name. 1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1721 ac_top_srcdir=$ac_top_build_prefix$srcdir 1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1723esac 1724ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1725 1726 cd "$ac_dir" || { ac_status=$?; continue; } 1727 # Check for configure.gnu first; this name is used for a wrapper for 1728 # Metaconfig's "Configure" on case-insensitive file systems. 1729 if test -f "$ac_srcdir/configure.gnu"; then 1730 echo && 1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1732 elif test -f "$ac_srcdir/configure"; then 1733 echo && 1734 $SHELL "$ac_srcdir/configure" --help=recursive 1735 else 1736 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1737 fi || ac_status=$? 1738 cd "$ac_pwd" || { ac_status=$?; break; } 1739 done 1740fi 1741 1742test -n "$ac_init_help" && exit $ac_status 1743if $ac_init_version; then 1744 cat <<\_ACEOF 1745libXfont2 configure 2.0.7 1746generated by GNU Autoconf 2.72 1747 1748Copyright (C) 2023 Free Software Foundation, Inc. 1749This configure script is free software; the Free Software Foundation 1750gives unlimited permission to copy, distribute and modify it. 1751_ACEOF 1752 exit 1753fi 1754 1755## ------------------------ ## 1756## Autoconf initialization. ## 1757## ------------------------ ## 1758 1759# ac_fn_c_try_compile LINENO 1760# -------------------------- 1761# Try to compile conftest.$ac_ext, and return whether this succeeded. 1762ac_fn_c_try_compile () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 rm -f conftest.$ac_objext conftest.beam 1766 if { { ac_try="$ac_compile" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772printf "%s\n" "$ac_try_echo"; } >&5 1773 (eval "$ac_compile") 2>conftest.err 1774 ac_status=$? 1775 if test -s conftest.err; then 1776 grep -v '^ *+' conftest.err >conftest.er1 1777 cat conftest.er1 >&5 1778 mv -f conftest.er1 conftest.err 1779 fi 1780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } && { 1782 test -z "$ac_c_werror_flag" || 1783 test ! -s conftest.err 1784 } && test -s conftest.$ac_objext 1785then : 1786 ac_retval=0 1787else case e in #( 1788 e) printf "%s\n" "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 ;; 1792esac 1793fi 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_compile 1798 1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1800# ------------------------------------------------------- 1801# Tests whether HEADER exists and can be compiled using the include files in 1802# INCLUDES, setting the cache variable VAR accordingly. 1803ac_fn_c_check_header_compile () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807printf %s "checking for $2... " >&6; } 1808if eval test \${$3+y} 1809then : 1810 printf %s "(cached) " >&6 1811else case e in #( 1812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813/* end confdefs.h. */ 1814$4 1815#include <$2> 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO" 1818then : 1819 eval "$3=yes" 1820else case e in #( 1821 e) eval "$3=no" ;; 1822esac 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1825esac 1826fi 1827eval ac_res=\$$3 1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829printf "%s\n" "$ac_res" >&6; } 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 1832} # ac_fn_c_check_header_compile 1833 1834# ac_fn_c_try_link LINENO 1835# ----------------------- 1836# Try to link conftest.$ac_ext, and return whether this succeeded. 1837ac_fn_c_try_link () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1841 if { { ac_try="$ac_link" 1842case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845esac 1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1847printf "%s\n" "$ac_try_echo"; } >&5 1848 (eval "$ac_link") 2>conftest.err 1849 ac_status=$? 1850 if test -s conftest.err; then 1851 grep -v '^ *+' conftest.err >conftest.er1 1852 cat conftest.er1 >&5 1853 mv -f conftest.er1 conftest.err 1854 fi 1855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1856 test $ac_status = 0; } && { 1857 test -z "$ac_c_werror_flag" || 1858 test ! -s conftest.err 1859 } && test -s conftest$ac_exeext && { 1860 test "$cross_compiling" = yes || 1861 test -x conftest$ac_exeext 1862 } 1863then : 1864 ac_retval=0 1865else case e in #( 1866 e) printf "%s\n" "$as_me: failed program was:" >&5 1867sed 's/^/| /' conftest.$ac_ext >&5 1868 1869 ac_retval=1 ;; 1870esac 1871fi 1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1874 # interfere with the next link command; also delete a directory that is 1875 # left behind by Apple's compiler. We do this before executing the actions. 1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 as_fn_set_status $ac_retval 1879 1880} # ac_fn_c_try_link 1881 1882# ac_fn_c_check_func LINENO FUNC VAR 1883# ---------------------------------- 1884# Tests whether FUNC exists, setting the cache variable VAR accordingly 1885ac_fn_c_check_func () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889printf %s "checking for $2... " >&6; } 1890if eval test \${$3+y} 1891then : 1892 printf %s "(cached) " >&6 1893else case e in #( 1894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895/* end confdefs.h. */ 1896/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1898#define $2 innocuous_$2 1899 1900/* System header to define __stub macros and hopefully few prototypes, 1901 which can conflict with char $2 (void); below. */ 1902 1903#include <limits.h> 1904#undef $2 1905 1906/* Override any GCC internal prototype to avoid an error. 1907 Use char because int might match the return type of a GCC 1908 builtin and then its argument prototype would still apply. */ 1909#ifdef __cplusplus 1910extern "C" 1911#endif 1912char $2 (void); 1913/* The GNU C library defines this for functions which it implements 1914 to always fail with ENOSYS. Some functions are actually named 1915 something starting with __ and the normal name is an alias. */ 1916#if defined __stub_$2 || defined __stub___$2 1917choke me 1918#endif 1919 1920int 1921main (void) 1922{ 1923return $2 (); 1924 ; 1925 return 0; 1926} 1927_ACEOF 1928if ac_fn_c_try_link "$LINENO" 1929then : 1930 eval "$3=yes" 1931else case e in #( 1932 e) eval "$3=no" ;; 1933esac 1934fi 1935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1936 conftest$ac_exeext conftest.$ac_ext ;; 1937esac 1938fi 1939eval ac_res=\$$3 1940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1941printf "%s\n" "$ac_res" >&6; } 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 1944} # ac_fn_c_check_func 1945 1946# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1947# ------------------------------------------------------------------ 1948# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1949# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1950ac_fn_check_decl () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 as_decl_name=`echo $2|sed 's/ *(.*//'` 1954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1955printf %s "checking whether $as_decl_name is declared... " >&6; } 1956if eval test \${$3+y} 1957then : 1958 printf %s "(cached) " >&6 1959else case e in #( 1960 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1961 eval ac_save_FLAGS=\$$6 1962 as_fn_append $6 " $5" 1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964/* end confdefs.h. */ 1965$4 1966int 1967main (void) 1968{ 1969#ifndef $as_decl_name 1970#ifdef __cplusplus 1971 (void) $as_decl_use; 1972#else 1973 (void) $as_decl_name; 1974#endif 1975#endif 1976 1977 ; 1978 return 0; 1979} 1980_ACEOF 1981if ac_fn_c_try_compile "$LINENO" 1982then : 1983 eval "$3=yes" 1984else case e in #( 1985 e) eval "$3=no" ;; 1986esac 1987fi 1988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1989 eval $6=\$ac_save_FLAGS 1990 ;; 1991esac 1992fi 1993eval ac_res=\$$3 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1995printf "%s\n" "$ac_res" >&6; } 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1997 1998} # ac_fn_check_decl 1999 2000# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2001# ---------------------------------------------------- 2002# Tries to find if the field MEMBER exists in type AGGR, after including 2003# INCLUDES, setting cache variable VAR accordingly. 2004ac_fn_c_check_member () 2005{ 2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2008printf %s "checking for $2.$3... " >&6; } 2009if eval test \${$4+y} 2010then : 2011 printf %s "(cached) " >&6 2012else case e in #( 2013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015$5 2016int 2017main (void) 2018{ 2019static $2 ac_aggr; 2020if (ac_aggr.$3) 2021return 0; 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO" 2027then : 2028 eval "$4=yes" 2029else case e in #( 2030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$5 2033int 2034main (void) 2035{ 2036static $2 ac_aggr; 2037if (sizeof ac_aggr.$3) 2038return 0; 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043if ac_fn_c_try_compile "$LINENO" 2044then : 2045 eval "$4=yes" 2046else case e in #( 2047 e) eval "$4=no" ;; 2048esac 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2051esac 2052fi 2053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2054esac 2055fi 2056eval ac_res=\$$4 2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2058printf "%s\n" "$ac_res" >&6; } 2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2060 2061} # ac_fn_c_check_member 2062 2063# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2064# ------------------------------------------- 2065# Tests whether TYPE exists after having included INCLUDES, setting cache 2066# variable VAR accordingly. 2067ac_fn_c_check_type () 2068{ 2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2071printf %s "checking for $2... " >&6; } 2072if eval test \${$3+y} 2073then : 2074 printf %s "(cached) " >&6 2075else case e in #( 2076 e) eval "$3=no" 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080int 2081main (void) 2082{ 2083if (sizeof ($2)) 2084 return 0; 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089if ac_fn_c_try_compile "$LINENO" 2090then : 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093$4 2094int 2095main (void) 2096{ 2097if (sizeof (($2))) 2098 return 0; 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO" 2104then : 2105 2106else case e in #( 2107 e) eval "$3=yes" ;; 2108esac 2109fi 2110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2113esac 2114fi 2115eval ac_res=\$$3 2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2117printf "%s\n" "$ac_res" >&6; } 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2119 2120} # ac_fn_c_check_type 2121ac_configure_args_raw= 2122for ac_arg 2123do 2124 case $ac_arg in 2125 *\'*) 2126 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2127 esac 2128 as_fn_append ac_configure_args_raw " '$ac_arg'" 2129done 2130 2131case $ac_configure_args_raw in 2132 *$as_nl*) 2133 ac_safe_unquote= ;; 2134 *) 2135 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2136 ac_unsafe_a="$ac_unsafe_z#~" 2137 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2138 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2139esac 2140 2141cat >config.log <<_ACEOF 2142This file contains any messages produced by compilers while 2143running configure, to aid debugging if configure makes a mistake. 2144 2145It was created by libXfont2 $as_me 2.0.7, which was 2146generated by GNU Autoconf 2.72. Invocation command line was 2147 2148 $ $0$ac_configure_args_raw 2149 2150_ACEOF 2151exec 5>>config.log 2152{ 2153cat <<_ASUNAME 2154## --------- ## 2155## Platform. ## 2156## --------- ## 2157 2158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2159uname -m = `(uname -m) 2>/dev/null || echo unknown` 2160uname -r = `(uname -r) 2>/dev/null || echo unknown` 2161uname -s = `(uname -s) 2>/dev/null || echo unknown` 2162uname -v = `(uname -v) 2>/dev/null || echo unknown` 2163 2164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2165/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2166 2167/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2168/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2170/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2171/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2172/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2173/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2174 2175_ASUNAME 2176 2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2178for as_dir in $PATH 2179do 2180 IFS=$as_save_IFS 2181 case $as_dir in #((( 2182 '') as_dir=./ ;; 2183 */) ;; 2184 *) as_dir=$as_dir/ ;; 2185 esac 2186 printf "%s\n" "PATH: $as_dir" 2187 done 2188IFS=$as_save_IFS 2189 2190} >&5 2191 2192cat >&5 <<_ACEOF 2193 2194 2195## ----------- ## 2196## Core tests. ## 2197## ----------- ## 2198 2199_ACEOF 2200 2201 2202# Keep a trace of the command line. 2203# Strip out --no-create and --no-recursion so they do not pile up. 2204# Strip out --silent because we don't want to record it for future runs. 2205# Also quote any args containing shell meta-characters. 2206# Make two passes to allow for proper duplicate-argument suppression. 2207ac_configure_args= 2208ac_configure_args0= 2209ac_configure_args1= 2210ac_must_keep_next=false 2211for ac_pass in 1 2 2212do 2213 for ac_arg 2214 do 2215 case $ac_arg in 2216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2218 | -silent | --silent | --silen | --sile | --sil) 2219 continue ;; 2220 *\'*) 2221 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2222 esac 2223 case $ac_pass in 2224 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2225 2) 2226 as_fn_append ac_configure_args1 " '$ac_arg'" 2227 if test $ac_must_keep_next = true; then 2228 ac_must_keep_next=false # Got value, back to normal. 2229 else 2230 case $ac_arg in 2231 *=* | --config-cache | -C | -disable-* | --disable-* \ 2232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2234 | -with-* | --with-* | -without-* | --without-* | --x) 2235 case "$ac_configure_args0 " in 2236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2237 esac 2238 ;; 2239 -* ) ac_must_keep_next=true ;; 2240 esac 2241 fi 2242 as_fn_append ac_configure_args " '$ac_arg'" 2243 ;; 2244 esac 2245 done 2246done 2247{ ac_configure_args0=; unset ac_configure_args0;} 2248{ ac_configure_args1=; unset ac_configure_args1;} 2249 2250# When interrupted or exit'd, cleanup temporary files, and complete 2251# config.log. We remove comments because anyway the quotes in there 2252# would cause problems or look ugly. 2253# WARNING: Use '\'' to represent an apostrophe within the trap. 2254# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2255trap 'exit_status=$? 2256 # Sanitize IFS. 2257 IFS=" "" $as_nl" 2258 # Save into config.log some information that might help in debugging. 2259 { 2260 echo 2261 2262 printf "%s\n" "## ---------------- ## 2263## Cache variables. ## 2264## ---------------- ##" 2265 echo 2266 # The following way of writing the cache mishandles newlines in values, 2267( 2268 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2269 eval ac_val=\$$ac_var 2270 case $ac_val in #( 2271 *${as_nl}*) 2272 case $ac_var in #( 2273 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2274printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2275 esac 2276 case $ac_var in #( 2277 _ | IFS | as_nl) ;; #( 2278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2279 *) { eval $ac_var=; unset $ac_var;} ;; 2280 esac ;; 2281 esac 2282 done 2283 (set) 2>&1 | 2284 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2285 *${as_nl}ac_space=\ *) 2286 sed -n \ 2287 "s/'\''/'\''\\\\'\'''\''/g; 2288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2289 ;; #( 2290 *) 2291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2292 ;; 2293 esac | 2294 sort 2295) 2296 echo 2297 2298 printf "%s\n" "## ----------------- ## 2299## Output variables. ## 2300## ----------------- ##" 2301 echo 2302 for ac_var in $ac_subst_vars 2303 do 2304 eval ac_val=\$$ac_var 2305 case $ac_val in 2306 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2307 esac 2308 printf "%s\n" "$ac_var='\''$ac_val'\''" 2309 done | sort 2310 echo 2311 2312 if test -n "$ac_subst_files"; then 2313 printf "%s\n" "## ------------------- ## 2314## File substitutions. ## 2315## ------------------- ##" 2316 echo 2317 for ac_var in $ac_subst_files 2318 do 2319 eval ac_val=\$$ac_var 2320 case $ac_val in 2321 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2322 esac 2323 printf "%s\n" "$ac_var='\''$ac_val'\''" 2324 done | sort 2325 echo 2326 fi 2327 2328 if test -s confdefs.h; then 2329 printf "%s\n" "## ----------- ## 2330## confdefs.h. ## 2331## ----------- ##" 2332 echo 2333 cat confdefs.h 2334 echo 2335 fi 2336 test "$ac_signal" != 0 && 2337 printf "%s\n" "$as_me: caught signal $ac_signal" 2338 printf "%s\n" "$as_me: exit $exit_status" 2339 } >&5 2340 rm -f core *.core core.conftest.* && 2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2342 exit $exit_status 2343' 0 2344for ac_signal in 1 2 13 15; do 2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2346done 2347ac_signal=0 2348 2349# confdefs.h avoids OS command line length limits that DEFS can exceed. 2350rm -f -r conftest* confdefs.h 2351 2352printf "%s\n" "/* confdefs.h */" > confdefs.h 2353 2354# Predefined preprocessor variables. 2355 2356printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2357 2358printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2359 2360printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2361 2362printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2363 2364printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2365 2366printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2367 2368 2369# Let the site file select an alternate cache file if it wants to. 2370# Prefer an explicitly selected file to automatically selected ones. 2371if test -n "$CONFIG_SITE"; then 2372 ac_site_files="$CONFIG_SITE" 2373elif test "x$prefix" != xNONE; then 2374 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2375else 2376 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2377fi 2378 2379for ac_site_file in $ac_site_files 2380do 2381 case $ac_site_file in #( 2382 */*) : 2383 ;; #( 2384 *) : 2385 ac_site_file=./$ac_site_file ;; 2386esac 2387 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2389printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2390 sed 's/^/| /' "$ac_site_file" >&5 2391 . "$ac_site_file" \ 2392 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2393printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2394as_fn_error $? "failed to load site script $ac_site_file 2395See 'config.log' for more details" "$LINENO" 5; } 2396 fi 2397done 2398 2399if test -r "$cache_file"; then 2400 # Some versions of bash will fail to source /dev/null (special files 2401 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2404printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2405 case $cache_file in 2406 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2407 *) . "./$cache_file";; 2408 esac 2409 fi 2410else 2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2412printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2413 >$cache_file 2414fi 2415 2416as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2417# Test code for whether the C compiler supports C89 (global declarations) 2418ac_c_conftest_c89_globals=' 2419/* Does the compiler advertise C89 conformance? 2420 Do not test the value of __STDC__, because some compilers set it to 0 2421 while being otherwise adequately conformant. */ 2422#if !defined __STDC__ 2423# error "Compiler does not advertise C89 conformance" 2424#endif 2425 2426#include <stddef.h> 2427#include <stdarg.h> 2428struct stat; 2429/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2430struct buf { int x; }; 2431struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2432static char *e (char **p, int i) 2433{ 2434 return p[i]; 2435} 2436static char *f (char * (*g) (char **, int), char **p, ...) 2437{ 2438 char *s; 2439 va_list v; 2440 va_start (v,p); 2441 s = g (p, va_arg (v,int)); 2442 va_end (v); 2443 return s; 2444} 2445 2446/* C89 style stringification. */ 2447#define noexpand_stringify(a) #a 2448const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2449 2450/* C89 style token pasting. Exercises some of the corner cases that 2451 e.g. old MSVC gets wrong, but not very hard. */ 2452#define noexpand_concat(a,b) a##b 2453#define expand_concat(a,b) noexpand_concat(a,b) 2454extern int vA; 2455extern int vbee; 2456#define aye A 2457#define bee B 2458int *pvA = &expand_concat(v,aye); 2459int *pvbee = &noexpand_concat(v,bee); 2460 2461/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2462 function prototypes and stuff, but not \xHH hex character constants. 2463 These do not provoke an error unfortunately, instead are silently treated 2464 as an "x". The following induces an error, until -std is added to get 2465 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2466 array size at least. It is necessary to write \x00 == 0 to get something 2467 that is true only with -std. */ 2468int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2469 2470/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2471 inside strings and character constants. */ 2472#define FOO(x) '\''x'\'' 2473int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2474 2475int test (int i, double x); 2476struct s1 {int (*f) (int a);}; 2477struct s2 {int (*f) (double a);}; 2478int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2479 int, int);' 2480 2481# Test code for whether the C compiler supports C89 (body of main). 2482ac_c_conftest_c89_main=' 2483ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2484' 2485 2486# Test code for whether the C compiler supports C99 (global declarations) 2487ac_c_conftest_c99_globals=' 2488/* Does the compiler advertise C99 conformance? */ 2489#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2490# error "Compiler does not advertise C99 conformance" 2491#endif 2492 2493// See if C++-style comments work. 2494 2495#include <stdbool.h> 2496extern int puts (const char *); 2497extern int printf (const char *, ...); 2498extern int dprintf (int, const char *, ...); 2499extern void *malloc (size_t); 2500extern void free (void *); 2501 2502// Check varargs macros. These examples are taken from C99 6.10.3.5. 2503// dprintf is used instead of fprintf to avoid needing to declare 2504// FILE and stderr. 2505#define debug(...) dprintf (2, __VA_ARGS__) 2506#define showlist(...) puts (#__VA_ARGS__) 2507#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2508static void 2509test_varargs_macros (void) 2510{ 2511 int x = 1234; 2512 int y = 5678; 2513 debug ("Flag"); 2514 debug ("X = %d\n", x); 2515 showlist (The first, second, and third items.); 2516 report (x>y, "x is %d but y is %d", x, y); 2517} 2518 2519// Check long long types. 2520#define BIG64 18446744073709551615ull 2521#define BIG32 4294967295ul 2522#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2523#if !BIG_OK 2524 #error "your preprocessor is broken" 2525#endif 2526#if BIG_OK 2527#else 2528 #error "your preprocessor is broken" 2529#endif 2530static long long int bignum = -9223372036854775807LL; 2531static unsigned long long int ubignum = BIG64; 2532 2533struct incomplete_array 2534{ 2535 int datasize; 2536 double data[]; 2537}; 2538 2539struct named_init { 2540 int number; 2541 const wchar_t *name; 2542 double average; 2543}; 2544 2545typedef const char *ccp; 2546 2547static inline int 2548test_restrict (ccp restrict text) 2549{ 2550 // Iterate through items via the restricted pointer. 2551 // Also check for declarations in for loops. 2552 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2553 continue; 2554 return 0; 2555} 2556 2557// Check varargs and va_copy. 2558static bool 2559test_varargs (const char *format, ...) 2560{ 2561 va_list args; 2562 va_start (args, format); 2563 va_list args_copy; 2564 va_copy (args_copy, args); 2565 2566 const char *str = ""; 2567 int number = 0; 2568 float fnumber = 0; 2569 2570 while (*format) 2571 { 2572 switch (*format++) 2573 { 2574 case '\''s'\'': // string 2575 str = va_arg (args_copy, const char *); 2576 break; 2577 case '\''d'\'': // int 2578 number = va_arg (args_copy, int); 2579 break; 2580 case '\''f'\'': // float 2581 fnumber = va_arg (args_copy, double); 2582 break; 2583 default: 2584 break; 2585 } 2586 } 2587 va_end (args_copy); 2588 va_end (args); 2589 2590 return *str && number && fnumber; 2591} 2592' 2593 2594# Test code for whether the C compiler supports C99 (body of main). 2595ac_c_conftest_c99_main=' 2596 // Check bool. 2597 _Bool success = false; 2598 success |= (argc != 0); 2599 2600 // Check restrict. 2601 if (test_restrict ("String literal") == 0) 2602 success = true; 2603 char *restrict newvar = "Another string"; 2604 2605 // Check varargs. 2606 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2607 test_varargs_macros (); 2608 2609 // Check flexible array members. 2610 struct incomplete_array *ia = 2611 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2612 ia->datasize = 10; 2613 for (int i = 0; i < ia->datasize; ++i) 2614 ia->data[i] = i * 1.234; 2615 // Work around memory leak warnings. 2616 free (ia); 2617 2618 // Check named initializers. 2619 struct named_init ni = { 2620 .number = 34, 2621 .name = L"Test wide string", 2622 .average = 543.34343, 2623 }; 2624 2625 ni.number = 58; 2626 2627 int dynamic_array[ni.number]; 2628 dynamic_array[0] = argv[0][0]; 2629 dynamic_array[ni.number - 1] = 543; 2630 2631 // work around unused variable warnings 2632 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2633 || dynamic_array[ni.number - 1] != 543); 2634' 2635 2636# Test code for whether the C compiler supports C11 (global declarations) 2637ac_c_conftest_c11_globals=' 2638/* Does the compiler advertise C11 conformance? */ 2639#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2640# error "Compiler does not advertise C11 conformance" 2641#endif 2642 2643// Check _Alignas. 2644char _Alignas (double) aligned_as_double; 2645char _Alignas (0) no_special_alignment; 2646extern char aligned_as_int; 2647char _Alignas (0) _Alignas (int) aligned_as_int; 2648 2649// Check _Alignof. 2650enum 2651{ 2652 int_alignment = _Alignof (int), 2653 int_array_alignment = _Alignof (int[100]), 2654 char_alignment = _Alignof (char) 2655}; 2656_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2657 2658// Check _Noreturn. 2659int _Noreturn does_not_return (void) { for (;;) continue; } 2660 2661// Check _Static_assert. 2662struct test_static_assert 2663{ 2664 int x; 2665 _Static_assert (sizeof (int) <= sizeof (long int), 2666 "_Static_assert does not work in struct"); 2667 long int y; 2668}; 2669 2670// Check UTF-8 literals. 2671#define u8 syntax error! 2672char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2673 2674// Check duplicate typedefs. 2675typedef long *long_ptr; 2676typedef long int *long_ptr; 2677typedef long_ptr long_ptr; 2678 2679// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2680struct anonymous 2681{ 2682 union { 2683 struct { int i; int j; }; 2684 struct { int k; long int l; } w; 2685 }; 2686 int m; 2687} v1; 2688' 2689 2690# Test code for whether the C compiler supports C11 (body of main). 2691ac_c_conftest_c11_main=' 2692 _Static_assert ((offsetof (struct anonymous, i) 2693 == offsetof (struct anonymous, w.k)), 2694 "Anonymous union alignment botch"); 2695 v1.i = 2; 2696 v1.w.k = 5; 2697 ok |= v1.i != 5; 2698' 2699 2700# Test code for whether the C compiler supports C11 (complete). 2701ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2702${ac_c_conftest_c99_globals} 2703${ac_c_conftest_c11_globals} 2704 2705int 2706main (int argc, char **argv) 2707{ 2708 int ok = 0; 2709 ${ac_c_conftest_c89_main} 2710 ${ac_c_conftest_c99_main} 2711 ${ac_c_conftest_c11_main} 2712 return ok; 2713} 2714" 2715 2716# Test code for whether the C compiler supports C99 (complete). 2717ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2718${ac_c_conftest_c99_globals} 2719 2720int 2721main (int argc, char **argv) 2722{ 2723 int ok = 0; 2724 ${ac_c_conftest_c89_main} 2725 ${ac_c_conftest_c99_main} 2726 return ok; 2727} 2728" 2729 2730# Test code for whether the C compiler supports C89 (complete). 2731ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2732 2733int 2734main (int argc, char **argv) 2735{ 2736 int ok = 0; 2737 ${ac_c_conftest_c89_main} 2738 return ok; 2739} 2740" 2741 2742as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2743as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2744as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2745as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2746as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2747as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2748as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2749as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2750as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2751as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2752 2753# Auxiliary files required by this configure script. 2754ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2755 2756# Locations in which to look for auxiliary files. 2757ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2758 2759# Search for a directory containing all of the required auxiliary files, 2760# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2761# If we don't find one directory that contains all the files we need, 2762# we report the set of missing files from the *first* directory in 2763# $ac_aux_dir_candidates and give up. 2764ac_missing_aux_files="" 2765ac_first_candidate=: 2766printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2768as_found=false 2769for as_dir in $ac_aux_dir_candidates 2770do 2771 IFS=$as_save_IFS 2772 case $as_dir in #((( 2773 '') as_dir=./ ;; 2774 */) ;; 2775 *) as_dir=$as_dir/ ;; 2776 esac 2777 as_found=: 2778 2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2780 ac_aux_dir_found=yes 2781 ac_install_sh= 2782 for ac_aux in $ac_aux_files 2783 do 2784 # As a special case, if "install-sh" is required, that requirement 2785 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2786 # and $ac_install_sh is set appropriately for whichever one is found. 2787 if test x"$ac_aux" = x"install-sh" 2788 then 2789 if test -f "${as_dir}install-sh"; then 2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2791 ac_install_sh="${as_dir}install-sh -c" 2792 elif test -f "${as_dir}install.sh"; then 2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2794 ac_install_sh="${as_dir}install.sh -c" 2795 elif test -f "${as_dir}shtool"; then 2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2797 ac_install_sh="${as_dir}shtool install -c" 2798 else 2799 ac_aux_dir_found=no 2800 if $ac_first_candidate; then 2801 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2802 else 2803 break 2804 fi 2805 fi 2806 else 2807 if test -f "${as_dir}${ac_aux}"; then 2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2809 else 2810 ac_aux_dir_found=no 2811 if $ac_first_candidate; then 2812 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2813 else 2814 break 2815 fi 2816 fi 2817 fi 2818 done 2819 if test "$ac_aux_dir_found" = yes; then 2820 ac_aux_dir="$as_dir" 2821 break 2822 fi 2823 ac_first_candidate=false 2824 2825 as_found=false 2826done 2827IFS=$as_save_IFS 2828if $as_found 2829then : 2830 2831else case e in #( 2832 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2833esac 2834fi 2835 2836 2837# These three variables are undocumented and unsupported, 2838# and are intended to be withdrawn in a future Autoconf release. 2839# They can cause serious problems if a builder's source tree is in a directory 2840# whose full name contains unusual characters. 2841if test -f "${ac_aux_dir}config.guess"; then 2842 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2843fi 2844if test -f "${ac_aux_dir}config.sub"; then 2845 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2846fi 2847if test -f "$ac_aux_dir/configure"; then 2848 ac_configure="$SHELL ${ac_aux_dir}configure" 2849fi 2850 2851# Check that the precious variables saved in the cache have kept the same 2852# value. 2853ac_cache_corrupted=false 2854for ac_var in $ac_precious_vars; do 2855 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2856 eval ac_new_set=\$ac_env_${ac_var}_set 2857 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2858 eval ac_new_val=\$ac_env_${ac_var}_value 2859 case $ac_old_set,$ac_new_set in 2860 set,) 2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2862printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2863 ac_cache_corrupted=: ;; 2864 ,set) 2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2866printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2867 ac_cache_corrupted=: ;; 2868 ,);; 2869 *) 2870 if test "x$ac_old_val" != "x$ac_new_val"; then 2871 # differences in whitespace do not lead to failure. 2872 ac_old_val_w=`echo x $ac_old_val` 2873 ac_new_val_w=`echo x $ac_new_val` 2874 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2876printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2877 ac_cache_corrupted=: 2878 else 2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2880printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2881 eval $ac_var=\$ac_old_val 2882 fi 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2884printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2886printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2887 fi;; 2888 esac 2889 # Pass precious variables to config.status. 2890 if test "$ac_new_set" = set; then 2891 case $ac_new_val in 2892 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2893 *) ac_arg=$ac_var=$ac_new_val ;; 2894 esac 2895 case " $ac_configure_args " in 2896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2897 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2898 esac 2899 fi 2900done 2901if $ac_cache_corrupted; then 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2903printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2905printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2906 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2907 and start over" "$LINENO" 5 2908fi 2909## -------------------- ## 2910## Main body of script. ## 2911## -------------------- ## 2912 2913ac_ext=c 2914ac_cpp='$CPP $CPPFLAGS' 2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2917ac_compiler_gnu=$ac_cv_c_compiler_gnu 2918 2919 2920 2921ac_config_headers="$ac_config_headers config.h" 2922 2923 2924 2925# Initialize Automake 2926am__api_version='1.17' 2927 2928 2929 2930 # Find a good install program. We prefer a C program (faster), 2931# so one script is as good as another. But avoid the broken or 2932# incompatible versions: 2933# SysV /etc/install, /usr/sbin/install 2934# SunOS /usr/etc/install 2935# IRIX /sbin/install 2936# AIX /bin/install 2937# AmigaOS /C/install, which installs bootblocks on floppy discs 2938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2939# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2941# OS/2's system install, which has a completely different semantic 2942# ./install, which can be erroneously created by make from ./install.sh. 2943# Reject install programs that cannot install multiple files. 2944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2945printf %s "checking for a BSD-compatible install... " >&6; } 2946if test -z "$INSTALL"; then 2947if test ${ac_cv_path_install+y} 2948then : 2949 printf %s "(cached) " >&6 2950else case e in #( 2951 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952for as_dir in $PATH 2953do 2954 IFS=$as_save_IFS 2955 case $as_dir in #((( 2956 '') as_dir=./ ;; 2957 */) ;; 2958 *) as_dir=$as_dir/ ;; 2959 esac 2960 # Account for fact that we put trailing slashes in our PATH walk. 2961case $as_dir in #(( 2962 ./ | /[cC]/* | \ 2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2965 /usr/ucb/* ) ;; 2966 *) 2967 # OSF1 and SCO ODT 3.0 have their own names for install. 2968 # Don't use installbsd from OSF since it installs stuff as root 2969 # by default. 2970 for ac_prog in ginstall scoinst install; do 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2973 if test $ac_prog = install && 2974 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2975 # AIX install. It has an incompatible calling convention. 2976 : 2977 elif test $ac_prog = install && 2978 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2979 # program-specific install script used by HP pwplus--don't use. 2980 : 2981 else 2982 rm -rf conftest.one conftest.two conftest.dir 2983 echo one > conftest.one 2984 echo two > conftest.two 2985 mkdir conftest.dir 2986 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2987 test -s conftest.one && test -s conftest.two && 2988 test -s conftest.dir/conftest.one && 2989 test -s conftest.dir/conftest.two 2990 then 2991 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2992 break 3 2993 fi 2994 fi 2995 fi 2996 done 2997 done 2998 ;; 2999esac 3000 3001 done 3002IFS=$as_save_IFS 3003 3004rm -rf conftest.one conftest.two conftest.dir 3005 ;; 3006esac 3007fi 3008 if test ${ac_cv_path_install+y}; then 3009 INSTALL=$ac_cv_path_install 3010 else 3011 # As a last resort, use the slow shell script. Don't cache a 3012 # value for INSTALL within a source directory, because that will 3013 # break other packages using the cache if that directory is 3014 # removed, or if the value is a relative name. 3015 INSTALL=$ac_install_sh 3016 fi 3017fi 3018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3019printf "%s\n" "$INSTALL" >&6; } 3020 3021# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3022# It thinks the first close brace ends the variable substitution. 3023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3024 3025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3026 3027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3028 3029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3030printf %s "checking whether sleep supports fractional seconds... " >&6; } 3031if test ${am_cv_sleep_fractional_seconds+y} 3032then : 3033 printf %s "(cached) " >&6 3034else case e in #( 3035 e) if sleep 0.001 2>/dev/null 3036then : 3037 am_cv_sleep_fractional_seconds=yes 3038else case e in #( 3039 e) am_cv_sleep_fractional_seconds=no ;; 3040esac 3041fi 3042 ;; 3043esac 3044fi 3045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3046printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3047 3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3049printf %s "checking filesystem timestamp resolution... " >&6; } 3050if test ${am_cv_filesystem_timestamp_resolution+y} 3051then : 3052 printf %s "(cached) " >&6 3053else case e in #( 3054 e) # Default to the worst case. 3055am_cv_filesystem_timestamp_resolution=2 3056 3057# Only try to go finer than 1 sec if sleep can do it. 3058# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3059# - 1 sec is not much of a win compared to 2 sec, and 3060# - it takes 2 seconds to perform the test whether 1 sec works. 3061# 3062# Instead, just use the default 2s on platforms that have 1s resolution, 3063# accept the extra 1s delay when using $sleep in the Automake tests, in 3064# exchange for not incurring the 2s delay for running the test for all 3065# packages. 3066# 3067am_try_resolutions= 3068if test "$am_cv_sleep_fractional_seconds" = yes; then 3069 # Even a millisecond often causes a bunch of false positives, 3070 # so just try a hundredth of a second. The time saved between .001 and 3071 # .01 is not terribly consequential. 3072 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3073fi 3074 3075# In order to catch current-generation FAT out, we must *modify* files 3076# that already exist; the *creation* timestamp is finer. Use names 3077# that make ls -t sort them differently when they have equal 3078# timestamps than when they have distinct timestamps, keeping 3079# in mind that ls -t prints the *newest* file first. 3080rm -f conftest.ts? 3081: > conftest.ts1 3082: > conftest.ts2 3083: > conftest.ts3 3084 3085# Make sure ls -t actually works. Do 'set' in a subshell so we don't 3086# clobber the current shell's arguments. (Outer-level square brackets 3087# are removed by m4; they're present so that m4 does not expand 3088# <dollar><star>; be careful, easy to get confused.) 3089if ( 3090 set X `ls -t conftest.ts[12]` && 3091 { 3092 test "$*" != "X conftest.ts1 conftest.ts2" || 3093 test "$*" != "X conftest.ts2 conftest.ts1"; 3094 } 3095); then :; else 3096 # If neither matched, then we have a broken ls. This can happen 3097 # if, for instance, CONFIG_SHELL is bash and it inherits a 3098 # broken ls alias from the environment. This has actually 3099 # happened. Such a system could not be considered "sane". 3100 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3102printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3103as_fn_error $? "ls -t produces unexpected output. 3104Make sure there is not a broken ls alias in your environment. 3105See 'config.log' for more details" "$LINENO" 5; } 3106fi 3107 3108for am_try_res in $am_try_resolutions; do 3109 # Any one fine-grained sleep might happen to cross the boundary 3110 # between two values of a coarser actual resolution, but if we do 3111 # two fine-grained sleeps in a row, at least one of them will fall 3112 # entirely within a coarse interval. 3113 echo alpha > conftest.ts1 3114 sleep $am_try_res 3115 echo beta > conftest.ts2 3116 sleep $am_try_res 3117 echo gamma > conftest.ts3 3118 3119 # We assume that 'ls -t' will make use of high-resolution 3120 # timestamps if the operating system supports them at all. 3121 if (set X `ls -t conftest.ts?` && 3122 test "$2" = conftest.ts3 && 3123 test "$3" = conftest.ts2 && 3124 test "$4" = conftest.ts1); then 3125 # 3126 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3127 # because we don't need to test make. 3128 make_ok=true 3129 if test $am_try_res != 1; then 3130 # But if we've succeeded so far with a subsecond resolution, we 3131 # have one more thing to check: make. It can happen that 3132 # everything else supports the subsecond mtimes, but make doesn't; 3133 # notably on macOS, which ships make 3.81 from 2006 (the last one 3134 # released under GPLv2). https://bugs.gnu.org/68808 3135 # 3136 # We test $MAKE if it is defined in the environment, else "make". 3137 # It might get overridden later, but our hope is that in practice 3138 # it does not matter: it is the system "make" which is (by far) 3139 # the most likely to be broken, whereas if the user overrides it, 3140 # probably they did so with a better, or at least not worse, make. 3141 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3142 # 3143 # Create a Makefile (real tab character here): 3144 rm -f conftest.mk 3145 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3146 echo ' touch conftest.ts2' >>conftest.mk 3147 # 3148 # Now, running 3149 # touch conftest.ts1; touch conftest.ts2; make 3150 # should touch ts1 because ts2 is newer. This could happen by luck, 3151 # but most often, it will fail if make's support is insufficient. So 3152 # test for several consecutive successes. 3153 # 3154 # (We reuse conftest.ts[12] because we still want to modify existing 3155 # files, not create new ones, per above.) 3156 n=0 3157 make=${MAKE-make} 3158 until test $n -eq 3; do 3159 echo one > conftest.ts1 3160 sleep $am_try_res 3161 echo two > conftest.ts2 # ts2 should now be newer than ts1 3162 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3163 make_ok=false 3164 break # out of $n loop 3165 fi 3166 n=`expr $n + 1` 3167 done 3168 fi 3169 # 3170 if $make_ok; then 3171 # Everything we know to check worked out, so call this resolution good. 3172 am_cv_filesystem_timestamp_resolution=$am_try_res 3173 break # out of $am_try_res loop 3174 fi 3175 # Otherwise, we'll go on to check the next resolution. 3176 fi 3177done 3178rm -f conftest.ts? 3179# (end _am_filesystem_timestamp_resolution) 3180 ;; 3181esac 3182fi 3183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3184printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3185 3186# This check should not be cached, as it may vary across builds of 3187# different projects. 3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3189printf %s "checking whether build environment is sane... " >&6; } 3190# Reject unsafe characters in $srcdir or the absolute working directory 3191# name. Accept space and tab only in the latter. 3192am_lf=' 3193' 3194case `pwd` in 3195 *[\\\"\#\$\&\'\`$am_lf]*) 3196 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3197esac 3198case $srcdir in 3199 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3200 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3201esac 3202 3203# Do 'set' in a subshell so we don't clobber the current shell's 3204# arguments. Must try -L first in case configure is actually a 3205# symlink; some systems play weird games with the mod time of symlinks 3206# (eg FreeBSD returns the mod time of the symlink's containing 3207# directory). 3208am_build_env_is_sane=no 3209am_has_slept=no 3210rm -f conftest.file 3211for am_try in 1 2; do 3212 echo "timestamp, slept: $am_has_slept" > conftest.file 3213 if ( 3214 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3215 if test "$*" = "X"; then 3216 # -L didn't work. 3217 set X `ls -t "$srcdir/configure" conftest.file` 3218 fi 3219 test "$2" = conftest.file 3220 ); then 3221 am_build_env_is_sane=yes 3222 break 3223 fi 3224 # Just in case. 3225 sleep "$am_cv_filesystem_timestamp_resolution" 3226 am_has_slept=yes 3227done 3228 3229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3230printf "%s\n" "$am_build_env_is_sane" >&6; } 3231if test "$am_build_env_is_sane" = no; then 3232 as_fn_error $? "newly created file is older than distributed files! 3233Check your system clock" "$LINENO" 5 3234fi 3235 3236# If we didn't sleep, we still need to ensure time stamps of config.status and 3237# generated files are strictly newer. 3238am_sleep_pid= 3239if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3240then : 3241 3242else case e in #( 3243 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3244 am_sleep_pid=$! 3245 ;; 3246esac 3247fi 3248 3249rm -f conftest.file 3250 3251test "$program_prefix" != NONE && 3252 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3253# Use a double $ so make ignores it. 3254test "$program_suffix" != NONE && 3255 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3256# Double any \ or $. 3257# By default was 's,x,x', remove it if useless. 3258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3259program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3260 3261 3262# Expand $ac_aux_dir to an absolute path. 3263am_aux_dir=`cd "$ac_aux_dir" && pwd` 3264 3265 3266 if test x"${MISSING+set}" != xset; then 3267 MISSING="\${SHELL} '$am_aux_dir/missing'" 3268fi 3269# Use eval to expand $SHELL 3270if eval "$MISSING --is-lightweight"; then 3271 am_missing_run="$MISSING " 3272else 3273 am_missing_run= 3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3275printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3276fi 3277 3278if test x"${install_sh+set}" != xset; then 3279 case $am_aux_dir in 3280 *\ * | *\ *) 3281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3282 *) 3283 install_sh="\${SHELL} $am_aux_dir/install-sh" 3284 esac 3285fi 3286 3287# Installed binaries are usually stripped using 'strip' when the user 3288# run "make install-strip". However 'strip' might not be the right 3289# tool to use in cross-compilation environments, therefore Automake 3290# will honor the 'STRIP' environment variable to overrule this program. 3291if test "$cross_compiling" != no; then 3292 if test -n "$ac_tool_prefix"; then 3293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3294set dummy ${ac_tool_prefix}strip; ac_word=$2 3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296printf %s "checking for $ac_word... " >&6; } 3297if test ${ac_cv_prog_STRIP+y} 3298then : 3299 printf %s "(cached) " >&6 3300else case e in #( 3301 e) if test -n "$STRIP"; then 3302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3303else 3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305for as_dir in $PATH 3306do 3307 IFS=$as_save_IFS 3308 case $as_dir in #((( 3309 '') as_dir=./ ;; 3310 */) ;; 3311 *) as_dir=$as_dir/ ;; 3312 esac 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3315 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319done 3320 done 3321IFS=$as_save_IFS 3322 3323fi ;; 3324esac 3325fi 3326STRIP=$ac_cv_prog_STRIP 3327if test -n "$STRIP"; then 3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3329printf "%s\n" "$STRIP" >&6; } 3330else 3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332printf "%s\n" "no" >&6; } 3333fi 3334 3335 3336fi 3337if test -z "$ac_cv_prog_STRIP"; then 3338 ac_ct_STRIP=$STRIP 3339 # Extract the first word of "strip", so it can be a program name with args. 3340set dummy strip; ac_word=$2 3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342printf %s "checking for $ac_word... " >&6; } 3343if test ${ac_cv_prog_ac_ct_STRIP+y} 3344then : 3345 printf %s "(cached) " >&6 3346else case e in #( 3347 e) if test -n "$ac_ct_STRIP"; then 3348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3349else 3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351for as_dir in $PATH 3352do 3353 IFS=$as_save_IFS 3354 case $as_dir in #((( 3355 '') as_dir=./ ;; 3356 */) ;; 3357 *) as_dir=$as_dir/ ;; 3358 esac 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3361 ac_cv_prog_ac_ct_STRIP="strip" 3362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366 done 3367IFS=$as_save_IFS 3368 3369fi ;; 3370esac 3371fi 3372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3373if test -n "$ac_ct_STRIP"; then 3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3375printf "%s\n" "$ac_ct_STRIP" >&6; } 3376else 3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378printf "%s\n" "no" >&6; } 3379fi 3380 3381 if test "x$ac_ct_STRIP" = x; then 3382 STRIP=":" 3383 else 3384 case $cross_compiling:$ac_tool_warned in 3385yes:) 3386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3387printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3388ac_tool_warned=yes ;; 3389esac 3390 STRIP=$ac_ct_STRIP 3391 fi 3392else 3393 STRIP="$ac_cv_prog_STRIP" 3394fi 3395 3396fi 3397INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3398 3399 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3401printf %s "checking for a race-free mkdir -p... " >&6; } 3402if test -z "$MKDIR_P"; then 3403 if test ${ac_cv_path_mkdir+y} 3404then : 3405 printf %s "(cached) " >&6 3406else case e in #( 3407 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3409do 3410 IFS=$as_save_IFS 3411 case $as_dir in #((( 3412 '') as_dir=./ ;; 3413 */) ;; 3414 *) as_dir=$as_dir/ ;; 3415 esac 3416 for ac_prog in mkdir gmkdir; do 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3419 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3420 'mkdir ('*'coreutils) '* | \ 3421 *'BusyBox '* | \ 3422 'mkdir (fileutils) '4.1*) 3423 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3424 break 3;; 3425 esac 3426 done 3427 done 3428 done 3429IFS=$as_save_IFS 3430 ;; 3431esac 3432fi 3433 3434 test -d ./--version && rmdir ./--version 3435 if test ${ac_cv_path_mkdir+y}; then 3436 MKDIR_P="$ac_cv_path_mkdir -p" 3437 else 3438 # As a last resort, use plain mkdir -p, 3439 # in the hope it doesn't have the bugs of ancient mkdir. 3440 MKDIR_P='mkdir -p' 3441 fi 3442fi 3443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3444printf "%s\n" "$MKDIR_P" >&6; } 3445 3446for ac_prog in gawk mawk nawk awk 3447do 3448 # Extract the first word of "$ac_prog", so it can be a program name with args. 3449set dummy $ac_prog; ac_word=$2 3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451printf %s "checking for $ac_word... " >&6; } 3452if test ${ac_cv_prog_AWK+y} 3453then : 3454 printf %s "(cached) " >&6 3455else case e in #( 3456 e) if test -n "$AWK"; then 3457 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 case $as_dir in #((( 3464 '') as_dir=./ ;; 3465 */) ;; 3466 *) as_dir=$as_dir/ ;; 3467 esac 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_AWK="$ac_prog" 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi ;; 3479esac 3480fi 3481AWK=$ac_cv_prog_AWK 3482if test -n "$AWK"; then 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3484printf "%s\n" "$AWK" >&6; } 3485else 3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487printf "%s\n" "no" >&6; } 3488fi 3489 3490 3491 test -n "$AWK" && break 3492done 3493 3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3495printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3496set x ${MAKE-make} 3497ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3498if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3499then : 3500 printf %s "(cached) " >&6 3501else case e in #( 3502 e) cat >conftest.make <<\_ACEOF 3503SHELL = /bin/sh 3504all: 3505 @echo '@@@%%%=$(MAKE)=@@@%%%' 3506_ACEOF 3507# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3508case `${MAKE-make} -f conftest.make 2>/dev/null` in 3509 *@@@%%%=?*=@@@%%%*) 3510 eval ac_cv_prog_make_${ac_make}_set=yes;; 3511 *) 3512 eval ac_cv_prog_make_${ac_make}_set=no;; 3513esac 3514rm -f conftest.make ;; 3515esac 3516fi 3517if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3519printf "%s\n" "yes" >&6; } 3520 SET_MAKE= 3521else 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523printf "%s\n" "no" >&6; } 3524 SET_MAKE="MAKE=${MAKE-make}" 3525fi 3526 3527rm -rf .tst 2>/dev/null 3528mkdir .tst 2>/dev/null 3529if test -d .tst; then 3530 am__leading_dot=. 3531else 3532 am__leading_dot=_ 3533fi 3534rmdir .tst 2>/dev/null 3535 3536AM_DEFAULT_VERBOSITY=1 3537# Check whether --enable-silent-rules was given. 3538if test ${enable_silent_rules+y} 3539then : 3540 enableval=$enable_silent_rules; 3541fi 3542 3543am_make=${MAKE-make} 3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3545printf %s "checking whether $am_make supports nested variables... " >&6; } 3546if test ${am_cv_make_support_nested_variables+y} 3547then : 3548 printf %s "(cached) " >&6 3549else case e in #( 3550 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3551BAR0=false 3552BAR1=true 3553V=1 3554am__doit: 3555 @$(TRUE) 3556.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3557 am_cv_make_support_nested_variables=yes 3558else 3559 am_cv_make_support_nested_variables=no 3560fi ;; 3561esac 3562fi 3563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3564printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3565AM_BACKSLASH='\' 3566 3567am__rm_f_notfound= 3568if (rm -f && rm -fr && rm -rf) 2>/dev/null 3569then : 3570 3571else case e in #( 3572 e) am__rm_f_notfound='""' ;; 3573esac 3574fi 3575 3576 3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3578printf %s "checking xargs -n works... " >&6; } 3579if test ${am_cv_xargs_n_works+y} 3580then : 3581 printf %s "(cached) " >&6 3582else case e in #( 3583 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 35843" 3585then : 3586 am_cv_xargs_n_works=yes 3587else case e in #( 3588 e) am_cv_xargs_n_works=no ;; 3589esac 3590fi ;; 3591esac 3592fi 3593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3594printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3595if test "$am_cv_xargs_n_works" = yes 3596then : 3597 am__xargs_n='xargs -n' 3598else case e in #( 3599 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3600 ;; 3601esac 3602fi 3603 3604if test "`cd $srcdir && pwd`" != "`pwd`"; then 3605 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3606 # is not polluted with repeated "-I." 3607 am__isrc=' -I$(srcdir)' 3608 # test to see if srcdir already configured 3609 if test -f $srcdir/config.status; then 3610 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3611 fi 3612fi 3613 3614# test whether we have cygpath 3615if test -z "$CYGPATH_W"; then 3616 if (cygpath --version) >/dev/null 2>/dev/null; then 3617 CYGPATH_W='cygpath -w' 3618 else 3619 CYGPATH_W=echo 3620 fi 3621fi 3622 3623 3624# Define the identity of the package. 3625 PACKAGE='libXfont2' 3626 VERSION='2.0.7' 3627 3628 3629printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3630 3631 3632printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3633 3634# Some tools Automake needs. 3635 3636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3637 3638 3639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3640 3641 3642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3643 3644 3645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3646 3647 3648MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3649 3650# For better backward compatibility. To be removed once Automake 1.9.x 3651# dies out for good. For more background, see: 3652# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3653# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3654mkdir_p='$(MKDIR_P)' 3655 3656# We need awk for the "check" target (and possibly the TAP driver). The 3657# system "awk" is bad on some platforms. 3658# Always define AMTAR for backward compatibility. Yes, it's still used 3659# in the wild :-( We should find a proper way to deprecate it ... 3660AMTAR='$${TAR-tar}' 3661 3662 3663# We'll loop over all known methods to create a tar archive until one works. 3664_am_tools='gnutar pax cpio none' 3665 3666am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3667 3668 3669 3670 3671 3672# Variables for tags utilities; see am/tags.am 3673if test -z "$CTAGS"; then 3674 CTAGS=ctags 3675fi 3676 3677if test -z "$ETAGS"; then 3678 ETAGS=etags 3679fi 3680 3681if test -z "$CSCOPE"; then 3682 CSCOPE=cscope 3683fi 3684 3685 3686 3687 3688 3689 3690 3691 3692# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3693# Must be called before any macros that run the compiler (like 3694# LT_INIT) to avoid autoconf errors. 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704DEPDIR="${am__leading_dot}deps" 3705 3706ac_config_commands="$ac_config_commands depfiles" 3707 3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3709printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3710cat > confinc.mk << 'END' 3711am__doit: 3712 @echo this is the am__doit target >confinc.out 3713.PHONY: am__doit 3714END 3715am__include="#" 3716am__quote= 3717# BSD make does it like this. 3718echo '.include "confinc.mk" # ignored' > confmf.BSD 3719# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3720echo 'include confinc.mk # ignored' > confmf.GNU 3721_am_result=no 3722for s in GNU BSD; do 3723 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3724 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3725 ac_status=$? 3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3727 (exit $ac_status); } 3728 case $?:`cat confinc.out 2>/dev/null` in #( 3729 '0:this is the am__doit target') : 3730 case $s in #( 3731 BSD) : 3732 am__include='.include' am__quote='"' ;; #( 3733 *) : 3734 am__include='include' am__quote='' ;; 3735esac ;; #( 3736 *) : 3737 ;; 3738esac 3739 if test "$am__include" != "#"; then 3740 _am_result="yes ($s style)" 3741 break 3742 fi 3743done 3744rm -f confinc.* confmf.* 3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3746printf "%s\n" "${_am_result}" >&6; } 3747 3748# Check whether --enable-dependency-tracking was given. 3749if test ${enable_dependency_tracking+y} 3750then : 3751 enableval=$enable_dependency_tracking; 3752fi 3753 3754if test "x$enable_dependency_tracking" != xno; then 3755 am_depcomp="$ac_aux_dir/depcomp" 3756 AMDEPBACKSLASH='\' 3757 am__nodep='_no' 3758fi 3759 if test "x$enable_dependency_tracking" != xno; then 3760 AMDEP_TRUE= 3761 AMDEP_FALSE='#' 3762else 3763 AMDEP_TRUE='#' 3764 AMDEP_FALSE= 3765fi 3766 3767 3768ac_ext=c 3769ac_cpp='$CPP $CPPFLAGS' 3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3772ac_compiler_gnu=$ac_cv_c_compiler_gnu 3773if test -n "$ac_tool_prefix"; then 3774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3775set dummy ${ac_tool_prefix}gcc; ac_word=$2 3776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3777printf %s "checking for $ac_word... " >&6; } 3778if test ${ac_cv_prog_CC+y} 3779then : 3780 printf %s "(cached) " >&6 3781else case e in #( 3782 e) if test -n "$CC"; then 3783 ac_cv_prog_CC="$CC" # Let the user override the test. 3784else 3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786for as_dir in $PATH 3787do 3788 IFS=$as_save_IFS 3789 case $as_dir in #((( 3790 '') as_dir=./ ;; 3791 */) ;; 3792 *) as_dir=$as_dir/ ;; 3793 esac 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3796 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3798 break 2 3799 fi 3800done 3801 done 3802IFS=$as_save_IFS 3803 3804fi ;; 3805esac 3806fi 3807CC=$ac_cv_prog_CC 3808if test -n "$CC"; then 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3810printf "%s\n" "$CC" >&6; } 3811else 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3813printf "%s\n" "no" >&6; } 3814fi 3815 3816 3817fi 3818if test -z "$ac_cv_prog_CC"; then 3819 ac_ct_CC=$CC 3820 # Extract the first word of "gcc", so it can be a program name with args. 3821set dummy gcc; ac_word=$2 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823printf %s "checking for $ac_word... " >&6; } 3824if test ${ac_cv_prog_ac_ct_CC+y} 3825then : 3826 printf %s "(cached) " >&6 3827else case e in #( 3828 e) if test -n "$ac_ct_CC"; then 3829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3830else 3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3832for as_dir in $PATH 3833do 3834 IFS=$as_save_IFS 3835 case $as_dir in #((( 3836 '') as_dir=./ ;; 3837 */) ;; 3838 *) as_dir=$as_dir/ ;; 3839 esac 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_ac_ct_CC="gcc" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846done 3847 done 3848IFS=$as_save_IFS 3849 3850fi ;; 3851esac 3852fi 3853ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854if test -n "$ac_ct_CC"; then 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856printf "%s\n" "$ac_ct_CC" >&6; } 3857else 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859printf "%s\n" "no" >&6; } 3860fi 3861 3862 if test "x$ac_ct_CC" = x; then 3863 CC="" 3864 else 3865 case $cross_compiling:$ac_tool_warned in 3866yes:) 3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3869ac_tool_warned=yes ;; 3870esac 3871 CC=$ac_ct_CC 3872 fi 3873else 3874 CC="$ac_cv_prog_CC" 3875fi 3876 3877if test -z "$CC"; then 3878 if test -n "$ac_tool_prefix"; then 3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3880set dummy ${ac_tool_prefix}cc; ac_word=$2 3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882printf %s "checking for $ac_word... " >&6; } 3883if test ${ac_cv_prog_CC+y} 3884then : 3885 printf %s "(cached) " >&6 3886else case e in #( 3887 e) if test -n "$CC"; then 3888 ac_cv_prog_CC="$CC" # Let the user override the test. 3889else 3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3891for as_dir in $PATH 3892do 3893 IFS=$as_save_IFS 3894 case $as_dir in #((( 3895 '') as_dir=./ ;; 3896 */) ;; 3897 *) as_dir=$as_dir/ ;; 3898 esac 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3901 ac_cv_prog_CC="${ac_tool_prefix}cc" 3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905done 3906 done 3907IFS=$as_save_IFS 3908 3909fi ;; 3910esac 3911fi 3912CC=$ac_cv_prog_CC 3913if test -n "$CC"; then 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3915printf "%s\n" "$CC" >&6; } 3916else 3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3918printf "%s\n" "no" >&6; } 3919fi 3920 3921 3922 fi 3923fi 3924if test -z "$CC"; then 3925 # Extract the first word of "cc", so it can be a program name with args. 3926set dummy cc; ac_word=$2 3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3928printf %s "checking for $ac_word... " >&6; } 3929if test ${ac_cv_prog_CC+y} 3930then : 3931 printf %s "(cached) " >&6 3932else case e in #( 3933 e) if test -n "$CC"; then 3934 ac_cv_prog_CC="$CC" # Let the user override the test. 3935else 3936 ac_prog_rejected=no 3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938for as_dir in $PATH 3939do 3940 IFS=$as_save_IFS 3941 case $as_dir in #((( 3942 '') as_dir=./ ;; 3943 */) ;; 3944 *) as_dir=$as_dir/ ;; 3945 esac 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3948 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3949 ac_prog_rejected=yes 3950 continue 3951 fi 3952 ac_cv_prog_CC="cc" 3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3954 break 2 3955 fi 3956done 3957 done 3958IFS=$as_save_IFS 3959 3960if test $ac_prog_rejected = yes; then 3961 # We found a bogon in the path, so make sure we never use it. 3962 set dummy $ac_cv_prog_CC 3963 shift 3964 if test $# != 0; then 3965 # We chose a different compiler from the bogus one. 3966 # However, it has the same basename, so the bogon will be chosen 3967 # first if we set CC to just the basename; use the full file name. 3968 shift 3969 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3970 fi 3971fi 3972fi ;; 3973esac 3974fi 3975CC=$ac_cv_prog_CC 3976if test -n "$CC"; then 3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3978printf "%s\n" "$CC" >&6; } 3979else 3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981printf "%s\n" "no" >&6; } 3982fi 3983 3984 3985fi 3986if test -z "$CC"; then 3987 if test -n "$ac_tool_prefix"; then 3988 for ac_prog in cl.exe 3989 do 3990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3991set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3993printf %s "checking for $ac_word... " >&6; } 3994if test ${ac_cv_prog_CC+y} 3995then : 3996 printf %s "(cached) " >&6 3997else case e in #( 3998 e) if test -n "$CC"; then 3999 ac_cv_prog_CC="$CC" # Let the user override the test. 4000else 4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4002for as_dir in $PATH 4003do 4004 IFS=$as_save_IFS 4005 case $as_dir in #((( 4006 '') as_dir=./ ;; 4007 */) ;; 4008 *) as_dir=$as_dir/ ;; 4009 esac 4010 for ac_exec_ext in '' $ac_executable_extensions; do 4011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4014 break 2 4015 fi 4016done 4017 done 4018IFS=$as_save_IFS 4019 4020fi ;; 4021esac 4022fi 4023CC=$ac_cv_prog_CC 4024if test -n "$CC"; then 4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4026printf "%s\n" "$CC" >&6; } 4027else 4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4029printf "%s\n" "no" >&6; } 4030fi 4031 4032 4033 test -n "$CC" && break 4034 done 4035fi 4036if test -z "$CC"; then 4037 ac_ct_CC=$CC 4038 for ac_prog in cl.exe 4039do 4040 # Extract the first word of "$ac_prog", so it can be a program name with args. 4041set dummy $ac_prog; ac_word=$2 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4043printf %s "checking for $ac_word... " >&6; } 4044if test ${ac_cv_prog_ac_ct_CC+y} 4045then : 4046 printf %s "(cached) " >&6 4047else case e in #( 4048 e) if test -n "$ac_ct_CC"; then 4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4050else 4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH 4053do 4054 IFS=$as_save_IFS 4055 case $as_dir in #((( 4056 '') as_dir=./ ;; 4057 */) ;; 4058 *) as_dir=$as_dir/ ;; 4059 esac 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4062 ac_cv_prog_ac_ct_CC="$ac_prog" 4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066done 4067 done 4068IFS=$as_save_IFS 4069 4070fi ;; 4071esac 4072fi 4073ac_ct_CC=$ac_cv_prog_ac_ct_CC 4074if test -n "$ac_ct_CC"; then 4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4076printf "%s\n" "$ac_ct_CC" >&6; } 4077else 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079printf "%s\n" "no" >&6; } 4080fi 4081 4082 4083 test -n "$ac_ct_CC" && break 4084done 4085 4086 if test "x$ac_ct_CC" = x; then 4087 CC="" 4088 else 4089 case $cross_compiling:$ac_tool_warned in 4090yes:) 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4092printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4093ac_tool_warned=yes ;; 4094esac 4095 CC=$ac_ct_CC 4096 fi 4097fi 4098 4099fi 4100if test -z "$CC"; then 4101 if test -n "$ac_tool_prefix"; then 4102 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4103set dummy ${ac_tool_prefix}clang; ac_word=$2 4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4105printf %s "checking for $ac_word... " >&6; } 4106if test ${ac_cv_prog_CC+y} 4107then : 4108 printf %s "(cached) " >&6 4109else case e in #( 4110 e) if test -n "$CC"; then 4111 ac_cv_prog_CC="$CC" # Let the user override the test. 4112else 4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114for as_dir in $PATH 4115do 4116 IFS=$as_save_IFS 4117 case $as_dir in #((( 4118 '') as_dir=./ ;; 4119 */) ;; 4120 *) as_dir=$as_dir/ ;; 4121 esac 4122 for ac_exec_ext in '' $ac_executable_extensions; do 4123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4124 ac_cv_prog_CC="${ac_tool_prefix}clang" 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4126 break 2 4127 fi 4128done 4129 done 4130IFS=$as_save_IFS 4131 4132fi ;; 4133esac 4134fi 4135CC=$ac_cv_prog_CC 4136if test -n "$CC"; then 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4138printf "%s\n" "$CC" >&6; } 4139else 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4141printf "%s\n" "no" >&6; } 4142fi 4143 4144 4145fi 4146if test -z "$ac_cv_prog_CC"; then 4147 ac_ct_CC=$CC 4148 # Extract the first word of "clang", so it can be a program name with args. 4149set dummy clang; ac_word=$2 4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4151printf %s "checking for $ac_word... " >&6; } 4152if test ${ac_cv_prog_ac_ct_CC+y} 4153then : 4154 printf %s "(cached) " >&6 4155else case e in #( 4156 e) if test -n "$ac_ct_CC"; then 4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4158else 4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4160for as_dir in $PATH 4161do 4162 IFS=$as_save_IFS 4163 case $as_dir in #((( 4164 '') as_dir=./ ;; 4165 */) ;; 4166 *) as_dir=$as_dir/ ;; 4167 esac 4168 for ac_exec_ext in '' $ac_executable_extensions; do 4169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4170 ac_cv_prog_ac_ct_CC="clang" 4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4172 break 2 4173 fi 4174done 4175 done 4176IFS=$as_save_IFS 4177 4178fi ;; 4179esac 4180fi 4181ac_ct_CC=$ac_cv_prog_ac_ct_CC 4182if test -n "$ac_ct_CC"; then 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4184printf "%s\n" "$ac_ct_CC" >&6; } 4185else 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4187printf "%s\n" "no" >&6; } 4188fi 4189 4190 if test "x$ac_ct_CC" = x; then 4191 CC="" 4192 else 4193 case $cross_compiling:$ac_tool_warned in 4194yes:) 4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4196printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4197ac_tool_warned=yes ;; 4198esac 4199 CC=$ac_ct_CC 4200 fi 4201else 4202 CC="$ac_cv_prog_CC" 4203fi 4204 4205fi 4206 4207 4208test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4209printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4210as_fn_error $? "no acceptable C compiler found in \$PATH 4211See 'config.log' for more details" "$LINENO" 5; } 4212 4213# Provide some information about the compiler. 4214printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4215set X $ac_compile 4216ac_compiler=$2 4217for ac_option in --version -v -V -qversion -version; do 4218 { { ac_try="$ac_compiler $ac_option >&5" 4219case "(($ac_try" in 4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4221 *) ac_try_echo=$ac_try;; 4222esac 4223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4224printf "%s\n" "$ac_try_echo"; } >&5 4225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4226 ac_status=$? 4227 if test -s conftest.err; then 4228 sed '10a\ 4229... rest of stderr output deleted ... 4230 10q' conftest.err >conftest.er1 4231 cat conftest.er1 >&5 4232 fi 4233 rm -f conftest.er1 conftest.err 4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4235 test $ac_status = 0; } 4236done 4237 4238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240 4241int 4242main (void) 4243{ 4244 4245 ; 4246 return 0; 4247} 4248_ACEOF 4249ac_clean_files_save=$ac_clean_files 4250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4251# Try to create an executable without -o first, disregard a.out. 4252# It will help us diagnose broken compilers, and finding out an intuition 4253# of exeext. 4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4255printf %s "checking whether the C compiler works... " >&6; } 4256ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4257 4258# The possible output files: 4259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4260 4261ac_rmfiles= 4262for ac_file in $ac_files 4263do 4264 case $ac_file in 4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4266 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4267 esac 4268done 4269rm -f $ac_rmfiles 4270 4271if { { ac_try="$ac_link_default" 4272case "(($ac_try" in 4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4274 *) ac_try_echo=$ac_try;; 4275esac 4276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4277printf "%s\n" "$ac_try_echo"; } >&5 4278 (eval "$ac_link_default") 2>&5 4279 ac_status=$? 4280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4281 test $ac_status = 0; } 4282then : 4283 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4284# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4285# in a Makefile. We should not override ac_cv_exeext if it was cached, 4286# so that the user can short-circuit this test for compilers unknown to 4287# Autoconf. 4288for ac_file in $ac_files '' 4289do 4290 test -f "$ac_file" || continue 4291 case $ac_file in 4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4293 ;; 4294 [ab].out ) 4295 # We found the default executable, but exeext='' is most 4296 # certainly right. 4297 break;; 4298 *.* ) 4299 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4300 then :; else 4301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4302 fi 4303 # We set ac_cv_exeext here because the later test for it is not 4304 # safe: cross compilers may not add the suffix if given an '-o' 4305 # argument, so we may need to know it at that point already. 4306 # Even if this section looks crufty: it has the advantage of 4307 # actually working. 4308 break;; 4309 * ) 4310 break;; 4311 esac 4312done 4313test "$ac_cv_exeext" = no && ac_cv_exeext= 4314 4315else case e in #( 4316 e) ac_file='' ;; 4317esac 4318fi 4319if test -z "$ac_file" 4320then : 4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4322printf "%s\n" "no" >&6; } 4323printf "%s\n" "$as_me: failed program was:" >&5 4324sed 's/^/| /' conftest.$ac_ext >&5 4325 4326{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4327printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4328as_fn_error 77 "C compiler cannot create executables 4329See 'config.log' for more details" "$LINENO" 5; } 4330else case e in #( 4331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4332printf "%s\n" "yes" >&6; } ;; 4333esac 4334fi 4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4336printf %s "checking for C compiler default output file name... " >&6; } 4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4338printf "%s\n" "$ac_file" >&6; } 4339ac_exeext=$ac_cv_exeext 4340 4341rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4342ac_clean_files=$ac_clean_files_save 4343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4344printf %s "checking for suffix of executables... " >&6; } 4345if { { ac_try="$ac_link" 4346case "(($ac_try" in 4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4348 *) ac_try_echo=$ac_try;; 4349esac 4350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4351printf "%s\n" "$ac_try_echo"; } >&5 4352 (eval "$ac_link") 2>&5 4353 ac_status=$? 4354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4355 test $ac_status = 0; } 4356then : 4357 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4358# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4359# work properly (i.e., refer to 'conftest.exe'), while it won't with 4360# 'rm'. 4361for ac_file in conftest.exe conftest conftest.*; do 4362 test -f "$ac_file" || continue 4363 case $ac_file in 4364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4366 break;; 4367 * ) break;; 4368 esac 4369done 4370else case e in #( 4371 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4372printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4373as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4374See 'config.log' for more details" "$LINENO" 5; } ;; 4375esac 4376fi 4377rm -f conftest conftest$ac_cv_exeext 4378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4379printf "%s\n" "$ac_cv_exeext" >&6; } 4380 4381rm -f conftest.$ac_ext 4382EXEEXT=$ac_cv_exeext 4383ac_exeext=$EXEEXT 4384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386#include <stdio.h> 4387int 4388main (void) 4389{ 4390FILE *f = fopen ("conftest.out", "w"); 4391 if (!f) 4392 return 1; 4393 return ferror (f) || fclose (f) != 0; 4394 4395 ; 4396 return 0; 4397} 4398_ACEOF 4399ac_clean_files="$ac_clean_files conftest.out" 4400# Check that the compiler produces executables we can run. If not, either 4401# the compiler is broken, or we cross compile. 4402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4403printf %s "checking whether we are cross compiling... " >&6; } 4404if test "$cross_compiling" != yes; then 4405 { { ac_try="$ac_link" 4406case "(($ac_try" in 4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4408 *) ac_try_echo=$ac_try;; 4409esac 4410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4411printf "%s\n" "$ac_try_echo"; } >&5 4412 (eval "$ac_link") 2>&5 4413 ac_status=$? 4414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4415 test $ac_status = 0; } 4416 if { ac_try='./conftest$ac_cv_exeext' 4417 { { case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420esac 4421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4422printf "%s\n" "$ac_try_echo"; } >&5 4423 (eval "$ac_try") 2>&5 4424 ac_status=$? 4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4426 test $ac_status = 0; }; }; then 4427 cross_compiling=no 4428 else 4429 if test "$cross_compiling" = maybe; then 4430 cross_compiling=yes 4431 else 4432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4433printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4434as_fn_error 77 "cannot run C compiled programs. 4435If you meant to cross compile, use '--host'. 4436See 'config.log' for more details" "$LINENO" 5; } 4437 fi 4438 fi 4439fi 4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4441printf "%s\n" "$cross_compiling" >&6; } 4442 4443rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4444 conftest.o conftest.obj conftest.out 4445ac_clean_files=$ac_clean_files_save 4446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4447printf %s "checking for suffix of object files... " >&6; } 4448if test ${ac_cv_objext+y} 4449then : 4450 printf %s "(cached) " >&6 4451else case e in #( 4452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453/* end confdefs.h. */ 4454 4455int 4456main (void) 4457{ 4458 4459 ; 4460 return 0; 4461} 4462_ACEOF 4463rm -f conftest.o conftest.obj 4464if { { ac_try="$ac_compile" 4465case "(($ac_try" in 4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4467 *) ac_try_echo=$ac_try;; 4468esac 4469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4470printf "%s\n" "$ac_try_echo"; } >&5 4471 (eval "$ac_compile") 2>&5 4472 ac_status=$? 4473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4474 test $ac_status = 0; } 4475then : 4476 for ac_file in conftest.o conftest.obj conftest.*; do 4477 test -f "$ac_file" || continue; 4478 case $ac_file in 4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4481 break;; 4482 esac 4483done 4484else case e in #( 4485 e) printf "%s\n" "$as_me: failed program was:" >&5 4486sed 's/^/| /' conftest.$ac_ext >&5 4487 4488{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4489printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4490as_fn_error $? "cannot compute suffix of object files: cannot compile 4491See 'config.log' for more details" "$LINENO" 5; } ;; 4492esac 4493fi 4494rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4495esac 4496fi 4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4498printf "%s\n" "$ac_cv_objext" >&6; } 4499OBJEXT=$ac_cv_objext 4500ac_objext=$OBJEXT 4501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4502printf %s "checking whether the compiler supports GNU C... " >&6; } 4503if test ${ac_cv_c_compiler_gnu+y} 4504then : 4505 printf %s "(cached) " >&6 4506else case e in #( 4507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508/* end confdefs.h. */ 4509 4510int 4511main (void) 4512{ 4513#ifndef __GNUC__ 4514 choke me 4515#endif 4516 4517 ; 4518 return 0; 4519} 4520_ACEOF 4521if ac_fn_c_try_compile "$LINENO" 4522then : 4523 ac_compiler_gnu=yes 4524else case e in #( 4525 e) ac_compiler_gnu=no ;; 4526esac 4527fi 4528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4529ac_cv_c_compiler_gnu=$ac_compiler_gnu 4530 ;; 4531esac 4532fi 4533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4534printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4535ac_compiler_gnu=$ac_cv_c_compiler_gnu 4536 4537if test $ac_compiler_gnu = yes; then 4538 GCC=yes 4539else 4540 GCC= 4541fi 4542ac_test_CFLAGS=${CFLAGS+y} 4543ac_save_CFLAGS=$CFLAGS 4544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4545printf %s "checking whether $CC accepts -g... " >&6; } 4546if test ${ac_cv_prog_cc_g+y} 4547then : 4548 printf %s "(cached) " >&6 4549else case e in #( 4550 e) ac_save_c_werror_flag=$ac_c_werror_flag 4551 ac_c_werror_flag=yes 4552 ac_cv_prog_cc_g=no 4553 CFLAGS="-g" 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555/* end confdefs.h. */ 4556 4557int 4558main (void) 4559{ 4560 4561 ; 4562 return 0; 4563} 4564_ACEOF 4565if ac_fn_c_try_compile "$LINENO" 4566then : 4567 ac_cv_prog_cc_g=yes 4568else case e in #( 4569 e) CFLAGS="" 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571/* end confdefs.h. */ 4572 4573int 4574main (void) 4575{ 4576 4577 ; 4578 return 0; 4579} 4580_ACEOF 4581if ac_fn_c_try_compile "$LINENO" 4582then : 4583 4584else case e in #( 4585 e) ac_c_werror_flag=$ac_save_c_werror_flag 4586 CFLAGS="-g" 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589 4590int 4591main (void) 4592{ 4593 4594 ; 4595 return 0; 4596} 4597_ACEOF 4598if ac_fn_c_try_compile "$LINENO" 4599then : 4600 ac_cv_prog_cc_g=yes 4601fi 4602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4603esac 4604fi 4605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4606esac 4607fi 4608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4609 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4610esac 4611fi 4612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4613printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4614if test $ac_test_CFLAGS; then 4615 CFLAGS=$ac_save_CFLAGS 4616elif test $ac_cv_prog_cc_g = yes; then 4617 if test "$GCC" = yes; then 4618 CFLAGS="-g -O2" 4619 else 4620 CFLAGS="-g" 4621 fi 4622else 4623 if test "$GCC" = yes; then 4624 CFLAGS="-O2" 4625 else 4626 CFLAGS= 4627 fi 4628fi 4629ac_prog_cc_stdc=no 4630if test x$ac_prog_cc_stdc = xno 4631then : 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4633printf %s "checking for $CC option to enable C11 features... " >&6; } 4634if test ${ac_cv_prog_cc_c11+y} 4635then : 4636 printf %s "(cached) " >&6 4637else case e in #( 4638 e) ac_cv_prog_cc_c11=no 4639ac_save_CC=$CC 4640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641/* end confdefs.h. */ 4642$ac_c_conftest_c11_program 4643_ACEOF 4644for ac_arg in '' -std=gnu11 4645do 4646 CC="$ac_save_CC $ac_arg" 4647 if ac_fn_c_try_compile "$LINENO" 4648then : 4649 ac_cv_prog_cc_c11=$ac_arg 4650fi 4651rm -f core conftest.err conftest.$ac_objext conftest.beam 4652 test "x$ac_cv_prog_cc_c11" != "xno" && break 4653done 4654rm -f conftest.$ac_ext 4655CC=$ac_save_CC ;; 4656esac 4657fi 4658 4659if test "x$ac_cv_prog_cc_c11" = xno 4660then : 4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4662printf "%s\n" "unsupported" >&6; } 4663else case e in #( 4664 e) if test "x$ac_cv_prog_cc_c11" = x 4665then : 4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4667printf "%s\n" "none needed" >&6; } 4668else case e in #( 4669 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4670printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4671 CC="$CC $ac_cv_prog_cc_c11" ;; 4672esac 4673fi 4674 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4675 ac_prog_cc_stdc=c11 ;; 4676esac 4677fi 4678fi 4679if test x$ac_prog_cc_stdc = xno 4680then : 4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4682printf %s "checking for $CC option to enable C99 features... " >&6; } 4683if test ${ac_cv_prog_cc_c99+y} 4684then : 4685 printf %s "(cached) " >&6 4686else case e in #( 4687 e) ac_cv_prog_cc_c99=no 4688ac_save_CC=$CC 4689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691$ac_c_conftest_c99_program 4692_ACEOF 4693for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4694do 4695 CC="$ac_save_CC $ac_arg" 4696 if ac_fn_c_try_compile "$LINENO" 4697then : 4698 ac_cv_prog_cc_c99=$ac_arg 4699fi 4700rm -f core conftest.err conftest.$ac_objext conftest.beam 4701 test "x$ac_cv_prog_cc_c99" != "xno" && break 4702done 4703rm -f conftest.$ac_ext 4704CC=$ac_save_CC ;; 4705esac 4706fi 4707 4708if test "x$ac_cv_prog_cc_c99" = xno 4709then : 4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4711printf "%s\n" "unsupported" >&6; } 4712else case e in #( 4713 e) if test "x$ac_cv_prog_cc_c99" = x 4714then : 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4716printf "%s\n" "none needed" >&6; } 4717else case e in #( 4718 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4719printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4720 CC="$CC $ac_cv_prog_cc_c99" ;; 4721esac 4722fi 4723 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4724 ac_prog_cc_stdc=c99 ;; 4725esac 4726fi 4727fi 4728if test x$ac_prog_cc_stdc = xno 4729then : 4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4731printf %s "checking for $CC option to enable C89 features... " >&6; } 4732if test ${ac_cv_prog_cc_c89+y} 4733then : 4734 printf %s "(cached) " >&6 4735else case e in #( 4736 e) ac_cv_prog_cc_c89=no 4737ac_save_CC=$CC 4738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740$ac_c_conftest_c89_program 4741_ACEOF 4742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4743do 4744 CC="$ac_save_CC $ac_arg" 4745 if ac_fn_c_try_compile "$LINENO" 4746then : 4747 ac_cv_prog_cc_c89=$ac_arg 4748fi 4749rm -f core conftest.err conftest.$ac_objext conftest.beam 4750 test "x$ac_cv_prog_cc_c89" != "xno" && break 4751done 4752rm -f conftest.$ac_ext 4753CC=$ac_save_CC ;; 4754esac 4755fi 4756 4757if test "x$ac_cv_prog_cc_c89" = xno 4758then : 4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4760printf "%s\n" "unsupported" >&6; } 4761else case e in #( 4762 e) if test "x$ac_cv_prog_cc_c89" = x 4763then : 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4765printf "%s\n" "none needed" >&6; } 4766else case e in #( 4767 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4768printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4769 CC="$CC $ac_cv_prog_cc_c89" ;; 4770esac 4771fi 4772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4773 ac_prog_cc_stdc=c89 ;; 4774esac 4775fi 4776fi 4777 4778ac_ext=c 4779ac_cpp='$CPP $CPPFLAGS' 4780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4782ac_compiler_gnu=$ac_cv_c_compiler_gnu 4783 4784 4785 ac_ext=c 4786ac_cpp='$CPP $CPPFLAGS' 4787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4789ac_compiler_gnu=$ac_cv_c_compiler_gnu 4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4791printf %s "checking whether $CC understands -c and -o together... " >&6; } 4792if test ${am_cv_prog_cc_c_o+y} 4793then : 4794 printf %s "(cached) " >&6 4795else case e in #( 4796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798 4799int 4800main (void) 4801{ 4802 4803 ; 4804 return 0; 4805} 4806_ACEOF 4807 # Make sure it works both with $CC and with simple cc. 4808 # Following AC_PROG_CC_C_O, we do the test twice because some 4809 # compilers refuse to overwrite an existing .o file with -o, 4810 # though they will create one. 4811 am_cv_prog_cc_c_o=yes 4812 for am_i in 1 2; do 4813 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4814 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4815 ac_status=$? 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); } \ 4818 && test -f conftest2.$ac_objext; then 4819 : OK 4820 else 4821 am_cv_prog_cc_c_o=no 4822 break 4823 fi 4824 done 4825 rm -f core conftest* 4826 unset am_i ;; 4827esac 4828fi 4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4830printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4831if test "$am_cv_prog_cc_c_o" != yes; then 4832 # Losing compiler, so override with the script. 4833 # FIXME: It is wrong to rewrite CC. 4834 # But if we don't then we get into trouble of one sort or another. 4835 # A longer-term fix would be to have automake use am__CC in this case, 4836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4837 CC="$am_aux_dir/compile $CC" 4838fi 4839ac_ext=c 4840ac_cpp='$CPP $CPPFLAGS' 4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4843ac_compiler_gnu=$ac_cv_c_compiler_gnu 4844 4845 4846depcc="$CC" am_compiler_list= 4847 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4849printf %s "checking dependency style of $depcc... " >&6; } 4850if test ${am_cv_CC_dependencies_compiler_type+y} 4851then : 4852 printf %s "(cached) " >&6 4853else case e in #( 4854 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4855 # We make a subdir and do the tests there. Otherwise we can end up 4856 # making bogus files that we don't know about and never remove. For 4857 # instance it was reported that on HP-UX the gcc test will end up 4858 # making a dummy file named 'D' -- because '-MD' means "put the output 4859 # in D". 4860 rm -rf conftest.dir 4861 mkdir conftest.dir 4862 # Copy depcomp to subdir because otherwise we won't find it if we're 4863 # using a relative directory. 4864 cp "$am_depcomp" conftest.dir 4865 cd conftest.dir 4866 # We will build objects and dependencies in a subdirectory because 4867 # it helps to detect inapplicable dependency modes. For instance 4868 # both Tru64's cc and ICC support -MD to output dependencies as a 4869 # side effect of compilation, but ICC will put the dependencies in 4870 # the current directory while Tru64 will put them in the object 4871 # directory. 4872 mkdir sub 4873 4874 am_cv_CC_dependencies_compiler_type=none 4875 if test "$am_compiler_list" = ""; then 4876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4877 fi 4878 am__universal=false 4879 case " $depcc " in #( 4880 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4881 esac 4882 4883 for depmode in $am_compiler_list; do 4884 # Setup a source with many dependencies, because some compilers 4885 # like to wrap large dependency lists on column 80 (with \), and 4886 # we should not choose a depcomp mode which is confused by this. 4887 # 4888 # We need to recreate these files for each test, as the compiler may 4889 # overwrite some of them when testing with obscure command lines. 4890 # This happens at least with the AIX C compiler. 4891 : > sub/conftest.c 4892 for i in 1 2 3 4 5 6; do 4893 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4894 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4895 # Solaris 10 /bin/sh. 4896 echo '/* dummy */' > sub/conftst$i.h 4897 done 4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4899 4900 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4901 # mode. It turns out that the SunPro C++ compiler does not properly 4902 # handle '-M -o', and we need to detect this. Also, some Intel 4903 # versions had trouble with output in subdirs. 4904 am__obj=sub/conftest.${OBJEXT-o} 4905 am__minus_obj="-o $am__obj" 4906 case $depmode in 4907 gcc) 4908 # This depmode causes a compiler race in universal mode. 4909 test "$am__universal" = false || continue 4910 ;; 4911 nosideeffect) 4912 # After this tag, mechanisms are not by side-effect, so they'll 4913 # only be used when explicitly requested. 4914 if test "x$enable_dependency_tracking" = xyes; then 4915 continue 4916 else 4917 break 4918 fi 4919 ;; 4920 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4921 # This compiler won't grok '-c -o', but also, the minuso test has 4922 # not run yet. These depmodes are late enough in the game, and 4923 # so weak that their functioning should not be impacted. 4924 am__obj=conftest.${OBJEXT-o} 4925 am__minus_obj= 4926 ;; 4927 none) break ;; 4928 esac 4929 if depmode=$depmode \ 4930 source=sub/conftest.c object=$am__obj \ 4931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4933 >/dev/null 2>conftest.err && 4934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4938 # icc doesn't choke on unknown options, it will just issue warnings 4939 # or remarks (even with -Werror). So we grep stderr for any message 4940 # that says an option was ignored or not supported. 4941 # When given -MP, icc 7.0 and 7.1 complain thus: 4942 # icc: Command line warning: ignoring option '-M'; no argument required 4943 # The diagnosis changed in icc 8.0: 4944 # icc: Command line remark: option '-MP' not supported 4945 if (grep 'ignoring option' conftest.err || 4946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4947 am_cv_CC_dependencies_compiler_type=$depmode 4948 break 4949 fi 4950 fi 4951 done 4952 4953 cd .. 4954 rm -rf conftest.dir 4955else 4956 am_cv_CC_dependencies_compiler_type=none 4957fi 4958 ;; 4959esac 4960fi 4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4962printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4963CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4964 4965 if 4966 test "x$enable_dependency_tracking" != xno \ 4967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4968 am__fastdepCC_TRUE= 4969 am__fastdepCC_FALSE='#' 4970else 4971 am__fastdepCC_TRUE='#' 4972 am__fastdepCC_FALSE= 4973fi 4974 4975 4976 4977ac_header= ac_cache= 4978for ac_item in $ac_header_c_list 4979do 4980 if test $ac_cache; then 4981 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4982 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4983 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4984 fi 4985 ac_header= ac_cache= 4986 elif test $ac_header; then 4987 ac_cache=$ac_item 4988 else 4989 ac_header=$ac_item 4990 fi 4991done 4992 4993 4994 4995 4996 4997 4998 4999 5000if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5001then : 5002 5003printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5004 5005fi 5006 5007 5008 5009 5010 5011 5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5013printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5014if test ${ac_cv_safe_to_define___extensions__+y} 5015then : 5016 printf %s "(cached) " >&6 5017else case e in #( 5018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020 5021# define __EXTENSIONS__ 1 5022 $ac_includes_default 5023int 5024main (void) 5025{ 5026 5027 ; 5028 return 0; 5029} 5030_ACEOF 5031if ac_fn_c_try_compile "$LINENO" 5032then : 5033 ac_cv_safe_to_define___extensions__=yes 5034else case e in #( 5035 e) ac_cv_safe_to_define___extensions__=no ;; 5036esac 5037fi 5038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5039esac 5040fi 5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5042printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5043 5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5045printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5046if test ${ac_cv_should_define__xopen_source+y} 5047then : 5048 printf %s "(cached) " >&6 5049else case e in #( 5050 e) ac_cv_should_define__xopen_source=no 5051 if test $ac_cv_header_wchar_h = yes 5052then : 5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055 5056 #include <wchar.h> 5057 mbstate_t x; 5058int 5059main (void) 5060{ 5061 5062 ; 5063 return 0; 5064} 5065_ACEOF 5066if ac_fn_c_try_compile "$LINENO" 5067then : 5068 5069else case e in #( 5070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072 5073 #define _XOPEN_SOURCE 500 5074 #include <wchar.h> 5075 mbstate_t x; 5076int 5077main (void) 5078{ 5079 5080 ; 5081 return 0; 5082} 5083_ACEOF 5084if ac_fn_c_try_compile "$LINENO" 5085then : 5086 ac_cv_should_define__xopen_source=yes 5087fi 5088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5089esac 5090fi 5091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5092fi ;; 5093esac 5094fi 5095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5096printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5097 5098 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5099 5100 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5101 5102 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5103 5104 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5105 5106 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5107 5108 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5109 5110 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5111 5112 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5113 5114 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5115 5116 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5117 5118 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5119 5120 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5121 5122 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5123 5124 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5125 5126 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5127 5128 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5129 5130 if test $ac_cv_header_minix_config_h = yes 5131then : 5132 MINIX=yes 5133 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5134 5135 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5136 5137 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5138 5139else case e in #( 5140 e) MINIX= ;; 5141esac 5142fi 5143 if test $ac_cv_safe_to_define___extensions__ = yes 5144then : 5145 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5146 5147fi 5148 if test $ac_cv_should_define__xopen_source = yes 5149then : 5150 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5151 5152fi 5153 5154 5155# Initialize libtool 5156case `pwd` in 5157 *\ * | *\ *) 5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5159printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5160esac 5161 5162 5163 5164macro_version='2.4.7' 5165macro_revision='2.4.7' 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180ltmain=$ac_aux_dir/ltmain.sh 5181 5182 5183 5184 # Make sure we can run config.sub. 5185$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5186 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5187 5188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5189printf %s "checking build system type... " >&6; } 5190if test ${ac_cv_build+y} 5191then : 5192 printf %s "(cached) " >&6 5193else case e in #( 5194 e) ac_build_alias=$build_alias 5195test "x$ac_build_alias" = x && 5196 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5197test "x$ac_build_alias" = x && 5198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5199ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5200 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5201 ;; 5202esac 5203fi 5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5205printf "%s\n" "$ac_cv_build" >&6; } 5206case $ac_cv_build in 5207*-*-*) ;; 5208*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5209esac 5210build=$ac_cv_build 5211ac_save_IFS=$IFS; IFS='-' 5212set x $ac_cv_build 5213shift 5214build_cpu=$1 5215build_vendor=$2 5216shift; shift 5217# Remember, the first character of IFS is used to create $*, 5218# except with old shells: 5219build_os=$* 5220IFS=$ac_save_IFS 5221case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5222 5223 5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5225printf %s "checking host system type... " >&6; } 5226if test ${ac_cv_host+y} 5227then : 5228 printf %s "(cached) " >&6 5229else case e in #( 5230 e) if test "x$host_alias" = x; then 5231 ac_cv_host=$ac_cv_build 5232else 5233 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5234 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5235fi 5236 ;; 5237esac 5238fi 5239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5240printf "%s\n" "$ac_cv_host" >&6; } 5241case $ac_cv_host in 5242*-*-*) ;; 5243*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5244esac 5245host=$ac_cv_host 5246ac_save_IFS=$IFS; IFS='-' 5247set x $ac_cv_host 5248shift 5249host_cpu=$1 5250host_vendor=$2 5251shift; shift 5252# Remember, the first character of IFS is used to create $*, 5253# except with old shells: 5254host_os=$* 5255IFS=$ac_save_IFS 5256case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5257 5258 5259# Backslashify metacharacters that are still active within 5260# double-quoted strings. 5261sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5262 5263# Same as above, but do not quote variable references. 5264double_quote_subst='s/\(["`\\]\)/\\\1/g' 5265 5266# Sed substitution to delay expansion of an escaped shell variable in a 5267# double_quote_subst'ed string. 5268delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5269 5270# Sed substitution to delay expansion of an escaped single quote. 5271delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5272 5273# Sed substitution to avoid accidental globbing in evaled expressions 5274no_glob_subst='s/\*/\\\*/g' 5275 5276ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5277ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5278ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5279 5280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5281printf %s "checking how to print strings... " >&6; } 5282# Test print first, because it will be a builtin if present. 5283if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5285 ECHO='print -r --' 5286elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5287 ECHO='printf %s\n' 5288else 5289 # Use this function as a fallback that always works. 5290 func_fallback_echo () 5291 { 5292 eval 'cat <<_LTECHO_EOF 5293$1 5294_LTECHO_EOF' 5295 } 5296 ECHO='func_fallback_echo' 5297fi 5298 5299# func_echo_all arg... 5300# Invoke $ECHO with all args, space-separated. 5301func_echo_all () 5302{ 5303 $ECHO "" 5304} 5305 5306case $ECHO in 5307 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5308printf "%s\n" "printf" >&6; } ;; 5309 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5310printf "%s\n" "print -r" >&6; } ;; 5311 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5312printf "%s\n" "cat" >&6; } ;; 5313esac 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5329printf %s "checking for a sed that does not truncate output... " >&6; } 5330if test ${ac_cv_path_SED+y} 5331then : 5332 printf %s "(cached) " >&6 5333else case e in #( 5334 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5335 for ac_i in 1 2 3 4 5 6 7; do 5336 ac_script="$ac_script$as_nl$ac_script" 5337 done 5338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5339 { ac_script=; unset ac_script;} 5340 if test -z "$SED"; then 5341 ac_path_SED_found=false 5342 # Loop through the user's path and test for each of PROGNAME-LIST 5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344for as_dir in $PATH 5345do 5346 IFS=$as_save_IFS 5347 case $as_dir in #((( 5348 '') as_dir=./ ;; 5349 */) ;; 5350 *) as_dir=$as_dir/ ;; 5351 esac 5352 for ac_prog in sed gsed 5353 do 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5356 as_fn_executable_p "$ac_path_SED" || continue 5357# Check for GNU ac_path_SED and select it if it is found. 5358 # Check for GNU $ac_path_SED 5359case `"$ac_path_SED" --version 2>&1` in #( 5360*GNU*) 5361 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5362#( 5363*) 5364 ac_count=0 5365 printf %s 0123456789 >"conftest.in" 5366 while : 5367 do 5368 cat "conftest.in" "conftest.in" >"conftest.tmp" 5369 mv "conftest.tmp" "conftest.in" 5370 cp "conftest.in" "conftest.nl" 5371 printf "%s\n" '' >> "conftest.nl" 5372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5374 as_fn_arith $ac_count + 1 && ac_count=$as_val 5375 if test $ac_count -gt ${ac_path_SED_max-0}; then 5376 # Best one so far, save it but keep looking for a better one 5377 ac_cv_path_SED="$ac_path_SED" 5378 ac_path_SED_max=$ac_count 5379 fi 5380 # 10*(2^10) chars as input seems more than enough 5381 test $ac_count -gt 10 && break 5382 done 5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5384esac 5385 5386 $ac_path_SED_found && break 3 5387 done 5388 done 5389 done 5390IFS=$as_save_IFS 5391 if test -z "$ac_cv_path_SED"; then 5392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5393 fi 5394else 5395 ac_cv_path_SED=$SED 5396fi 5397 ;; 5398esac 5399fi 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5401printf "%s\n" "$ac_cv_path_SED" >&6; } 5402 SED="$ac_cv_path_SED" 5403 rm -f conftest.sed 5404 5405test -z "$SED" && SED=sed 5406Xsed="$SED -e 1s/^X//" 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5419printf %s "checking for grep that handles long lines and -e... " >&6; } 5420if test ${ac_cv_path_GREP+y} 5421then : 5422 printf %s "(cached) " >&6 5423else case e in #( 5424 e) if test -z "$GREP"; then 5425 ac_path_GREP_found=false 5426 # Loop through the user's path and test for each of PROGNAME-LIST 5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5429do 5430 IFS=$as_save_IFS 5431 case $as_dir in #((( 5432 '') as_dir=./ ;; 5433 */) ;; 5434 *) as_dir=$as_dir/ ;; 5435 esac 5436 for ac_prog in grep ggrep 5437 do 5438 for ac_exec_ext in '' $ac_executable_extensions; do 5439 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5440 as_fn_executable_p "$ac_path_GREP" || continue 5441# Check for GNU ac_path_GREP and select it if it is found. 5442 # Check for GNU $ac_path_GREP 5443case `"$ac_path_GREP" --version 2>&1` in #( 5444*GNU*) 5445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5446#( 5447*) 5448 ac_count=0 5449 printf %s 0123456789 >"conftest.in" 5450 while : 5451 do 5452 cat "conftest.in" "conftest.in" >"conftest.tmp" 5453 mv "conftest.tmp" "conftest.in" 5454 cp "conftest.in" "conftest.nl" 5455 printf "%s\n" 'GREP' >> "conftest.nl" 5456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5458 as_fn_arith $ac_count + 1 && ac_count=$as_val 5459 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5460 # Best one so far, save it but keep looking for a better one 5461 ac_cv_path_GREP="$ac_path_GREP" 5462 ac_path_GREP_max=$ac_count 5463 fi 5464 # 10*(2^10) chars as input seems more than enough 5465 test $ac_count -gt 10 && break 5466 done 5467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5468esac 5469 5470 $ac_path_GREP_found && break 3 5471 done 5472 done 5473 done 5474IFS=$as_save_IFS 5475 if test -z "$ac_cv_path_GREP"; then 5476 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5477 fi 5478else 5479 ac_cv_path_GREP=$GREP 5480fi 5481 ;; 5482esac 5483fi 5484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5485printf "%s\n" "$ac_cv_path_GREP" >&6; } 5486 GREP="$ac_cv_path_GREP" 5487 5488 5489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5490printf %s "checking for egrep... " >&6; } 5491if test ${ac_cv_path_EGREP+y} 5492then : 5493 printf %s "(cached) " >&6 5494else case e in #( 5495 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5496 then ac_cv_path_EGREP="$GREP -E" 5497 else 5498 if test -z "$EGREP"; then 5499 ac_path_EGREP_found=false 5500 # Loop through the user's path and test for each of PROGNAME-LIST 5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5503do 5504 IFS=$as_save_IFS 5505 case $as_dir in #((( 5506 '') as_dir=./ ;; 5507 */) ;; 5508 *) as_dir=$as_dir/ ;; 5509 esac 5510 for ac_prog in egrep 5511 do 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5514 as_fn_executable_p "$ac_path_EGREP" || continue 5515# Check for GNU ac_path_EGREP and select it if it is found. 5516 # Check for GNU $ac_path_EGREP 5517case `"$ac_path_EGREP" --version 2>&1` in #( 5518*GNU*) 5519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5520#( 5521*) 5522 ac_count=0 5523 printf %s 0123456789 >"conftest.in" 5524 while : 5525 do 5526 cat "conftest.in" "conftest.in" >"conftest.tmp" 5527 mv "conftest.tmp" "conftest.in" 5528 cp "conftest.in" "conftest.nl" 5529 printf "%s\n" 'EGREP' >> "conftest.nl" 5530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5532 as_fn_arith $ac_count + 1 && ac_count=$as_val 5533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5534 # Best one so far, save it but keep looking for a better one 5535 ac_cv_path_EGREP="$ac_path_EGREP" 5536 ac_path_EGREP_max=$ac_count 5537 fi 5538 # 10*(2^10) chars as input seems more than enough 5539 test $ac_count -gt 10 && break 5540 done 5541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5542esac 5543 5544 $ac_path_EGREP_found && break 3 5545 done 5546 done 5547 done 5548IFS=$as_save_IFS 5549 if test -z "$ac_cv_path_EGREP"; then 5550 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5551 fi 5552else 5553 ac_cv_path_EGREP=$EGREP 5554fi 5555 5556 fi ;; 5557esac 5558fi 5559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5560printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5561 EGREP="$ac_cv_path_EGREP" 5562 5563 EGREP_TRADITIONAL=$EGREP 5564 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5565 5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5567printf %s "checking for fgrep... " >&6; } 5568if test ${ac_cv_path_FGREP+y} 5569then : 5570 printf %s "(cached) " >&6 5571else case e in #( 5572 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5573 then ac_cv_path_FGREP="$GREP -F" 5574 else 5575 if test -z "$FGREP"; then 5576 ac_path_FGREP_found=false 5577 # Loop through the user's path and test for each of PROGNAME-LIST 5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5580do 5581 IFS=$as_save_IFS 5582 case $as_dir in #((( 5583 '') as_dir=./ ;; 5584 */) ;; 5585 *) as_dir=$as_dir/ ;; 5586 esac 5587 for ac_prog in fgrep 5588 do 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5591 as_fn_executable_p "$ac_path_FGREP" || continue 5592# Check for GNU ac_path_FGREP and select it if it is found. 5593 # Check for GNU $ac_path_FGREP 5594case `"$ac_path_FGREP" --version 2>&1` in #( 5595*GNU*) 5596 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5597#( 5598*) 5599 ac_count=0 5600 printf %s 0123456789 >"conftest.in" 5601 while : 5602 do 5603 cat "conftest.in" "conftest.in" >"conftest.tmp" 5604 mv "conftest.tmp" "conftest.in" 5605 cp "conftest.in" "conftest.nl" 5606 printf "%s\n" 'FGREP' >> "conftest.nl" 5607 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5609 as_fn_arith $ac_count + 1 && ac_count=$as_val 5610 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5611 # Best one so far, save it but keep looking for a better one 5612 ac_cv_path_FGREP="$ac_path_FGREP" 5613 ac_path_FGREP_max=$ac_count 5614 fi 5615 # 10*(2^10) chars as input seems more than enough 5616 test $ac_count -gt 10 && break 5617 done 5618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5619esac 5620 5621 $ac_path_FGREP_found && break 3 5622 done 5623 done 5624 done 5625IFS=$as_save_IFS 5626 if test -z "$ac_cv_path_FGREP"; then 5627 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5628 fi 5629else 5630 ac_cv_path_FGREP=$FGREP 5631fi 5632 5633 fi ;; 5634esac 5635fi 5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5637printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5638 FGREP="$ac_cv_path_FGREP" 5639 5640 5641test -z "$GREP" && GREP=grep 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661# Check whether --with-gnu-ld was given. 5662if test ${with_gnu_ld+y} 5663then : 5664 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5665else case e in #( 5666 e) with_gnu_ld=no ;; 5667esac 5668fi 5669 5670ac_prog=ld 5671if test yes = "$GCC"; then 5672 # Check if gcc -print-prog-name=ld gives a path. 5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5674printf %s "checking for ld used by $CC... " >&6; } 5675 case $host in 5676 *-*-mingw*) 5677 # gcc leaves a trailing carriage return, which upsets mingw 5678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5679 *) 5680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5681 esac 5682 case $ac_prog in 5683 # Accept absolute paths. 5684 [\\/]* | ?:[\\/]*) 5685 re_direlt='/[^/][^/]*/\.\./' 5686 # Canonicalize the pathname of ld 5687 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5688 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5689 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5690 done 5691 test -z "$LD" && LD=$ac_prog 5692 ;; 5693 "") 5694 # If it fails, then pretend we aren't using GCC. 5695 ac_prog=ld 5696 ;; 5697 *) 5698 # If it is relative, then search for the first ld in PATH. 5699 with_gnu_ld=unknown 5700 ;; 5701 esac 5702elif test yes = "$with_gnu_ld"; then 5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5704printf %s "checking for GNU ld... " >&6; } 5705else 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5707printf %s "checking for non-GNU ld... " >&6; } 5708fi 5709if test ${lt_cv_path_LD+y} 5710then : 5711 printf %s "(cached) " >&6 5712else case e in #( 5713 e) if test -z "$LD"; then 5714 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5715 for ac_dir in $PATH; do 5716 IFS=$lt_save_ifs 5717 test -z "$ac_dir" && ac_dir=. 5718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5719 lt_cv_path_LD=$ac_dir/$ac_prog 5720 # Check to see if the program is GNU ld. I'd rather use --version, 5721 # but apparently some variants of GNU ld only accept -v. 5722 # Break only if it was the GNU/non-GNU ld that we prefer. 5723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5724 *GNU* | *'with BFD'*) 5725 test no != "$with_gnu_ld" && break 5726 ;; 5727 *) 5728 test yes != "$with_gnu_ld" && break 5729 ;; 5730 esac 5731 fi 5732 done 5733 IFS=$lt_save_ifs 5734else 5735 lt_cv_path_LD=$LD # Let the user override the test with a path. 5736fi ;; 5737esac 5738fi 5739 5740LD=$lt_cv_path_LD 5741if test -n "$LD"; then 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5743printf "%s\n" "$LD" >&6; } 5744else 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5746printf "%s\n" "no" >&6; } 5747fi 5748test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5750printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5751if test ${lt_cv_prog_gnu_ld+y} 5752then : 5753 printf %s "(cached) " >&6 5754else case e in #( 5755 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5756case `$LD -v 2>&1 </dev/null` in 5757*GNU* | *'with BFD'*) 5758 lt_cv_prog_gnu_ld=yes 5759 ;; 5760*) 5761 lt_cv_prog_gnu_ld=no 5762 ;; 5763esac ;; 5764esac 5765fi 5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5767printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5768with_gnu_ld=$lt_cv_prog_gnu_ld 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5779printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5780if test ${lt_cv_path_NM+y} 5781then : 5782 printf %s "(cached) " >&6 5783else case e in #( 5784 e) if test -n "$NM"; then 5785 # Let the user override the test. 5786 lt_cv_path_NM=$NM 5787else 5788 lt_nm_to_check=${ac_tool_prefix}nm 5789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5790 lt_nm_to_check="$lt_nm_to_check nm" 5791 fi 5792 for lt_tmp_nm in $lt_nm_to_check; do 5793 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5795 IFS=$lt_save_ifs 5796 test -z "$ac_dir" && ac_dir=. 5797 tmp_nm=$ac_dir/$lt_tmp_nm 5798 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5799 # Check to see if the nm accepts a BSD-compat flag. 5800 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5801 # nm: unknown option "B" ignored 5802 # Tru64's nm complains that /dev/null is an invalid object file 5803 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5804 case $build_os in 5805 mingw*) lt_bad_file=conftest.nm/nofile ;; 5806 *) lt_bad_file=/dev/null ;; 5807 esac 5808 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5809 *$lt_bad_file* | *'Invalid file or object type'*) 5810 lt_cv_path_NM="$tmp_nm -B" 5811 break 2 5812 ;; 5813 *) 5814 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5815 */dev/null*) 5816 lt_cv_path_NM="$tmp_nm -p" 5817 break 2 5818 ;; 5819 *) 5820 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5821 continue # so that we can try to find one that supports BSD flags 5822 ;; 5823 esac 5824 ;; 5825 esac 5826 fi 5827 done 5828 IFS=$lt_save_ifs 5829 done 5830 : ${lt_cv_path_NM=no} 5831fi ;; 5832esac 5833fi 5834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5835printf "%s\n" "$lt_cv_path_NM" >&6; } 5836if test no != "$lt_cv_path_NM"; then 5837 NM=$lt_cv_path_NM 5838else 5839 # Didn't find any BSD compatible name lister, look for dumpbin. 5840 if test -n "$DUMPBIN"; then : 5841 # Let the user override the test. 5842 else 5843 if test -n "$ac_tool_prefix"; then 5844 for ac_prog in dumpbin "link -dump" 5845 do 5846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5847set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849printf %s "checking for $ac_word... " >&6; } 5850if test ${ac_cv_prog_DUMPBIN+y} 5851then : 5852 printf %s "(cached) " >&6 5853else case e in #( 5854 e) if test -n "$DUMPBIN"; then 5855 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5856else 5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858for as_dir in $PATH 5859do 5860 IFS=$as_save_IFS 5861 case $as_dir in #((( 5862 '') as_dir=./ ;; 5863 */) ;; 5864 *) as_dir=$as_dir/ ;; 5865 esac 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5868 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873 done 5874IFS=$as_save_IFS 5875 5876fi ;; 5877esac 5878fi 5879DUMPBIN=$ac_cv_prog_DUMPBIN 5880if test -n "$DUMPBIN"; then 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5882printf "%s\n" "$DUMPBIN" >&6; } 5883else 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885printf "%s\n" "no" >&6; } 5886fi 5887 5888 5889 test -n "$DUMPBIN" && break 5890 done 5891fi 5892if test -z "$DUMPBIN"; then 5893 ac_ct_DUMPBIN=$DUMPBIN 5894 for ac_prog in dumpbin "link -dump" 5895do 5896 # Extract the first word of "$ac_prog", so it can be a program name with args. 5897set dummy $ac_prog; ac_word=$2 5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899printf %s "checking for $ac_word... " >&6; } 5900if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5901then : 5902 printf %s "(cached) " >&6 5903else case e in #( 5904 e) if test -n "$ac_ct_DUMPBIN"; then 5905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5906else 5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH 5909do 5910 IFS=$as_save_IFS 5911 case $as_dir in #((( 5912 '') as_dir=./ ;; 5913 */) ;; 5914 *) as_dir=$as_dir/ ;; 5915 esac 5916 for ac_exec_ext in '' $ac_executable_extensions; do 5917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5918 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5920 break 2 5921 fi 5922done 5923 done 5924IFS=$as_save_IFS 5925 5926fi ;; 5927esac 5928fi 5929ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5930if test -n "$ac_ct_DUMPBIN"; then 5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5932printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5933else 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5935printf "%s\n" "no" >&6; } 5936fi 5937 5938 5939 test -n "$ac_ct_DUMPBIN" && break 5940done 5941 5942 if test "x$ac_ct_DUMPBIN" = x; then 5943 DUMPBIN=":" 5944 else 5945 case $cross_compiling:$ac_tool_warned in 5946yes:) 5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5949ac_tool_warned=yes ;; 5950esac 5951 DUMPBIN=$ac_ct_DUMPBIN 5952 fi 5953fi 5954 5955 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5956 *COFF*) 5957 DUMPBIN="$DUMPBIN -symbols -headers" 5958 ;; 5959 *) 5960 DUMPBIN=: 5961 ;; 5962 esac 5963 fi 5964 5965 if test : != "$DUMPBIN"; then 5966 NM=$DUMPBIN 5967 fi 5968fi 5969test -z "$NM" && NM=nm 5970 5971 5972 5973 5974 5975 5976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5977printf %s "checking the name lister ($NM) interface... " >&6; } 5978if test ${lt_cv_nm_interface+y} 5979then : 5980 printf %s "(cached) " >&6 5981else case e in #( 5982 e) lt_cv_nm_interface="BSD nm" 5983 echo "int some_variable = 0;" > conftest.$ac_ext 5984 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5985 (eval "$ac_compile" 2>conftest.err) 5986 cat conftest.err >&5 5987 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5988 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5989 cat conftest.err >&5 5990 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5991 cat conftest.out >&5 5992 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5993 lt_cv_nm_interface="MS dumpbin" 5994 fi 5995 rm -f conftest* ;; 5996esac 5997fi 5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5999printf "%s\n" "$lt_cv_nm_interface" >&6; } 6000 6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6002printf %s "checking whether ln -s works... " >&6; } 6003LN_S=$as_ln_s 6004if test "$LN_S" = "ln -s"; then 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6006printf "%s\n" "yes" >&6; } 6007else 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6009printf "%s\n" "no, using $LN_S" >&6; } 6010fi 6011 6012# find the maximum length of command line arguments 6013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6014printf %s "checking the maximum length of command line arguments... " >&6; } 6015if test ${lt_cv_sys_max_cmd_len+y} 6016then : 6017 printf %s "(cached) " >&6 6018else case e in #( 6019 e) i=0 6020 teststring=ABCD 6021 6022 case $build_os in 6023 msdosdjgpp*) 6024 # On DJGPP, this test can blow up pretty badly due to problems in libc 6025 # (any single argument exceeding 2000 bytes causes a buffer overrun 6026 # during glob expansion). Even if it were fixed, the result of this 6027 # check would be larger than it should be. 6028 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6029 ;; 6030 6031 gnu*) 6032 # Under GNU Hurd, this test is not required because there is 6033 # no limit to the length of command line arguments. 6034 # Libtool will interpret -1 as no limit whatsoever 6035 lt_cv_sys_max_cmd_len=-1; 6036 ;; 6037 6038 cygwin* | mingw* | cegcc*) 6039 # On Win9x/ME, this test blows up -- it succeeds, but takes 6040 # about 5 minutes as the teststring grows exponentially. 6041 # Worse, since 9x/ME are not pre-emptively multitasking, 6042 # you end up with a "frozen" computer, even though with patience 6043 # the test eventually succeeds (with a max line length of 256k). 6044 # Instead, let's just punt: use the minimum linelength reported by 6045 # all of the supported platforms: 8192 (on NT/2K/XP). 6046 lt_cv_sys_max_cmd_len=8192; 6047 ;; 6048 6049 mint*) 6050 # On MiNT this can take a long time and run out of memory. 6051 lt_cv_sys_max_cmd_len=8192; 6052 ;; 6053 6054 amigaos*) 6055 # On AmigaOS with pdksh, this test takes hours, literally. 6056 # So we just punt and use a minimum line length of 8192. 6057 lt_cv_sys_max_cmd_len=8192; 6058 ;; 6059 6060 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6061 # This has been around since 386BSD, at least. Likely further. 6062 if test -x /sbin/sysctl; then 6063 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6064 elif test -x /usr/sbin/sysctl; then 6065 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6066 else 6067 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6068 fi 6069 # And add a safety zone 6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6072 ;; 6073 6074 interix*) 6075 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6076 lt_cv_sys_max_cmd_len=196608 6077 ;; 6078 6079 os2*) 6080 # The test takes a long time on OS/2. 6081 lt_cv_sys_max_cmd_len=8192 6082 ;; 6083 6084 osf*) 6085 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6086 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6087 # nice to cause kernel panics so lets avoid the loop below. 6088 # First set a reasonable default. 6089 lt_cv_sys_max_cmd_len=16384 6090 # 6091 if test -x /sbin/sysconfig; then 6092 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6093 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6094 esac 6095 fi 6096 ;; 6097 sco3.2v5*) 6098 lt_cv_sys_max_cmd_len=102400 6099 ;; 6100 sysv5* | sco5v6* | sysv4.2uw2*) 6101 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6102 if test -n "$kargmax"; then 6103 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6104 else 6105 lt_cv_sys_max_cmd_len=32768 6106 fi 6107 ;; 6108 *) 6109 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6110 if test -n "$lt_cv_sys_max_cmd_len" && \ 6111 test undefined != "$lt_cv_sys_max_cmd_len"; then 6112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6114 else 6115 # Make teststring a little bigger before we do anything with it. 6116 # a 1K string should be a reasonable start. 6117 for i in 1 2 3 4 5 6 7 8; do 6118 teststring=$teststring$teststring 6119 done 6120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6121 # If test is not a shell built-in, we'll probably end up computing a 6122 # maximum length that is only half of the actual maximum length, but 6123 # we can't tell. 6124 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6125 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6126 test 17 != "$i" # 1/2 MB should be enough 6127 do 6128 i=`expr $i + 1` 6129 teststring=$teststring$teststring 6130 done 6131 # Only check the string length outside the loop. 6132 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6133 teststring= 6134 # Add a significant safety factor because C++ compilers can tack on 6135 # massive amounts of additional arguments before passing them to the 6136 # linker. It appears as though 1/2 is a usable value. 6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6138 fi 6139 ;; 6140 esac 6141 ;; 6142esac 6143fi 6144 6145if test -n "$lt_cv_sys_max_cmd_len"; then 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6147printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6148else 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6150printf "%s\n" "none" >&6; } 6151fi 6152max_cmd_len=$lt_cv_sys_max_cmd_len 6153 6154 6155 6156 6157 6158 6159: ${CP="cp -f"} 6160: ${MV="mv -f"} 6161: ${RM="rm -f"} 6162 6163if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6164 lt_unset=unset 6165else 6166 lt_unset=false 6167fi 6168 6169 6170 6171 6172 6173# test EBCDIC or ASCII 6174case `echo X|tr X '\101'` in 6175 A) # ASCII based system 6176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6177 lt_SP2NL='tr \040 \012' 6178 lt_NL2SP='tr \015\012 \040\040' 6179 ;; 6180 *) # EBCDIC based system 6181 lt_SP2NL='tr \100 \n' 6182 lt_NL2SP='tr \r\n \100\100' 6183 ;; 6184esac 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6195printf %s "checking how to convert $build file names to $host format... " >&6; } 6196if test ${lt_cv_to_host_file_cmd+y} 6197then : 6198 printf %s "(cached) " >&6 6199else case e in #( 6200 e) case $host in 6201 *-*-mingw* ) 6202 case $build in 6203 *-*-mingw* ) # actually msys 6204 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6205 ;; 6206 *-*-cygwin* ) 6207 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6208 ;; 6209 * ) # otherwise, assume *nix 6210 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6211 ;; 6212 esac 6213 ;; 6214 *-*-cygwin* ) 6215 case $build in 6216 *-*-mingw* ) # actually msys 6217 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6218 ;; 6219 *-*-cygwin* ) 6220 lt_cv_to_host_file_cmd=func_convert_file_noop 6221 ;; 6222 * ) # otherwise, assume *nix 6223 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6224 ;; 6225 esac 6226 ;; 6227 * ) # unhandled hosts (and "normal" native builds) 6228 lt_cv_to_host_file_cmd=func_convert_file_noop 6229 ;; 6230esac 6231 ;; 6232esac 6233fi 6234 6235to_host_file_cmd=$lt_cv_to_host_file_cmd 6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6237printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6238 6239 6240 6241 6242 6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6244printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6245if test ${lt_cv_to_tool_file_cmd+y} 6246then : 6247 printf %s "(cached) " >&6 6248else case e in #( 6249 e) #assume ordinary cross tools, or native build. 6250lt_cv_to_tool_file_cmd=func_convert_file_noop 6251case $host in 6252 *-*-mingw* ) 6253 case $build in 6254 *-*-mingw* ) # actually msys 6255 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6256 ;; 6257 esac 6258 ;; 6259esac 6260 ;; 6261esac 6262fi 6263 6264to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6266printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6267 6268 6269 6270 6271 6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6273printf %s "checking for $LD option to reload object files... " >&6; } 6274if test ${lt_cv_ld_reload_flag+y} 6275then : 6276 printf %s "(cached) " >&6 6277else case e in #( 6278 e) lt_cv_ld_reload_flag='-r' ;; 6279esac 6280fi 6281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6282printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6283reload_flag=$lt_cv_ld_reload_flag 6284case $reload_flag in 6285"" | " "*) ;; 6286*) reload_flag=" $reload_flag" ;; 6287esac 6288reload_cmds='$LD$reload_flag -o $output$reload_objs' 6289case $host_os in 6290 cygwin* | mingw* | pw32* | cegcc*) 6291 if test yes != "$GCC"; then 6292 reload_cmds=false 6293 fi 6294 ;; 6295 darwin*) 6296 if test yes = "$GCC"; then 6297 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6298 else 6299 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6300 fi 6301 ;; 6302esac 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312if test -n "$ac_tool_prefix"; then 6313 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6314set dummy ${ac_tool_prefix}file; ac_word=$2 6315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316printf %s "checking for $ac_word... " >&6; } 6317if test ${ac_cv_prog_FILECMD+y} 6318then : 6319 printf %s "(cached) " >&6 6320else case e in #( 6321 e) if test -n "$FILECMD"; then 6322 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6323else 6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325for as_dir in $PATH 6326do 6327 IFS=$as_save_IFS 6328 case $as_dir in #((( 6329 '') as_dir=./ ;; 6330 */) ;; 6331 *) as_dir=$as_dir/ ;; 6332 esac 6333 for ac_exec_ext in '' $ac_executable_extensions; do 6334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6335 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6337 break 2 6338 fi 6339done 6340 done 6341IFS=$as_save_IFS 6342 6343fi ;; 6344esac 6345fi 6346FILECMD=$ac_cv_prog_FILECMD 6347if test -n "$FILECMD"; then 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6349printf "%s\n" "$FILECMD" >&6; } 6350else 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6352printf "%s\n" "no" >&6; } 6353fi 6354 6355 6356fi 6357if test -z "$ac_cv_prog_FILECMD"; then 6358 ac_ct_FILECMD=$FILECMD 6359 # Extract the first word of "file", so it can be a program name with args. 6360set dummy file; ac_word=$2 6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362printf %s "checking for $ac_word... " >&6; } 6363if test ${ac_cv_prog_ac_ct_FILECMD+y} 6364then : 6365 printf %s "(cached) " >&6 6366else case e in #( 6367 e) if test -n "$ac_ct_FILECMD"; then 6368 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6369else 6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 case $as_dir in #((( 6375 '') as_dir=./ ;; 6376 */) ;; 6377 *) as_dir=$as_dir/ ;; 6378 esac 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6381 ac_cv_prog_ac_ct_FILECMD="file" 6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi ;; 6390esac 6391fi 6392ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6393if test -n "$ac_ct_FILECMD"; then 6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6395printf "%s\n" "$ac_ct_FILECMD" >&6; } 6396else 6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398printf "%s\n" "no" >&6; } 6399fi 6400 6401 if test "x$ac_ct_FILECMD" = x; then 6402 FILECMD=":" 6403 else 6404 case $cross_compiling:$ac_tool_warned in 6405yes:) 6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6407printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6408ac_tool_warned=yes ;; 6409esac 6410 FILECMD=$ac_ct_FILECMD 6411 fi 6412else 6413 FILECMD="$ac_cv_prog_FILECMD" 6414fi 6415 6416 6417 6418 6419 6420 6421 6422if test -n "$ac_tool_prefix"; then 6423 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6424set dummy ${ac_tool_prefix}objdump; ac_word=$2 6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6426printf %s "checking for $ac_word... " >&6; } 6427if test ${ac_cv_prog_OBJDUMP+y} 6428then : 6429 printf %s "(cached) " >&6 6430else case e in #( 6431 e) if test -n "$OBJDUMP"; then 6432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6433else 6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6435for as_dir in $PATH 6436do 6437 IFS=$as_save_IFS 6438 case $as_dir in #((( 6439 '') as_dir=./ ;; 6440 */) ;; 6441 *) as_dir=$as_dir/ ;; 6442 esac 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi ;; 6454esac 6455fi 6456OBJDUMP=$ac_cv_prog_OBJDUMP 6457if test -n "$OBJDUMP"; then 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6459printf "%s\n" "$OBJDUMP" >&6; } 6460else 6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462printf "%s\n" "no" >&6; } 6463fi 6464 6465 6466fi 6467if test -z "$ac_cv_prog_OBJDUMP"; then 6468 ac_ct_OBJDUMP=$OBJDUMP 6469 # Extract the first word of "objdump", so it can be a program name with args. 6470set dummy objdump; ac_word=$2 6471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472printf %s "checking for $ac_word... " >&6; } 6473if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6474then : 6475 printf %s "(cached) " >&6 6476else case e in #( 6477 e) if test -n "$ac_ct_OBJDUMP"; then 6478 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6479else 6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH 6482do 6483 IFS=$as_save_IFS 6484 case $as_dir in #((( 6485 '') as_dir=./ ;; 6486 */) ;; 6487 *) as_dir=$as_dir/ ;; 6488 esac 6489 for ac_exec_ext in '' $ac_executable_extensions; do 6490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6491 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6493 break 2 6494 fi 6495done 6496 done 6497IFS=$as_save_IFS 6498 6499fi ;; 6500esac 6501fi 6502ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6503if test -n "$ac_ct_OBJDUMP"; then 6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6505printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6506else 6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6508printf "%s\n" "no" >&6; } 6509fi 6510 6511 if test "x$ac_ct_OBJDUMP" = x; then 6512 OBJDUMP="false" 6513 else 6514 case $cross_compiling:$ac_tool_warned in 6515yes:) 6516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6517printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6518ac_tool_warned=yes ;; 6519esac 6520 OBJDUMP=$ac_ct_OBJDUMP 6521 fi 6522else 6523 OBJDUMP="$ac_cv_prog_OBJDUMP" 6524fi 6525 6526test -z "$OBJDUMP" && OBJDUMP=objdump 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6537printf %s "checking how to recognize dependent libraries... " >&6; } 6538if test ${lt_cv_deplibs_check_method+y} 6539then : 6540 printf %s "(cached) " >&6 6541else case e in #( 6542 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6543lt_cv_file_magic_test_file= 6544lt_cv_deplibs_check_method='unknown' 6545# Need to set the preceding variable on all platforms that support 6546# interlibrary dependencies. 6547# 'none' -- dependencies not supported. 6548# 'unknown' -- same as none, but documents that we really don't know. 6549# 'pass_all' -- all dependencies passed with no checks. 6550# 'test_compile' -- check by making test program. 6551# 'file_magic [[regex]]' -- check by looking for files in library path 6552# that responds to the $file_magic_cmd with a given extended regex. 6553# If you have 'file' or equivalent on your system and you're not sure 6554# whether 'pass_all' will *always* work, you probably want this one. 6555 6556case $host_os in 6557aix[4-9]*) 6558 lt_cv_deplibs_check_method=pass_all 6559 ;; 6560 6561beos*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564 6565bsdi[45]*) 6566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6567 lt_cv_file_magic_cmd='$FILECMD -L' 6568 lt_cv_file_magic_test_file=/shlib/libc.so 6569 ;; 6570 6571cygwin*) 6572 # func_win32_libid is a shell function defined in ltmain.sh 6573 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6574 lt_cv_file_magic_cmd='func_win32_libid' 6575 ;; 6576 6577mingw* | pw32*) 6578 # Base MSYS/MinGW do not provide the 'file' command needed by 6579 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6580 # unless we find 'file', for example because we are cross-compiling. 6581 if ( file / ) >/dev/null 2>&1; then 6582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6583 lt_cv_file_magic_cmd='func_win32_libid' 6584 else 6585 # Keep this pattern in sync with the one in func_win32_libid. 6586 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6587 lt_cv_file_magic_cmd='$OBJDUMP -f' 6588 fi 6589 ;; 6590 6591cegcc*) 6592 # use the weaker test based on 'objdump'. See mingw*. 6593 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6594 lt_cv_file_magic_cmd='$OBJDUMP -f' 6595 ;; 6596 6597darwin* | rhapsody*) 6598 lt_cv_deplibs_check_method=pass_all 6599 ;; 6600 6601freebsd* | dragonfly* | midnightbsd*) 6602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6603 case $host_cpu in 6604 i*86 ) 6605 # Not sure whether the presence of OpenBSD here was a mistake. 6606 # Let's accept both of them until this is cleared up. 6607 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6608 lt_cv_file_magic_cmd=$FILECMD 6609 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6610 ;; 6611 esac 6612 else 6613 lt_cv_deplibs_check_method=pass_all 6614 fi 6615 ;; 6616 6617haiku*) 6618 lt_cv_deplibs_check_method=pass_all 6619 ;; 6620 6621hpux10.20* | hpux11*) 6622 lt_cv_file_magic_cmd=$FILECMD 6623 case $host_cpu in 6624 ia64*) 6625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6626 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6627 ;; 6628 hppa*64*) 6629 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]' 6630 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6631 ;; 6632 *) 6633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6634 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6635 ;; 6636 esac 6637 ;; 6638 6639interix[3-9]*) 6640 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6642 ;; 6643 6644irix5* | irix6* | nonstopux*) 6645 case $LD in 6646 *-32|*"-32 ") libmagic=32-bit;; 6647 *-n32|*"-n32 ") libmagic=N32;; 6648 *-64|*"-64 ") libmagic=64-bit;; 6649 *) libmagic=never-match;; 6650 esac 6651 lt_cv_deplibs_check_method=pass_all 6652 ;; 6653 6654# This must be glibc/ELF. 6655linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6656 lt_cv_deplibs_check_method=pass_all 6657 ;; 6658 6659netbsd*) 6660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6662 else 6663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6664 fi 6665 ;; 6666 6667newos6*) 6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6669 lt_cv_file_magic_cmd=$FILECMD 6670 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6671 ;; 6672 6673*nto* | *qnx*) 6674 lt_cv_deplibs_check_method=pass_all 6675 ;; 6676 6677openbsd* | bitrig*) 6678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6680 else 6681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6682 fi 6683 ;; 6684 6685osf3* | osf4* | osf5*) 6686 lt_cv_deplibs_check_method=pass_all 6687 ;; 6688 6689rdos*) 6690 lt_cv_deplibs_check_method=pass_all 6691 ;; 6692 6693solaris*) 6694 lt_cv_deplibs_check_method=pass_all 6695 ;; 6696 6697sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6698 lt_cv_deplibs_check_method=pass_all 6699 ;; 6700 6701sysv4 | sysv4.3*) 6702 case $host_vendor in 6703 motorola) 6704 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]' 6705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6706 ;; 6707 ncr) 6708 lt_cv_deplibs_check_method=pass_all 6709 ;; 6710 sequent) 6711 lt_cv_file_magic_cmd='/bin/file' 6712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6713 ;; 6714 sni) 6715 lt_cv_file_magic_cmd='/bin/file' 6716 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6717 lt_cv_file_magic_test_file=/lib/libc.so 6718 ;; 6719 siemens) 6720 lt_cv_deplibs_check_method=pass_all 6721 ;; 6722 pc) 6723 lt_cv_deplibs_check_method=pass_all 6724 ;; 6725 esac 6726 ;; 6727 6728tpf*) 6729 lt_cv_deplibs_check_method=pass_all 6730 ;; 6731os2*) 6732 lt_cv_deplibs_check_method=pass_all 6733 ;; 6734esac 6735 ;; 6736esac 6737fi 6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6739printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6740 6741file_magic_glob= 6742want_nocaseglob=no 6743if test "$build" = "$host"; then 6744 case $host_os in 6745 mingw* | pw32*) 6746 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6747 want_nocaseglob=yes 6748 else 6749 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6750 fi 6751 ;; 6752 esac 6753fi 6754 6755file_magic_cmd=$lt_cv_file_magic_cmd 6756deplibs_check_method=$lt_cv_deplibs_check_method 6757test -z "$deplibs_check_method" && deplibs_check_method=unknown 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780if test -n "$ac_tool_prefix"; then 6781 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6782set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6784printf %s "checking for $ac_word... " >&6; } 6785if test ${ac_cv_prog_DLLTOOL+y} 6786then : 6787 printf %s "(cached) " >&6 6788else case e in #( 6789 e) if test -n "$DLLTOOL"; then 6790 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6791else 6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 case $as_dir in #((( 6797 '') as_dir=./ ;; 6798 */) ;; 6799 *) as_dir=$as_dir/ ;; 6800 esac 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6805 break 2 6806 fi 6807done 6808 done 6809IFS=$as_save_IFS 6810 6811fi ;; 6812esac 6813fi 6814DLLTOOL=$ac_cv_prog_DLLTOOL 6815if test -n "$DLLTOOL"; then 6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6817printf "%s\n" "$DLLTOOL" >&6; } 6818else 6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6820printf "%s\n" "no" >&6; } 6821fi 6822 6823 6824fi 6825if test -z "$ac_cv_prog_DLLTOOL"; then 6826 ac_ct_DLLTOOL=$DLLTOOL 6827 # Extract the first word of "dlltool", so it can be a program name with args. 6828set dummy dlltool; ac_word=$2 6829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6830printf %s "checking for $ac_word... " >&6; } 6831if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6832then : 6833 printf %s "(cached) " >&6 6834else case e in #( 6835 e) if test -n "$ac_ct_DLLTOOL"; then 6836 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6837else 6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839for as_dir in $PATH 6840do 6841 IFS=$as_save_IFS 6842 case $as_dir in #((( 6843 '') as_dir=./ ;; 6844 */) ;; 6845 *) as_dir=$as_dir/ ;; 6846 esac 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi ;; 6858esac 6859fi 6860ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6861if test -n "$ac_ct_DLLTOOL"; then 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6863printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6864else 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6866printf "%s\n" "no" >&6; } 6867fi 6868 6869 if test "x$ac_ct_DLLTOOL" = x; then 6870 DLLTOOL="false" 6871 else 6872 case $cross_compiling:$ac_tool_warned in 6873yes:) 6874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6875printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6876ac_tool_warned=yes ;; 6877esac 6878 DLLTOOL=$ac_ct_DLLTOOL 6879 fi 6880else 6881 DLLTOOL="$ac_cv_prog_DLLTOOL" 6882fi 6883 6884test -z "$DLLTOOL" && DLLTOOL=dlltool 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6896printf %s "checking how to associate runtime and link libraries... " >&6; } 6897if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6898then : 6899 printf %s "(cached) " >&6 6900else case e in #( 6901 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6902 6903case $host_os in 6904cygwin* | mingw* | pw32* | cegcc*) 6905 # two different shell functions defined in ltmain.sh; 6906 # decide which one to use based on capabilities of $DLLTOOL 6907 case `$DLLTOOL --help 2>&1` in 6908 *--identify-strict*) 6909 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6910 ;; 6911 *) 6912 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6913 ;; 6914 esac 6915 ;; 6916*) 6917 # fallback: assume linklib IS sharedlib 6918 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6919 ;; 6920esac 6921 ;; 6922esac 6923fi 6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6925printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6926sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6927test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6928 6929 6930 6931 6932 6933 6934 6935if test -n "$ac_tool_prefix"; then 6936 for ac_prog in ar 6937 do 6938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6939set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941printf %s "checking for $ac_word... " >&6; } 6942if test ${ac_cv_prog_AR+y} 6943then : 6944 printf %s "(cached) " >&6 6945else case e in #( 6946 e) if test -n "$AR"; then 6947 ac_cv_prog_AR="$AR" # Let the user override the test. 6948else 6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6950for as_dir in $PATH 6951do 6952 IFS=$as_save_IFS 6953 case $as_dir in #((( 6954 '') as_dir=./ ;; 6955 */) ;; 6956 *) as_dir=$as_dir/ ;; 6957 esac 6958 for ac_exec_ext in '' $ac_executable_extensions; do 6959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6962 break 2 6963 fi 6964done 6965 done 6966IFS=$as_save_IFS 6967 6968fi ;; 6969esac 6970fi 6971AR=$ac_cv_prog_AR 6972if test -n "$AR"; then 6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6974printf "%s\n" "$AR" >&6; } 6975else 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6977printf "%s\n" "no" >&6; } 6978fi 6979 6980 6981 test -n "$AR" && break 6982 done 6983fi 6984if test -z "$AR"; then 6985 ac_ct_AR=$AR 6986 for ac_prog in ar 6987do 6988 # Extract the first word of "$ac_prog", so it can be a program name with args. 6989set dummy $ac_prog; ac_word=$2 6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6991printf %s "checking for $ac_word... " >&6; } 6992if test ${ac_cv_prog_ac_ct_AR+y} 6993then : 6994 printf %s "(cached) " >&6 6995else case e in #( 6996 e) if test -n "$ac_ct_AR"; then 6997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 case $as_dir in #((( 7004 '') as_dir=./ ;; 7005 */) ;; 7006 *) as_dir=$as_dir/ ;; 7007 esac 7008 for ac_exec_ext in '' $ac_executable_extensions; do 7009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7010 ac_cv_prog_ac_ct_AR="$ac_prog" 7011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7012 break 2 7013 fi 7014done 7015 done 7016IFS=$as_save_IFS 7017 7018fi ;; 7019esac 7020fi 7021ac_ct_AR=$ac_cv_prog_ac_ct_AR 7022if test -n "$ac_ct_AR"; then 7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7024printf "%s\n" "$ac_ct_AR" >&6; } 7025else 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7027printf "%s\n" "no" >&6; } 7028fi 7029 7030 7031 test -n "$ac_ct_AR" && break 7032done 7033 7034 if test "x$ac_ct_AR" = x; then 7035 AR="false" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038yes:) 7039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041ac_tool_warned=yes ;; 7042esac 7043 AR=$ac_ct_AR 7044 fi 7045fi 7046 7047: ${AR=ar} 7048 7049 7050 7051 7052 7053 7054# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7055# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7056# higher priority because thats what people were doing historically (setting 7057# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7058# variable obsoleted/removed. 7059 7060test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7061lt_ar_flags=$AR_FLAGS 7062 7063 7064 7065 7066 7067 7068# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7069# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7070 7071 7072 7073 7074 7075 7076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7077printf %s "checking for archiver @FILE support... " >&6; } 7078if test ${lt_cv_ar_at_file+y} 7079then : 7080 printf %s "(cached) " >&6 7081else case e in #( 7082 e) lt_cv_ar_at_file=no 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084/* end confdefs.h. */ 7085 7086int 7087main (void) 7088{ 7089 7090 ; 7091 return 0; 7092} 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO" 7095then : 7096 echo conftest.$ac_objext > conftest.lst 7097 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7099 (eval $lt_ar_try) 2>&5 7100 ac_status=$? 7101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7102 test $ac_status = 0; } 7103 if test 0 -eq "$ac_status"; then 7104 # Ensure the archiver fails upon bogus file names. 7105 rm -f conftest.$ac_objext libconftest.a 7106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7107 (eval $lt_ar_try) 2>&5 7108 ac_status=$? 7109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7110 test $ac_status = 0; } 7111 if test 0 -ne "$ac_status"; then 7112 lt_cv_ar_at_file=@ 7113 fi 7114 fi 7115 rm -f conftest.* libconftest.a 7116 7117fi 7118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7119 ;; 7120esac 7121fi 7122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7123printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7124 7125if test no = "$lt_cv_ar_at_file"; then 7126 archiver_list_spec= 7127else 7128 archiver_list_spec=$lt_cv_ar_at_file 7129fi 7130 7131 7132 7133 7134 7135 7136 7137if test -n "$ac_tool_prefix"; then 7138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7139set dummy ${ac_tool_prefix}strip; ac_word=$2 7140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7141printf %s "checking for $ac_word... " >&6; } 7142if test ${ac_cv_prog_STRIP+y} 7143then : 7144 printf %s "(cached) " >&6 7145else case e in #( 7146 e) if test -n "$STRIP"; then 7147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7148else 7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150for as_dir in $PATH 7151do 7152 IFS=$as_save_IFS 7153 case $as_dir in #((( 7154 '') as_dir=./ ;; 7155 */) ;; 7156 *) as_dir=$as_dir/ ;; 7157 esac 7158 for ac_exec_ext in '' $ac_executable_extensions; do 7159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7160 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7162 break 2 7163 fi 7164done 7165 done 7166IFS=$as_save_IFS 7167 7168fi ;; 7169esac 7170fi 7171STRIP=$ac_cv_prog_STRIP 7172if test -n "$STRIP"; then 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7174printf "%s\n" "$STRIP" >&6; } 7175else 7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7177printf "%s\n" "no" >&6; } 7178fi 7179 7180 7181fi 7182if test -z "$ac_cv_prog_STRIP"; then 7183 ac_ct_STRIP=$STRIP 7184 # Extract the first word of "strip", so it can be a program name with args. 7185set dummy strip; ac_word=$2 7186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187printf %s "checking for $ac_word... " >&6; } 7188if test ${ac_cv_prog_ac_ct_STRIP+y} 7189then : 7190 printf %s "(cached) " >&6 7191else case e in #( 7192 e) if test -n "$ac_ct_STRIP"; then 7193 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7194else 7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196for as_dir in $PATH 7197do 7198 IFS=$as_save_IFS 7199 case $as_dir in #((( 7200 '') as_dir=./ ;; 7201 */) ;; 7202 *) as_dir=$as_dir/ ;; 7203 esac 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7206 ac_cv_prog_ac_ct_STRIP="strip" 7207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211 done 7212IFS=$as_save_IFS 7213 7214fi ;; 7215esac 7216fi 7217ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7218if test -n "$ac_ct_STRIP"; then 7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7220printf "%s\n" "$ac_ct_STRIP" >&6; } 7221else 7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223printf "%s\n" "no" >&6; } 7224fi 7225 7226 if test "x$ac_ct_STRIP" = x; then 7227 STRIP=":" 7228 else 7229 case $cross_compiling:$ac_tool_warned in 7230yes:) 7231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7232printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7233ac_tool_warned=yes ;; 7234esac 7235 STRIP=$ac_ct_STRIP 7236 fi 7237else 7238 STRIP="$ac_cv_prog_STRIP" 7239fi 7240 7241test -z "$STRIP" && STRIP=: 7242 7243 7244 7245 7246 7247 7248if test -n "$ac_tool_prefix"; then 7249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7250set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252printf %s "checking for $ac_word... " >&6; } 7253if test ${ac_cv_prog_RANLIB+y} 7254then : 7255 printf %s "(cached) " >&6 7256else case e in #( 7257 e) if test -n "$RANLIB"; then 7258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 case $as_dir in #((( 7265 '') as_dir=./ ;; 7266 */) ;; 7267 *) as_dir=$as_dir/ ;; 7268 esac 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275done 7276 done 7277IFS=$as_save_IFS 7278 7279fi ;; 7280esac 7281fi 7282RANLIB=$ac_cv_prog_RANLIB 7283if test -n "$RANLIB"; then 7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7285printf "%s\n" "$RANLIB" >&6; } 7286else 7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7288printf "%s\n" "no" >&6; } 7289fi 7290 7291 7292fi 7293if test -z "$ac_cv_prog_RANLIB"; then 7294 ac_ct_RANLIB=$RANLIB 7295 # Extract the first word of "ranlib", so it can be a program name with args. 7296set dummy ranlib; ac_word=$2 7297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7298printf %s "checking for $ac_word... " >&6; } 7299if test ${ac_cv_prog_ac_ct_RANLIB+y} 7300then : 7301 printf %s "(cached) " >&6 7302else case e in #( 7303 e) if test -n "$ac_ct_RANLIB"; then 7304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 case $as_dir in #((( 7311 '') as_dir=./ ;; 7312 */) ;; 7313 *) as_dir=$as_dir/ ;; 7314 esac 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7317 ac_cv_prog_ac_ct_RANLIB="ranlib" 7318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321done 7322 done 7323IFS=$as_save_IFS 7324 7325fi ;; 7326esac 7327fi 7328ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7329if test -n "$ac_ct_RANLIB"; then 7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7331printf "%s\n" "$ac_ct_RANLIB" >&6; } 7332else 7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7334printf "%s\n" "no" >&6; } 7335fi 7336 7337 if test "x$ac_ct_RANLIB" = x; then 7338 RANLIB=":" 7339 else 7340 case $cross_compiling:$ac_tool_warned in 7341yes:) 7342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7343printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7344ac_tool_warned=yes ;; 7345esac 7346 RANLIB=$ac_ct_RANLIB 7347 fi 7348else 7349 RANLIB="$ac_cv_prog_RANLIB" 7350fi 7351 7352test -z "$RANLIB" && RANLIB=: 7353 7354 7355 7356 7357 7358 7359# Determine commands to create old-style static archives. 7360old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7361old_postinstall_cmds='chmod 644 $oldlib' 7362old_postuninstall_cmds= 7363 7364if test -n "$RANLIB"; then 7365 case $host_os in 7366 bitrig* | openbsd*) 7367 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7368 ;; 7369 *) 7370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7371 ;; 7372 esac 7373 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7374fi 7375 7376case $host_os in 7377 darwin*) 7378 lock_old_archive_extraction=yes ;; 7379 *) 7380 lock_old_archive_extraction=no ;; 7381esac 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421# If no C compiler was specified, use CC. 7422LTCC=${LTCC-"$CC"} 7423 7424# If no C compiler flags were specified, use CFLAGS. 7425LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7426 7427# Allow CC to be a program name with arguments. 7428compiler=$CC 7429 7430 7431# Check for command to grab the raw symbol name followed by C symbol from nm. 7432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7433printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7434if test ${lt_cv_sys_global_symbol_pipe+y} 7435then : 7436 printf %s "(cached) " >&6 7437else case e in #( 7438 e) 7439# These are sane defaults that work on at least a few old systems. 7440# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7441 7442# Character class describing NM global symbol codes. 7443symcode='[BCDEGRST]' 7444 7445# Regexp to match symbols that can be accessed directly from C. 7446sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7447 7448# Define system-specific variables. 7449case $host_os in 7450aix*) 7451 symcode='[BCDT]' 7452 ;; 7453cygwin* | mingw* | pw32* | cegcc*) 7454 symcode='[ABCDGISTW]' 7455 ;; 7456hpux*) 7457 if test ia64 = "$host_cpu"; then 7458 symcode='[ABCDEGRST]' 7459 fi 7460 ;; 7461irix* | nonstopux*) 7462 symcode='[BCDEGRST]' 7463 ;; 7464osf*) 7465 symcode='[BCDEGQRST]' 7466 ;; 7467solaris*) 7468 symcode='[BDRT]' 7469 ;; 7470sco3.2v5*) 7471 symcode='[DT]' 7472 ;; 7473sysv4.2uw2*) 7474 symcode='[DT]' 7475 ;; 7476sysv5* | sco5v6* | unixware* | OpenUNIX*) 7477 symcode='[ABDT]' 7478 ;; 7479sysv4) 7480 symcode='[DFNSTU]' 7481 ;; 7482esac 7483 7484# If we're using GNU nm, then use its standard symbol codes. 7485case `$NM -V 2>&1` in 7486*GNU* | *'with BFD'*) 7487 symcode='[ABCDGIRSTW]' ;; 7488esac 7489 7490if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7491 # Gets list of data symbols to import. 7492 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7493 # Adjust the below global symbol transforms to fixup imported variables. 7494 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7495 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7496 lt_c_name_lib_hook="\ 7497 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7498 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7499else 7500 # Disable hooks by default. 7501 lt_cv_sys_global_symbol_to_import= 7502 lt_cdecl_hook= 7503 lt_c_name_hook= 7504 lt_c_name_lib_hook= 7505fi 7506 7507# Transform an extracted symbol line into a proper C declaration. 7508# Some systems (esp. on ia64) link data and code symbols differently, 7509# so use this general approach. 7510lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7511$lt_cdecl_hook\ 7512" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7513" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7514 7515# Transform an extracted symbol line into symbol name and symbol address 7516lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7517$lt_c_name_hook\ 7518" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7519" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7520 7521# Transform an extracted symbol line into symbol name with lib prefix and 7522# symbol address. 7523lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7524$lt_c_name_lib_hook\ 7525" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7526" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7527" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7528 7529# Handle CRLF in mingw tool chain 7530opt_cr= 7531case $build_os in 7532mingw*) 7533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7534 ;; 7535esac 7536 7537# Try without a prefix underscore, then with it. 7538for ac_symprfx in "" "_"; do 7539 7540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7541 symxfrm="\\1 $ac_symprfx\\2 \\2" 7542 7543 # Write the raw and C identifiers. 7544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7545 # Fake it for dumpbin and say T for any non-static function, 7546 # D for any global variable and I for any imported variable. 7547 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7548 # which start with @ or ?. 7549 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7550" {last_section=section; section=\$ 3};"\ 7551" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7552" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7553" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7554" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7555" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7556" \$ 0!~/External *\|/{next};"\ 7557" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7558" {if(hide[section]) next};"\ 7559" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7560" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7561" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7562" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7563" ' prfx=^$ac_symprfx" 7564 else 7565 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7566 fi 7567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7568 7569 # Check to see that the pipe works correctly. 7570 pipe_works=no 7571 7572 rm -f conftest* 7573 cat > conftest.$ac_ext <<_LT_EOF 7574#ifdef __cplusplus 7575extern "C" { 7576#endif 7577char nm_test_var; 7578void nm_test_func(void); 7579void nm_test_func(void){} 7580#ifdef __cplusplus 7581} 7582#endif 7583int main(){nm_test_var='a';nm_test_func();return(0);} 7584_LT_EOF 7585 7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7587 (eval $ac_compile) 2>&5 7588 ac_status=$? 7589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7590 test $ac_status = 0; }; then 7591 # Now try to grab the symbols. 7592 nlist=conftest.nm 7593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7595 ac_status=$? 7596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7597 test $ac_status = 0; } && test -s "$nlist"; then 7598 # Try sorting and uniquifying the output. 7599 if sort "$nlist" | uniq > "$nlist"T; then 7600 mv -f "$nlist"T "$nlist" 7601 else 7602 rm -f "$nlist"T 7603 fi 7604 7605 # Make sure that we snagged all the symbols we need. 7606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7608 cat <<_LT_EOF > conftest.$ac_ext 7609/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7610#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7611/* DATA imports from DLLs on WIN32 can't be const, because runtime 7612 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7613# define LT_DLSYM_CONST 7614#elif defined __osf__ 7615/* This system does not cope well with relocations in const data. */ 7616# define LT_DLSYM_CONST 7617#else 7618# define LT_DLSYM_CONST const 7619#endif 7620 7621#ifdef __cplusplus 7622extern "C" { 7623#endif 7624 7625_LT_EOF 7626 # Now generate the symbol file. 7627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7628 7629 cat <<_LT_EOF >> conftest.$ac_ext 7630 7631/* The mapping between symbol names and symbols. */ 7632LT_DLSYM_CONST struct { 7633 const char *name; 7634 void *address; 7635} 7636lt__PROGRAM__LTX_preloaded_symbols[] = 7637{ 7638 { "@PROGRAM@", (void *) 0 }, 7639_LT_EOF 7640 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7641 cat <<\_LT_EOF >> conftest.$ac_ext 7642 {0, (void *) 0} 7643}; 7644 7645/* This works around a problem in FreeBSD linker */ 7646#ifdef FREEBSD_WORKAROUND 7647static const void *lt_preloaded_setup() { 7648 return lt__PROGRAM__LTX_preloaded_symbols; 7649} 7650#endif 7651 7652#ifdef __cplusplus 7653} 7654#endif 7655_LT_EOF 7656 # Now try linking the two files. 7657 mv conftest.$ac_objext conftstm.$ac_objext 7658 lt_globsym_save_LIBS=$LIBS 7659 lt_globsym_save_CFLAGS=$CFLAGS 7660 LIBS=conftstm.$ac_objext 7661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7663 (eval $ac_link) 2>&5 7664 ac_status=$? 7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7666 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7667 pipe_works=yes 7668 fi 7669 LIBS=$lt_globsym_save_LIBS 7670 CFLAGS=$lt_globsym_save_CFLAGS 7671 else 7672 echo "cannot find nm_test_func in $nlist" >&5 7673 fi 7674 else 7675 echo "cannot find nm_test_var in $nlist" >&5 7676 fi 7677 else 7678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7679 fi 7680 else 7681 echo "$progname: failed program was:" >&5 7682 cat conftest.$ac_ext >&5 7683 fi 7684 rm -rf conftest* conftst* 7685 7686 # Do not use the global_symbol_pipe unless it works. 7687 if test yes = "$pipe_works"; then 7688 break 7689 else 7690 lt_cv_sys_global_symbol_pipe= 7691 fi 7692done 7693 ;; 7694esac 7695fi 7696 7697if test -z "$lt_cv_sys_global_symbol_pipe"; then 7698 lt_cv_sys_global_symbol_to_cdecl= 7699fi 7700if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7702printf "%s\n" "failed" >&6; } 7703else 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7705printf "%s\n" "ok" >&6; } 7706fi 7707 7708# Response file support. 7709if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7710 nm_file_list_spec='@' 7711elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7712 nm_file_list_spec='@' 7713fi 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7752printf %s "checking for sysroot... " >&6; } 7753 7754# Check whether --with-sysroot was given. 7755if test ${with_sysroot+y} 7756then : 7757 withval=$with_sysroot; 7758else case e in #( 7759 e) with_sysroot=no ;; 7760esac 7761fi 7762 7763 7764lt_sysroot= 7765case $with_sysroot in #( 7766 yes) 7767 if test yes = "$GCC"; then 7768 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7769 fi 7770 ;; #( 7771 /*) 7772 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7773 ;; #( 7774 no|'') 7775 ;; #( 7776 *) 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7778printf "%s\n" "$with_sysroot" >&6; } 7779 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7780 ;; 7781esac 7782 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7784printf "%s\n" "${lt_sysroot:-no}" >&6; } 7785 7786 7787 7788 7789 7790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7791printf %s "checking for a working dd... " >&6; } 7792if test ${ac_cv_path_lt_DD+y} 7793then : 7794 printf %s "(cached) " >&6 7795else case e in #( 7796 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7797cat conftest.i conftest.i >conftest2.i 7798: ${lt_DD:=$DD} 7799if test -z "$lt_DD"; then 7800 ac_path_lt_DD_found=false 7801 # Loop through the user's path and test for each of PROGNAME-LIST 7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7803for as_dir in $PATH 7804do 7805 IFS=$as_save_IFS 7806 case $as_dir in #((( 7807 '') as_dir=./ ;; 7808 */) ;; 7809 *) as_dir=$as_dir/ ;; 7810 esac 7811 for ac_prog in dd 7812 do 7813 for ac_exec_ext in '' $ac_executable_extensions; do 7814 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7815 as_fn_executable_p "$ac_path_lt_DD" || continue 7816if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7817 cmp -s conftest.i conftest.out \ 7818 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7819fi 7820 $ac_path_lt_DD_found && break 3 7821 done 7822 done 7823 done 7824IFS=$as_save_IFS 7825 if test -z "$ac_cv_path_lt_DD"; then 7826 : 7827 fi 7828else 7829 ac_cv_path_lt_DD=$lt_DD 7830fi 7831 7832rm -f conftest.i conftest2.i conftest.out ;; 7833esac 7834fi 7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7836printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7837 7838 7839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7840printf %s "checking how to truncate binary pipes... " >&6; } 7841if test ${lt_cv_truncate_bin+y} 7842then : 7843 printf %s "(cached) " >&6 7844else case e in #( 7845 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7846cat conftest.i conftest.i >conftest2.i 7847lt_cv_truncate_bin= 7848if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7849 cmp -s conftest.i conftest.out \ 7850 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7851fi 7852rm -f conftest.i conftest2.i conftest.out 7853test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7854esac 7855fi 7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7857printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7858 7859 7860 7861 7862 7863 7864 7865# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7866func_cc_basename () 7867{ 7868 for cc_temp in $*""; do 7869 case $cc_temp in 7870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7872 \-*) ;; 7873 *) break;; 7874 esac 7875 done 7876 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7877} 7878 7879# Check whether --enable-libtool-lock was given. 7880if test ${enable_libtool_lock+y} 7881then : 7882 enableval=$enable_libtool_lock; 7883fi 7884 7885test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7886 7887# Some flags need to be propagated to the compiler or linker for good 7888# libtool support. 7889case $host in 7890ia64-*-hpux*) 7891 # Find out what ABI is being produced by ac_compile, and set mode 7892 # options accordingly. 7893 echo 'int i;' > conftest.$ac_ext 7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7895 (eval $ac_compile) 2>&5 7896 ac_status=$? 7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7898 test $ac_status = 0; }; then 7899 case `$FILECMD conftest.$ac_objext` in 7900 *ELF-32*) 7901 HPUX_IA64_MODE=32 7902 ;; 7903 *ELF-64*) 7904 HPUX_IA64_MODE=64 7905 ;; 7906 esac 7907 fi 7908 rm -rf conftest* 7909 ;; 7910*-*-irix6*) 7911 # Find out what ABI is being produced by ac_compile, and set linker 7912 # options accordingly. 7913 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7915 (eval $ac_compile) 2>&5 7916 ac_status=$? 7917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7918 test $ac_status = 0; }; then 7919 if test yes = "$lt_cv_prog_gnu_ld"; then 7920 case `$FILECMD conftest.$ac_objext` in 7921 *32-bit*) 7922 LD="${LD-ld} -melf32bsmip" 7923 ;; 7924 *N32*) 7925 LD="${LD-ld} -melf32bmipn32" 7926 ;; 7927 *64-bit*) 7928 LD="${LD-ld} -melf64bmip" 7929 ;; 7930 esac 7931 else 7932 case `$FILECMD conftest.$ac_objext` in 7933 *32-bit*) 7934 LD="${LD-ld} -32" 7935 ;; 7936 *N32*) 7937 LD="${LD-ld} -n32" 7938 ;; 7939 *64-bit*) 7940 LD="${LD-ld} -64" 7941 ;; 7942 esac 7943 fi 7944 fi 7945 rm -rf conftest* 7946 ;; 7947 7948mips64*-*linux*) 7949 # Find out what ABI is being produced by ac_compile, and set linker 7950 # options accordingly. 7951 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7953 (eval $ac_compile) 2>&5 7954 ac_status=$? 7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7956 test $ac_status = 0; }; then 7957 emul=elf 7958 case `$FILECMD conftest.$ac_objext` in 7959 *32-bit*) 7960 emul="${emul}32" 7961 ;; 7962 *64-bit*) 7963 emul="${emul}64" 7964 ;; 7965 esac 7966 case `$FILECMD conftest.$ac_objext` in 7967 *MSB*) 7968 emul="${emul}btsmip" 7969 ;; 7970 *LSB*) 7971 emul="${emul}ltsmip" 7972 ;; 7973 esac 7974 case `$FILECMD conftest.$ac_objext` in 7975 *N32*) 7976 emul="${emul}n32" 7977 ;; 7978 esac 7979 LD="${LD-ld} -m $emul" 7980 fi 7981 rm -rf conftest* 7982 ;; 7983 7984x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7985s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7986 # Find out what ABI is being produced by ac_compile, and set linker 7987 # options accordingly. Note that the listed cases only cover the 7988 # situations where additional linker options are needed (such as when 7989 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7990 # vice versa); the common cases where no linker options are needed do 7991 # not appear in the list. 7992 echo 'int i;' > conftest.$ac_ext 7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7994 (eval $ac_compile) 2>&5 7995 ac_status=$? 7996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7997 test $ac_status = 0; }; then 7998 case `$FILECMD conftest.o` in 7999 *32-bit*) 8000 case $host in 8001 x86_64-*kfreebsd*-gnu) 8002 LD="${LD-ld} -m elf_i386_fbsd" 8003 ;; 8004 x86_64-*linux*) 8005 case `$FILECMD conftest.o` in 8006 *x86-64*) 8007 LD="${LD-ld} -m elf32_x86_64" 8008 ;; 8009 *) 8010 LD="${LD-ld} -m elf_i386" 8011 ;; 8012 esac 8013 ;; 8014 powerpc64le-*linux*) 8015 LD="${LD-ld} -m elf32lppclinux" 8016 ;; 8017 powerpc64-*linux*) 8018 LD="${LD-ld} -m elf32ppclinux" 8019 ;; 8020 s390x-*linux*) 8021 LD="${LD-ld} -m elf_s390" 8022 ;; 8023 sparc64-*linux*) 8024 LD="${LD-ld} -m elf32_sparc" 8025 ;; 8026 esac 8027 ;; 8028 *64-bit*) 8029 case $host in 8030 x86_64-*kfreebsd*-gnu) 8031 LD="${LD-ld} -m elf_x86_64_fbsd" 8032 ;; 8033 x86_64-*linux*) 8034 LD="${LD-ld} -m elf_x86_64" 8035 ;; 8036 powerpcle-*linux*) 8037 LD="${LD-ld} -m elf64lppc" 8038 ;; 8039 powerpc-*linux*) 8040 LD="${LD-ld} -m elf64ppc" 8041 ;; 8042 s390*-*linux*|s390*-*tpf*) 8043 LD="${LD-ld} -m elf64_s390" 8044 ;; 8045 sparc*-*linux*) 8046 LD="${LD-ld} -m elf64_sparc" 8047 ;; 8048 esac 8049 ;; 8050 esac 8051 fi 8052 rm -rf conftest* 8053 ;; 8054 8055*-*-sco3.2v5*) 8056 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8057 SAVE_CFLAGS=$CFLAGS 8058 CFLAGS="$CFLAGS -belf" 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8060printf %s "checking whether the C compiler needs -belf... " >&6; } 8061if test ${lt_cv_cc_needs_belf+y} 8062then : 8063 printf %s "(cached) " >&6 8064else case e in #( 8065 e) ac_ext=c 8066ac_cpp='$CPP $CPPFLAGS' 8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8069ac_compiler_gnu=$ac_cv_c_compiler_gnu 8070 8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072/* end confdefs.h. */ 8073 8074int 8075main (void) 8076{ 8077 8078 ; 8079 return 0; 8080} 8081_ACEOF 8082if ac_fn_c_try_link "$LINENO" 8083then : 8084 lt_cv_cc_needs_belf=yes 8085else case e in #( 8086 e) lt_cv_cc_needs_belf=no ;; 8087esac 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8090 conftest$ac_exeext conftest.$ac_ext 8091 ac_ext=c 8092ac_cpp='$CPP $CPPFLAGS' 8093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8095ac_compiler_gnu=$ac_cv_c_compiler_gnu 8096 ;; 8097esac 8098fi 8099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8100printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8101 if test yes != "$lt_cv_cc_needs_belf"; then 8102 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8103 CFLAGS=$SAVE_CFLAGS 8104 fi 8105 ;; 8106*-*solaris*) 8107 # Find out what ABI is being produced by ac_compile, and set linker 8108 # options accordingly. 8109 echo 'int i;' > conftest.$ac_ext 8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8111 (eval $ac_compile) 2>&5 8112 ac_status=$? 8113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8114 test $ac_status = 0; }; then 8115 case `$FILECMD conftest.o` in 8116 *64-bit*) 8117 case $lt_cv_prog_gnu_ld in 8118 yes*) 8119 case $host in 8120 i?86-*-solaris*|x86_64-*-solaris*) 8121 LD="${LD-ld} -m elf_x86_64" 8122 ;; 8123 sparc*-*-solaris*) 8124 LD="${LD-ld} -m elf64_sparc" 8125 ;; 8126 esac 8127 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8128 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8129 LD=${LD-ld}_sol2 8130 fi 8131 ;; 8132 *) 8133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8134 LD="${LD-ld} -64" 8135 fi 8136 ;; 8137 esac 8138 ;; 8139 esac 8140 fi 8141 rm -rf conftest* 8142 ;; 8143esac 8144 8145need_locks=$enable_libtool_lock 8146 8147if test -n "$ac_tool_prefix"; then 8148 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8149set dummy ${ac_tool_prefix}mt; ac_word=$2 8150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8151printf %s "checking for $ac_word... " >&6; } 8152if test ${ac_cv_prog_MANIFEST_TOOL+y} 8153then : 8154 printf %s "(cached) " >&6 8155else case e in #( 8156 e) if test -n "$MANIFEST_TOOL"; then 8157 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8158else 8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8160for as_dir in $PATH 8161do 8162 IFS=$as_save_IFS 8163 case $as_dir in #((( 8164 '') as_dir=./ ;; 8165 */) ;; 8166 *) as_dir=$as_dir/ ;; 8167 esac 8168 for ac_exec_ext in '' $ac_executable_extensions; do 8169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8170 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8172 break 2 8173 fi 8174done 8175 done 8176IFS=$as_save_IFS 8177 8178fi ;; 8179esac 8180fi 8181MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8182if test -n "$MANIFEST_TOOL"; then 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8184printf "%s\n" "$MANIFEST_TOOL" >&6; } 8185else 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8187printf "%s\n" "no" >&6; } 8188fi 8189 8190 8191fi 8192if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8193 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8194 # Extract the first word of "mt", so it can be a program name with args. 8195set dummy mt; ac_word=$2 8196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8197printf %s "checking for $ac_word... " >&6; } 8198if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8199then : 8200 printf %s "(cached) " >&6 8201else case e in #( 8202 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8203 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8204else 8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8206for as_dir in $PATH 8207do 8208 IFS=$as_save_IFS 8209 case $as_dir in #((( 8210 '') as_dir=./ ;; 8211 */) ;; 8212 *) as_dir=$as_dir/ ;; 8213 esac 8214 for ac_exec_ext in '' $ac_executable_extensions; do 8215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8216 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8218 break 2 8219 fi 8220done 8221 done 8222IFS=$as_save_IFS 8223 8224fi ;; 8225esac 8226fi 8227ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8228if test -n "$ac_ct_MANIFEST_TOOL"; then 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8230printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8231else 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8233printf "%s\n" "no" >&6; } 8234fi 8235 8236 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8237 MANIFEST_TOOL=":" 8238 else 8239 case $cross_compiling:$ac_tool_warned in 8240yes:) 8241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8243ac_tool_warned=yes ;; 8244esac 8245 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8246 fi 8247else 8248 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8249fi 8250 8251test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8253printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8254if test ${lt_cv_path_mainfest_tool+y} 8255then : 8256 printf %s "(cached) " >&6 8257else case e in #( 8258 e) lt_cv_path_mainfest_tool=no 8259 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8260 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8261 cat conftest.err >&5 8262 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8263 lt_cv_path_mainfest_tool=yes 8264 fi 8265 rm -f conftest* ;; 8266esac 8267fi 8268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8269printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8270if test yes != "$lt_cv_path_mainfest_tool"; then 8271 MANIFEST_TOOL=: 8272fi 8273 8274 8275 8276 8277 8278 8279 case $host_os in 8280 rhapsody* | darwin*) 8281 if test -n "$ac_tool_prefix"; then 8282 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8283set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8285printf %s "checking for $ac_word... " >&6; } 8286if test ${ac_cv_prog_DSYMUTIL+y} 8287then : 8288 printf %s "(cached) " >&6 8289else case e in #( 8290 e) if test -n "$DSYMUTIL"; then 8291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8292else 8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8294for as_dir in $PATH 8295do 8296 IFS=$as_save_IFS 8297 case $as_dir in #((( 8298 '') as_dir=./ ;; 8299 */) ;; 8300 *) as_dir=$as_dir/ ;; 8301 esac 8302 for ac_exec_ext in '' $ac_executable_extensions; do 8303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8306 break 2 8307 fi 8308done 8309 done 8310IFS=$as_save_IFS 8311 8312fi ;; 8313esac 8314fi 8315DSYMUTIL=$ac_cv_prog_DSYMUTIL 8316if test -n "$DSYMUTIL"; then 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8318printf "%s\n" "$DSYMUTIL" >&6; } 8319else 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321printf "%s\n" "no" >&6; } 8322fi 8323 8324 8325fi 8326if test -z "$ac_cv_prog_DSYMUTIL"; then 8327 ac_ct_DSYMUTIL=$DSYMUTIL 8328 # Extract the first word of "dsymutil", so it can be a program name with args. 8329set dummy dsymutil; ac_word=$2 8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8331printf %s "checking for $ac_word... " >&6; } 8332if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8333then : 8334 printf %s "(cached) " >&6 8335else case e in #( 8336 e) if test -n "$ac_ct_DSYMUTIL"; then 8337 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8338else 8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340for as_dir in $PATH 8341do 8342 IFS=$as_save_IFS 8343 case $as_dir in #((( 8344 '') as_dir=./ ;; 8345 */) ;; 8346 *) as_dir=$as_dir/ ;; 8347 esac 8348 for ac_exec_ext in '' $ac_executable_extensions; do 8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8350 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8352 break 2 8353 fi 8354done 8355 done 8356IFS=$as_save_IFS 8357 8358fi ;; 8359esac 8360fi 8361ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8362if test -n "$ac_ct_DSYMUTIL"; then 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8364printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8365else 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8367printf "%s\n" "no" >&6; } 8368fi 8369 8370 if test "x$ac_ct_DSYMUTIL" = x; then 8371 DSYMUTIL=":" 8372 else 8373 case $cross_compiling:$ac_tool_warned in 8374yes:) 8375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8377ac_tool_warned=yes ;; 8378esac 8379 DSYMUTIL=$ac_ct_DSYMUTIL 8380 fi 8381else 8382 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8383fi 8384 8385 if test -n "$ac_tool_prefix"; then 8386 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8387set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8389printf %s "checking for $ac_word... " >&6; } 8390if test ${ac_cv_prog_NMEDIT+y} 8391then : 8392 printf %s "(cached) " >&6 8393else case e in #( 8394 e) if test -n "$NMEDIT"; then 8395 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8396else 8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8398for as_dir in $PATH 8399do 8400 IFS=$as_save_IFS 8401 case $as_dir in #((( 8402 '') as_dir=./ ;; 8403 */) ;; 8404 *) as_dir=$as_dir/ ;; 8405 esac 8406 for ac_exec_ext in '' $ac_executable_extensions; do 8407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8410 break 2 8411 fi 8412done 8413 done 8414IFS=$as_save_IFS 8415 8416fi ;; 8417esac 8418fi 8419NMEDIT=$ac_cv_prog_NMEDIT 8420if test -n "$NMEDIT"; then 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8422printf "%s\n" "$NMEDIT" >&6; } 8423else 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8425printf "%s\n" "no" >&6; } 8426fi 8427 8428 8429fi 8430if test -z "$ac_cv_prog_NMEDIT"; then 8431 ac_ct_NMEDIT=$NMEDIT 8432 # Extract the first word of "nmedit", so it can be a program name with args. 8433set dummy nmedit; ac_word=$2 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8435printf %s "checking for $ac_word... " >&6; } 8436if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8437then : 8438 printf %s "(cached) " >&6 8439else case e in #( 8440 e) if test -n "$ac_ct_NMEDIT"; then 8441 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8442else 8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8444for as_dir in $PATH 8445do 8446 IFS=$as_save_IFS 8447 case $as_dir in #((( 8448 '') as_dir=./ ;; 8449 */) ;; 8450 *) as_dir=$as_dir/ ;; 8451 esac 8452 for ac_exec_ext in '' $ac_executable_extensions; do 8453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8454 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8456 break 2 8457 fi 8458done 8459 done 8460IFS=$as_save_IFS 8461 8462fi ;; 8463esac 8464fi 8465ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8466if test -n "$ac_ct_NMEDIT"; then 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8468printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8469else 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471printf "%s\n" "no" >&6; } 8472fi 8473 8474 if test "x$ac_ct_NMEDIT" = x; then 8475 NMEDIT=":" 8476 else 8477 case $cross_compiling:$ac_tool_warned in 8478yes:) 8479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8480printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8481ac_tool_warned=yes ;; 8482esac 8483 NMEDIT=$ac_ct_NMEDIT 8484 fi 8485else 8486 NMEDIT="$ac_cv_prog_NMEDIT" 8487fi 8488 8489 if test -n "$ac_tool_prefix"; then 8490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8491set dummy ${ac_tool_prefix}lipo; ac_word=$2 8492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493printf %s "checking for $ac_word... " >&6; } 8494if test ${ac_cv_prog_LIPO+y} 8495then : 8496 printf %s "(cached) " >&6 8497else case e in #( 8498 e) if test -n "$LIPO"; then 8499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8500else 8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8502for as_dir in $PATH 8503do 8504 IFS=$as_save_IFS 8505 case $as_dir in #((( 8506 '') as_dir=./ ;; 8507 */) ;; 8508 *) as_dir=$as_dir/ ;; 8509 esac 8510 for ac_exec_ext in '' $ac_executable_extensions; do 8511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8514 break 2 8515 fi 8516done 8517 done 8518IFS=$as_save_IFS 8519 8520fi ;; 8521esac 8522fi 8523LIPO=$ac_cv_prog_LIPO 8524if test -n "$LIPO"; then 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8526printf "%s\n" "$LIPO" >&6; } 8527else 8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8529printf "%s\n" "no" >&6; } 8530fi 8531 8532 8533fi 8534if test -z "$ac_cv_prog_LIPO"; then 8535 ac_ct_LIPO=$LIPO 8536 # Extract the first word of "lipo", so it can be a program name with args. 8537set dummy lipo; ac_word=$2 8538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8539printf %s "checking for $ac_word... " >&6; } 8540if test ${ac_cv_prog_ac_ct_LIPO+y} 8541then : 8542 printf %s "(cached) " >&6 8543else case e in #( 8544 e) if test -n "$ac_ct_LIPO"; then 8545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8546else 8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8548for as_dir in $PATH 8549do 8550 IFS=$as_save_IFS 8551 case $as_dir in #((( 8552 '') as_dir=./ ;; 8553 */) ;; 8554 *) as_dir=$as_dir/ ;; 8555 esac 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8558 ac_cv_prog_ac_ct_LIPO="lipo" 8559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562done 8563 done 8564IFS=$as_save_IFS 8565 8566fi ;; 8567esac 8568fi 8569ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8570if test -n "$ac_ct_LIPO"; then 8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8572printf "%s\n" "$ac_ct_LIPO" >&6; } 8573else 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8575printf "%s\n" "no" >&6; } 8576fi 8577 8578 if test "x$ac_ct_LIPO" = x; then 8579 LIPO=":" 8580 else 8581 case $cross_compiling:$ac_tool_warned in 8582yes:) 8583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8585ac_tool_warned=yes ;; 8586esac 8587 LIPO=$ac_ct_LIPO 8588 fi 8589else 8590 LIPO="$ac_cv_prog_LIPO" 8591fi 8592 8593 if test -n "$ac_tool_prefix"; then 8594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8595set dummy ${ac_tool_prefix}otool; ac_word=$2 8596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8597printf %s "checking for $ac_word... " >&6; } 8598if test ${ac_cv_prog_OTOOL+y} 8599then : 8600 printf %s "(cached) " >&6 8601else case e in #( 8602 e) if test -n "$OTOOL"; then 8603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8604else 8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8606for as_dir in $PATH 8607do 8608 IFS=$as_save_IFS 8609 case $as_dir in #((( 8610 '') as_dir=./ ;; 8611 */) ;; 8612 *) as_dir=$as_dir/ ;; 8613 esac 8614 for ac_exec_ext in '' $ac_executable_extensions; do 8615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8618 break 2 8619 fi 8620done 8621 done 8622IFS=$as_save_IFS 8623 8624fi ;; 8625esac 8626fi 8627OTOOL=$ac_cv_prog_OTOOL 8628if test -n "$OTOOL"; then 8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8630printf "%s\n" "$OTOOL" >&6; } 8631else 8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8633printf "%s\n" "no" >&6; } 8634fi 8635 8636 8637fi 8638if test -z "$ac_cv_prog_OTOOL"; then 8639 ac_ct_OTOOL=$OTOOL 8640 # Extract the first word of "otool", so it can be a program name with args. 8641set dummy otool; ac_word=$2 8642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8643printf %s "checking for $ac_word... " >&6; } 8644if test ${ac_cv_prog_ac_ct_OTOOL+y} 8645then : 8646 printf %s "(cached) " >&6 8647else case e in #( 8648 e) if test -n "$ac_ct_OTOOL"; then 8649 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8650else 8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8652for as_dir in $PATH 8653do 8654 IFS=$as_save_IFS 8655 case $as_dir in #((( 8656 '') as_dir=./ ;; 8657 */) ;; 8658 *) as_dir=$as_dir/ ;; 8659 esac 8660 for ac_exec_ext in '' $ac_executable_extensions; do 8661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8662 ac_cv_prog_ac_ct_OTOOL="otool" 8663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8664 break 2 8665 fi 8666done 8667 done 8668IFS=$as_save_IFS 8669 8670fi ;; 8671esac 8672fi 8673ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8674if test -n "$ac_ct_OTOOL"; then 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8676printf "%s\n" "$ac_ct_OTOOL" >&6; } 8677else 8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8679printf "%s\n" "no" >&6; } 8680fi 8681 8682 if test "x$ac_ct_OTOOL" = x; then 8683 OTOOL=":" 8684 else 8685 case $cross_compiling:$ac_tool_warned in 8686yes:) 8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8688printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8689ac_tool_warned=yes ;; 8690esac 8691 OTOOL=$ac_ct_OTOOL 8692 fi 8693else 8694 OTOOL="$ac_cv_prog_OTOOL" 8695fi 8696 8697 if test -n "$ac_tool_prefix"; then 8698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8699set dummy ${ac_tool_prefix}otool64; ac_word=$2 8700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8701printf %s "checking for $ac_word... " >&6; } 8702if test ${ac_cv_prog_OTOOL64+y} 8703then : 8704 printf %s "(cached) " >&6 8705else case e in #( 8706 e) if test -n "$OTOOL64"; then 8707 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8708else 8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8710for as_dir in $PATH 8711do 8712 IFS=$as_save_IFS 8713 case $as_dir in #((( 8714 '') as_dir=./ ;; 8715 */) ;; 8716 *) as_dir=$as_dir/ ;; 8717 esac 8718 for ac_exec_ext in '' $ac_executable_extensions; do 8719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8720 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8722 break 2 8723 fi 8724done 8725 done 8726IFS=$as_save_IFS 8727 8728fi ;; 8729esac 8730fi 8731OTOOL64=$ac_cv_prog_OTOOL64 8732if test -n "$OTOOL64"; then 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8734printf "%s\n" "$OTOOL64" >&6; } 8735else 8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8737printf "%s\n" "no" >&6; } 8738fi 8739 8740 8741fi 8742if test -z "$ac_cv_prog_OTOOL64"; then 8743 ac_ct_OTOOL64=$OTOOL64 8744 # Extract the first word of "otool64", so it can be a program name with args. 8745set dummy otool64; ac_word=$2 8746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8747printf %s "checking for $ac_word... " >&6; } 8748if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8749then : 8750 printf %s "(cached) " >&6 8751else case e in #( 8752 e) if test -n "$ac_ct_OTOOL64"; then 8753 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8754else 8755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8756for as_dir in $PATH 8757do 8758 IFS=$as_save_IFS 8759 case $as_dir in #((( 8760 '') as_dir=./ ;; 8761 */) ;; 8762 *) as_dir=$as_dir/ ;; 8763 esac 8764 for ac_exec_ext in '' $ac_executable_extensions; do 8765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8766 ac_cv_prog_ac_ct_OTOOL64="otool64" 8767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8768 break 2 8769 fi 8770done 8771 done 8772IFS=$as_save_IFS 8773 8774fi ;; 8775esac 8776fi 8777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8778if test -n "$ac_ct_OTOOL64"; then 8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8780printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8781else 8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8783printf "%s\n" "no" >&6; } 8784fi 8785 8786 if test "x$ac_ct_OTOOL64" = x; then 8787 OTOOL64=":" 8788 else 8789 case $cross_compiling:$ac_tool_warned in 8790yes:) 8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8792printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8793ac_tool_warned=yes ;; 8794esac 8795 OTOOL64=$ac_ct_OTOOL64 8796 fi 8797else 8798 OTOOL64="$ac_cv_prog_OTOOL64" 8799fi 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8828printf %s "checking for -single_module linker flag... " >&6; } 8829if test ${lt_cv_apple_cc_single_mod+y} 8830then : 8831 printf %s "(cached) " >&6 8832else case e in #( 8833 e) lt_cv_apple_cc_single_mod=no 8834 if test -z "$LT_MULTI_MODULE"; then 8835 # By default we will add the -single_module flag. You can override 8836 # by either setting the environment variable LT_MULTI_MODULE 8837 # non-empty at configure time, or by adding -multi_module to the 8838 # link flags. 8839 rm -rf libconftest.dylib* 8840 echo "int foo(void){return 1;}" > conftest.c 8841 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8842-dynamiclib -Wl,-single_module conftest.c" >&5 8843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8844 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8845 _lt_result=$? 8846 # If there is a non-empty error log, and "single_module" 8847 # appears in it, assume the flag caused a linker warning 8848 if test -s conftest.err && $GREP single_module conftest.err; then 8849 cat conftest.err >&5 8850 # Otherwise, if the output was created with a 0 exit code from 8851 # the compiler, it worked. 8852 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8853 lt_cv_apple_cc_single_mod=yes 8854 else 8855 cat conftest.err >&5 8856 fi 8857 rm -rf libconftest.dylib* 8858 rm -f conftest.* 8859 fi ;; 8860esac 8861fi 8862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8863printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8864 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8866printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8867if test ${lt_cv_ld_exported_symbols_list+y} 8868then : 8869 printf %s "(cached) " >&6 8870else case e in #( 8871 e) lt_cv_ld_exported_symbols_list=no 8872 save_LDFLAGS=$LDFLAGS 8873 echo "_main" > conftest.sym 8874 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877 8878int 8879main (void) 8880{ 8881 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886if ac_fn_c_try_link "$LINENO" 8887then : 8888 lt_cv_ld_exported_symbols_list=yes 8889else case e in #( 8890 e) lt_cv_ld_exported_symbols_list=no ;; 8891esac 8892fi 8893rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8894 conftest$ac_exeext conftest.$ac_ext 8895 LDFLAGS=$save_LDFLAGS 8896 ;; 8897esac 8898fi 8899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8900printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8901 8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8903printf %s "checking for -force_load linker flag... " >&6; } 8904if test ${lt_cv_ld_force_load+y} 8905then : 8906 printf %s "(cached) " >&6 8907else case e in #( 8908 e) lt_cv_ld_force_load=no 8909 cat > conftest.c << _LT_EOF 8910int forced_loaded() { return 2;} 8911_LT_EOF 8912 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8913 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8914 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8915 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8916 echo "$RANLIB libconftest.a" >&5 8917 $RANLIB libconftest.a 2>&5 8918 cat > conftest.c << _LT_EOF 8919int main() { return 0;} 8920_LT_EOF 8921 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8922 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8923 _lt_result=$? 8924 if test -s conftest.err && $GREP force_load conftest.err; then 8925 cat conftest.err >&5 8926 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8927 lt_cv_ld_force_load=yes 8928 else 8929 cat conftest.err >&5 8930 fi 8931 rm -f conftest.err libconftest.a conftest conftest.c 8932 rm -rf conftest.dSYM 8933 ;; 8934esac 8935fi 8936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8937printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8938 case $host_os in 8939 rhapsody* | darwin1.[012]) 8940 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8941 darwin1.*) 8942 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8943 darwin*) 8944 case $MACOSX_DEPLOYMENT_TARGET,$host in 8945 10.[012],*|,*powerpc*-darwin[5-8]*) 8946 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8947 *) 8948 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8949 esac 8950 ;; 8951 esac 8952 if test yes = "$lt_cv_apple_cc_single_mod"; then 8953 _lt_dar_single_mod='$single_module' 8954 fi 8955 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8956 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8957 else 8958 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8959 fi 8960 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8961 _lt_dsymutil='~$DSYMUTIL $lib || :' 8962 else 8963 _lt_dsymutil= 8964 fi 8965 ;; 8966 esac 8967 8968# func_munge_path_list VARIABLE PATH 8969# ----------------------------------- 8970# VARIABLE is name of variable containing _space_ separated list of 8971# directories to be munged by the contents of PATH, which is string 8972# having a format: 8973# "DIR[:DIR]:" 8974# string "DIR[ DIR]" will be prepended to VARIABLE 8975# ":DIR[:DIR]" 8976# string "DIR[ DIR]" will be appended to VARIABLE 8977# "DIRP[:DIRP]::[DIRA:]DIRA" 8978# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8979# "DIRA[ DIRA]" will be appended to VARIABLE 8980# "DIR[:DIR]" 8981# VARIABLE will be replaced by "DIR[ DIR]" 8982func_munge_path_list () 8983{ 8984 case x$2 in 8985 x) 8986 ;; 8987 *:) 8988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8989 ;; 8990 x:*) 8991 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8992 ;; 8993 *::*) 8994 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8995 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8996 ;; 8997 *) 8998 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8999 ;; 9000 esac 9001} 9002 9003ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9004" 9005if test "x$ac_cv_header_dlfcn_h" = xyes 9006then : 9007 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9008 9009fi 9010 9011 9012 9013 9014 9015# Set options 9016 9017 9018 9019 enable_dlopen=no 9020 9021 9022 enable_win32_dll=no 9023 9024 9025 # Check whether --enable-shared was given. 9026if test ${enable_shared+y} 9027then : 9028 enableval=$enable_shared; p=${PACKAGE-default} 9029 case $enableval in 9030 yes) enable_shared=yes ;; 9031 no) enable_shared=no ;; 9032 *) 9033 enable_shared=no 9034 # Look at the argument we got. We use all the common list separators. 9035 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9036 for pkg in $enableval; do 9037 IFS=$lt_save_ifs 9038 if test "X$pkg" = "X$p"; then 9039 enable_shared=yes 9040 fi 9041 done 9042 IFS=$lt_save_ifs 9043 ;; 9044 esac 9045else case e in #( 9046 e) enable_shared=yes ;; 9047esac 9048fi 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 # Check whether --enable-static was given. 9059if test ${enable_static+y} 9060then : 9061 enableval=$enable_static; p=${PACKAGE-default} 9062 case $enableval in 9063 yes) enable_static=yes ;; 9064 no) enable_static=no ;; 9065 *) 9066 enable_static=no 9067 # Look at the argument we got. We use all the common list separators. 9068 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9069 for pkg in $enableval; do 9070 IFS=$lt_save_ifs 9071 if test "X$pkg" = "X$p"; then 9072 enable_static=yes 9073 fi 9074 done 9075 IFS=$lt_save_ifs 9076 ;; 9077 esac 9078else case e in #( 9079 e) enable_static=yes ;; 9080esac 9081fi 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092# Check whether --with-pic was given. 9093if test ${with_pic+y} 9094then : 9095 withval=$with_pic; lt_p=${PACKAGE-default} 9096 case $withval in 9097 yes|no) pic_mode=$withval ;; 9098 *) 9099 pic_mode=default 9100 # Look at the argument we got. We use all the common list separators. 9101 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9102 for lt_pkg in $withval; do 9103 IFS=$lt_save_ifs 9104 if test "X$lt_pkg" = "X$lt_p"; then 9105 pic_mode=yes 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 ;; 9110 esac 9111else case e in #( 9112 e) pic_mode=default ;; 9113esac 9114fi 9115 9116 9117 9118 9119 9120 9121 9122 9123 # Check whether --enable-fast-install was given. 9124if test ${enable_fast_install+y} 9125then : 9126 enableval=$enable_fast_install; p=${PACKAGE-default} 9127 case $enableval in 9128 yes) enable_fast_install=yes ;; 9129 no) enable_fast_install=no ;; 9130 *) 9131 enable_fast_install=no 9132 # Look at the argument we got. We use all the common list separators. 9133 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9134 for pkg in $enableval; do 9135 IFS=$lt_save_ifs 9136 if test "X$pkg" = "X$p"; then 9137 enable_fast_install=yes 9138 fi 9139 done 9140 IFS=$lt_save_ifs 9141 ;; 9142 esac 9143else case e in #( 9144 e) enable_fast_install=yes ;; 9145esac 9146fi 9147 9148 9149 9150 9151 9152 9153 9154 9155 shared_archive_member_spec= 9156case $host,$enable_shared in 9157power*-*-aix[5-9]*,yes) 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9159printf %s "checking which variant of shared library versioning to provide... " >&6; } 9160 9161# Check whether --with-aix-soname was given. 9162if test ${with_aix_soname+y} 9163then : 9164 withval=$with_aix_soname; case $withval in 9165 aix|svr4|both) 9166 ;; 9167 *) 9168 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9169 ;; 9170 esac 9171 lt_cv_with_aix_soname=$with_aix_soname 9172else case e in #( 9173 e) if test ${lt_cv_with_aix_soname+y} 9174then : 9175 printf %s "(cached) " >&6 9176else case e in #( 9177 e) lt_cv_with_aix_soname=aix ;; 9178esac 9179fi 9180 9181 with_aix_soname=$lt_cv_with_aix_soname ;; 9182esac 9183fi 9184 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9186printf "%s\n" "$with_aix_soname" >&6; } 9187 if test aix != "$with_aix_soname"; then 9188 # For the AIX way of multilib, we name the shared archive member 9189 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9190 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9191 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9192 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9193 if test 64 = "${OBJECT_MODE-32}"; then 9194 shared_archive_member_spec=shr_64 9195 else 9196 shared_archive_member_spec=shr 9197 fi 9198 fi 9199 ;; 9200*) 9201 with_aix_soname=aix 9202 ;; 9203esac 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214# This can be used to rebuild libtool when needed 9215LIBTOOL_DEPS=$ltmain 9216 9217# Always use our own libtool. 9218LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249test -z "$LN_S" && LN_S="ln -s" 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264if test -n "${ZSH_VERSION+set}"; then 9265 setopt NO_GLOB_SUBST 9266fi 9267 9268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9269printf %s "checking for objdir... " >&6; } 9270if test ${lt_cv_objdir+y} 9271then : 9272 printf %s "(cached) " >&6 9273else case e in #( 9274 e) rm -f .libs 2>/dev/null 9275mkdir .libs 2>/dev/null 9276if test -d .libs; then 9277 lt_cv_objdir=.libs 9278else 9279 # MS-DOS does not allow filenames that begin with a dot. 9280 lt_cv_objdir=_libs 9281fi 9282rmdir .libs 2>/dev/null ;; 9283esac 9284fi 9285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9286printf "%s\n" "$lt_cv_objdir" >&6; } 9287objdir=$lt_cv_objdir 9288 9289 9290 9291 9292 9293printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9294 9295 9296 9297 9298case $host_os in 9299aix3*) 9300 # AIX sometimes has problems with the GCC collect2 program. For some 9301 # reason, if we set the COLLECT_NAMES environment variable, the problems 9302 # vanish in a puff of smoke. 9303 if test set != "${COLLECT_NAMES+set}"; then 9304 COLLECT_NAMES= 9305 export COLLECT_NAMES 9306 fi 9307 ;; 9308esac 9309 9310# Global variables: 9311ofile=libtool 9312can_build_shared=yes 9313 9314# All known linkers require a '.a' archive for static linking (except MSVC and 9315# ICC, which need '.lib'). 9316libext=a 9317 9318with_gnu_ld=$lt_cv_prog_gnu_ld 9319 9320old_CC=$CC 9321old_CFLAGS=$CFLAGS 9322 9323# Set sane defaults for various variables 9324test -z "$CC" && CC=cc 9325test -z "$LTCC" && LTCC=$CC 9326test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9327test -z "$LD" && LD=ld 9328test -z "$ac_objext" && ac_objext=o 9329 9330func_cc_basename $compiler 9331cc_basename=$func_cc_basename_result 9332 9333 9334# Only perform the check for file, if the check method requires it 9335test -z "$MAGIC_CMD" && MAGIC_CMD=file 9336case $deplibs_check_method in 9337file_magic*) 9338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9340printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9341if test ${lt_cv_path_MAGIC_CMD+y} 9342then : 9343 printf %s "(cached) " >&6 9344else case e in #( 9345 e) case $MAGIC_CMD in 9346[\\/*] | ?:[\\/]*) 9347 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9348 ;; 9349*) 9350 lt_save_MAGIC_CMD=$MAGIC_CMD 9351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9353 for ac_dir in $ac_dummy; do 9354 IFS=$lt_save_ifs 9355 test -z "$ac_dir" && ac_dir=. 9356 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9357 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9358 if test -n "$file_magic_test_file"; then 9359 case $deplibs_check_method in 9360 "file_magic "*) 9361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9364 $EGREP "$file_magic_regex" > /dev/null; then 9365 : 9366 else 9367 cat <<_LT_EOF 1>&2 9368 9369*** Warning: the command libtool uses to detect shared libraries, 9370*** $file_magic_cmd, produces output that libtool cannot recognize. 9371*** The result is that libtool may fail to recognize shared libraries 9372*** as such. This will affect the creation of libtool libraries that 9373*** depend on shared libraries, but programs linked with such libtool 9374*** libraries will work regardless of this problem. Nevertheless, you 9375*** may want to report the problem to your system manager and/or to 9376*** bug-libtool@gnu.org 9377 9378_LT_EOF 9379 fi ;; 9380 esac 9381 fi 9382 break 9383 fi 9384 done 9385 IFS=$lt_save_ifs 9386 MAGIC_CMD=$lt_save_MAGIC_CMD 9387 ;; 9388esac ;; 9389esac 9390fi 9391 9392MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9393if test -n "$MAGIC_CMD"; then 9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9395printf "%s\n" "$MAGIC_CMD" >&6; } 9396else 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9398printf "%s\n" "no" >&6; } 9399fi 9400 9401 9402 9403 9404 9405if test -z "$lt_cv_path_MAGIC_CMD"; then 9406 if test -n "$ac_tool_prefix"; then 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9408printf %s "checking for file... " >&6; } 9409if test ${lt_cv_path_MAGIC_CMD+y} 9410then : 9411 printf %s "(cached) " >&6 9412else case e in #( 9413 e) case $MAGIC_CMD in 9414[\\/*] | ?:[\\/]*) 9415 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9416 ;; 9417*) 9418 lt_save_MAGIC_CMD=$MAGIC_CMD 9419 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9421 for ac_dir in $ac_dummy; do 9422 IFS=$lt_save_ifs 9423 test -z "$ac_dir" && ac_dir=. 9424 if test -f "$ac_dir/file"; then 9425 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9426 if test -n "$file_magic_test_file"; then 9427 case $deplibs_check_method in 9428 "file_magic "*) 9429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9430 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9432 $EGREP "$file_magic_regex" > /dev/null; then 9433 : 9434 else 9435 cat <<_LT_EOF 1>&2 9436 9437*** Warning: the command libtool uses to detect shared libraries, 9438*** $file_magic_cmd, produces output that libtool cannot recognize. 9439*** The result is that libtool may fail to recognize shared libraries 9440*** as such. This will affect the creation of libtool libraries that 9441*** depend on shared libraries, but programs linked with such libtool 9442*** libraries will work regardless of this problem. Nevertheless, you 9443*** may want to report the problem to your system manager and/or to 9444*** bug-libtool@gnu.org 9445 9446_LT_EOF 9447 fi ;; 9448 esac 9449 fi 9450 break 9451 fi 9452 done 9453 IFS=$lt_save_ifs 9454 MAGIC_CMD=$lt_save_MAGIC_CMD 9455 ;; 9456esac ;; 9457esac 9458fi 9459 9460MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9461if test -n "$MAGIC_CMD"; then 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9463printf "%s\n" "$MAGIC_CMD" >&6; } 9464else 9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9466printf "%s\n" "no" >&6; } 9467fi 9468 9469 9470 else 9471 MAGIC_CMD=: 9472 fi 9473fi 9474 9475 fi 9476 ;; 9477esac 9478 9479# Use C for the default configuration in the libtool script 9480 9481lt_save_CC=$CC 9482ac_ext=c 9483ac_cpp='$CPP $CPPFLAGS' 9484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9486ac_compiler_gnu=$ac_cv_c_compiler_gnu 9487 9488 9489# Source file extension for C test sources. 9490ac_ext=c 9491 9492# Object file extension for compiled C test sources. 9493objext=o 9494objext=$objext 9495 9496# Code to be used in simple compile tests 9497lt_simple_compile_test_code="int some_variable = 0;" 9498 9499# Code to be used in simple link tests 9500lt_simple_link_test_code='int main(){return(0);}' 9501 9502 9503 9504 9505 9506 9507 9508# If no C compiler was specified, use CC. 9509LTCC=${LTCC-"$CC"} 9510 9511# If no C compiler flags were specified, use CFLAGS. 9512LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9513 9514# Allow CC to be a program name with arguments. 9515compiler=$CC 9516 9517# Save the default compiler, since it gets overwritten when the other 9518# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9519compiler_DEFAULT=$CC 9520 9521# save warnings/boilerplate of simple test code 9522ac_outfile=conftest.$ac_objext 9523echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9524eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9525_lt_compiler_boilerplate=`cat conftest.err` 9526$RM conftest* 9527 9528ac_outfile=conftest.$ac_objext 9529echo "$lt_simple_link_test_code" >conftest.$ac_ext 9530eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9531_lt_linker_boilerplate=`cat conftest.err` 9532$RM -r conftest* 9533 9534 9535## CAVEAT EMPTOR: 9536## There is no encapsulation within the following macros, do not change 9537## the running order or otherwise move them around unless you know exactly 9538## what you are doing... 9539if test -n "$compiler"; then 9540 9541lt_prog_compiler_no_builtin_flag= 9542 9543if test yes = "$GCC"; then 9544 case $cc_basename in 9545 nvcc*) 9546 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9547 *) 9548 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9549 esac 9550 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9552printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9553if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9554then : 9555 printf %s "(cached) " >&6 9556else case e in #( 9557 e) lt_cv_prog_compiler_rtti_exceptions=no 9558 ac_outfile=conftest.$ac_objext 9559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9560 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9561 # Insert the option either (1) after the last *FLAGS variable, or 9562 # (2) before a word containing "conftest.", or (3) at the end. 9563 # Note that $ac_compile itself does not contain backslashes and begins 9564 # with a dollar sign (not a hyphen), so the echo should work correctly. 9565 # The option is referenced via a variable to avoid confusing sed. 9566 lt_compile=`echo "$ac_compile" | $SED \ 9567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9569 -e 's:$: $lt_compiler_flag:'` 9570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9571 (eval "$lt_compile" 2>conftest.err) 9572 ac_status=$? 9573 cat conftest.err >&5 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 if (exit $ac_status) && test -s "$ac_outfile"; then 9576 # The compiler can only warn and ignore the option if not recognized 9577 # So say no if there are warnings other than the usual output. 9578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9581 lt_cv_prog_compiler_rtti_exceptions=yes 9582 fi 9583 fi 9584 $RM conftest* 9585 ;; 9586esac 9587fi 9588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9589printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9590 9591if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9593else 9594 : 9595fi 9596 9597fi 9598 9599 9600 9601 9602 9603 9604 lt_prog_compiler_wl= 9605lt_prog_compiler_pic= 9606lt_prog_compiler_static= 9607 9608 9609 if test yes = "$GCC"; then 9610 lt_prog_compiler_wl='-Wl,' 9611 lt_prog_compiler_static='-static' 9612 9613 case $host_os in 9614 aix*) 9615 # All AIX code is PIC. 9616 if test ia64 = "$host_cpu"; then 9617 # AIX 5 now supports IA64 processor 9618 lt_prog_compiler_static='-Bstatic' 9619 fi 9620 lt_prog_compiler_pic='-fPIC' 9621 ;; 9622 9623 amigaos*) 9624 case $host_cpu in 9625 powerpc) 9626 # see comment about AmigaOS4 .so support 9627 lt_prog_compiler_pic='-fPIC' 9628 ;; 9629 m68k) 9630 # FIXME: we need at least 68020 code to build shared libraries, but 9631 # adding the '-m68020' flag to GCC prevents building anything better, 9632 # like '-m68040'. 9633 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9634 ;; 9635 esac 9636 ;; 9637 9638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9639 # PIC is the default for these OSes. 9640 ;; 9641 9642 mingw* | cygwin* | pw32* | os2* | cegcc*) 9643 # This hack is so that the source file can tell whether it is being 9644 # built for inclusion in a dll (and should export symbols for example). 9645 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9646 # (--disable-auto-import) libraries 9647 lt_prog_compiler_pic='-DDLL_EXPORT' 9648 case $host_os in 9649 os2*) 9650 lt_prog_compiler_static='$wl-static' 9651 ;; 9652 esac 9653 ;; 9654 9655 darwin* | rhapsody*) 9656 # PIC is the default on this platform 9657 # Common symbols not allowed in MH_DYLIB files 9658 lt_prog_compiler_pic='-fno-common' 9659 ;; 9660 9661 haiku*) 9662 # PIC is the default for Haiku. 9663 # The "-static" flag exists, but is broken. 9664 lt_prog_compiler_static= 9665 ;; 9666 9667 hpux*) 9668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9670 # sets the default TLS model and affects inlining. 9671 case $host_cpu in 9672 hppa*64*) 9673 # +Z the default 9674 ;; 9675 *) 9676 lt_prog_compiler_pic='-fPIC' 9677 ;; 9678 esac 9679 ;; 9680 9681 interix[3-9]*) 9682 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9683 # Instead, we relocate shared libraries at runtime. 9684 ;; 9685 9686 msdosdjgpp*) 9687 # Just because we use GCC doesn't mean we suddenly get shared libraries 9688 # on systems that don't support them. 9689 lt_prog_compiler_can_build_shared=no 9690 enable_shared=no 9691 ;; 9692 9693 *nto* | *qnx*) 9694 # QNX uses GNU C++, but need to define -shared option too, otherwise 9695 # it will coredump. 9696 lt_prog_compiler_pic='-fPIC -shared' 9697 ;; 9698 9699 sysv4*MP*) 9700 if test -d /usr/nec; then 9701 lt_prog_compiler_pic=-Kconform_pic 9702 fi 9703 ;; 9704 9705 *) 9706 lt_prog_compiler_pic='-fPIC' 9707 ;; 9708 esac 9709 9710 case $cc_basename in 9711 nvcc*) # Cuda Compiler Driver 2.2 9712 lt_prog_compiler_wl='-Xlinker ' 9713 if test -n "$lt_prog_compiler_pic"; then 9714 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9715 fi 9716 ;; 9717 esac 9718 else 9719 # PORTME Check for flag to pass linker flags through the system compiler. 9720 case $host_os in 9721 aix*) 9722 lt_prog_compiler_wl='-Wl,' 9723 if test ia64 = "$host_cpu"; then 9724 # AIX 5 now supports IA64 processor 9725 lt_prog_compiler_static='-Bstatic' 9726 else 9727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9728 fi 9729 ;; 9730 9731 darwin* | rhapsody*) 9732 # PIC is the default on this platform 9733 # Common symbols not allowed in MH_DYLIB files 9734 lt_prog_compiler_pic='-fno-common' 9735 case $cc_basename in 9736 nagfor*) 9737 # NAG Fortran compiler 9738 lt_prog_compiler_wl='-Wl,-Wl,,' 9739 lt_prog_compiler_pic='-PIC' 9740 lt_prog_compiler_static='-Bstatic' 9741 ;; 9742 esac 9743 ;; 9744 9745 mingw* | cygwin* | pw32* | os2* | cegcc*) 9746 # This hack is so that the source file can tell whether it is being 9747 # built for inclusion in a dll (and should export symbols for example). 9748 lt_prog_compiler_pic='-DDLL_EXPORT' 9749 case $host_os in 9750 os2*) 9751 lt_prog_compiler_static='$wl-static' 9752 ;; 9753 esac 9754 ;; 9755 9756 hpux9* | hpux10* | hpux11*) 9757 lt_prog_compiler_wl='-Wl,' 9758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9759 # not for PA HP-UX. 9760 case $host_cpu in 9761 hppa*64*|ia64*) 9762 # +Z the default 9763 ;; 9764 *) 9765 lt_prog_compiler_pic='+Z' 9766 ;; 9767 esac 9768 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9769 lt_prog_compiler_static='$wl-a ${wl}archive' 9770 ;; 9771 9772 irix5* | irix6* | nonstopux*) 9773 lt_prog_compiler_wl='-Wl,' 9774 # PIC (with -KPIC) is the default. 9775 lt_prog_compiler_static='-non_shared' 9776 ;; 9777 9778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9779 case $cc_basename in 9780 # old Intel for x86_64, which still supported -KPIC. 9781 ecc*) 9782 lt_prog_compiler_wl='-Wl,' 9783 lt_prog_compiler_pic='-KPIC' 9784 lt_prog_compiler_static='-static' 9785 ;; 9786 # icc used to be incompatible with GCC. 9787 # ICC 10 doesn't accept -KPIC any more. 9788 icc* | ifort*) 9789 lt_prog_compiler_wl='-Wl,' 9790 lt_prog_compiler_pic='-fPIC' 9791 lt_prog_compiler_static='-static' 9792 ;; 9793 # Lahey Fortran 8.1. 9794 lf95*) 9795 lt_prog_compiler_wl='-Wl,' 9796 lt_prog_compiler_pic='--shared' 9797 lt_prog_compiler_static='--static' 9798 ;; 9799 nagfor*) 9800 # NAG Fortran compiler 9801 lt_prog_compiler_wl='-Wl,-Wl,,' 9802 lt_prog_compiler_pic='-PIC' 9803 lt_prog_compiler_static='-Bstatic' 9804 ;; 9805 tcc*) 9806 # Fabrice Bellard et al's Tiny C Compiler 9807 lt_prog_compiler_wl='-Wl,' 9808 lt_prog_compiler_pic='-fPIC' 9809 lt_prog_compiler_static='-static' 9810 ;; 9811 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9812 # Portland Group compilers (*not* the Pentium gcc compiler, 9813 # which looks to be a dead project) 9814 lt_prog_compiler_wl='-Wl,' 9815 lt_prog_compiler_pic='-fpic' 9816 lt_prog_compiler_static='-Bstatic' 9817 ;; 9818 ccc*) 9819 lt_prog_compiler_wl='-Wl,' 9820 # All Alpha code is PIC. 9821 lt_prog_compiler_static='-non_shared' 9822 ;; 9823 xl* | bgxl* | bgf* | mpixl*) 9824 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9825 lt_prog_compiler_wl='-Wl,' 9826 lt_prog_compiler_pic='-qpic' 9827 lt_prog_compiler_static='-qstaticlink' 9828 ;; 9829 *) 9830 case `$CC -V 2>&1 | $SED 5q` in 9831 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9833 lt_prog_compiler_pic='-KPIC' 9834 lt_prog_compiler_static='-Bstatic' 9835 lt_prog_compiler_wl='' 9836 ;; 9837 *Sun\ F* | *Sun*Fortran*) 9838 lt_prog_compiler_pic='-KPIC' 9839 lt_prog_compiler_static='-Bstatic' 9840 lt_prog_compiler_wl='-Qoption ld ' 9841 ;; 9842 *Sun\ C*) 9843 # Sun C 5.9 9844 lt_prog_compiler_pic='-KPIC' 9845 lt_prog_compiler_static='-Bstatic' 9846 lt_prog_compiler_wl='-Wl,' 9847 ;; 9848 *Intel*\ [CF]*Compiler*) 9849 lt_prog_compiler_wl='-Wl,' 9850 lt_prog_compiler_pic='-fPIC' 9851 lt_prog_compiler_static='-static' 9852 ;; 9853 *Portland\ Group*) 9854 lt_prog_compiler_wl='-Wl,' 9855 lt_prog_compiler_pic='-fpic' 9856 lt_prog_compiler_static='-Bstatic' 9857 ;; 9858 esac 9859 ;; 9860 esac 9861 ;; 9862 9863 newsos6) 9864 lt_prog_compiler_pic='-KPIC' 9865 lt_prog_compiler_static='-Bstatic' 9866 ;; 9867 9868 *nto* | *qnx*) 9869 # QNX uses GNU C++, but need to define -shared option too, otherwise 9870 # it will coredump. 9871 lt_prog_compiler_pic='-fPIC -shared' 9872 ;; 9873 9874 osf3* | osf4* | osf5*) 9875 lt_prog_compiler_wl='-Wl,' 9876 # All OSF/1 code is PIC. 9877 lt_prog_compiler_static='-non_shared' 9878 ;; 9879 9880 rdos*) 9881 lt_prog_compiler_static='-non_shared' 9882 ;; 9883 9884 solaris*) 9885 lt_prog_compiler_pic='-KPIC' 9886 lt_prog_compiler_static='-Bstatic' 9887 case $cc_basename in 9888 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9889 lt_prog_compiler_wl='-Qoption ld ';; 9890 *) 9891 lt_prog_compiler_wl='-Wl,';; 9892 esac 9893 ;; 9894 9895 sunos4*) 9896 lt_prog_compiler_wl='-Qoption ld ' 9897 lt_prog_compiler_pic='-PIC' 9898 lt_prog_compiler_static='-Bstatic' 9899 ;; 9900 9901 sysv4 | sysv4.2uw2* | sysv4.3*) 9902 lt_prog_compiler_wl='-Wl,' 9903 lt_prog_compiler_pic='-KPIC' 9904 lt_prog_compiler_static='-Bstatic' 9905 ;; 9906 9907 sysv4*MP*) 9908 if test -d /usr/nec; then 9909 lt_prog_compiler_pic='-Kconform_pic' 9910 lt_prog_compiler_static='-Bstatic' 9911 fi 9912 ;; 9913 9914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9915 lt_prog_compiler_wl='-Wl,' 9916 lt_prog_compiler_pic='-KPIC' 9917 lt_prog_compiler_static='-Bstatic' 9918 ;; 9919 9920 unicos*) 9921 lt_prog_compiler_wl='-Wl,' 9922 lt_prog_compiler_can_build_shared=no 9923 ;; 9924 9925 uts4*) 9926 lt_prog_compiler_pic='-pic' 9927 lt_prog_compiler_static='-Bstatic' 9928 ;; 9929 9930 *) 9931 lt_prog_compiler_can_build_shared=no 9932 ;; 9933 esac 9934 fi 9935 9936case $host_os in 9937 # For platforms that do not support PIC, -DPIC is meaningless: 9938 *djgpp*) 9939 lt_prog_compiler_pic= 9940 ;; 9941 *) 9942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9943 ;; 9944esac 9945 9946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9947printf %s "checking for $compiler option to produce PIC... " >&6; } 9948if test ${lt_cv_prog_compiler_pic+y} 9949then : 9950 printf %s "(cached) " >&6 9951else case e in #( 9952 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9953esac 9954fi 9955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9956printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9957lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9958 9959# 9960# Check to make sure the PIC flag actually works. 9961# 9962if test -n "$lt_prog_compiler_pic"; then 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9964printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9965if test ${lt_cv_prog_compiler_pic_works+y} 9966then : 9967 printf %s "(cached) " >&6 9968else case e in #( 9969 e) lt_cv_prog_compiler_pic_works=no 9970 ac_outfile=conftest.$ac_objext 9971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9973 # Insert the option either (1) after the last *FLAGS variable, or 9974 # (2) before a word containing "conftest.", or (3) at the end. 9975 # Note that $ac_compile itself does not contain backslashes and begins 9976 # with a dollar sign (not a hyphen), so the echo should work correctly. 9977 # The option is referenced via a variable to avoid confusing sed. 9978 lt_compile=`echo "$ac_compile" | $SED \ 9979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9981 -e 's:$: $lt_compiler_flag:'` 9982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9983 (eval "$lt_compile" 2>conftest.err) 9984 ac_status=$? 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 if (exit $ac_status) && test -s "$ac_outfile"; then 9988 # The compiler can only warn and ignore the option if not recognized 9989 # So say no if there are warnings other than the usual output. 9990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9993 lt_cv_prog_compiler_pic_works=yes 9994 fi 9995 fi 9996 $RM conftest* 9997 ;; 9998esac 9999fi 10000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10001printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10002 10003if test yes = "$lt_cv_prog_compiler_pic_works"; then 10004 case $lt_prog_compiler_pic in 10005 "" | " "*) ;; 10006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10007 esac 10008else 10009 lt_prog_compiler_pic= 10010 lt_prog_compiler_can_build_shared=no 10011fi 10012 10013fi 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025# 10026# Check to make sure the static flag actually works. 10027# 10028wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10030printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10031if test ${lt_cv_prog_compiler_static_works+y} 10032then : 10033 printf %s "(cached) " >&6 10034else case e in #( 10035 e) lt_cv_prog_compiler_static_works=no 10036 save_LDFLAGS=$LDFLAGS 10037 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10040 # The linker can only warn and ignore the option if not recognized 10041 # So say no if there are warnings 10042 if test -s conftest.err; then 10043 # Append any errors to the config.log. 10044 cat conftest.err 1>&5 10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10047 if diff conftest.exp conftest.er2 >/dev/null; then 10048 lt_cv_prog_compiler_static_works=yes 10049 fi 10050 else 10051 lt_cv_prog_compiler_static_works=yes 10052 fi 10053 fi 10054 $RM -r conftest* 10055 LDFLAGS=$save_LDFLAGS 10056 ;; 10057esac 10058fi 10059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10060printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10061 10062if test yes = "$lt_cv_prog_compiler_static_works"; then 10063 : 10064else 10065 lt_prog_compiler_static= 10066fi 10067 10068 10069 10070 10071 10072 10073 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10075printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10076if test ${lt_cv_prog_compiler_c_o+y} 10077then : 10078 printf %s "(cached) " >&6 10079else case e in #( 10080 e) lt_cv_prog_compiler_c_o=no 10081 $RM -r conftest 2>/dev/null 10082 mkdir conftest 10083 cd conftest 10084 mkdir out 10085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10086 10087 lt_compiler_flag="-o out/conftest2.$ac_objext" 10088 # Insert the option either (1) after the last *FLAGS variable, or 10089 # (2) before a word containing "conftest.", or (3) at the end. 10090 # Note that $ac_compile itself does not contain backslashes and begins 10091 # with a dollar sign (not a hyphen), so the echo should work correctly. 10092 lt_compile=`echo "$ac_compile" | $SED \ 10093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10095 -e 's:$: $lt_compiler_flag:'` 10096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10097 (eval "$lt_compile" 2>out/conftest.err) 10098 ac_status=$? 10099 cat out/conftest.err >&5 10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10101 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10102 then 10103 # The compiler can only warn and ignore the option if not recognized 10104 # So say no if there are warnings 10105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10108 lt_cv_prog_compiler_c_o=yes 10109 fi 10110 fi 10111 chmod u+w . 2>&5 10112 $RM conftest* 10113 # SGI C++ compiler will create directory out/ii_files/ for 10114 # template instantiation 10115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10116 $RM out/* && rmdir out 10117 cd .. 10118 $RM -r conftest 10119 $RM conftest* 10120 ;; 10121esac 10122fi 10123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10124printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10125 10126 10127 10128 10129 10130 10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10132printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10133if test ${lt_cv_prog_compiler_c_o+y} 10134then : 10135 printf %s "(cached) " >&6 10136else case e in #( 10137 e) lt_cv_prog_compiler_c_o=no 10138 $RM -r conftest 2>/dev/null 10139 mkdir conftest 10140 cd conftest 10141 mkdir out 10142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10143 10144 lt_compiler_flag="-o out/conftest2.$ac_objext" 10145 # Insert the option either (1) after the last *FLAGS variable, or 10146 # (2) before a word containing "conftest.", or (3) at the end. 10147 # Note that $ac_compile itself does not contain backslashes and begins 10148 # with a dollar sign (not a hyphen), so the echo should work correctly. 10149 lt_compile=`echo "$ac_compile" | $SED \ 10150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10152 -e 's:$: $lt_compiler_flag:'` 10153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10154 (eval "$lt_compile" 2>out/conftest.err) 10155 ac_status=$? 10156 cat out/conftest.err >&5 10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10158 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10159 then 10160 # The compiler can only warn and ignore the option if not recognized 10161 # So say no if there are warnings 10162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10165 lt_cv_prog_compiler_c_o=yes 10166 fi 10167 fi 10168 chmod u+w . 2>&5 10169 $RM conftest* 10170 # SGI C++ compiler will create directory out/ii_files/ for 10171 # template instantiation 10172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10173 $RM out/* && rmdir out 10174 cd .. 10175 $RM -r conftest 10176 $RM conftest* 10177 ;; 10178esac 10179fi 10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10181printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10182 10183 10184 10185 10186hard_links=nottested 10187if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10188 # do not overwrite the value of need_locks provided by the user 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10190printf %s "checking if we can lock with hard links... " >&6; } 10191 hard_links=yes 10192 $RM conftest* 10193 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10194 touch conftest.a 10195 ln conftest.a conftest.b 2>&5 || hard_links=no 10196 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10198printf "%s\n" "$hard_links" >&6; } 10199 if test no = "$hard_links"; then 10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10201printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10202 need_locks=warn 10203 fi 10204else 10205 need_locks=no 10206fi 10207 10208 10209 10210 10211 10212 10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10214printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10215 10216 runpath_var= 10217 allow_undefined_flag= 10218 always_export_symbols=no 10219 archive_cmds= 10220 archive_expsym_cmds= 10221 compiler_needs_object=no 10222 enable_shared_with_static_runtimes=no 10223 export_dynamic_flag_spec= 10224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10225 hardcode_automatic=no 10226 hardcode_direct=no 10227 hardcode_direct_absolute=no 10228 hardcode_libdir_flag_spec= 10229 hardcode_libdir_separator= 10230 hardcode_minus_L=no 10231 hardcode_shlibpath_var=unsupported 10232 inherit_rpath=no 10233 link_all_deplibs=unknown 10234 module_cmds= 10235 module_expsym_cmds= 10236 old_archive_from_new_cmds= 10237 old_archive_from_expsyms_cmds= 10238 thread_safe_flag_spec= 10239 whole_archive_flag_spec= 10240 # include_expsyms should be a list of space-separated symbols to be *always* 10241 # included in the symbol list 10242 include_expsyms= 10243 # exclude_expsyms can be an extended regexp of symbols to exclude 10244 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10245 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10246 # as well as any symbol that contains 'd'. 10247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10249 # platforms (ab)use it in PIC code, but their linkers get confused if 10250 # the symbol is explicitly referenced. Since portable code cannot 10251 # rely on this symbol name, it's probably fine to never include it in 10252 # preloaded symbol tables. 10253 # Exclude shared library initialization/finalization symbols. 10254 extract_expsyms_cmds= 10255 10256 case $host_os in 10257 cygwin* | mingw* | pw32* | cegcc*) 10258 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10259 # When not using gcc, we currently assume that we are using 10260 # Microsoft Visual C++ or Intel C++ Compiler. 10261 if test yes != "$GCC"; then 10262 with_gnu_ld=no 10263 fi 10264 ;; 10265 interix*) 10266 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10267 with_gnu_ld=yes 10268 ;; 10269 openbsd* | bitrig*) 10270 with_gnu_ld=no 10271 ;; 10272 esac 10273 10274 ld_shlibs=yes 10275 10276 # On some targets, GNU ld is compatible enough with the native linker 10277 # that we're better off using the native interface for both. 10278 lt_use_gnu_ld_interface=no 10279 if test yes = "$with_gnu_ld"; then 10280 case $host_os in 10281 aix*) 10282 # The AIX port of GNU ld has always aspired to compatibility 10283 # with the native linker. However, as the warning in the GNU ld 10284 # block says, versions before 2.19.5* couldn't really create working 10285 # shared libraries, regardless of the interface used. 10286 case `$LD -v 2>&1` in 10287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10289 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10290 *) 10291 lt_use_gnu_ld_interface=yes 10292 ;; 10293 esac 10294 ;; 10295 *) 10296 lt_use_gnu_ld_interface=yes 10297 ;; 10298 esac 10299 fi 10300 10301 if test yes = "$lt_use_gnu_ld_interface"; then 10302 # If archive_cmds runs LD, not CC, wlarc should be empty 10303 wlarc='$wl' 10304 10305 # Set some defaults for GNU ld with shared library support. These 10306 # are reset later if shared libraries are not supported. Putting them 10307 # here allows them to be overridden if necessary. 10308 runpath_var=LD_RUN_PATH 10309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10310 export_dynamic_flag_spec='$wl--export-dynamic' 10311 # ancient GNU ld didn't support --whole-archive et. al. 10312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10313 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10314 else 10315 whole_archive_flag_spec= 10316 fi 10317 supports_anon_versioning=no 10318 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10319 *GNU\ gold*) supports_anon_versioning=yes ;; 10320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10323 *\ 2.11.*) ;; # other 2.11 versions 10324 *) supports_anon_versioning=yes ;; 10325 esac 10326 10327 # See if GNU ld supports shared libraries. 10328 case $host_os in 10329 aix[3-9]*) 10330 # On AIX/PPC, the GNU linker is very broken 10331 if test ia64 != "$host_cpu"; then 10332 ld_shlibs=no 10333 cat <<_LT_EOF 1>&2 10334 10335*** Warning: the GNU linker, at least up to release 2.19, is reported 10336*** to be unable to reliably create shared libraries on AIX. 10337*** Therefore, libtool is disabling shared libraries support. If you 10338*** really care for shared libraries, you may want to install binutils 10339*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10340*** You will then need to restart the configuration process. 10341 10342_LT_EOF 10343 fi 10344 ;; 10345 10346 amigaos*) 10347 case $host_cpu in 10348 powerpc) 10349 # see comment about AmigaOS4 .so support 10350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10351 archive_expsym_cmds='' 10352 ;; 10353 m68k) 10354 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)' 10355 hardcode_libdir_flag_spec='-L$libdir' 10356 hardcode_minus_L=yes 10357 ;; 10358 esac 10359 ;; 10360 10361 beos*) 10362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10363 allow_undefined_flag=unsupported 10364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10365 # support --undefined. This deserves some investigation. FIXME 10366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10367 else 10368 ld_shlibs=no 10369 fi 10370 ;; 10371 10372 cygwin* | mingw* | pw32* | cegcc*) 10373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10374 # as there is no search path for DLLs. 10375 hardcode_libdir_flag_spec='-L$libdir' 10376 export_dynamic_flag_spec='$wl--export-all-symbols' 10377 allow_undefined_flag=unsupported 10378 always_export_symbols=no 10379 enable_shared_with_static_runtimes=yes 10380 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' 10381 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10382 10383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10385 # If the export-symbols file already is a .def file, use it as 10386 # is; otherwise, prepend EXPORTS... 10387 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10388 cp $export_symbols $output_objdir/$soname.def; 10389 else 10390 echo EXPORTS > $output_objdir/$soname.def; 10391 cat $export_symbols >> $output_objdir/$soname.def; 10392 fi~ 10393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10394 else 10395 ld_shlibs=no 10396 fi 10397 ;; 10398 10399 haiku*) 10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10401 link_all_deplibs=yes 10402 ;; 10403 10404 os2*) 10405 hardcode_libdir_flag_spec='-L$libdir' 10406 hardcode_minus_L=yes 10407 allow_undefined_flag=unsupported 10408 shrext_cmds=.dll 10409 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10412 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10413 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10414 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10415 emximp -o $lib $output_objdir/$libname.def' 10416 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10417 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10418 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10419 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10420 prefix_cmds="$SED"~ 10421 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10422 prefix_cmds="$prefix_cmds -e 1d"; 10423 fi~ 10424 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10425 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10426 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10427 emximp -o $lib $output_objdir/$libname.def' 10428 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10429 enable_shared_with_static_runtimes=yes 10430 file_list_spec='@' 10431 ;; 10432 10433 interix[3-9]*) 10434 hardcode_direct=no 10435 hardcode_shlibpath_var=no 10436 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10437 export_dynamic_flag_spec='$wl-E' 10438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10439 # Instead, shared libraries are loaded at an image base (0x10000000 by 10440 # default) and relocated if they conflict, which is a slow very memory 10441 # consuming and fragmenting process. To avoid this, we pick a random, 10442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10443 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10445 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' 10446 ;; 10447 10448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10449 tmp_diet=no 10450 if test linux-dietlibc = "$host_os"; then 10451 case $cc_basename in 10452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10453 esac 10454 fi 10455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10456 && test no = "$tmp_diet" 10457 then 10458 tmp_addflag=' $pic_flag' 10459 tmp_sharedflag='-shared' 10460 case $cc_basename,$host_cpu in 10461 pgcc*) # Portland Group C compiler 10462 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' 10463 tmp_addflag=' $pic_flag' 10464 ;; 10465 pgf77* | pgf90* | pgf95* | pgfortran*) 10466 # Portland Group f77 and f90 compilers 10467 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' 10468 tmp_addflag=' $pic_flag -Mnomain' ;; 10469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10470 tmp_addflag=' -i_dynamic' ;; 10471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10472 tmp_addflag=' -i_dynamic -nofor_main' ;; 10473 ifc* | ifort*) # Intel Fortran compiler 10474 tmp_addflag=' -nofor_main' ;; 10475 lf95*) # Lahey Fortran 8.1 10476 whole_archive_flag_spec= 10477 tmp_sharedflag='--shared' ;; 10478 nagfor*) # NAGFOR 5.3 10479 tmp_sharedflag='-Wl,-shared' ;; 10480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10481 tmp_sharedflag='-qmkshrobj' 10482 tmp_addflag= ;; 10483 nvcc*) # Cuda Compiler Driver 2.2 10484 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' 10485 compiler_needs_object=yes 10486 ;; 10487 esac 10488 case `$CC -V 2>&1 | $SED 5q` in 10489 *Sun\ C*) # Sun C 5.9 10490 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' 10491 compiler_needs_object=yes 10492 tmp_sharedflag='-G' ;; 10493 *Sun\ F*) # Sun Fortran 8.3 10494 tmp_sharedflag='-G' ;; 10495 esac 10496 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10497 10498 if test yes = "$supports_anon_versioning"; then 10499 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10500 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10501 echo "local: *; };" >> $output_objdir/$libname.ver~ 10502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10503 fi 10504 10505 case $cc_basename in 10506 tcc*) 10507 export_dynamic_flag_spec='-rdynamic' 10508 ;; 10509 xlf* | bgf* | bgxlf* | mpixlf*) 10510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10511 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10512 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10513 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10514 if test yes = "$supports_anon_versioning"; then 10515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10516 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10517 echo "local: *; };" >> $output_objdir/$libname.ver~ 10518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10519 fi 10520 ;; 10521 esac 10522 else 10523 ld_shlibs=no 10524 fi 10525 ;; 10526 10527 netbsd*) 10528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10529 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10530 wlarc= 10531 else 10532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10534 fi 10535 ;; 10536 10537 solaris*) 10538 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10539 ld_shlibs=no 10540 cat <<_LT_EOF 1>&2 10541 10542*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10543*** create shared libraries on Solaris systems. Therefore, libtool 10544*** is disabling shared libraries support. We urge you to upgrade GNU 10545*** binutils to release 2.9.1 or newer. Another option is to modify 10546*** your PATH or compiler configuration so that the native linker is 10547*** used, and then restart. 10548 10549_LT_EOF 10550 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10553 else 10554 ld_shlibs=no 10555 fi 10556 ;; 10557 10558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10559 case `$LD -v 2>&1` in 10560 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10561 ld_shlibs=no 10562 cat <<_LT_EOF 1>&2 10563 10564*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10565*** reliably create shared libraries on SCO systems. Therefore, libtool 10566*** is disabling shared libraries support. We urge you to upgrade GNU 10567*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10568*** your PATH or compiler configuration so that the native linker is 10569*** used, and then restart. 10570 10571_LT_EOF 10572 ;; 10573 *) 10574 # For security reasons, it is highly recommended that you always 10575 # use absolute paths for naming shared libraries, and exclude the 10576 # DT_RUNPATH tag from executables and libraries. But doing so 10577 # requires that you compile everything twice, which is a pain. 10578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10582 else 10583 ld_shlibs=no 10584 fi 10585 ;; 10586 esac 10587 ;; 10588 10589 sunos4*) 10590 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10591 wlarc= 10592 hardcode_direct=yes 10593 hardcode_shlibpath_var=no 10594 ;; 10595 10596 *) 10597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10600 else 10601 ld_shlibs=no 10602 fi 10603 ;; 10604 esac 10605 10606 if test no = "$ld_shlibs"; then 10607 runpath_var= 10608 hardcode_libdir_flag_spec= 10609 export_dynamic_flag_spec= 10610 whole_archive_flag_spec= 10611 fi 10612 else 10613 # PORTME fill in a description of your system's linker (not GNU ld) 10614 case $host_os in 10615 aix3*) 10616 allow_undefined_flag=unsupported 10617 always_export_symbols=yes 10618 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' 10619 # Note: this linker hardcodes the directories in LIBPATH if there 10620 # are no directories specified by -L. 10621 hardcode_minus_L=yes 10622 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10623 # Neither direct hardcoding nor static linking is supported with a 10624 # broken collect2. 10625 hardcode_direct=unsupported 10626 fi 10627 ;; 10628 10629 aix[4-9]*) 10630 if test ia64 = "$host_cpu"; then 10631 # On IA64, the linker does run time linking by default, so we don't 10632 # have to do anything special. 10633 aix_use_runtimelinking=no 10634 exp_sym_flag='-Bexport' 10635 no_entry_flag= 10636 else 10637 # If we're using GNU nm, then we don't want the "-C" option. 10638 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10639 # Without the "-l" option, or with the "-B" option, AIX nm treats 10640 # weak defined symbols like other global defined symbols, whereas 10641 # GNU nm marks them as "W". 10642 # While the 'weak' keyword is ignored in the Export File, we need 10643 # it in the Import File for the 'aix-soname' feature, so we have 10644 # to replace the "-B" option with "-P" for AIX nm. 10645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10646 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' 10647 else 10648 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' 10649 fi 10650 aix_use_runtimelinking=no 10651 10652 # Test if we are trying to use run time linking or normal 10653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10654 # have runtime linking enabled, and use it for executables. 10655 # For shared libraries, we enable/disable runtime linking 10656 # depending on the kind of the shared library created - 10657 # when "with_aix_soname,aix_use_runtimelinking" is: 10658 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10659 # "aix,yes" lib.so shared, rtl:yes, for executables 10660 # lib.a static archive 10661 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10662 # lib.a(lib.so.V) shared, rtl:no, for executables 10663 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10664 # lib.a(lib.so.V) shared, rtl:no 10665 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10666 # lib.a static archive 10667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10668 for ld_flag in $LDFLAGS; do 10669 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10670 aix_use_runtimelinking=yes 10671 break 10672 fi 10673 done 10674 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10675 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10676 # so we don't have lib.a shared libs to link our executables. 10677 # We have to force runtime linking in this case. 10678 aix_use_runtimelinking=yes 10679 LDFLAGS="$LDFLAGS -Wl,-brtl" 10680 fi 10681 ;; 10682 esac 10683 10684 exp_sym_flag='-bexport' 10685 no_entry_flag='-bnoentry' 10686 fi 10687 10688 # When large executables or shared objects are built, AIX ld can 10689 # have problems creating the table of contents. If linking a library 10690 # or program results in "error TOC overflow" add -mminimal-toc to 10691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10693 10694 archive_cmds='' 10695 hardcode_direct=yes 10696 hardcode_direct_absolute=yes 10697 hardcode_libdir_separator=':' 10698 link_all_deplibs=yes 10699 file_list_spec='$wl-f,' 10700 case $with_aix_soname,$aix_use_runtimelinking in 10701 aix,*) ;; # traditional, no import file 10702 svr4,* | *,yes) # use import file 10703 # The Import File defines what to hardcode. 10704 hardcode_direct=no 10705 hardcode_direct_absolute=no 10706 ;; 10707 esac 10708 10709 if test yes = "$GCC"; then 10710 case $host_os in aix4.[012]|aix4.[012].*) 10711 # We only want to do this on AIX 4.2 and lower, the check 10712 # below for broken collect2 doesn't work under 4.3+ 10713 collect2name=`$CC -print-prog-name=collect2` 10714 if test -f "$collect2name" && 10715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10716 then 10717 # We have reworked collect2 10718 : 10719 else 10720 # We have old collect2 10721 hardcode_direct=unsupported 10722 # It fails to find uninstalled libraries when the uninstalled 10723 # path is not listed in the libpath. Setting hardcode_minus_L 10724 # to unsupported forces relinking 10725 hardcode_minus_L=yes 10726 hardcode_libdir_flag_spec='-L$libdir' 10727 hardcode_libdir_separator= 10728 fi 10729 ;; 10730 esac 10731 shared_flag='-shared' 10732 if test yes = "$aix_use_runtimelinking"; then 10733 shared_flag="$shared_flag "'$wl-G' 10734 fi 10735 # Need to ensure runtime linking is disabled for the traditional 10736 # shared library, or the linker may eventually find shared libraries 10737 # /with/ Import File - we do not want to mix them. 10738 shared_flag_aix='-shared' 10739 shared_flag_svr4='-shared $wl-G' 10740 else 10741 # not using gcc 10742 if test ia64 = "$host_cpu"; then 10743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10744 # chokes on -Wl,-G. The following line is correct: 10745 shared_flag='-G' 10746 else 10747 if test yes = "$aix_use_runtimelinking"; then 10748 shared_flag='$wl-G' 10749 else 10750 shared_flag='$wl-bM:SRE' 10751 fi 10752 shared_flag_aix='$wl-bM:SRE' 10753 shared_flag_svr4='$wl-G' 10754 fi 10755 fi 10756 10757 export_dynamic_flag_spec='$wl-bexpall' 10758 # It seems that -bexpall does not export symbols beginning with 10759 # underscore (_), so it is better to generate a list of symbols to export. 10760 always_export_symbols=yes 10761 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10762 # Warning - without using the other runtime loading flags (-brtl), 10763 # -berok will link without error, but may produce a broken library. 10764 allow_undefined_flag='-berok' 10765 # Determine the default libpath from the value encoded in an 10766 # empty executable. 10767 if test set = "${lt_cv_aix_libpath+set}"; then 10768 aix_libpath=$lt_cv_aix_libpath 10769else 10770 if test ${lt_cv_aix_libpath_+y} 10771then : 10772 printf %s "(cached) " >&6 10773else case e in #( 10774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10775/* end confdefs.h. */ 10776 10777int 10778main (void) 10779{ 10780 10781 ; 10782 return 0; 10783} 10784_ACEOF 10785if ac_fn_c_try_link "$LINENO" 10786then : 10787 10788 lt_aix_libpath_sed=' 10789 /Import File Strings/,/^$/ { 10790 /^0/ { 10791 s/^0 *\([^ ]*\) *$/\1/ 10792 p 10793 } 10794 }' 10795 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10796 # Check for a 64-bit object if we didn't find anything. 10797 if test -z "$lt_cv_aix_libpath_"; then 10798 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10799 fi 10800fi 10801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10802 conftest$ac_exeext conftest.$ac_ext 10803 if test -z "$lt_cv_aix_libpath_"; then 10804 lt_cv_aix_libpath_=/usr/lib:/lib 10805 fi 10806 ;; 10807esac 10808fi 10809 10810 aix_libpath=$lt_cv_aix_libpath_ 10811fi 10812 10813 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10814 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 10815 else 10816 if test ia64 = "$host_cpu"; then 10817 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10818 allow_undefined_flag="-z nodefs" 10819 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" 10820 else 10821 # Determine the default libpath from the value encoded in an 10822 # empty executable. 10823 if test set = "${lt_cv_aix_libpath+set}"; then 10824 aix_libpath=$lt_cv_aix_libpath 10825else 10826 if test ${lt_cv_aix_libpath_+y} 10827then : 10828 printf %s "(cached) " >&6 10829else case e in #( 10830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831/* end confdefs.h. */ 10832 10833int 10834main (void) 10835{ 10836 10837 ; 10838 return 0; 10839} 10840_ACEOF 10841if ac_fn_c_try_link "$LINENO" 10842then : 10843 10844 lt_aix_libpath_sed=' 10845 /Import File Strings/,/^$/ { 10846 /^0/ { 10847 s/^0 *\([^ ]*\) *$/\1/ 10848 p 10849 } 10850 }' 10851 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10852 # Check for a 64-bit object if we didn't find anything. 10853 if test -z "$lt_cv_aix_libpath_"; then 10854 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10855 fi 10856fi 10857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10858 conftest$ac_exeext conftest.$ac_ext 10859 if test -z "$lt_cv_aix_libpath_"; then 10860 lt_cv_aix_libpath_=/usr/lib:/lib 10861 fi 10862 ;; 10863esac 10864fi 10865 10866 aix_libpath=$lt_cv_aix_libpath_ 10867fi 10868 10869 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10870 # Warning - without using the other run time loading flags, 10871 # -berok will link without error, but may produce a broken library. 10872 no_undefined_flag=' $wl-bernotok' 10873 allow_undefined_flag=' $wl-berok' 10874 if test yes = "$with_gnu_ld"; then 10875 # We only use this code for GNU lds that support --whole-archive. 10876 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10877 else 10878 # Exported symbols can be pulled into shared objects from archives 10879 whole_archive_flag_spec='$convenience' 10880 fi 10881 archive_cmds_need_lc=yes 10882 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10883 # -brtl affects multiple linker settings, -berok does not and is overridden later 10884 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10885 if test svr4 != "$with_aix_soname"; then 10886 # This is similar to how AIX traditionally builds its shared libraries. 10887 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' 10888 fi 10889 if test aix != "$with_aix_soname"; then 10890 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' 10891 else 10892 # used by -dlpreopen to get the symbols 10893 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10894 fi 10895 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10896 fi 10897 fi 10898 ;; 10899 10900 amigaos*) 10901 case $host_cpu in 10902 powerpc) 10903 # see comment about AmigaOS4 .so support 10904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10905 archive_expsym_cmds='' 10906 ;; 10907 m68k) 10908 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)' 10909 hardcode_libdir_flag_spec='-L$libdir' 10910 hardcode_minus_L=yes 10911 ;; 10912 esac 10913 ;; 10914 10915 bsdi[45]*) 10916 export_dynamic_flag_spec=-rdynamic 10917 ;; 10918 10919 cygwin* | mingw* | pw32* | cegcc*) 10920 # When not using gcc, we currently assume that we are using 10921 # Microsoft Visual C++ or Intel C++ Compiler. 10922 # hardcode_libdir_flag_spec is actually meaningless, as there is 10923 # no search path for DLLs. 10924 case $cc_basename in 10925 cl* | icl*) 10926 # Native MSVC or ICC 10927 hardcode_libdir_flag_spec=' ' 10928 allow_undefined_flag=unsupported 10929 always_export_symbols=yes 10930 file_list_spec='@' 10931 # Tell ltmain to make .lib files, not .a files. 10932 libext=lib 10933 # Tell ltmain to make .dll files, not .so files. 10934 shrext_cmds=.dll 10935 # FIXME: Setting linknames here is a bad hack. 10936 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10937 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10938 cp "$export_symbols" "$output_objdir/$soname.def"; 10939 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10940 else 10941 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10942 fi~ 10943 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10944 linknames=' 10945 # The linker will not automatically build a static lib if we build a DLL. 10946 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10947 enable_shared_with_static_runtimes=yes 10948 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10950 # Don't use ranlib 10951 old_postinstall_cmds='chmod 644 $oldlib' 10952 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10953 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10954 case $lt_outputfile in 10955 *.exe|*.EXE) ;; 10956 *) 10957 lt_outputfile=$lt_outputfile.exe 10958 lt_tool_outputfile=$lt_tool_outputfile.exe 10959 ;; 10960 esac~ 10961 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10962 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10963 $RM "$lt_outputfile.manifest"; 10964 fi' 10965 ;; 10966 *) 10967 # Assume MSVC and ICC wrapper 10968 hardcode_libdir_flag_spec=' ' 10969 allow_undefined_flag=unsupported 10970 # Tell ltmain to make .lib files, not .a files. 10971 libext=lib 10972 # Tell ltmain to make .dll files, not .so files. 10973 shrext_cmds=.dll 10974 # FIXME: Setting linknames here is a bad hack. 10975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10976 # The linker will automatically build a .lib file if we build a DLL. 10977 old_archive_from_new_cmds='true' 10978 # FIXME: Should let the user specify the lib program. 10979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10980 enable_shared_with_static_runtimes=yes 10981 ;; 10982 esac 10983 ;; 10984 10985 darwin* | rhapsody*) 10986 10987 10988 archive_cmds_need_lc=no 10989 hardcode_direct=no 10990 hardcode_automatic=yes 10991 hardcode_shlibpath_var=unsupported 10992 if test yes = "$lt_cv_ld_force_load"; then 10993 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\"`' 10994 10995 else 10996 whole_archive_flag_spec='' 10997 fi 10998 link_all_deplibs=yes 10999 allow_undefined_flag=$_lt_dar_allow_undefined 11000 case $cc_basename in 11001 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11002 *) _lt_dar_can_shared=$GCC ;; 11003 esac 11004 if test yes = "$_lt_dar_can_shared"; then 11005 output_verbose_link_cmd=func_echo_all 11006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11008 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" 11009 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" 11010 11011 else 11012 ld_shlibs=no 11013 fi 11014 11015 ;; 11016 11017 dgux*) 11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11019 hardcode_libdir_flag_spec='-L$libdir' 11020 hardcode_shlibpath_var=no 11021 ;; 11022 11023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11024 # support. Future versions do this automatically, but an explicit c++rt0.o 11025 # does not break anything, and helps significantly (at the cost of a little 11026 # extra space). 11027 freebsd2.2*) 11028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11029 hardcode_libdir_flag_spec='-R$libdir' 11030 hardcode_direct=yes 11031 hardcode_shlibpath_var=no 11032 ;; 11033 11034 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11035 freebsd2.*) 11036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11037 hardcode_direct=yes 11038 hardcode_minus_L=yes 11039 hardcode_shlibpath_var=no 11040 ;; 11041 11042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11043 freebsd* | dragonfly* | midnightbsd*) 11044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11045 hardcode_libdir_flag_spec='-R$libdir' 11046 hardcode_direct=yes 11047 hardcode_shlibpath_var=no 11048 ;; 11049 11050 hpux9*) 11051 if test yes = "$GCC"; then 11052 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' 11053 else 11054 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' 11055 fi 11056 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11057 hardcode_libdir_separator=: 11058 hardcode_direct=yes 11059 11060 # hardcode_minus_L: Not really in the search PATH, 11061 # but as the default location of the library. 11062 hardcode_minus_L=yes 11063 export_dynamic_flag_spec='$wl-E' 11064 ;; 11065 11066 hpux10*) 11067 if test yes,no = "$GCC,$with_gnu_ld"; then 11068 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11069 else 11070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11071 fi 11072 if test no = "$with_gnu_ld"; then 11073 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11074 hardcode_libdir_separator=: 11075 hardcode_direct=yes 11076 hardcode_direct_absolute=yes 11077 export_dynamic_flag_spec='$wl-E' 11078 # hardcode_minus_L: Not really in the search PATH, 11079 # but as the default location of the library. 11080 hardcode_minus_L=yes 11081 fi 11082 ;; 11083 11084 hpux11*) 11085 if test yes,no = "$GCC,$with_gnu_ld"; then 11086 case $host_cpu in 11087 hppa*64*) 11088 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 ;; 11090 ia64*) 11091 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11092 ;; 11093 *) 11094 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11095 ;; 11096 esac 11097 else 11098 case $host_cpu in 11099 hppa*64*) 11100 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11101 ;; 11102 ia64*) 11103 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11104 ;; 11105 *) 11106 11107 # Older versions of the 11.00 compiler do not understand -b yet 11108 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11110printf %s "checking if $CC understands -b... " >&6; } 11111if test ${lt_cv_prog_compiler__b+y} 11112then : 11113 printf %s "(cached) " >&6 11114else case e in #( 11115 e) lt_cv_prog_compiler__b=no 11116 save_LDFLAGS=$LDFLAGS 11117 LDFLAGS="$LDFLAGS -b" 11118 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11120 # The linker can only warn and ignore the option if not recognized 11121 # So say no if there are warnings 11122 if test -s conftest.err; then 11123 # Append any errors to the config.log. 11124 cat conftest.err 1>&5 11125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11127 if diff conftest.exp conftest.er2 >/dev/null; then 11128 lt_cv_prog_compiler__b=yes 11129 fi 11130 else 11131 lt_cv_prog_compiler__b=yes 11132 fi 11133 fi 11134 $RM -r conftest* 11135 LDFLAGS=$save_LDFLAGS 11136 ;; 11137esac 11138fi 11139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11140printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11141 11142if test yes = "$lt_cv_prog_compiler__b"; then 11143 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11144else 11145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11146fi 11147 11148 ;; 11149 esac 11150 fi 11151 if test no = "$with_gnu_ld"; then 11152 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11153 hardcode_libdir_separator=: 11154 11155 case $host_cpu in 11156 hppa*64*|ia64*) 11157 hardcode_direct=no 11158 hardcode_shlibpath_var=no 11159 ;; 11160 *) 11161 hardcode_direct=yes 11162 hardcode_direct_absolute=yes 11163 export_dynamic_flag_spec='$wl-E' 11164 11165 # hardcode_minus_L: Not really in the search PATH, 11166 # but as the default location of the library. 11167 hardcode_minus_L=yes 11168 ;; 11169 esac 11170 fi 11171 ;; 11172 11173 irix5* | irix6* | nonstopux*) 11174 if test yes = "$GCC"; then 11175 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' 11176 # Try to use the -exported_symbol ld option, if it does not 11177 # work, assume that -exports_file does not work either and 11178 # implicitly export all symbols. 11179 # This should be the same for all languages, so no per-tag cache variable. 11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11181printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11182if test ${lt_cv_irix_exported_symbol+y} 11183then : 11184 printf %s "(cached) " >&6 11185else case e in #( 11186 e) save_LDFLAGS=$LDFLAGS 11187 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189/* end confdefs.h. */ 11190int foo (void) { return 0; } 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO" 11193then : 11194 lt_cv_irix_exported_symbol=yes 11195else case e in #( 11196 e) lt_cv_irix_exported_symbol=no ;; 11197esac 11198fi 11199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11200 conftest$ac_exeext conftest.$ac_ext 11201 LDFLAGS=$save_LDFLAGS ;; 11202esac 11203fi 11204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11205printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11206 if test yes = "$lt_cv_irix_exported_symbol"; then 11207 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' 11208 fi 11209 else 11210 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' 11211 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' 11212 fi 11213 archive_cmds_need_lc='no' 11214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11215 hardcode_libdir_separator=: 11216 inherit_rpath=yes 11217 link_all_deplibs=yes 11218 ;; 11219 11220 linux*) 11221 case $cc_basename in 11222 tcc*) 11223 # Fabrice Bellard et al's Tiny C Compiler 11224 ld_shlibs=yes 11225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11226 ;; 11227 esac 11228 ;; 11229 11230 netbsd*) 11231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11233 else 11234 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11235 fi 11236 hardcode_libdir_flag_spec='-R$libdir' 11237 hardcode_direct=yes 11238 hardcode_shlibpath_var=no 11239 ;; 11240 11241 newsos6) 11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11243 hardcode_direct=yes 11244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11245 hardcode_libdir_separator=: 11246 hardcode_shlibpath_var=no 11247 ;; 11248 11249 *nto* | *qnx*) 11250 ;; 11251 11252 openbsd* | bitrig*) 11253 if test -f /usr/libexec/ld.so; then 11254 hardcode_direct=yes 11255 hardcode_shlibpath_var=no 11256 hardcode_direct_absolute=yes 11257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11259 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11260 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11261 export_dynamic_flag_spec='$wl-E' 11262 else 11263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11264 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11265 fi 11266 else 11267 ld_shlibs=no 11268 fi 11269 ;; 11270 11271 os2*) 11272 hardcode_libdir_flag_spec='-L$libdir' 11273 hardcode_minus_L=yes 11274 allow_undefined_flag=unsupported 11275 shrext_cmds=.dll 11276 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11277 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11278 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11279 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11280 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11281 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11282 emximp -o $lib $output_objdir/$libname.def' 11283 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11284 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11285 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11286 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11287 prefix_cmds="$SED"~ 11288 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11289 prefix_cmds="$prefix_cmds -e 1d"; 11290 fi~ 11291 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11292 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11293 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11294 emximp -o $lib $output_objdir/$libname.def' 11295 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11296 enable_shared_with_static_runtimes=yes 11297 file_list_spec='@' 11298 ;; 11299 11300 osf3*) 11301 if test yes = "$GCC"; then 11302 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11303 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' 11304 else 11305 allow_undefined_flag=' -expect_unresolved \*' 11306 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' 11307 fi 11308 archive_cmds_need_lc='no' 11309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11310 hardcode_libdir_separator=: 11311 ;; 11312 11313 osf4* | osf5*) # as osf3* with the addition of -msym flag 11314 if test yes = "$GCC"; then 11315 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11316 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' 11317 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11318 else 11319 allow_undefined_flag=' -expect_unresolved \*' 11320 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' 11321 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~ 11322 $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' 11323 11324 # Both c and cxx compiler support -rpath directly 11325 hardcode_libdir_flag_spec='-rpath $libdir' 11326 fi 11327 archive_cmds_need_lc='no' 11328 hardcode_libdir_separator=: 11329 ;; 11330 11331 solaris*) 11332 no_undefined_flag=' -z defs' 11333 if test yes = "$GCC"; then 11334 wlarc='$wl' 11335 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11337 $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' 11338 else 11339 case `$CC -V 2>&1` in 11340 *"Compilers 5.0"*) 11341 wlarc='' 11342 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11344 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11345 ;; 11346 *) 11347 wlarc='$wl' 11348 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11350 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11351 ;; 11352 esac 11353 fi 11354 hardcode_libdir_flag_spec='-R$libdir' 11355 hardcode_shlibpath_var=no 11356 case $host_os in 11357 solaris2.[0-5] | solaris2.[0-5].*) ;; 11358 *) 11359 # The compiler driver will combine and reorder linker options, 11360 # but understands '-z linker_flag'. GCC discards it without '$wl', 11361 # but is careful enough not to reorder. 11362 # Supported since Solaris 2.6 (maybe 2.5.1?) 11363 if test yes = "$GCC"; then 11364 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11365 else 11366 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11367 fi 11368 ;; 11369 esac 11370 link_all_deplibs=yes 11371 ;; 11372 11373 sunos4*) 11374 if test sequent = "$host_vendor"; then 11375 # Use $CC to link under sequent, because it throws in some extra .o 11376 # files that make .init and .fini sections work. 11377 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11378 else 11379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11380 fi 11381 hardcode_libdir_flag_spec='-L$libdir' 11382 hardcode_direct=yes 11383 hardcode_minus_L=yes 11384 hardcode_shlibpath_var=no 11385 ;; 11386 11387 sysv4) 11388 case $host_vendor in 11389 sni) 11390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11391 hardcode_direct=yes # is this really true??? 11392 ;; 11393 siemens) 11394 ## LD is ld it makes a PLAMLIB 11395 ## CC just makes a GrossModule. 11396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11397 reload_cmds='$CC -r -o $output$reload_objs' 11398 hardcode_direct=no 11399 ;; 11400 motorola) 11401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11403 ;; 11404 esac 11405 runpath_var='LD_RUN_PATH' 11406 hardcode_shlibpath_var=no 11407 ;; 11408 11409 sysv4.3*) 11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11411 hardcode_shlibpath_var=no 11412 export_dynamic_flag_spec='-Bexport' 11413 ;; 11414 11415 sysv4*MP*) 11416 if test -d /usr/nec; then 11417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11418 hardcode_shlibpath_var=no 11419 runpath_var=LD_RUN_PATH 11420 hardcode_runpath_var=yes 11421 ld_shlibs=yes 11422 fi 11423 ;; 11424 11425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11426 no_undefined_flag='$wl-z,text' 11427 archive_cmds_need_lc=no 11428 hardcode_shlibpath_var=no 11429 runpath_var='LD_RUN_PATH' 11430 11431 if test yes = "$GCC"; then 11432 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11433 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11434 else 11435 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11436 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11437 fi 11438 ;; 11439 11440 sysv5* | sco3.2v5* | sco5v6*) 11441 # Note: We CANNOT use -z defs as we might desire, because we do not 11442 # link with -lc, and that would cause any symbols used from libc to 11443 # always be unresolved, which means just about no library would 11444 # ever link correctly. If we're not using GNU ld we use -z text 11445 # though, which does catch some bad symbols but isn't as heavy-handed 11446 # as -z defs. 11447 no_undefined_flag='$wl-z,text' 11448 allow_undefined_flag='$wl-z,nodefs' 11449 archive_cmds_need_lc=no 11450 hardcode_shlibpath_var=no 11451 hardcode_libdir_flag_spec='$wl-R,$libdir' 11452 hardcode_libdir_separator=':' 11453 link_all_deplibs=yes 11454 export_dynamic_flag_spec='$wl-Bexport' 11455 runpath_var='LD_RUN_PATH' 11456 11457 if test yes = "$GCC"; then 11458 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11459 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11460 else 11461 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11462 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11463 fi 11464 ;; 11465 11466 uts4*) 11467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11468 hardcode_libdir_flag_spec='-L$libdir' 11469 hardcode_shlibpath_var=no 11470 ;; 11471 11472 *) 11473 ld_shlibs=no 11474 ;; 11475 esac 11476 11477 if test sni = "$host_vendor"; then 11478 case $host in 11479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11480 export_dynamic_flag_spec='$wl-Blargedynsym' 11481 ;; 11482 esac 11483 fi 11484 fi 11485 11486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11487printf "%s\n" "$ld_shlibs" >&6; } 11488test no = "$ld_shlibs" && can_build_shared=no 11489 11490with_gnu_ld=$with_gnu_ld 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506# 11507# Do we need to explicitly link libc? 11508# 11509case "x$archive_cmds_need_lc" in 11510x|xyes) 11511 # Assume -lc should be added 11512 archive_cmds_need_lc=yes 11513 11514 if test yes,yes = "$GCC,$enable_shared"; then 11515 case $archive_cmds in 11516 *'~'*) 11517 # FIXME: we may have to deal with multi-command sequences. 11518 ;; 11519 '$CC '*) 11520 # Test whether the compiler implicitly links with -lc since on some 11521 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11522 # to ld, don't add -lc before -lgcc. 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11524printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11525if test ${lt_cv_archive_cmds_need_lc+y} 11526then : 11527 printf %s "(cached) " >&6 11528else case e in #( 11529 e) $RM conftest* 11530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11531 11532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11533 (eval $ac_compile) 2>&5 11534 ac_status=$? 11535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11536 test $ac_status = 0; } 2>conftest.err; then 11537 soname=conftest 11538 lib=conftest 11539 libobjs=conftest.$ac_objext 11540 deplibs= 11541 wl=$lt_prog_compiler_wl 11542 pic_flag=$lt_prog_compiler_pic 11543 compiler_flags=-v 11544 linker_flags=-v 11545 verstring= 11546 output_objdir=. 11547 libname=conftest 11548 lt_save_allow_undefined_flag=$allow_undefined_flag 11549 allow_undefined_flag= 11550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11552 ac_status=$? 11553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11554 test $ac_status = 0; } 11555 then 11556 lt_cv_archive_cmds_need_lc=no 11557 else 11558 lt_cv_archive_cmds_need_lc=yes 11559 fi 11560 allow_undefined_flag=$lt_save_allow_undefined_flag 11561 else 11562 cat conftest.err 1>&5 11563 fi 11564 $RM conftest* 11565 ;; 11566esac 11567fi 11568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11569printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11570 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11571 ;; 11572 esac 11573 fi 11574 ;; 11575esac 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11729printf %s "checking dynamic linker characteristics... " >&6; } 11730 11731if test yes = "$GCC"; then 11732 case $host_os in 11733 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11734 *) lt_awk_arg='/^libraries:/' ;; 11735 esac 11736 case $host_os in 11737 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11738 *) lt_sed_strip_eq='s|=/|/|g' ;; 11739 esac 11740 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11741 case $lt_search_path_spec in 11742 *\;*) 11743 # if the path contains ";" then we assume it to be the separator 11744 # otherwise default to the standard path separator (i.e. ":") - it is 11745 # assumed that no part of a normal pathname contains ";" but that should 11746 # okay in the real world where ";" in dirpaths is itself problematic. 11747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11748 ;; 11749 *) 11750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11751 ;; 11752 esac 11753 # Ok, now we have the path, separated by spaces, we can step through it 11754 # and add multilib dir if necessary... 11755 lt_tmp_lt_search_path_spec= 11756 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11757 # ...but if some path component already ends with the multilib dir we assume 11758 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11759 case "$lt_multi_os_dir; $lt_search_path_spec " in 11760 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11761 lt_multi_os_dir= 11762 ;; 11763 esac 11764 for lt_sys_path in $lt_search_path_spec; do 11765 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11767 elif test -n "$lt_multi_os_dir"; then 11768 test -d "$lt_sys_path" && \ 11769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11770 fi 11771 done 11772 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11773BEGIN {RS = " "; FS = "/|\n";} { 11774 lt_foo = ""; 11775 lt_count = 0; 11776 for (lt_i = NF; lt_i > 0; lt_i--) { 11777 if ($lt_i != "" && $lt_i != ".") { 11778 if ($lt_i == "..") { 11779 lt_count++; 11780 } else { 11781 if (lt_count == 0) { 11782 lt_foo = "/" $lt_i lt_foo; 11783 } else { 11784 lt_count--; 11785 } 11786 } 11787 } 11788 } 11789 if (lt_foo != "") { lt_freq[lt_foo]++; } 11790 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11791}'` 11792 # AWK program above erroneously prepends '/' to C:/dos/paths 11793 # for these hosts. 11794 case $host_os in 11795 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11796 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11797 esac 11798 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11799else 11800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11801fi 11802library_names_spec= 11803libname_spec='lib$name' 11804soname_spec= 11805shrext_cmds=.so 11806postinstall_cmds= 11807postuninstall_cmds= 11808finish_cmds= 11809finish_eval= 11810shlibpath_var= 11811shlibpath_overrides_runpath=unknown 11812version_type=none 11813dynamic_linker="$host_os ld.so" 11814sys_lib_dlsearch_path_spec="/lib /usr/lib" 11815need_lib_prefix=unknown 11816hardcode_into_libs=no 11817 11818# when you set need_version to no, make sure it does not cause -set_version 11819# flags to be left without arguments 11820need_version=unknown 11821 11822 11823 11824case $host_os in 11825aix3*) 11826 version_type=linux # correct to gnu/linux during the next big refactor 11827 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11828 shlibpath_var=LIBPATH 11829 11830 # AIX 3 has no versioning support, so we append a major version to the name. 11831 soname_spec='$libname$release$shared_ext$major' 11832 ;; 11833 11834aix[4-9]*) 11835 version_type=linux # correct to gnu/linux during the next big refactor 11836 need_lib_prefix=no 11837 need_version=no 11838 hardcode_into_libs=yes 11839 if test ia64 = "$host_cpu"; then 11840 # AIX 5 supports IA64 11841 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11842 shlibpath_var=LD_LIBRARY_PATH 11843 else 11844 # With GCC up to 2.95.x, collect2 would create an import file 11845 # for dependence libraries. The import file would start with 11846 # the line '#! .'. This would cause the generated library to 11847 # depend on '.', always an invalid library. This was fixed in 11848 # development snapshots of GCC prior to 3.0. 11849 case $host_os in 11850 aix4 | aix4.[01] | aix4.[01].*) 11851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11852 echo ' yes ' 11853 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11854 : 11855 else 11856 can_build_shared=no 11857 fi 11858 ;; 11859 esac 11860 # Using Import Files as archive members, it is possible to support 11861 # filename-based versioning of shared library archives on AIX. While 11862 # this would work for both with and without runtime linking, it will 11863 # prevent static linking of such archives. So we do filename-based 11864 # shared library versioning with .so extension only, which is used 11865 # when both runtime linking and shared linking is enabled. 11866 # Unfortunately, runtime linking may impact performance, so we do 11867 # not want this to be the default eventually. Also, we use the 11868 # versioned .so libs for executables only if there is the -brtl 11869 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11870 # To allow for filename-based versioning support, we need to create 11871 # libNAME.so.V as an archive file, containing: 11872 # *) an Import File, referring to the versioned filename of the 11873 # archive as well as the shared archive member, telling the 11874 # bitwidth (32 or 64) of that shared object, and providing the 11875 # list of exported symbols of that shared object, eventually 11876 # decorated with the 'weak' keyword 11877 # *) the shared object with the F_LOADONLY flag set, to really avoid 11878 # it being seen by the linker. 11879 # At run time we better use the real file rather than another symlink, 11880 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11881 11882 case $with_aix_soname,$aix_use_runtimelinking in 11883 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11884 # soname into executable. Probably we can add versioning support to 11885 # collect2, so additional links can be useful in future. 11886 aix,yes) # traditional libtool 11887 dynamic_linker='AIX unversionable lib.so' 11888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11889 # instead of lib<name>.a to let people know that these are not 11890 # typical AIX shared libraries. 11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11892 ;; 11893 aix,no) # traditional AIX only 11894 dynamic_linker='AIX lib.a(lib.so.V)' 11895 # We preserve .a as extension for shared libraries through AIX4.2 11896 # and later when we are not doing run time linking. 11897 library_names_spec='$libname$release.a $libname.a' 11898 soname_spec='$libname$release$shared_ext$major' 11899 ;; 11900 svr4,*) # full svr4 only 11901 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11902 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11903 # We do not specify a path in Import Files, so LIBPATH fires. 11904 shlibpath_overrides_runpath=yes 11905 ;; 11906 *,yes) # both, prefer svr4 11907 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11908 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11909 # unpreferred sharedlib libNAME.a needs extra handling 11910 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"' 11911 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"' 11912 # We do not specify a path in Import Files, so LIBPATH fires. 11913 shlibpath_overrides_runpath=yes 11914 ;; 11915 *,no) # both, prefer aix 11916 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11917 library_names_spec='$libname$release.a $libname.a' 11918 soname_spec='$libname$release$shared_ext$major' 11919 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11920 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)' 11921 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"' 11922 ;; 11923 esac 11924 shlibpath_var=LIBPATH 11925 fi 11926 ;; 11927 11928amigaos*) 11929 case $host_cpu in 11930 powerpc) 11931 # Since July 2007 AmigaOS4 officially supports .so libraries. 11932 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11934 ;; 11935 m68k) 11936 library_names_spec='$libname.ixlibrary $libname.a' 11937 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11938 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' 11939 ;; 11940 esac 11941 ;; 11942 11943beos*) 11944 library_names_spec='$libname$shared_ext' 11945 dynamic_linker="$host_os ld.so" 11946 shlibpath_var=LIBRARY_PATH 11947 ;; 11948 11949bsdi[45]*) 11950 version_type=linux # correct to gnu/linux during the next big refactor 11951 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11955 shlibpath_var=LD_LIBRARY_PATH 11956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11958 # the default ld.so.conf also contains /usr/contrib/lib and 11959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11960 # libtool to hard-code these into programs 11961 ;; 11962 11963cygwin* | mingw* | pw32* | cegcc*) 11964 version_type=windows 11965 shrext_cmds=.dll 11966 need_version=no 11967 need_lib_prefix=no 11968 11969 case $GCC,$cc_basename in 11970 yes,*) 11971 # gcc 11972 library_names_spec='$libname.dll.a' 11973 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11974 postinstall_cmds='base_file=`basename \$file`~ 11975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11976 dldir=$destdir/`dirname \$dlpath`~ 11977 test -d \$dldir || mkdir -p \$dldir~ 11978 $install_prog $dir/$dlname \$dldir/$dlname~ 11979 chmod a+x \$dldir/$dlname~ 11980 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11981 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11982 fi' 11983 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11984 dlpath=$dir/\$dldll~ 11985 $RM \$dlpath' 11986 shlibpath_overrides_runpath=yes 11987 11988 case $host_os in 11989 cygwin*) 11990 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11991 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11992 11993 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11994 ;; 11995 mingw* | cegcc*) 11996 # MinGW DLLs use traditional 'lib' prefix 11997 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11998 ;; 11999 pw32*) 12000 # pw32 DLLs use 'pw' prefix rather than 'lib' 12001 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12002 ;; 12003 esac 12004 dynamic_linker='Win32 ld.exe' 12005 ;; 12006 12007 *,cl* | *,icl*) 12008 # Native MSVC or ICC 12009 libname_spec='$name' 12010 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12011 library_names_spec='$libname.dll.lib' 12012 12013 case $build_os in 12014 mingw*) 12015 sys_lib_search_path_spec= 12016 lt_save_ifs=$IFS 12017 IFS=';' 12018 for lt_path in $LIB 12019 do 12020 IFS=$lt_save_ifs 12021 # Let DOS variable expansion print the short 8.3 style file name. 12022 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12023 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12024 done 12025 IFS=$lt_save_ifs 12026 # Convert to MSYS style. 12027 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12028 ;; 12029 cygwin*) 12030 # Convert to unix form, then to dos form, then back to unix form 12031 # but this time dos style (no spaces!) so that the unix form looks 12032 # like /cygdrive/c/PROGRA~1:/cygdr... 12033 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12034 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12035 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12036 ;; 12037 *) 12038 sys_lib_search_path_spec=$LIB 12039 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12040 # It is most probably a Windows format PATH. 12041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12042 else 12043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12044 fi 12045 # FIXME: find the short name or the path components, as spaces are 12046 # common. (e.g. "Program Files" -> "PROGRA~1") 12047 ;; 12048 esac 12049 12050 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12051 postinstall_cmds='base_file=`basename \$file`~ 12052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12053 dldir=$destdir/`dirname \$dlpath`~ 12054 test -d \$dldir || mkdir -p \$dldir~ 12055 $install_prog $dir/$dlname \$dldir/$dlname' 12056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12057 dlpath=$dir/\$dldll~ 12058 $RM \$dlpath' 12059 shlibpath_overrides_runpath=yes 12060 dynamic_linker='Win32 link.exe' 12061 ;; 12062 12063 *) 12064 # Assume MSVC and ICC wrapper 12065 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12066 dynamic_linker='Win32 ld.exe' 12067 ;; 12068 esac 12069 # FIXME: first we should search . and the directory the executable is in 12070 shlibpath_var=PATH 12071 ;; 12072 12073darwin* | rhapsody*) 12074 dynamic_linker="$host_os dyld" 12075 version_type=darwin 12076 need_lib_prefix=no 12077 need_version=no 12078 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12079 soname_spec='$libname$release$major$shared_ext' 12080 shlibpath_overrides_runpath=yes 12081 shlibpath_var=DYLD_LIBRARY_PATH 12082 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12083 12084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12086 ;; 12087 12088dgux*) 12089 version_type=linux # correct to gnu/linux during the next big refactor 12090 need_lib_prefix=no 12091 need_version=no 12092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12093 soname_spec='$libname$release$shared_ext$major' 12094 shlibpath_var=LD_LIBRARY_PATH 12095 ;; 12096 12097freebsd* | dragonfly* | midnightbsd*) 12098 # DragonFly does not have aout. When/if they implement a new 12099 # versioning mechanism, adjust this. 12100 if test -x /usr/bin/objformat; then 12101 objformat=`/usr/bin/objformat` 12102 else 12103 case $host_os in 12104 freebsd[23].*) objformat=aout ;; 12105 *) objformat=elf ;; 12106 esac 12107 fi 12108 version_type=freebsd-$objformat 12109 case $version_type in 12110 freebsd-elf*) 12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12112 soname_spec='$libname$release$shared_ext$major' 12113 need_version=no 12114 need_lib_prefix=no 12115 ;; 12116 freebsd-*) 12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12118 need_version=yes 12119 ;; 12120 esac 12121 shlibpath_var=LD_LIBRARY_PATH 12122 case $host_os in 12123 freebsd2.*) 12124 shlibpath_overrides_runpath=yes 12125 ;; 12126 freebsd3.[01]* | freebsdelf3.[01]*) 12127 shlibpath_overrides_runpath=yes 12128 hardcode_into_libs=yes 12129 ;; 12130 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12131 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12132 shlibpath_overrides_runpath=no 12133 hardcode_into_libs=yes 12134 ;; 12135 *) # from 4.6 on, and DragonFly 12136 shlibpath_overrides_runpath=yes 12137 hardcode_into_libs=yes 12138 ;; 12139 esac 12140 ;; 12141 12142haiku*) 12143 version_type=linux # correct to gnu/linux during the next big refactor 12144 need_lib_prefix=no 12145 need_version=no 12146 dynamic_linker="$host_os runtime_loader" 12147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12148 soname_spec='$libname$release$shared_ext$major' 12149 shlibpath_var=LIBRARY_PATH 12150 shlibpath_overrides_runpath=no 12151 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12152 hardcode_into_libs=yes 12153 ;; 12154 12155hpux9* | hpux10* | hpux11*) 12156 # Give a soname corresponding to the major version so that dld.sl refuses to 12157 # link against other versions. 12158 version_type=sunos 12159 need_lib_prefix=no 12160 need_version=no 12161 case $host_cpu in 12162 ia64*) 12163 shrext_cmds='.so' 12164 hardcode_into_libs=yes 12165 dynamic_linker="$host_os dld.so" 12166 shlibpath_var=LD_LIBRARY_PATH 12167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12169 soname_spec='$libname$release$shared_ext$major' 12170 if test 32 = "$HPUX_IA64_MODE"; then 12171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12172 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12173 else 12174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12175 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12176 fi 12177 ;; 12178 hppa*64*) 12179 shrext_cmds='.sl' 12180 hardcode_into_libs=yes 12181 dynamic_linker="$host_os dld.sl" 12182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12185 soname_spec='$libname$release$shared_ext$major' 12186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12188 ;; 12189 *) 12190 shrext_cmds='.sl' 12191 dynamic_linker="$host_os dld.sl" 12192 shlibpath_var=SHLIB_PATH 12193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12195 soname_spec='$libname$release$shared_ext$major' 12196 ;; 12197 esac 12198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12199 postinstall_cmds='chmod 555 $lib' 12200 # or fails outright, so override atomically: 12201 install_override_mode=555 12202 ;; 12203 12204interix[3-9]*) 12205 version_type=linux # correct to gnu/linux during the next big refactor 12206 need_lib_prefix=no 12207 need_version=no 12208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12209 soname_spec='$libname$release$shared_ext$major' 12210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12211 shlibpath_var=LD_LIBRARY_PATH 12212 shlibpath_overrides_runpath=no 12213 hardcode_into_libs=yes 12214 ;; 12215 12216irix5* | irix6* | nonstopux*) 12217 case $host_os in 12218 nonstopux*) version_type=nonstopux ;; 12219 *) 12220 if test yes = "$lt_cv_prog_gnu_ld"; then 12221 version_type=linux # correct to gnu/linux during the next big refactor 12222 else 12223 version_type=irix 12224 fi ;; 12225 esac 12226 need_lib_prefix=no 12227 need_version=no 12228 soname_spec='$libname$release$shared_ext$major' 12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12230 case $host_os in 12231 irix5* | nonstopux*) 12232 libsuff= shlibsuff= 12233 ;; 12234 *) 12235 case $LD in # libtool.m4 will add one of these switches to LD 12236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12237 libsuff= shlibsuff= libmagic=32-bit;; 12238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12239 libsuff=32 shlibsuff=N32 libmagic=N32;; 12240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12241 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12242 *) libsuff= shlibsuff= libmagic=never-match;; 12243 esac 12244 ;; 12245 esac 12246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12247 shlibpath_overrides_runpath=no 12248 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12249 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12250 hardcode_into_libs=yes 12251 ;; 12252 12253# No shared lib support for Linux oldld, aout, or coff. 12254linux*oldld* | linux*aout* | linux*coff*) 12255 dynamic_linker=no 12256 ;; 12257 12258linux*android*) 12259 version_type=none # Android doesn't support versioned libraries. 12260 need_lib_prefix=no 12261 need_version=no 12262 library_names_spec='$libname$release$shared_ext' 12263 soname_spec='$libname$release$shared_ext' 12264 finish_cmds= 12265 shlibpath_var=LD_LIBRARY_PATH 12266 shlibpath_overrides_runpath=yes 12267 12268 # This implies no fast_install, which is unacceptable. 12269 # Some rework will be needed to allow for fast_install 12270 # before this can be enabled. 12271 hardcode_into_libs=yes 12272 12273 dynamic_linker='Android linker' 12274 # Don't embed -rpath directories since the linker doesn't support them. 12275 hardcode_libdir_flag_spec='-L$libdir' 12276 ;; 12277 12278# This must be glibc/ELF. 12279linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12280 version_type=linux # correct to gnu/linux during the next big refactor 12281 need_lib_prefix=no 12282 need_version=no 12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12284 soname_spec='$libname$release$shared_ext$major' 12285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12286 shlibpath_var=LD_LIBRARY_PATH 12287 shlibpath_overrides_runpath=no 12288 12289 # Some binutils ld are patched to set DT_RUNPATH 12290 if test ${lt_cv_shlibpath_overrides_runpath+y} 12291then : 12292 printf %s "(cached) " >&6 12293else case e in #( 12294 e) lt_cv_shlibpath_overrides_runpath=no 12295 save_LDFLAGS=$LDFLAGS 12296 save_libdir=$libdir 12297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12300/* end confdefs.h. */ 12301 12302int 12303main (void) 12304{ 12305 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310if ac_fn_c_try_link "$LINENO" 12311then : 12312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12313then : 12314 lt_cv_shlibpath_overrides_runpath=yes 12315fi 12316fi 12317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12318 conftest$ac_exeext conftest.$ac_ext 12319 LDFLAGS=$save_LDFLAGS 12320 libdir=$save_libdir 12321 ;; 12322esac 12323fi 12324 12325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12326 12327 # This implies no fast_install, which is unacceptable. 12328 # Some rework will be needed to allow for fast_install 12329 # before this can be enabled. 12330 hardcode_into_libs=yes 12331 12332 # Ideally, we could use ldconfig to report *all* directores which are 12333 # searched for libraries, however this is still not possible. Aside from not 12334 # being certain /sbin/ldconfig is available, command 12335 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12336 # even though it is searched at run-time. Try to do the best guess by 12337 # appending ld.so.conf contents (and includes) to the search path. 12338 if test -f /etc/ld.so.conf; then 12339 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' ' '` 12340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12341 fi 12342 12343 # We used to test for /lib/ld.so.1 and disable shared libraries on 12344 # powerpc, because MkLinux only supported shared libraries with the 12345 # GNU dynamic linker. Since this was broken with cross compilers, 12346 # most powerpc-linux boxes support dynamic linking these days and 12347 # people can always --disable-shared, the test was removed, and we 12348 # assume the GNU/Linux dynamic linker is in use. 12349 dynamic_linker='GNU/Linux ld.so' 12350 ;; 12351 12352netbsd*) 12353 version_type=sunos 12354 need_lib_prefix=no 12355 need_version=no 12356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12359 dynamic_linker='NetBSD (a.out) ld.so' 12360 else 12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12362 soname_spec='$libname$release$shared_ext$major' 12363 dynamic_linker='NetBSD ld.elf_so' 12364 fi 12365 shlibpath_var=LD_LIBRARY_PATH 12366 shlibpath_overrides_runpath=yes 12367 hardcode_into_libs=yes 12368 ;; 12369 12370newsos6) 12371 version_type=linux # correct to gnu/linux during the next big refactor 12372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12373 shlibpath_var=LD_LIBRARY_PATH 12374 shlibpath_overrides_runpath=yes 12375 ;; 12376 12377*nto* | *qnx*) 12378 version_type=qnx 12379 need_lib_prefix=no 12380 need_version=no 12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12382 soname_spec='$libname$release$shared_ext$major' 12383 shlibpath_var=LD_LIBRARY_PATH 12384 shlibpath_overrides_runpath=no 12385 hardcode_into_libs=yes 12386 dynamic_linker='ldqnx.so' 12387 ;; 12388 12389openbsd* | bitrig*) 12390 version_type=sunos 12391 sys_lib_dlsearch_path_spec=/usr/lib 12392 need_lib_prefix=no 12393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12394 need_version=no 12395 else 12396 need_version=yes 12397 fi 12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12400 shlibpath_var=LD_LIBRARY_PATH 12401 shlibpath_overrides_runpath=yes 12402 ;; 12403 12404os2*) 12405 libname_spec='$name' 12406 version_type=windows 12407 shrext_cmds=.dll 12408 need_version=no 12409 need_lib_prefix=no 12410 # OS/2 can only load a DLL with a base name of 8 characters or less. 12411 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12412 v=$($ECHO $release$versuffix | tr -d .-); 12413 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12414 $ECHO $n$v`$shared_ext' 12415 library_names_spec='${libname}_dll.$libext' 12416 dynamic_linker='OS/2 ld.exe' 12417 shlibpath_var=BEGINLIBPATH 12418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12420 postinstall_cmds='base_file=`basename \$file`~ 12421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12422 dldir=$destdir/`dirname \$dlpath`~ 12423 test -d \$dldir || mkdir -p \$dldir~ 12424 $install_prog $dir/$dlname \$dldir/$dlname~ 12425 chmod a+x \$dldir/$dlname~ 12426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12428 fi' 12429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12430 dlpath=$dir/\$dldll~ 12431 $RM \$dlpath' 12432 ;; 12433 12434osf3* | osf4* | osf5*) 12435 version_type=osf 12436 need_lib_prefix=no 12437 need_version=no 12438 soname_spec='$libname$release$shared_ext$major' 12439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12440 shlibpath_var=LD_LIBRARY_PATH 12441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12443 ;; 12444 12445rdos*) 12446 dynamic_linker=no 12447 ;; 12448 12449solaris*) 12450 version_type=linux # correct to gnu/linux during the next big refactor 12451 need_lib_prefix=no 12452 need_version=no 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12454 soname_spec='$libname$release$shared_ext$major' 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=yes 12457 hardcode_into_libs=yes 12458 # ldd complains unless libraries are executable 12459 postinstall_cmds='chmod +x $lib' 12460 ;; 12461 12462sunos4*) 12463 version_type=sunos 12464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12466 shlibpath_var=LD_LIBRARY_PATH 12467 shlibpath_overrides_runpath=yes 12468 if test yes = "$with_gnu_ld"; then 12469 need_lib_prefix=no 12470 fi 12471 need_version=yes 12472 ;; 12473 12474sysv4 | sysv4.3*) 12475 version_type=linux # correct to gnu/linux during the next big refactor 12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12477 soname_spec='$libname$release$shared_ext$major' 12478 shlibpath_var=LD_LIBRARY_PATH 12479 case $host_vendor in 12480 sni) 12481 shlibpath_overrides_runpath=no 12482 need_lib_prefix=no 12483 runpath_var=LD_RUN_PATH 12484 ;; 12485 siemens) 12486 need_lib_prefix=no 12487 ;; 12488 motorola) 12489 need_lib_prefix=no 12490 need_version=no 12491 shlibpath_overrides_runpath=no 12492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12493 ;; 12494 esac 12495 ;; 12496 12497sysv4*MP*) 12498 if test -d /usr/nec; then 12499 version_type=linux # correct to gnu/linux during the next big refactor 12500 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12501 soname_spec='$libname$shared_ext.$major' 12502 shlibpath_var=LD_LIBRARY_PATH 12503 fi 12504 ;; 12505 12506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12507 version_type=sco 12508 need_lib_prefix=no 12509 need_version=no 12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12511 soname_spec='$libname$release$shared_ext$major' 12512 shlibpath_var=LD_LIBRARY_PATH 12513 shlibpath_overrides_runpath=yes 12514 hardcode_into_libs=yes 12515 if test yes = "$with_gnu_ld"; then 12516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12517 else 12518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12519 case $host_os in 12520 sco3.2v5*) 12521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12522 ;; 12523 esac 12524 fi 12525 sys_lib_dlsearch_path_spec='/usr/lib' 12526 ;; 12527 12528tpf*) 12529 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 need_lib_prefix=no 12532 need_version=no 12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12534 shlibpath_var=LD_LIBRARY_PATH 12535 shlibpath_overrides_runpath=no 12536 hardcode_into_libs=yes 12537 ;; 12538 12539uts4*) 12540 version_type=linux # correct to gnu/linux during the next big refactor 12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12542 soname_spec='$libname$release$shared_ext$major' 12543 shlibpath_var=LD_LIBRARY_PATH 12544 ;; 12545 12546*) 12547 dynamic_linker=no 12548 ;; 12549esac 12550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12551printf "%s\n" "$dynamic_linker" >&6; } 12552test no = "$dynamic_linker" && can_build_shared=no 12553 12554variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12555if test yes = "$GCC"; then 12556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12557fi 12558 12559if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12560 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12561fi 12562 12563if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12564 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12565fi 12566 12567# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12568configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12569 12570# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12571func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12572 12573# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12574configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12673printf %s "checking how to hardcode library paths into programs... " >&6; } 12674hardcode_action= 12675if test -n "$hardcode_libdir_flag_spec" || 12676 test -n "$runpath_var" || 12677 test yes = "$hardcode_automatic"; then 12678 12679 # We can hardcode non-existent directories. 12680 if test no != "$hardcode_direct" && 12681 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12682 # have to relink, otherwise we might link with an installed library 12683 # when we should be linking with a yet-to-be-installed one 12684 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12685 test no != "$hardcode_minus_L"; then 12686 # Linking always hardcodes the temporary library directory. 12687 hardcode_action=relink 12688 else 12689 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12690 hardcode_action=immediate 12691 fi 12692else 12693 # We cannot hardcode anything, or else we can only hardcode existing 12694 # directories. 12695 hardcode_action=unsupported 12696fi 12697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12698printf "%s\n" "$hardcode_action" >&6; } 12699 12700if test relink = "$hardcode_action" || 12701 test yes = "$inherit_rpath"; then 12702 # Fast installation is not supported 12703 enable_fast_install=no 12704elif test yes = "$shlibpath_overrides_runpath" || 12705 test no = "$enable_shared"; then 12706 # Fast installation is not necessary 12707 enable_fast_install=needless 12708fi 12709 12710 12711 12712 12713 12714 12715 if test yes != "$enable_dlopen"; then 12716 enable_dlopen=unknown 12717 enable_dlopen_self=unknown 12718 enable_dlopen_self_static=unknown 12719else 12720 lt_cv_dlopen=no 12721 lt_cv_dlopen_libs= 12722 12723 case $host_os in 12724 beos*) 12725 lt_cv_dlopen=load_add_on 12726 lt_cv_dlopen_libs= 12727 lt_cv_dlopen_self=yes 12728 ;; 12729 12730 mingw* | pw32* | cegcc*) 12731 lt_cv_dlopen=LoadLibrary 12732 lt_cv_dlopen_libs= 12733 ;; 12734 12735 cygwin*) 12736 lt_cv_dlopen=dlopen 12737 lt_cv_dlopen_libs= 12738 ;; 12739 12740 darwin*) 12741 # if libdl is installed we need to link against it 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12743printf %s "checking for dlopen in -ldl... " >&6; } 12744if test ${ac_cv_lib_dl_dlopen+y} 12745then : 12746 printf %s "(cached) " >&6 12747else case e in #( 12748 e) ac_check_lib_save_LIBS=$LIBS 12749LIBS="-ldl $LIBS" 12750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751/* end confdefs.h. */ 12752 12753/* Override any GCC internal prototype to avoid an error. 12754 Use char because int might match the return type of a GCC 12755 builtin and then its argument prototype would still apply. 12756 The 'extern "C"' is for builds by C++ compilers; 12757 although this is not generally supported in C code supporting it here 12758 has little cost and some practical benefit (sr 110532). */ 12759#ifdef __cplusplus 12760extern "C" 12761#endif 12762char dlopen (void); 12763int 12764main (void) 12765{ 12766return dlopen (); 12767 ; 12768 return 0; 12769} 12770_ACEOF 12771if ac_fn_c_try_link "$LINENO" 12772then : 12773 ac_cv_lib_dl_dlopen=yes 12774else case e in #( 12775 e) ac_cv_lib_dl_dlopen=no ;; 12776esac 12777fi 12778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12779 conftest$ac_exeext conftest.$ac_ext 12780LIBS=$ac_check_lib_save_LIBS ;; 12781esac 12782fi 12783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12784printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12785if test "x$ac_cv_lib_dl_dlopen" = xyes 12786then : 12787 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12788else case e in #( 12789 e) 12790 lt_cv_dlopen=dyld 12791 lt_cv_dlopen_libs= 12792 lt_cv_dlopen_self=yes 12793 ;; 12794esac 12795fi 12796 12797 ;; 12798 12799 tpf*) 12800 # Don't try to run any link tests for TPF. We know it's impossible 12801 # because TPF is a cross-compiler, and we know how we open DSOs. 12802 lt_cv_dlopen=dlopen 12803 lt_cv_dlopen_libs= 12804 lt_cv_dlopen_self=no 12805 ;; 12806 12807 *) 12808 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12809if test "x$ac_cv_func_shl_load" = xyes 12810then : 12811 lt_cv_dlopen=shl_load 12812else case e in #( 12813 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12814printf %s "checking for shl_load in -ldld... " >&6; } 12815if test ${ac_cv_lib_dld_shl_load+y} 12816then : 12817 printf %s "(cached) " >&6 12818else case e in #( 12819 e) ac_check_lib_save_LIBS=$LIBS 12820LIBS="-ldld $LIBS" 12821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12822/* end confdefs.h. */ 12823 12824/* Override any GCC internal prototype to avoid an error. 12825 Use char because int might match the return type of a GCC 12826 builtin and then its argument prototype would still apply. 12827 The 'extern "C"' is for builds by C++ compilers; 12828 although this is not generally supported in C code supporting it here 12829 has little cost and some practical benefit (sr 110532). */ 12830#ifdef __cplusplus 12831extern "C" 12832#endif 12833char shl_load (void); 12834int 12835main (void) 12836{ 12837return shl_load (); 12838 ; 12839 return 0; 12840} 12841_ACEOF 12842if ac_fn_c_try_link "$LINENO" 12843then : 12844 ac_cv_lib_dld_shl_load=yes 12845else case e in #( 12846 e) ac_cv_lib_dld_shl_load=no ;; 12847esac 12848fi 12849rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12850 conftest$ac_exeext conftest.$ac_ext 12851LIBS=$ac_check_lib_save_LIBS ;; 12852esac 12853fi 12854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12855printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12856if test "x$ac_cv_lib_dld_shl_load" = xyes 12857then : 12858 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12859else case e in #( 12860 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12861if test "x$ac_cv_func_dlopen" = xyes 12862then : 12863 lt_cv_dlopen=dlopen 12864else case e in #( 12865 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12866printf %s "checking for dlopen in -ldl... " >&6; } 12867if test ${ac_cv_lib_dl_dlopen+y} 12868then : 12869 printf %s "(cached) " >&6 12870else case e in #( 12871 e) ac_check_lib_save_LIBS=$LIBS 12872LIBS="-ldl $LIBS" 12873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12874/* end confdefs.h. */ 12875 12876/* Override any GCC internal prototype to avoid an error. 12877 Use char because int might match the return type of a GCC 12878 builtin and then its argument prototype would still apply. 12879 The 'extern "C"' is for builds by C++ compilers; 12880 although this is not generally supported in C code supporting it here 12881 has little cost and some practical benefit (sr 110532). */ 12882#ifdef __cplusplus 12883extern "C" 12884#endif 12885char dlopen (void); 12886int 12887main (void) 12888{ 12889return dlopen (); 12890 ; 12891 return 0; 12892} 12893_ACEOF 12894if ac_fn_c_try_link "$LINENO" 12895then : 12896 ac_cv_lib_dl_dlopen=yes 12897else case e in #( 12898 e) ac_cv_lib_dl_dlopen=no ;; 12899esac 12900fi 12901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12902 conftest$ac_exeext conftest.$ac_ext 12903LIBS=$ac_check_lib_save_LIBS ;; 12904esac 12905fi 12906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12907printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12908if test "x$ac_cv_lib_dl_dlopen" = xyes 12909then : 12910 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12911else case e in #( 12912 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12913printf %s "checking for dlopen in -lsvld... " >&6; } 12914if test ${ac_cv_lib_svld_dlopen+y} 12915then : 12916 printf %s "(cached) " >&6 12917else case e in #( 12918 e) ac_check_lib_save_LIBS=$LIBS 12919LIBS="-lsvld $LIBS" 12920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921/* end confdefs.h. */ 12922 12923/* Override any GCC internal prototype to avoid an error. 12924 Use char because int might match the return type of a GCC 12925 builtin and then its argument prototype would still apply. 12926 The 'extern "C"' is for builds by C++ compilers; 12927 although this is not generally supported in C code supporting it here 12928 has little cost and some practical benefit (sr 110532). */ 12929#ifdef __cplusplus 12930extern "C" 12931#endif 12932char dlopen (void); 12933int 12934main (void) 12935{ 12936return dlopen (); 12937 ; 12938 return 0; 12939} 12940_ACEOF 12941if ac_fn_c_try_link "$LINENO" 12942then : 12943 ac_cv_lib_svld_dlopen=yes 12944else case e in #( 12945 e) ac_cv_lib_svld_dlopen=no ;; 12946esac 12947fi 12948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12949 conftest$ac_exeext conftest.$ac_ext 12950LIBS=$ac_check_lib_save_LIBS ;; 12951esac 12952fi 12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12954printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12955if test "x$ac_cv_lib_svld_dlopen" = xyes 12956then : 12957 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12958else case e in #( 12959 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12960printf %s "checking for dld_link in -ldld... " >&6; } 12961if test ${ac_cv_lib_dld_dld_link+y} 12962then : 12963 printf %s "(cached) " >&6 12964else case e in #( 12965 e) ac_check_lib_save_LIBS=$LIBS 12966LIBS="-ldld $LIBS" 12967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12968/* end confdefs.h. */ 12969 12970/* Override any GCC internal prototype to avoid an error. 12971 Use char because int might match the return type of a GCC 12972 builtin and then its argument prototype would still apply. 12973 The 'extern "C"' is for builds by C++ compilers; 12974 although this is not generally supported in C code supporting it here 12975 has little cost and some practical benefit (sr 110532). */ 12976#ifdef __cplusplus 12977extern "C" 12978#endif 12979char dld_link (void); 12980int 12981main (void) 12982{ 12983return dld_link (); 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO" 12989then : 12990 ac_cv_lib_dld_dld_link=yes 12991else case e in #( 12992 e) ac_cv_lib_dld_dld_link=no ;; 12993esac 12994fi 12995rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12996 conftest$ac_exeext conftest.$ac_ext 12997LIBS=$ac_check_lib_save_LIBS ;; 12998esac 12999fi 13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13001printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13002if test "x$ac_cv_lib_dld_dld_link" = xyes 13003then : 13004 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13005fi 13006 13007 ;; 13008esac 13009fi 13010 13011 ;; 13012esac 13013fi 13014 13015 ;; 13016esac 13017fi 13018 13019 ;; 13020esac 13021fi 13022 13023 ;; 13024esac 13025fi 13026 13027 ;; 13028 esac 13029 13030 if test no = "$lt_cv_dlopen"; then 13031 enable_dlopen=no 13032 else 13033 enable_dlopen=yes 13034 fi 13035 13036 case $lt_cv_dlopen in 13037 dlopen) 13038 save_CPPFLAGS=$CPPFLAGS 13039 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13040 13041 save_LDFLAGS=$LDFLAGS 13042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13043 13044 save_LIBS=$LIBS 13045 LIBS="$lt_cv_dlopen_libs $LIBS" 13046 13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13048printf %s "checking whether a program can dlopen itself... " >&6; } 13049if test ${lt_cv_dlopen_self+y} 13050then : 13051 printf %s "(cached) " >&6 13052else case e in #( 13053 e) if test yes = "$cross_compiling"; then : 13054 lt_cv_dlopen_self=cross 13055else 13056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13057 lt_status=$lt_dlunknown 13058 cat > conftest.$ac_ext <<_LT_EOF 13059#line $LINENO "configure" 13060#include "confdefs.h" 13061 13062#if HAVE_DLFCN_H 13063#include <dlfcn.h> 13064#endif 13065 13066#include <stdio.h> 13067 13068#ifdef RTLD_GLOBAL 13069# define LT_DLGLOBAL RTLD_GLOBAL 13070#else 13071# ifdef DL_GLOBAL 13072# define LT_DLGLOBAL DL_GLOBAL 13073# else 13074# define LT_DLGLOBAL 0 13075# endif 13076#endif 13077 13078/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13079 find out it does not work in some platform. */ 13080#ifndef LT_DLLAZY_OR_NOW 13081# ifdef RTLD_LAZY 13082# define LT_DLLAZY_OR_NOW RTLD_LAZY 13083# else 13084# ifdef DL_LAZY 13085# define LT_DLLAZY_OR_NOW DL_LAZY 13086# else 13087# ifdef RTLD_NOW 13088# define LT_DLLAZY_OR_NOW RTLD_NOW 13089# else 13090# ifdef DL_NOW 13091# define LT_DLLAZY_OR_NOW DL_NOW 13092# else 13093# define LT_DLLAZY_OR_NOW 0 13094# endif 13095# endif 13096# endif 13097# endif 13098#endif 13099 13100/* When -fvisibility=hidden is used, assume the code has been annotated 13101 correspondingly for the symbols needed. */ 13102#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13103int fnord () __attribute__((visibility("default"))); 13104#endif 13105 13106int fnord () { return 42; } 13107int main () 13108{ 13109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13110 int status = $lt_dlunknown; 13111 13112 if (self) 13113 { 13114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13115 else 13116 { 13117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13118 else puts (dlerror ()); 13119 } 13120 /* dlclose (self); */ 13121 } 13122 else 13123 puts (dlerror ()); 13124 13125 return status; 13126} 13127_LT_EOF 13128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13129 (eval $ac_link) 2>&5 13130 ac_status=$? 13131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13133 (./conftest; exit; ) >&5 2>/dev/null 13134 lt_status=$? 13135 case x$lt_status in 13136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13139 esac 13140 else : 13141 # compilation failed 13142 lt_cv_dlopen_self=no 13143 fi 13144fi 13145rm -fr conftest* 13146 13147 ;; 13148esac 13149fi 13150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13151printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13152 13153 if test yes = "$lt_cv_dlopen_self"; then 13154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13156printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13157if test ${lt_cv_dlopen_self_static+y} 13158then : 13159 printf %s "(cached) " >&6 13160else case e in #( 13161 e) if test yes = "$cross_compiling"; then : 13162 lt_cv_dlopen_self_static=cross 13163else 13164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13165 lt_status=$lt_dlunknown 13166 cat > conftest.$ac_ext <<_LT_EOF 13167#line $LINENO "configure" 13168#include "confdefs.h" 13169 13170#if HAVE_DLFCN_H 13171#include <dlfcn.h> 13172#endif 13173 13174#include <stdio.h> 13175 13176#ifdef RTLD_GLOBAL 13177# define LT_DLGLOBAL RTLD_GLOBAL 13178#else 13179# ifdef DL_GLOBAL 13180# define LT_DLGLOBAL DL_GLOBAL 13181# else 13182# define LT_DLGLOBAL 0 13183# endif 13184#endif 13185 13186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13187 find out it does not work in some platform. */ 13188#ifndef LT_DLLAZY_OR_NOW 13189# ifdef RTLD_LAZY 13190# define LT_DLLAZY_OR_NOW RTLD_LAZY 13191# else 13192# ifdef DL_LAZY 13193# define LT_DLLAZY_OR_NOW DL_LAZY 13194# else 13195# ifdef RTLD_NOW 13196# define LT_DLLAZY_OR_NOW RTLD_NOW 13197# else 13198# ifdef DL_NOW 13199# define LT_DLLAZY_OR_NOW DL_NOW 13200# else 13201# define LT_DLLAZY_OR_NOW 0 13202# endif 13203# endif 13204# endif 13205# endif 13206#endif 13207 13208/* When -fvisibility=hidden is used, assume the code has been annotated 13209 correspondingly for the symbols needed. */ 13210#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13211int fnord () __attribute__((visibility("default"))); 13212#endif 13213 13214int fnord () { return 42; } 13215int main () 13216{ 13217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13218 int status = $lt_dlunknown; 13219 13220 if (self) 13221 { 13222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13223 else 13224 { 13225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13226 else puts (dlerror ()); 13227 } 13228 /* dlclose (self); */ 13229 } 13230 else 13231 puts (dlerror ()); 13232 13233 return status; 13234} 13235_LT_EOF 13236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13237 (eval $ac_link) 2>&5 13238 ac_status=$? 13239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13240 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13241 (./conftest; exit; ) >&5 2>/dev/null 13242 lt_status=$? 13243 case x$lt_status in 13244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13247 esac 13248 else : 13249 # compilation failed 13250 lt_cv_dlopen_self_static=no 13251 fi 13252fi 13253rm -fr conftest* 13254 13255 ;; 13256esac 13257fi 13258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13259printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13260 fi 13261 13262 CPPFLAGS=$save_CPPFLAGS 13263 LDFLAGS=$save_LDFLAGS 13264 LIBS=$save_LIBS 13265 ;; 13266 esac 13267 13268 case $lt_cv_dlopen_self in 13269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13270 *) enable_dlopen_self=unknown ;; 13271 esac 13272 13273 case $lt_cv_dlopen_self_static in 13274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13275 *) enable_dlopen_self_static=unknown ;; 13276 esac 13277fi 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295striplib= 13296old_striplib= 13297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13298printf %s "checking whether stripping libraries is possible... " >&6; } 13299if test -z "$STRIP"; then 13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13301printf "%s\n" "no" >&6; } 13302else 13303 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13304 old_striplib="$STRIP --strip-debug" 13305 striplib="$STRIP --strip-unneeded" 13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13307printf "%s\n" "yes" >&6; } 13308 else 13309 case $host_os in 13310 darwin*) 13311 # FIXME - insert some real tests, host_os isn't really good enough 13312 striplib="$STRIP -x" 13313 old_striplib="$STRIP -S" 13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13315printf "%s\n" "yes" >&6; } 13316 ;; 13317 freebsd*) 13318 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13319 old_striplib="$STRIP --strip-debug" 13320 striplib="$STRIP --strip-unneeded" 13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13322printf "%s\n" "yes" >&6; } 13323 else 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325printf "%s\n" "no" >&6; } 13326 fi 13327 ;; 13328 *) 13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330printf "%s\n" "no" >&6; } 13331 ;; 13332 esac 13333 fi 13334fi 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 # Report what library types will actually be built 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13349printf %s "checking if libtool supports shared libraries... " >&6; } 13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13351printf "%s\n" "$can_build_shared" >&6; } 13352 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13354printf %s "checking whether to build shared libraries... " >&6; } 13355 test no = "$can_build_shared" && enable_shared=no 13356 13357 # On AIX, shared libraries and static libraries use the same namespace, and 13358 # are all built from PIC. 13359 case $host_os in 13360 aix3*) 13361 test yes = "$enable_shared" && enable_static=no 13362 if test -n "$RANLIB"; then 13363 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13364 postinstall_cmds='$RANLIB $lib' 13365 fi 13366 ;; 13367 13368 aix[4-9]*) 13369 if test ia64 != "$host_cpu"; then 13370 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13371 yes,aix,yes) ;; # shared object as lib.so file only 13372 yes,svr4,*) ;; # shared object as lib.so archive member only 13373 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13374 esac 13375 fi 13376 ;; 13377 esac 13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13379printf "%s\n" "$enable_shared" >&6; } 13380 13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13382printf %s "checking whether to build static libraries... " >&6; } 13383 # Make sure either enable_shared or enable_static is yes. 13384 test yes = "$enable_shared" || enable_static=yes 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13386printf "%s\n" "$enable_static" >&6; } 13387 13388 13389 13390 13391fi 13392ac_ext=c 13393ac_cpp='$CPP $CPPFLAGS' 13394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13396ac_compiler_gnu=$ac_cv_c_compiler_gnu 13397 13398CC=$lt_save_CC 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 ac_config_commands="$ac_config_commands libtool" 13415 13416 13417 13418 13419# Only expand once: 13420 13421 13422 13423# Require xorg-macros minimum of 1.10 for DocBook XML documentation 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13436printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13437if test ${ac_cv_c_undeclared_builtin_options+y} 13438then : 13439 printf %s "(cached) " >&6 13440else case e in #( 13441 e) ac_save_CFLAGS=$CFLAGS 13442 ac_cv_c_undeclared_builtin_options='cannot detect' 13443 for ac_arg in '' -fno-builtin; do 13444 CFLAGS="$ac_save_CFLAGS $ac_arg" 13445 # This test program should *not* compile successfully. 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448 13449int 13450main (void) 13451{ 13452(void) strchr; 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457if ac_fn_c_try_compile "$LINENO" 13458then : 13459 13460else case e in #( 13461 e) # This test program should compile successfully. 13462 # No library function is consistently available on 13463 # freestanding implementations, so test against a dummy 13464 # declaration. Include always-available headers on the 13465 # off chance that they somehow elicit warnings. 13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13467/* end confdefs.h. */ 13468#include <float.h> 13469#include <limits.h> 13470#include <stdarg.h> 13471#include <stddef.h> 13472extern void ac_decl (int, char *); 13473 13474int 13475main (void) 13476{ 13477(void) ac_decl (0, (char *) 0); 13478 (void) ac_decl; 13479 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484if ac_fn_c_try_compile "$LINENO" 13485then : 13486 if test x"$ac_arg" = x 13487then : 13488 ac_cv_c_undeclared_builtin_options='none needed' 13489else case e in #( 13490 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13491esac 13492fi 13493 break 13494fi 13495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13496esac 13497fi 13498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13499 done 13500 CFLAGS=$ac_save_CFLAGS 13501 ;; 13502esac 13503fi 13504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13505printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13506 case $ac_cv_c_undeclared_builtin_options in #( 13507 'cannot detect') : 13508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13509printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13510as_fn_error $? "cannot make $CC report undeclared builtins 13511See 'config.log' for more details" "$LINENO" 5; } ;; #( 13512 'none needed') : 13513 ac_c_undeclared_builtin_options='' ;; #( 13514 *) : 13515 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13516esac 13517 13518 13519 13520 13521 13522ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13523if test "x$ac_cv_have_decl___clang__" = xyes 13524then : 13525 CLANGCC="yes" 13526else case e in #( 13527 e) CLANGCC="no" ;; 13528esac 13529fi 13530ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13531if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13532then : 13533 INTELCC="yes" 13534else case e in #( 13535 e) INTELCC="no" ;; 13536esac 13537fi 13538ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13539if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13540then : 13541 SUNCC="yes" 13542else case e in #( 13543 e) SUNCC="no" ;; 13544esac 13545fi 13546 13547 13548 13549 13550 13551 13552 13553 13554if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13555 if test -n "$ac_tool_prefix"; then 13556 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13557set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13559printf %s "checking for $ac_word... " >&6; } 13560if test ${ac_cv_path_PKG_CONFIG+y} 13561then : 13562 printf %s "(cached) " >&6 13563else case e in #( 13564 e) case $PKG_CONFIG in 13565 [\\/]* | ?:[\\/]*) 13566 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13567 ;; 13568 *) 13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13570for as_dir in $PATH 13571do 13572 IFS=$as_save_IFS 13573 case $as_dir in #((( 13574 '') as_dir=./ ;; 13575 */) ;; 13576 *) as_dir=$as_dir/ ;; 13577 esac 13578 for ac_exec_ext in '' $ac_executable_extensions; do 13579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13580 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13582 break 2 13583 fi 13584done 13585 done 13586IFS=$as_save_IFS 13587 13588 ;; 13589esac ;; 13590esac 13591fi 13592PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13593if test -n "$PKG_CONFIG"; then 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13595printf "%s\n" "$PKG_CONFIG" >&6; } 13596else 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13598printf "%s\n" "no" >&6; } 13599fi 13600 13601 13602fi 13603if test -z "$ac_cv_path_PKG_CONFIG"; then 13604 ac_pt_PKG_CONFIG=$PKG_CONFIG 13605 # Extract the first word of "pkg-config", so it can be a program name with args. 13606set dummy pkg-config; ac_word=$2 13607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13608printf %s "checking for $ac_word... " >&6; } 13609if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13610then : 13611 printf %s "(cached) " >&6 13612else case e in #( 13613 e) case $ac_pt_PKG_CONFIG in 13614 [\\/]* | ?:[\\/]*) 13615 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13616 ;; 13617 *) 13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13619for as_dir in $PATH 13620do 13621 IFS=$as_save_IFS 13622 case $as_dir in #((( 13623 '') as_dir=./ ;; 13624 */) ;; 13625 *) as_dir=$as_dir/ ;; 13626 esac 13627 for ac_exec_ext in '' $ac_executable_extensions; do 13628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13629 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13631 break 2 13632 fi 13633done 13634 done 13635IFS=$as_save_IFS 13636 13637 ;; 13638esac ;; 13639esac 13640fi 13641ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13642if test -n "$ac_pt_PKG_CONFIG"; then 13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13644printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13645else 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647printf "%s\n" "no" >&6; } 13648fi 13649 13650 if test "x$ac_pt_PKG_CONFIG" = x; then 13651 PKG_CONFIG="" 13652 else 13653 case $cross_compiling:$ac_tool_warned in 13654yes:) 13655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13656printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13657ac_tool_warned=yes ;; 13658esac 13659 PKG_CONFIG=$ac_pt_PKG_CONFIG 13660 fi 13661else 13662 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13663fi 13664 13665fi 13666if test -n "$PKG_CONFIG"; then 13667 _pkg_min_version=0.9.0 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13669printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13670 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13672printf "%s\n" "yes" >&6; } 13673 else 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13675printf "%s\n" "no" >&6; } 13676 PKG_CONFIG="" 13677 fi 13678fi 13679 13680 13681 13682 13683 13684# Check whether --enable-selective-werror was given. 13685if test ${enable_selective_werror+y} 13686then : 13687 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13688else case e in #( 13689 e) SELECTIVE_WERROR=yes ;; 13690esac 13691fi 13692 13693 13694 13695 13696 13697# -v is too short to test reliably with XORG_TESTSET_CFLAG 13698if test "x$SUNCC" = "xyes"; then 13699 BASE_CFLAGS="-v" 13700else 13701 BASE_CFLAGS="" 13702fi 13703 13704# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718xorg_testset_save_CFLAGS="$CFLAGS" 13719 13720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13725then : 13726 printf %s "(cached) " >&6 13727else case e in #( 13728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13729/* end confdefs.h. */ 13730int i; 13731_ACEOF 13732if ac_fn_c_try_compile "$LINENO" 13733then : 13734 xorg_cv_cc_flag_unknown_warning_option=yes 13735else case e in #( 13736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13737esac 13738fi 13739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13740esac 13741fi 13742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13745 CFLAGS="$xorg_testset_save_CFLAGS" 13746fi 13747 13748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13751 fi 13752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13755if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 13766else case e in #( 13767 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 13774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13776 CFLAGS="$xorg_testset_save_CFLAGS" 13777fi 13778 13779found="no" 13780 13781 if test $found = "no" ; then 13782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13784 fi 13785 13786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13788 fi 13789 13790 CFLAGS="$CFLAGS -Wall" 13791 13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13793printf %s "checking if $CC supports -Wall... " >&6; } 13794 cacheid=xorg_cv_cc_flag__Wall 13795 if eval test \${$cacheid+y} 13796then : 13797 printf %s "(cached) " >&6 13798else case e in #( 13799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13800/* end confdefs.h. */ 13801int i; 13802int 13803main (void) 13804{ 13805 13806 ; 13807 return 0; 13808} 13809_ACEOF 13810if ac_fn_c_try_link "$LINENO" 13811then : 13812 eval $cacheid=yes 13813else case e in #( 13814 e) eval $cacheid=no ;; 13815esac 13816fi 13817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13818 conftest$ac_exeext conftest.$ac_ext ;; 13819esac 13820fi 13821 13822 13823 CFLAGS="$xorg_testset_save_CFLAGS" 13824 13825 eval supported=\$$cacheid 13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13827printf "%s\n" "$supported" >&6; } 13828 if test "$supported" = "yes" ; then 13829 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13830 found="yes" 13831 fi 13832 fi 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848xorg_testset_save_CFLAGS="$CFLAGS" 13849 13850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13854if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13855then : 13856 printf %s "(cached) " >&6 13857else case e in #( 13858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859/* end confdefs.h. */ 13860int i; 13861_ACEOF 13862if ac_fn_c_try_compile "$LINENO" 13863then : 13864 xorg_cv_cc_flag_unknown_warning_option=yes 13865else case e in #( 13866 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13867esac 13868fi 13869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13870esac 13871fi 13872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876fi 13877 13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13885if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 13896else case e in #( 13897 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 13904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13906 CFLAGS="$xorg_testset_save_CFLAGS" 13907fi 13908 13909found="no" 13910 13911 if test $found = "no" ; then 13912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13914 fi 13915 13916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13918 fi 13919 13920 CFLAGS="$CFLAGS -Wpointer-arith" 13921 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13923printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13924 cacheid=xorg_cv_cc_flag__Wpointer_arith 13925 if eval test \${$cacheid+y} 13926then : 13927 printf %s "(cached) " >&6 13928else case e in #( 13929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13930/* end confdefs.h. */ 13931int i; 13932int 13933main (void) 13934{ 13935 13936 ; 13937 return 0; 13938} 13939_ACEOF 13940if ac_fn_c_try_link "$LINENO" 13941then : 13942 eval $cacheid=yes 13943else case e in #( 13944 e) eval $cacheid=no ;; 13945esac 13946fi 13947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13948 conftest$ac_exeext conftest.$ac_ext ;; 13949esac 13950fi 13951 13952 13953 CFLAGS="$xorg_testset_save_CFLAGS" 13954 13955 eval supported=\$$cacheid 13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13957printf "%s\n" "$supported" >&6; } 13958 if test "$supported" = "yes" ; then 13959 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13960 found="yes" 13961 fi 13962 fi 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978xorg_testset_save_CFLAGS="$CFLAGS" 13979 13980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13985then : 13986 printf %s "(cached) " >&6 13987else case e in #( 13988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989/* end confdefs.h. */ 13990int i; 13991_ACEOF 13992if ac_fn_c_try_compile "$LINENO" 13993then : 13994 xorg_cv_cc_flag_unknown_warning_option=yes 13995else case e in #( 13996 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13997esac 13998fi 13999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14000esac 14001fi 14002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14005 CFLAGS="$xorg_testset_save_CFLAGS" 14006fi 14007 14008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14011 fi 14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14015if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14016then : 14017 printf %s "(cached) " >&6 14018else case e in #( 14019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14020/* end confdefs.h. */ 14021int i; 14022_ACEOF 14023if ac_fn_c_try_compile "$LINENO" 14024then : 14025 xorg_cv_cc_flag_unused_command_line_argument=yes 14026else case e in #( 14027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14028esac 14029fi 14030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14031esac 14032fi 14033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14036 CFLAGS="$xorg_testset_save_CFLAGS" 14037fi 14038 14039found="no" 14040 14041 if test $found = "no" ; then 14042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14044 fi 14045 14046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14048 fi 14049 14050 CFLAGS="$CFLAGS -Wmissing-declarations" 14051 14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14053printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14054 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14055 if eval test \${$cacheid+y} 14056then : 14057 printf %s "(cached) " >&6 14058else case e in #( 14059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14060/* end confdefs.h. */ 14061int i; 14062int 14063main (void) 14064{ 14065 14066 ; 14067 return 0; 14068} 14069_ACEOF 14070if ac_fn_c_try_link "$LINENO" 14071then : 14072 eval $cacheid=yes 14073else case e in #( 14074 e) eval $cacheid=no ;; 14075esac 14076fi 14077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14078 conftest$ac_exeext conftest.$ac_ext ;; 14079esac 14080fi 14081 14082 14083 CFLAGS="$xorg_testset_save_CFLAGS" 14084 14085 eval supported=\$$cacheid 14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14087printf "%s\n" "$supported" >&6; } 14088 if test "$supported" = "yes" ; then 14089 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14090 found="yes" 14091 fi 14092 fi 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108xorg_testset_save_CFLAGS="$CFLAGS" 14109 14110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14114if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14115then : 14116 printf %s "(cached) " >&6 14117else case e in #( 14118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119/* end confdefs.h. */ 14120int i; 14121_ACEOF 14122if ac_fn_c_try_compile "$LINENO" 14123then : 14124 xorg_cv_cc_flag_unknown_warning_option=yes 14125else case e in #( 14126 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14127esac 14128fi 14129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14130esac 14131fi 14132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14135 CFLAGS="$xorg_testset_save_CFLAGS" 14136fi 14137 14138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14141 fi 14142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14145if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14146then : 14147 printf %s "(cached) " >&6 14148else case e in #( 14149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14150/* end confdefs.h. */ 14151int i; 14152_ACEOF 14153if ac_fn_c_try_compile "$LINENO" 14154then : 14155 xorg_cv_cc_flag_unused_command_line_argument=yes 14156else case e in #( 14157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14158esac 14159fi 14160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14161esac 14162fi 14163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14166 CFLAGS="$xorg_testset_save_CFLAGS" 14167fi 14168 14169found="no" 14170 14171 if test $found = "no" ; then 14172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14174 fi 14175 14176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14178 fi 14179 14180 CFLAGS="$CFLAGS -Wformat=2" 14181 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14183printf %s "checking if $CC supports -Wformat=2... " >&6; } 14184 cacheid=xorg_cv_cc_flag__Wformat_2 14185 if eval test \${$cacheid+y} 14186then : 14187 printf %s "(cached) " >&6 14188else case e in #( 14189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191int i; 14192int 14193main (void) 14194{ 14195 14196 ; 14197 return 0; 14198} 14199_ACEOF 14200if ac_fn_c_try_link "$LINENO" 14201then : 14202 eval $cacheid=yes 14203else case e in #( 14204 e) eval $cacheid=no ;; 14205esac 14206fi 14207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14208 conftest$ac_exeext conftest.$ac_ext ;; 14209esac 14210fi 14211 14212 14213 CFLAGS="$xorg_testset_save_CFLAGS" 14214 14215 eval supported=\$$cacheid 14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14217printf "%s\n" "$supported" >&6; } 14218 if test "$supported" = "yes" ; then 14219 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14220 found="yes" 14221 fi 14222 fi 14223 14224 if test $found = "no" ; then 14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14227 fi 14228 14229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14231 fi 14232 14233 CFLAGS="$CFLAGS -Wformat" 14234 14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14236printf %s "checking if $CC supports -Wformat... " >&6; } 14237 cacheid=xorg_cv_cc_flag__Wformat 14238 if eval test \${$cacheid+y} 14239then : 14240 printf %s "(cached) " >&6 14241else case e in #( 14242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244int i; 14245int 14246main (void) 14247{ 14248 14249 ; 14250 return 0; 14251} 14252_ACEOF 14253if ac_fn_c_try_link "$LINENO" 14254then : 14255 eval $cacheid=yes 14256else case e in #( 14257 e) eval $cacheid=no ;; 14258esac 14259fi 14260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14261 conftest$ac_exeext conftest.$ac_ext ;; 14262esac 14263fi 14264 14265 14266 CFLAGS="$xorg_testset_save_CFLAGS" 14267 14268 eval supported=\$$cacheid 14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14270printf "%s\n" "$supported" >&6; } 14271 if test "$supported" = "yes" ; then 14272 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14273 found="yes" 14274 fi 14275 fi 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293xorg_testset_save_CFLAGS="$CFLAGS" 14294 14295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14299if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14300then : 14301 printf %s "(cached) " >&6 14302else case e in #( 14303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304/* end confdefs.h. */ 14305int i; 14306_ACEOF 14307if ac_fn_c_try_compile "$LINENO" 14308then : 14309 xorg_cv_cc_flag_unknown_warning_option=yes 14310else case e in #( 14311 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14312esac 14313fi 14314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14315esac 14316fi 14317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14320 CFLAGS="$xorg_testset_save_CFLAGS" 14321fi 14322 14323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 fi 14327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14330if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 14341else case e in #( 14342 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 14349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14351 CFLAGS="$xorg_testset_save_CFLAGS" 14352fi 14353 14354found="no" 14355 14356 if test $found = "no" ; then 14357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14359 fi 14360 14361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14363 fi 14364 14365 CFLAGS="$CFLAGS -Wstrict-prototypes" 14366 14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14368printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14369 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14370 if eval test \${$cacheid+y} 14371then : 14372 printf %s "(cached) " >&6 14373else case e in #( 14374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14375/* end confdefs.h. */ 14376int i; 14377int 14378main (void) 14379{ 14380 14381 ; 14382 return 0; 14383} 14384_ACEOF 14385if ac_fn_c_try_link "$LINENO" 14386then : 14387 eval $cacheid=yes 14388else case e in #( 14389 e) eval $cacheid=no ;; 14390esac 14391fi 14392rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14393 conftest$ac_exeext conftest.$ac_ext ;; 14394esac 14395fi 14396 14397 14398 CFLAGS="$xorg_testset_save_CFLAGS" 14399 14400 eval supported=\$$cacheid 14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14402printf "%s\n" "$supported" >&6; } 14403 if test "$supported" = "yes" ; then 14404 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14405 found="yes" 14406 fi 14407 fi 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423xorg_testset_save_CFLAGS="$CFLAGS" 14424 14425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14429if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14430then : 14431 printf %s "(cached) " >&6 14432else case e in #( 14433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14434/* end confdefs.h. */ 14435int i; 14436_ACEOF 14437if ac_fn_c_try_compile "$LINENO" 14438then : 14439 xorg_cv_cc_flag_unknown_warning_option=yes 14440else case e in #( 14441 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14442esac 14443fi 14444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14445esac 14446fi 14447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14448printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14450 CFLAGS="$xorg_testset_save_CFLAGS" 14451fi 14452 14453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14456 fi 14457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14459printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14460if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 14471else case e in #( 14472 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 14479printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14481 CFLAGS="$xorg_testset_save_CFLAGS" 14482fi 14483 14484found="no" 14485 14486 if test $found = "no" ; then 14487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14489 fi 14490 14491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14493 fi 14494 14495 CFLAGS="$CFLAGS -Wmissing-prototypes" 14496 14497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14498printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14499 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14500 if eval test \${$cacheid+y} 14501then : 14502 printf %s "(cached) " >&6 14503else case e in #( 14504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506int i; 14507int 14508main (void) 14509{ 14510 14511 ; 14512 return 0; 14513} 14514_ACEOF 14515if ac_fn_c_try_link "$LINENO" 14516then : 14517 eval $cacheid=yes 14518else case e in #( 14519 e) eval $cacheid=no ;; 14520esac 14521fi 14522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14523 conftest$ac_exeext conftest.$ac_ext ;; 14524esac 14525fi 14526 14527 14528 CFLAGS="$xorg_testset_save_CFLAGS" 14529 14530 eval supported=\$$cacheid 14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14532printf "%s\n" "$supported" >&6; } 14533 if test "$supported" = "yes" ; then 14534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14535 found="yes" 14536 fi 14537 fi 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553xorg_testset_save_CFLAGS="$CFLAGS" 14554 14555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14559if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14560then : 14561 printf %s "(cached) " >&6 14562else case e in #( 14563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565int i; 14566_ACEOF 14567if ac_fn_c_try_compile "$LINENO" 14568then : 14569 xorg_cv_cc_flag_unknown_warning_option=yes 14570else case e in #( 14571 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14572esac 14573fi 14574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14575esac 14576fi 14577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14580 CFLAGS="$xorg_testset_save_CFLAGS" 14581fi 14582 14583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14586 fi 14587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14590if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 14601else case e in #( 14602 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 14609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14611 CFLAGS="$xorg_testset_save_CFLAGS" 14612fi 14613 14614found="no" 14615 14616 if test $found = "no" ; then 14617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14619 fi 14620 14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 fi 14624 14625 CFLAGS="$CFLAGS -Wnested-externs" 14626 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14628printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14629 cacheid=xorg_cv_cc_flag__Wnested_externs 14630 if eval test \${$cacheid+y} 14631then : 14632 printf %s "(cached) " >&6 14633else case e in #( 14634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636int i; 14637int 14638main (void) 14639{ 14640 14641 ; 14642 return 0; 14643} 14644_ACEOF 14645if ac_fn_c_try_link "$LINENO" 14646then : 14647 eval $cacheid=yes 14648else case e in #( 14649 e) eval $cacheid=no ;; 14650esac 14651fi 14652rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14653 conftest$ac_exeext conftest.$ac_ext ;; 14654esac 14655fi 14656 14657 14658 CFLAGS="$xorg_testset_save_CFLAGS" 14659 14660 eval supported=\$$cacheid 14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14662printf "%s\n" "$supported" >&6; } 14663 if test "$supported" = "yes" ; then 14664 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14665 found="yes" 14666 fi 14667 fi 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683xorg_testset_save_CFLAGS="$CFLAGS" 14684 14685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14689if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14690then : 14691 printf %s "(cached) " >&6 14692else case e in #( 14693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695int i; 14696_ACEOF 14697if ac_fn_c_try_compile "$LINENO" 14698then : 14699 xorg_cv_cc_flag_unknown_warning_option=yes 14700else case e in #( 14701 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14702esac 14703fi 14704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14705esac 14706fi 14707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14710 CFLAGS="$xorg_testset_save_CFLAGS" 14711fi 14712 14713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14716 fi 14717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14720if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14721then : 14722 printf %s "(cached) " >&6 14723else case e in #( 14724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726int i; 14727_ACEOF 14728if ac_fn_c_try_compile "$LINENO" 14729then : 14730 xorg_cv_cc_flag_unused_command_line_argument=yes 14731else case e in #( 14732 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14733esac 14734fi 14735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14736esac 14737fi 14738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14741 CFLAGS="$xorg_testset_save_CFLAGS" 14742fi 14743 14744found="no" 14745 14746 if test $found = "no" ; then 14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14749 fi 14750 14751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14753 fi 14754 14755 CFLAGS="$CFLAGS -Wbad-function-cast" 14756 14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14758printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14759 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14760 if eval test \${$cacheid+y} 14761then : 14762 printf %s "(cached) " >&6 14763else case e in #( 14764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14765/* end confdefs.h. */ 14766int i; 14767int 14768main (void) 14769{ 14770 14771 ; 14772 return 0; 14773} 14774_ACEOF 14775if ac_fn_c_try_link "$LINENO" 14776then : 14777 eval $cacheid=yes 14778else case e in #( 14779 e) eval $cacheid=no ;; 14780esac 14781fi 14782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14783 conftest$ac_exeext conftest.$ac_ext ;; 14784esac 14785fi 14786 14787 14788 CFLAGS="$xorg_testset_save_CFLAGS" 14789 14790 eval supported=\$$cacheid 14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14792printf "%s\n" "$supported" >&6; } 14793 if test "$supported" = "yes" ; then 14794 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14795 found="yes" 14796 fi 14797 fi 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813xorg_testset_save_CFLAGS="$CFLAGS" 14814 14815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14819if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14820then : 14821 printf %s "(cached) " >&6 14822else case e in #( 14823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14824/* end confdefs.h. */ 14825int i; 14826_ACEOF 14827if ac_fn_c_try_compile "$LINENO" 14828then : 14829 xorg_cv_cc_flag_unknown_warning_option=yes 14830else case e in #( 14831 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14832esac 14833fi 14834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14835esac 14836fi 14837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14840 CFLAGS="$xorg_testset_save_CFLAGS" 14841fi 14842 14843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 fi 14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14850if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14851then : 14852 printf %s "(cached) " >&6 14853else case e in #( 14854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856int i; 14857_ACEOF 14858if ac_fn_c_try_compile "$LINENO" 14859then : 14860 xorg_cv_cc_flag_unused_command_line_argument=yes 14861else case e in #( 14862 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14863esac 14864fi 14865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14866esac 14867fi 14868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14871 CFLAGS="$xorg_testset_save_CFLAGS" 14872fi 14873 14874found="no" 14875 14876 if test $found = "no" ; then 14877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14879 fi 14880 14881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14883 fi 14884 14885 CFLAGS="$CFLAGS -Wold-style-definition" 14886 14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14888printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14889 cacheid=xorg_cv_cc_flag__Wold_style_definition 14890 if eval test \${$cacheid+y} 14891then : 14892 printf %s "(cached) " >&6 14893else case e in #( 14894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897int 14898main (void) 14899{ 14900 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905if ac_fn_c_try_link "$LINENO" 14906then : 14907 eval $cacheid=yes 14908else case e in #( 14909 e) eval $cacheid=no ;; 14910esac 14911fi 14912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14913 conftest$ac_exeext conftest.$ac_ext ;; 14914esac 14915fi 14916 14917 14918 CFLAGS="$xorg_testset_save_CFLAGS" 14919 14920 eval supported=\$$cacheid 14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14922printf "%s\n" "$supported" >&6; } 14923 if test "$supported" = "yes" ; then 14924 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14925 found="yes" 14926 fi 14927 fi 14928 14929 if test $found = "no" ; then 14930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14932 fi 14933 14934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14936 fi 14937 14938 CFLAGS="$CFLAGS -fd" 14939 14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14941printf %s "checking if $CC supports -fd... " >&6; } 14942 cacheid=xorg_cv_cc_flag__fd 14943 if eval test \${$cacheid+y} 14944then : 14945 printf %s "(cached) " >&6 14946else case e in #( 14947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14948/* end confdefs.h. */ 14949int i; 14950int 14951main (void) 14952{ 14953 14954 ; 14955 return 0; 14956} 14957_ACEOF 14958if ac_fn_c_try_link "$LINENO" 14959then : 14960 eval $cacheid=yes 14961else case e in #( 14962 e) eval $cacheid=no ;; 14963esac 14964fi 14965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14966 conftest$ac_exeext conftest.$ac_ext ;; 14967esac 14968fi 14969 14970 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972 14973 eval supported=\$$cacheid 14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14975printf "%s\n" "$supported" >&6; } 14976 if test "$supported" = "yes" ; then 14977 BASE_CFLAGS="$BASE_CFLAGS -fd" 14978 found="yes" 14979 fi 14980 fi 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996xorg_testset_save_CFLAGS="$CFLAGS" 14997 14998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15002if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15003then : 15004 printf %s "(cached) " >&6 15005else case e in #( 15006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15007/* end confdefs.h. */ 15008int i; 15009_ACEOF 15010if ac_fn_c_try_compile "$LINENO" 15011then : 15012 xorg_cv_cc_flag_unknown_warning_option=yes 15013else case e in #( 15014 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15015esac 15016fi 15017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15018esac 15019fi 15020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15023 CFLAGS="$xorg_testset_save_CFLAGS" 15024fi 15025 15026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15029 fi 15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15034then : 15035 printf %s "(cached) " >&6 15036else case e in #( 15037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038/* end confdefs.h. */ 15039int i; 15040_ACEOF 15041if ac_fn_c_try_compile "$LINENO" 15042then : 15043 xorg_cv_cc_flag_unused_command_line_argument=yes 15044else case e in #( 15045 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15046esac 15047fi 15048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15049esac 15050fi 15051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15054 CFLAGS="$xorg_testset_save_CFLAGS" 15055fi 15056 15057found="no" 15058 15059 if test $found = "no" ; then 15060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15062 fi 15063 15064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15066 fi 15067 15068 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15069 15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15071printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15072 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15073 if eval test \${$cacheid+y} 15074then : 15075 printf %s "(cached) " >&6 15076else case e in #( 15077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15078/* end confdefs.h. */ 15079int i; 15080int 15081main (void) 15082{ 15083 15084 ; 15085 return 0; 15086} 15087_ACEOF 15088if ac_fn_c_try_link "$LINENO" 15089then : 15090 eval $cacheid=yes 15091else case e in #( 15092 e) eval $cacheid=no ;; 15093esac 15094fi 15095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15096 conftest$ac_exeext conftest.$ac_ext ;; 15097esac 15098fi 15099 15100 15101 CFLAGS="$xorg_testset_save_CFLAGS" 15102 15103 eval supported=\$$cacheid 15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15105printf "%s\n" "$supported" >&6; } 15106 if test "$supported" = "yes" ; then 15107 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15108 found="yes" 15109 fi 15110 fi 15111 15112 15113 15114 15115 15116# This chunk adds additional warnings that could catch undesired effects. 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130xorg_testset_save_CFLAGS="$CFLAGS" 15131 15132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15136if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15137then : 15138 printf %s "(cached) " >&6 15139else case e in #( 15140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142int i; 15143_ACEOF 15144if ac_fn_c_try_compile "$LINENO" 15145then : 15146 xorg_cv_cc_flag_unknown_warning_option=yes 15147else case e in #( 15148 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15149esac 15150fi 15151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15152esac 15153fi 15154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15157 CFLAGS="$xorg_testset_save_CFLAGS" 15158fi 15159 15160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 fi 15164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15167if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 15178else case e in #( 15179 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 15186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15188 CFLAGS="$xorg_testset_save_CFLAGS" 15189fi 15190 15191found="no" 15192 15193 if test $found = "no" ; then 15194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 fi 15197 15198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15200 fi 15201 15202 CFLAGS="$CFLAGS -Wunused" 15203 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15205printf %s "checking if $CC supports -Wunused... " >&6; } 15206 cacheid=xorg_cv_cc_flag__Wunused 15207 if eval test \${$cacheid+y} 15208then : 15209 printf %s "(cached) " >&6 15210else case e in #( 15211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15212/* end confdefs.h. */ 15213int i; 15214int 15215main (void) 15216{ 15217 15218 ; 15219 return 0; 15220} 15221_ACEOF 15222if ac_fn_c_try_link "$LINENO" 15223then : 15224 eval $cacheid=yes 15225else case e in #( 15226 e) eval $cacheid=no ;; 15227esac 15228fi 15229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15230 conftest$ac_exeext conftest.$ac_ext ;; 15231esac 15232fi 15233 15234 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236 15237 eval supported=\$$cacheid 15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15239printf "%s\n" "$supported" >&6; } 15240 if test "$supported" = "yes" ; then 15241 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15242 found="yes" 15243 fi 15244 fi 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260xorg_testset_save_CFLAGS="$CFLAGS" 15261 15262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15265printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15266if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15267then : 15268 printf %s "(cached) " >&6 15269else case e in #( 15270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273_ACEOF 15274if ac_fn_c_try_compile "$LINENO" 15275then : 15276 xorg_cv_cc_flag_unknown_warning_option=yes 15277else case e in #( 15278 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15279esac 15280fi 15281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15282esac 15283fi 15284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15287 CFLAGS="$xorg_testset_save_CFLAGS" 15288fi 15289 15290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15293 fi 15294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15297if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 15308else case e in #( 15309 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 15316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15318 CFLAGS="$xorg_testset_save_CFLAGS" 15319fi 15320 15321found="no" 15322 15323 if test $found = "no" ; then 15324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15326 fi 15327 15328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15330 fi 15331 15332 CFLAGS="$CFLAGS -Wuninitialized" 15333 15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15335printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15336 cacheid=xorg_cv_cc_flag__Wuninitialized 15337 if eval test \${$cacheid+y} 15338then : 15339 printf %s "(cached) " >&6 15340else case e in #( 15341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15342/* end confdefs.h. */ 15343int i; 15344int 15345main (void) 15346{ 15347 15348 ; 15349 return 0; 15350} 15351_ACEOF 15352if ac_fn_c_try_link "$LINENO" 15353then : 15354 eval $cacheid=yes 15355else case e in #( 15356 e) eval $cacheid=no ;; 15357esac 15358fi 15359rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15360 conftest$ac_exeext conftest.$ac_ext ;; 15361esac 15362fi 15363 15364 15365 CFLAGS="$xorg_testset_save_CFLAGS" 15366 15367 eval supported=\$$cacheid 15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15369printf "%s\n" "$supported" >&6; } 15370 if test "$supported" = "yes" ; then 15371 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15372 found="yes" 15373 fi 15374 fi 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390xorg_testset_save_CFLAGS="$CFLAGS" 15391 15392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15396if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15397then : 15398 printf %s "(cached) " >&6 15399else case e in #( 15400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15401/* end confdefs.h. */ 15402int i; 15403_ACEOF 15404if ac_fn_c_try_compile "$LINENO" 15405then : 15406 xorg_cv_cc_flag_unknown_warning_option=yes 15407else case e in #( 15408 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15409esac 15410fi 15411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15412esac 15413fi 15414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15417 CFLAGS="$xorg_testset_save_CFLAGS" 15418fi 15419 15420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 fi 15424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15427if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 15438else case e in #( 15439 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 15446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15448 CFLAGS="$xorg_testset_save_CFLAGS" 15449fi 15450 15451found="no" 15452 15453 if test $found = "no" ; then 15454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15456 fi 15457 15458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15460 fi 15461 15462 CFLAGS="$CFLAGS -Wshadow" 15463 15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15465printf %s "checking if $CC supports -Wshadow... " >&6; } 15466 cacheid=xorg_cv_cc_flag__Wshadow 15467 if eval test \${$cacheid+y} 15468then : 15469 printf %s "(cached) " >&6 15470else case e in #( 15471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15472/* end confdefs.h. */ 15473int i; 15474int 15475main (void) 15476{ 15477 15478 ; 15479 return 0; 15480} 15481_ACEOF 15482if ac_fn_c_try_link "$LINENO" 15483then : 15484 eval $cacheid=yes 15485else case e in #( 15486 e) eval $cacheid=no ;; 15487esac 15488fi 15489rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15490 conftest$ac_exeext conftest.$ac_ext ;; 15491esac 15492fi 15493 15494 15495 CFLAGS="$xorg_testset_save_CFLAGS" 15496 15497 eval supported=\$$cacheid 15498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15499printf "%s\n" "$supported" >&6; } 15500 if test "$supported" = "yes" ; then 15501 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15502 found="yes" 15503 fi 15504 fi 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520xorg_testset_save_CFLAGS="$CFLAGS" 15521 15522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15526if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15527then : 15528 printf %s "(cached) " >&6 15529else case e in #( 15530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532int i; 15533_ACEOF 15534if ac_fn_c_try_compile "$LINENO" 15535then : 15536 xorg_cv_cc_flag_unknown_warning_option=yes 15537else case e in #( 15538 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15539esac 15540fi 15541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15542esac 15543fi 15544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548fi 15549 15550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15553 fi 15554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15557if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 15568else case e in #( 15569 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 15576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579fi 15580 15581found="no" 15582 15583 if test $found = "no" ; then 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 fi 15587 15588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 fi 15591 15592 CFLAGS="$CFLAGS -Wmissing-noreturn" 15593 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15595printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15596 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15597 if eval test \${$cacheid+y} 15598then : 15599 printf %s "(cached) " >&6 15600else case e in #( 15601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603int i; 15604int 15605main (void) 15606{ 15607 15608 ; 15609 return 0; 15610} 15611_ACEOF 15612if ac_fn_c_try_link "$LINENO" 15613then : 15614 eval $cacheid=yes 15615else case e in #( 15616 e) eval $cacheid=no ;; 15617esac 15618fi 15619rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15620 conftest$ac_exeext conftest.$ac_ext ;; 15621esac 15622fi 15623 15624 15625 CFLAGS="$xorg_testset_save_CFLAGS" 15626 15627 eval supported=\$$cacheid 15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15629printf "%s\n" "$supported" >&6; } 15630 if test "$supported" = "yes" ; then 15631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15632 found="yes" 15633 fi 15634 fi 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650xorg_testset_save_CFLAGS="$CFLAGS" 15651 15652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15656if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15657then : 15658 printf %s "(cached) " >&6 15659else case e in #( 15660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15661/* end confdefs.h. */ 15662int i; 15663_ACEOF 15664if ac_fn_c_try_compile "$LINENO" 15665then : 15666 xorg_cv_cc_flag_unknown_warning_option=yes 15667else case e in #( 15668 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15669esac 15670fi 15671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15672esac 15673fi 15674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15677 CFLAGS="$xorg_testset_save_CFLAGS" 15678fi 15679 15680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15683 fi 15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15687if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15688then : 15689 printf %s "(cached) " >&6 15690else case e in #( 15691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15692/* end confdefs.h. */ 15693int i; 15694_ACEOF 15695if ac_fn_c_try_compile "$LINENO" 15696then : 15697 xorg_cv_cc_flag_unused_command_line_argument=yes 15698else case e in #( 15699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15700esac 15701fi 15702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15703esac 15704fi 15705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15708 CFLAGS="$xorg_testset_save_CFLAGS" 15709fi 15710 15711found="no" 15712 15713 if test $found = "no" ; then 15714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15716 fi 15717 15718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15720 fi 15721 15722 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15723 15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15725printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15726 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15727 if eval test \${$cacheid+y} 15728then : 15729 printf %s "(cached) " >&6 15730else case e in #( 15731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732/* end confdefs.h. */ 15733int i; 15734int 15735main (void) 15736{ 15737 15738 ; 15739 return 0; 15740} 15741_ACEOF 15742if ac_fn_c_try_link "$LINENO" 15743then : 15744 eval $cacheid=yes 15745else case e in #( 15746 e) eval $cacheid=no ;; 15747esac 15748fi 15749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15750 conftest$ac_exeext conftest.$ac_ext ;; 15751esac 15752fi 15753 15754 15755 CFLAGS="$xorg_testset_save_CFLAGS" 15756 15757 eval supported=\$$cacheid 15758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15759printf "%s\n" "$supported" >&6; } 15760 if test "$supported" = "yes" ; then 15761 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15762 found="yes" 15763 fi 15764 fi 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780xorg_testset_save_CFLAGS="$CFLAGS" 15781 15782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15786if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15787then : 15788 printf %s "(cached) " >&6 15789else case e in #( 15790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15791/* end confdefs.h. */ 15792int i; 15793_ACEOF 15794if ac_fn_c_try_compile "$LINENO" 15795then : 15796 xorg_cv_cc_flag_unknown_warning_option=yes 15797else case e in #( 15798 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15799esac 15800fi 15801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15802esac 15803fi 15804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15807 CFLAGS="$xorg_testset_save_CFLAGS" 15808fi 15809 15810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 fi 15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15817if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15818then : 15819 printf %s "(cached) " >&6 15820else case e in #( 15821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15822/* end confdefs.h. */ 15823int i; 15824_ACEOF 15825if ac_fn_c_try_compile "$LINENO" 15826then : 15827 xorg_cv_cc_flag_unused_command_line_argument=yes 15828else case e in #( 15829 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15830esac 15831fi 15832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15833esac 15834fi 15835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15838 CFLAGS="$xorg_testset_save_CFLAGS" 15839fi 15840 15841found="no" 15842 15843 if test $found = "no" ; then 15844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 fi 15847 15848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15850 fi 15851 15852 CFLAGS="$CFLAGS -Wredundant-decls" 15853 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15855printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15856 cacheid=xorg_cv_cc_flag__Wredundant_decls 15857 if eval test \${$cacheid+y} 15858then : 15859 printf %s "(cached) " >&6 15860else case e in #( 15861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863int i; 15864int 15865main (void) 15866{ 15867 15868 ; 15869 return 0; 15870} 15871_ACEOF 15872if ac_fn_c_try_link "$LINENO" 15873then : 15874 eval $cacheid=yes 15875else case e in #( 15876 e) eval $cacheid=no ;; 15877esac 15878fi 15879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15880 conftest$ac_exeext conftest.$ac_ext ;; 15881esac 15882fi 15883 15884 15885 CFLAGS="$xorg_testset_save_CFLAGS" 15886 15887 eval supported=\$$cacheid 15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15889printf "%s\n" "$supported" >&6; } 15890 if test "$supported" = "yes" ; then 15891 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15892 found="yes" 15893 fi 15894 fi 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910xorg_testset_save_CFLAGS="$CFLAGS" 15911 15912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15916if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15917then : 15918 printf %s "(cached) " >&6 15919else case e in #( 15920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922int i; 15923_ACEOF 15924if ac_fn_c_try_compile "$LINENO" 15925then : 15926 xorg_cv_cc_flag_unknown_warning_option=yes 15927else case e in #( 15928 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15929esac 15930fi 15931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15932esac 15933fi 15934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15937 CFLAGS="$xorg_testset_save_CFLAGS" 15938fi 15939 15940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15943 fi 15944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15947if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15948then : 15949 printf %s "(cached) " >&6 15950else case e in #( 15951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952/* end confdefs.h. */ 15953int i; 15954_ACEOF 15955if ac_fn_c_try_compile "$LINENO" 15956then : 15957 xorg_cv_cc_flag_unused_command_line_argument=yes 15958else case e in #( 15959 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15960esac 15961fi 15962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15963esac 15964fi 15965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15968 CFLAGS="$xorg_testset_save_CFLAGS" 15969fi 15970 15971found="no" 15972 15973 if test $found = "no" ; then 15974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15976 fi 15977 15978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15980 fi 15981 15982 CFLAGS="$CFLAGS -Wlogical-op" 15983 15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15985printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15986 cacheid=xorg_cv_cc_flag__Wlogical_op 15987 if eval test \${$cacheid+y} 15988then : 15989 printf %s "(cached) " >&6 15990else case e in #( 15991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15992/* end confdefs.h. */ 15993int i; 15994int 15995main (void) 15996{ 15997 15998 ; 15999 return 0; 16000} 16001_ACEOF 16002if ac_fn_c_try_link "$LINENO" 16003then : 16004 eval $cacheid=yes 16005else case e in #( 16006 e) eval $cacheid=no ;; 16007esac 16008fi 16009rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16010 conftest$ac_exeext conftest.$ac_ext ;; 16011esac 16012fi 16013 16014 16015 CFLAGS="$xorg_testset_save_CFLAGS" 16016 16017 eval supported=\$$cacheid 16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16019printf "%s\n" "$supported" >&6; } 16020 if test "$supported" = "yes" ; then 16021 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16022 found="yes" 16023 fi 16024 fi 16025 16026 16027 16028# These are currently disabled because they are noisy. They will be enabled 16029# in the future once the codebase is sufficiently modernized to silence 16030# them. For now, I don't want them to drown out the other warnings. 16031# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16032# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16033# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16034 16035# Turn some warnings into errors, so we don't accidentally get successful builds 16036# when there are problems that should be fixed. 16037 16038if test "x$SELECTIVE_WERROR" = "xyes" ; then 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052xorg_testset_save_CFLAGS="$CFLAGS" 16053 16054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16059then : 16060 printf %s "(cached) " >&6 16061else case e in #( 16062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16063/* end confdefs.h. */ 16064int i; 16065_ACEOF 16066if ac_fn_c_try_compile "$LINENO" 16067then : 16068 xorg_cv_cc_flag_unknown_warning_option=yes 16069else case e in #( 16070 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16071esac 16072fi 16073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16074esac 16075fi 16076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16079 CFLAGS="$xorg_testset_save_CFLAGS" 16080fi 16081 16082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16085 fi 16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16089if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16090then : 16091 printf %s "(cached) " >&6 16092else case e in #( 16093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096_ACEOF 16097if ac_fn_c_try_compile "$LINENO" 16098then : 16099 xorg_cv_cc_flag_unused_command_line_argument=yes 16100else case e in #( 16101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16102esac 16103fi 16104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16105esac 16106fi 16107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16110 CFLAGS="$xorg_testset_save_CFLAGS" 16111fi 16112 16113found="no" 16114 16115 if test $found = "no" ; then 16116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 fi 16119 16120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16122 fi 16123 16124 CFLAGS="$CFLAGS -Werror=implicit" 16125 16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16127printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16128 cacheid=xorg_cv_cc_flag__Werror_implicit 16129 if eval test \${$cacheid+y} 16130then : 16131 printf %s "(cached) " >&6 16132else case e in #( 16133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16134/* end confdefs.h. */ 16135int i; 16136int 16137main (void) 16138{ 16139 16140 ; 16141 return 0; 16142} 16143_ACEOF 16144if ac_fn_c_try_link "$LINENO" 16145then : 16146 eval $cacheid=yes 16147else case e in #( 16148 e) eval $cacheid=no ;; 16149esac 16150fi 16151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16152 conftest$ac_exeext conftest.$ac_ext ;; 16153esac 16154fi 16155 16156 16157 CFLAGS="$xorg_testset_save_CFLAGS" 16158 16159 eval supported=\$$cacheid 16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16161printf "%s\n" "$supported" >&6; } 16162 if test "$supported" = "yes" ; then 16163 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16164 found="yes" 16165 fi 16166 fi 16167 16168 if test $found = "no" ; then 16169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16171 fi 16172 16173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16175 fi 16176 16177 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16178 16179 { 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 16180printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16181 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16182 if eval test \${$cacheid+y} 16183then : 16184 printf %s "(cached) " >&6 16185else case e in #( 16186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16187/* end confdefs.h. */ 16188int i; 16189int 16190main (void) 16191{ 16192 16193 ; 16194 return 0; 16195} 16196_ACEOF 16197if ac_fn_c_try_link "$LINENO" 16198then : 16199 eval $cacheid=yes 16200else case e in #( 16201 e) eval $cacheid=no ;; 16202esac 16203fi 16204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16205 conftest$ac_exeext conftest.$ac_ext ;; 16206esac 16207fi 16208 16209 16210 CFLAGS="$xorg_testset_save_CFLAGS" 16211 16212 eval supported=\$$cacheid 16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16214printf "%s\n" "$supported" >&6; } 16215 if test "$supported" = "yes" ; then 16216 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16217 found="yes" 16218 fi 16219 fi 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235xorg_testset_save_CFLAGS="$CFLAGS" 16236 16237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16241if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16242then : 16243 printf %s "(cached) " >&6 16244else case e in #( 16245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16246/* end confdefs.h. */ 16247int i; 16248_ACEOF 16249if ac_fn_c_try_compile "$LINENO" 16250then : 16251 xorg_cv_cc_flag_unknown_warning_option=yes 16252else case e in #( 16253 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16254esac 16255fi 16256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16257esac 16258fi 16259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16262 CFLAGS="$xorg_testset_save_CFLAGS" 16263fi 16264 16265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16268 fi 16269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16272if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 16283else case e in #( 16284 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 16291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16293 CFLAGS="$xorg_testset_save_CFLAGS" 16294fi 16295 16296found="no" 16297 16298 if test $found = "no" ; then 16299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16301 fi 16302 16303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16305 fi 16306 16307 CFLAGS="$CFLAGS -Werror=nonnull" 16308 16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16310printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16311 cacheid=xorg_cv_cc_flag__Werror_nonnull 16312 if eval test \${$cacheid+y} 16313then : 16314 printf %s "(cached) " >&6 16315else case e in #( 16316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317/* end confdefs.h. */ 16318int i; 16319int 16320main (void) 16321{ 16322 16323 ; 16324 return 0; 16325} 16326_ACEOF 16327if ac_fn_c_try_link "$LINENO" 16328then : 16329 eval $cacheid=yes 16330else case e in #( 16331 e) eval $cacheid=no ;; 16332esac 16333fi 16334rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16335 conftest$ac_exeext conftest.$ac_ext ;; 16336esac 16337fi 16338 16339 16340 CFLAGS="$xorg_testset_save_CFLAGS" 16341 16342 eval supported=\$$cacheid 16343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16344printf "%s\n" "$supported" >&6; } 16345 if test "$supported" = "yes" ; then 16346 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16347 found="yes" 16348 fi 16349 fi 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365xorg_testset_save_CFLAGS="$CFLAGS" 16366 16367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16372then : 16373 printf %s "(cached) " >&6 16374else case e in #( 16375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377int i; 16378_ACEOF 16379if ac_fn_c_try_compile "$LINENO" 16380then : 16381 xorg_cv_cc_flag_unknown_warning_option=yes 16382else case e in #( 16383 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16384esac 16385fi 16386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16387esac 16388fi 16389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16392 CFLAGS="$xorg_testset_save_CFLAGS" 16393fi 16394 16395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16398 fi 16399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16402if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 16413else case e in #( 16414 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 16421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16423 CFLAGS="$xorg_testset_save_CFLAGS" 16424fi 16425 16426found="no" 16427 16428 if test $found = "no" ; then 16429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16431 fi 16432 16433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16435 fi 16436 16437 CFLAGS="$CFLAGS -Werror=init-self" 16438 16439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16440printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16441 cacheid=xorg_cv_cc_flag__Werror_init_self 16442 if eval test \${$cacheid+y} 16443then : 16444 printf %s "(cached) " >&6 16445else case e in #( 16446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16447/* end confdefs.h. */ 16448int i; 16449int 16450main (void) 16451{ 16452 16453 ; 16454 return 0; 16455} 16456_ACEOF 16457if ac_fn_c_try_link "$LINENO" 16458then : 16459 eval $cacheid=yes 16460else case e in #( 16461 e) eval $cacheid=no ;; 16462esac 16463fi 16464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16465 conftest$ac_exeext conftest.$ac_ext ;; 16466esac 16467fi 16468 16469 16470 CFLAGS="$xorg_testset_save_CFLAGS" 16471 16472 eval supported=\$$cacheid 16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16474printf "%s\n" "$supported" >&6; } 16475 if test "$supported" = "yes" ; then 16476 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16477 found="yes" 16478 fi 16479 fi 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495xorg_testset_save_CFLAGS="$CFLAGS" 16496 16497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16501if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16502then : 16503 printf %s "(cached) " >&6 16504else case e in #( 16505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16506/* end confdefs.h. */ 16507int i; 16508_ACEOF 16509if ac_fn_c_try_compile "$LINENO" 16510then : 16511 xorg_cv_cc_flag_unknown_warning_option=yes 16512else case e in #( 16513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16514esac 16515fi 16516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16517esac 16518fi 16519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523fi 16524 16525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16528 fi 16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16532if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 16543else case e in #( 16544 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 16551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16553 CFLAGS="$xorg_testset_save_CFLAGS" 16554fi 16555 16556found="no" 16557 16558 if test $found = "no" ; then 16559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16561 fi 16562 16563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16565 fi 16566 16567 CFLAGS="$CFLAGS -Werror=main" 16568 16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16570printf %s "checking if $CC supports -Werror=main... " >&6; } 16571 cacheid=xorg_cv_cc_flag__Werror_main 16572 if eval test \${$cacheid+y} 16573then : 16574 printf %s "(cached) " >&6 16575else case e in #( 16576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16577/* end confdefs.h. */ 16578int i; 16579int 16580main (void) 16581{ 16582 16583 ; 16584 return 0; 16585} 16586_ACEOF 16587if ac_fn_c_try_link "$LINENO" 16588then : 16589 eval $cacheid=yes 16590else case e in #( 16591 e) eval $cacheid=no ;; 16592esac 16593fi 16594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16595 conftest$ac_exeext conftest.$ac_ext ;; 16596esac 16597fi 16598 16599 16600 CFLAGS="$xorg_testset_save_CFLAGS" 16601 16602 eval supported=\$$cacheid 16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16604printf "%s\n" "$supported" >&6; } 16605 if test "$supported" = "yes" ; then 16606 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16607 found="yes" 16608 fi 16609 fi 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625xorg_testset_save_CFLAGS="$CFLAGS" 16626 16627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16632then : 16633 printf %s "(cached) " >&6 16634else case e in #( 16635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16636/* end confdefs.h. */ 16637int i; 16638_ACEOF 16639if ac_fn_c_try_compile "$LINENO" 16640then : 16641 xorg_cv_cc_flag_unknown_warning_option=yes 16642else case e in #( 16643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16644esac 16645fi 16646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16647esac 16648fi 16649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16652 CFLAGS="$xorg_testset_save_CFLAGS" 16653fi 16654 16655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16658 fi 16659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16663then : 16664 printf %s "(cached) " >&6 16665else case e in #( 16666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16667/* end confdefs.h. */ 16668int i; 16669_ACEOF 16670if ac_fn_c_try_compile "$LINENO" 16671then : 16672 xorg_cv_cc_flag_unused_command_line_argument=yes 16673else case e in #( 16674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16675esac 16676fi 16677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16678esac 16679fi 16680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16683 CFLAGS="$xorg_testset_save_CFLAGS" 16684fi 16685 16686found="no" 16687 16688 if test $found = "no" ; then 16689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16691 fi 16692 16693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16695 fi 16696 16697 CFLAGS="$CFLAGS -Werror=missing-braces" 16698 16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16700printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16701 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16702 if eval test \${$cacheid+y} 16703then : 16704 printf %s "(cached) " >&6 16705else case e in #( 16706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707/* end confdefs.h. */ 16708int i; 16709int 16710main (void) 16711{ 16712 16713 ; 16714 return 0; 16715} 16716_ACEOF 16717if ac_fn_c_try_link "$LINENO" 16718then : 16719 eval $cacheid=yes 16720else case e in #( 16721 e) eval $cacheid=no ;; 16722esac 16723fi 16724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16725 conftest$ac_exeext conftest.$ac_ext ;; 16726esac 16727fi 16728 16729 16730 CFLAGS="$xorg_testset_save_CFLAGS" 16731 16732 eval supported=\$$cacheid 16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16734printf "%s\n" "$supported" >&6; } 16735 if test "$supported" = "yes" ; then 16736 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16737 found="yes" 16738 fi 16739 fi 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755xorg_testset_save_CFLAGS="$CFLAGS" 16756 16757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16761if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16762then : 16763 printf %s "(cached) " >&6 16764else case e in #( 16765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768_ACEOF 16769if ac_fn_c_try_compile "$LINENO" 16770then : 16771 xorg_cv_cc_flag_unknown_warning_option=yes 16772else case e in #( 16773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16774esac 16775fi 16776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16777esac 16778fi 16779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16782 CFLAGS="$xorg_testset_save_CFLAGS" 16783fi 16784 16785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16788 fi 16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16793then : 16794 printf %s "(cached) " >&6 16795else case e in #( 16796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797/* end confdefs.h. */ 16798int i; 16799_ACEOF 16800if ac_fn_c_try_compile "$LINENO" 16801then : 16802 xorg_cv_cc_flag_unused_command_line_argument=yes 16803else case e in #( 16804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16805esac 16806fi 16807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16808esac 16809fi 16810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16813 CFLAGS="$xorg_testset_save_CFLAGS" 16814fi 16815 16816found="no" 16817 16818 if test $found = "no" ; then 16819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16821 fi 16822 16823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16825 fi 16826 16827 CFLAGS="$CFLAGS -Werror=sequence-point" 16828 16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16830printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16831 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16832 if eval test \${$cacheid+y} 16833then : 16834 printf %s "(cached) " >&6 16835else case e in #( 16836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837/* end confdefs.h. */ 16838int i; 16839int 16840main (void) 16841{ 16842 16843 ; 16844 return 0; 16845} 16846_ACEOF 16847if ac_fn_c_try_link "$LINENO" 16848then : 16849 eval $cacheid=yes 16850else case e in #( 16851 e) eval $cacheid=no ;; 16852esac 16853fi 16854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16855 conftest$ac_exeext conftest.$ac_ext ;; 16856esac 16857fi 16858 16859 16860 CFLAGS="$xorg_testset_save_CFLAGS" 16861 16862 eval supported=\$$cacheid 16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16864printf "%s\n" "$supported" >&6; } 16865 if test "$supported" = "yes" ; then 16866 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16867 found="yes" 16868 fi 16869 fi 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885xorg_testset_save_CFLAGS="$CFLAGS" 16886 16887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16891if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16892then : 16893 printf %s "(cached) " >&6 16894else case e in #( 16895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16896/* end confdefs.h. */ 16897int i; 16898_ACEOF 16899if ac_fn_c_try_compile "$LINENO" 16900then : 16901 xorg_cv_cc_flag_unknown_warning_option=yes 16902else case e in #( 16903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16904esac 16905fi 16906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16907esac 16908fi 16909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16912 CFLAGS="$xorg_testset_save_CFLAGS" 16913fi 16914 16915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16918 fi 16919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16923then : 16924 printf %s "(cached) " >&6 16925else case e in #( 16926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16927/* end confdefs.h. */ 16928int i; 16929_ACEOF 16930if ac_fn_c_try_compile "$LINENO" 16931then : 16932 xorg_cv_cc_flag_unused_command_line_argument=yes 16933else case e in #( 16934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16935esac 16936fi 16937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16938esac 16939fi 16940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16943 CFLAGS="$xorg_testset_save_CFLAGS" 16944fi 16945 16946found="no" 16947 16948 if test $found = "no" ; then 16949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16951 fi 16952 16953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16955 fi 16956 16957 CFLAGS="$CFLAGS -Werror=return-type" 16958 16959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16960printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16961 cacheid=xorg_cv_cc_flag__Werror_return_type 16962 if eval test \${$cacheid+y} 16963then : 16964 printf %s "(cached) " >&6 16965else case e in #( 16966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967/* end confdefs.h. */ 16968int i; 16969int 16970main (void) 16971{ 16972 16973 ; 16974 return 0; 16975} 16976_ACEOF 16977if ac_fn_c_try_link "$LINENO" 16978then : 16979 eval $cacheid=yes 16980else case e in #( 16981 e) eval $cacheid=no ;; 16982esac 16983fi 16984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16985 conftest$ac_exeext conftest.$ac_ext ;; 16986esac 16987fi 16988 16989 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991 16992 eval supported=\$$cacheid 16993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16994printf "%s\n" "$supported" >&6; } 16995 if test "$supported" = "yes" ; then 16996 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16997 found="yes" 16998 fi 16999 fi 17000 17001 if test $found = "no" ; then 17002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17004 fi 17005 17006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17008 fi 17009 17010 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17011 17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17013printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17014 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17015 if eval test \${$cacheid+y} 17016then : 17017 printf %s "(cached) " >&6 17018else case e in #( 17019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17020/* end confdefs.h. */ 17021int i; 17022int 17023main (void) 17024{ 17025 17026 ; 17027 return 0; 17028} 17029_ACEOF 17030if ac_fn_c_try_link "$LINENO" 17031then : 17032 eval $cacheid=yes 17033else case e in #( 17034 e) eval $cacheid=no ;; 17035esac 17036fi 17037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17038 conftest$ac_exeext conftest.$ac_ext ;; 17039esac 17040fi 17041 17042 17043 CFLAGS="$xorg_testset_save_CFLAGS" 17044 17045 eval supported=\$$cacheid 17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17047printf "%s\n" "$supported" >&6; } 17048 if test "$supported" = "yes" ; then 17049 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17050 found="yes" 17051 fi 17052 fi 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068xorg_testset_save_CFLAGS="$CFLAGS" 17069 17070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17075then : 17076 printf %s "(cached) " >&6 17077else case e in #( 17078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17079/* end confdefs.h. */ 17080int i; 17081_ACEOF 17082if ac_fn_c_try_compile "$LINENO" 17083then : 17084 xorg_cv_cc_flag_unknown_warning_option=yes 17085else case e in #( 17086 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17087esac 17088fi 17089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17090esac 17091fi 17092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17095 CFLAGS="$xorg_testset_save_CFLAGS" 17096fi 17097 17098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17101 fi 17102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17105if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 17116else case e in #( 17117 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 17124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17126 CFLAGS="$xorg_testset_save_CFLAGS" 17127fi 17128 17129found="no" 17130 17131 if test $found = "no" ; then 17132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17134 fi 17135 17136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17138 fi 17139 17140 CFLAGS="$CFLAGS -Werror=trigraphs" 17141 17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17143printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17144 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17145 if eval test \${$cacheid+y} 17146then : 17147 printf %s "(cached) " >&6 17148else case e in #( 17149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17150/* end confdefs.h. */ 17151int i; 17152int 17153main (void) 17154{ 17155 17156 ; 17157 return 0; 17158} 17159_ACEOF 17160if ac_fn_c_try_link "$LINENO" 17161then : 17162 eval $cacheid=yes 17163else case e in #( 17164 e) eval $cacheid=no ;; 17165esac 17166fi 17167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17168 conftest$ac_exeext conftest.$ac_ext ;; 17169esac 17170fi 17171 17172 17173 CFLAGS="$xorg_testset_save_CFLAGS" 17174 17175 eval supported=\$$cacheid 17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17177printf "%s\n" "$supported" >&6; } 17178 if test "$supported" = "yes" ; then 17179 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17180 found="yes" 17181 fi 17182 fi 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198xorg_testset_save_CFLAGS="$CFLAGS" 17199 17200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17204if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17205then : 17206 printf %s "(cached) " >&6 17207else case e in #( 17208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17209/* end confdefs.h. */ 17210int i; 17211_ACEOF 17212if ac_fn_c_try_compile "$LINENO" 17213then : 17214 xorg_cv_cc_flag_unknown_warning_option=yes 17215else case e in #( 17216 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17217esac 17218fi 17219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17220esac 17221fi 17222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17225 CFLAGS="$xorg_testset_save_CFLAGS" 17226fi 17227 17228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17231 fi 17232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17235if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 17246else case e in #( 17247 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 17254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17256 CFLAGS="$xorg_testset_save_CFLAGS" 17257fi 17258 17259found="no" 17260 17261 if test $found = "no" ; then 17262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17264 fi 17265 17266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17268 fi 17269 17270 CFLAGS="$CFLAGS -Werror=array-bounds" 17271 17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17273printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17274 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17275 if eval test \${$cacheid+y} 17276then : 17277 printf %s "(cached) " >&6 17278else case e in #( 17279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281int i; 17282int 17283main (void) 17284{ 17285 17286 ; 17287 return 0; 17288} 17289_ACEOF 17290if ac_fn_c_try_link "$LINENO" 17291then : 17292 eval $cacheid=yes 17293else case e in #( 17294 e) eval $cacheid=no ;; 17295esac 17296fi 17297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17298 conftest$ac_exeext conftest.$ac_ext ;; 17299esac 17300fi 17301 17302 17303 CFLAGS="$xorg_testset_save_CFLAGS" 17304 17305 eval supported=\$$cacheid 17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17307printf "%s\n" "$supported" >&6; } 17308 if test "$supported" = "yes" ; then 17309 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17310 found="yes" 17311 fi 17312 fi 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328xorg_testset_save_CFLAGS="$CFLAGS" 17329 17330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17334if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17335then : 17336 printf %s "(cached) " >&6 17337else case e in #( 17338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339/* end confdefs.h. */ 17340int i; 17341_ACEOF 17342if ac_fn_c_try_compile "$LINENO" 17343then : 17344 xorg_cv_cc_flag_unknown_warning_option=yes 17345else case e in #( 17346 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17347esac 17348fi 17349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17350esac 17351fi 17352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17355 CFLAGS="$xorg_testset_save_CFLAGS" 17356fi 17357 17358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17361 fi 17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17365if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17366then : 17367 printf %s "(cached) " >&6 17368else case e in #( 17369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17370/* end confdefs.h. */ 17371int i; 17372_ACEOF 17373if ac_fn_c_try_compile "$LINENO" 17374then : 17375 xorg_cv_cc_flag_unused_command_line_argument=yes 17376else case e in #( 17377 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17378esac 17379fi 17380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17381esac 17382fi 17383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17386 CFLAGS="$xorg_testset_save_CFLAGS" 17387fi 17388 17389found="no" 17390 17391 if test $found = "no" ; then 17392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17394 fi 17395 17396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 fi 17399 17400 CFLAGS="$CFLAGS -Werror=write-strings" 17401 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17403printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17404 cacheid=xorg_cv_cc_flag__Werror_write_strings 17405 if eval test \${$cacheid+y} 17406then : 17407 printf %s "(cached) " >&6 17408else case e in #( 17409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17410/* end confdefs.h. */ 17411int i; 17412int 17413main (void) 17414{ 17415 17416 ; 17417 return 0; 17418} 17419_ACEOF 17420if ac_fn_c_try_link "$LINENO" 17421then : 17422 eval $cacheid=yes 17423else case e in #( 17424 e) eval $cacheid=no ;; 17425esac 17426fi 17427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17428 conftest$ac_exeext conftest.$ac_ext ;; 17429esac 17430fi 17431 17432 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434 17435 eval supported=\$$cacheid 17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17437printf "%s\n" "$supported" >&6; } 17438 if test "$supported" = "yes" ; then 17439 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17440 found="yes" 17441 fi 17442 fi 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458xorg_testset_save_CFLAGS="$CFLAGS" 17459 17460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17464if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17465then : 17466 printf %s "(cached) " >&6 17467else case e in #( 17468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17469/* end confdefs.h. */ 17470int i; 17471_ACEOF 17472if ac_fn_c_try_compile "$LINENO" 17473then : 17474 xorg_cv_cc_flag_unknown_warning_option=yes 17475else case e in #( 17476 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17477esac 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17480esac 17481fi 17482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17485 CFLAGS="$xorg_testset_save_CFLAGS" 17486fi 17487 17488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17491 fi 17492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17495if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17496then : 17497 printf %s "(cached) " >&6 17498else case e in #( 17499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500/* end confdefs.h. */ 17501int i; 17502_ACEOF 17503if ac_fn_c_try_compile "$LINENO" 17504then : 17505 xorg_cv_cc_flag_unused_command_line_argument=yes 17506else case e in #( 17507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17508esac 17509fi 17510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17511esac 17512fi 17513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17516 CFLAGS="$xorg_testset_save_CFLAGS" 17517fi 17518 17519found="no" 17520 17521 if test $found = "no" ; then 17522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17524 fi 17525 17526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17528 fi 17529 17530 CFLAGS="$CFLAGS -Werror=address" 17531 17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17533printf %s "checking if $CC supports -Werror=address... " >&6; } 17534 cacheid=xorg_cv_cc_flag__Werror_address 17535 if eval test \${$cacheid+y} 17536then : 17537 printf %s "(cached) " >&6 17538else case e in #( 17539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541int i; 17542int 17543main (void) 17544{ 17545 17546 ; 17547 return 0; 17548} 17549_ACEOF 17550if ac_fn_c_try_link "$LINENO" 17551then : 17552 eval $cacheid=yes 17553else case e in #( 17554 e) eval $cacheid=no ;; 17555esac 17556fi 17557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17558 conftest$ac_exeext conftest.$ac_ext ;; 17559esac 17560fi 17561 17562 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564 17565 eval supported=\$$cacheid 17566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17567printf "%s\n" "$supported" >&6; } 17568 if test "$supported" = "yes" ; then 17569 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17570 found="yes" 17571 fi 17572 fi 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17595then : 17596 printf %s "(cached) " >&6 17597else case e in #( 17598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17599/* end confdefs.h. */ 17600int i; 17601_ACEOF 17602if ac_fn_c_try_compile "$LINENO" 17603then : 17604 xorg_cv_cc_flag_unknown_warning_option=yes 17605else case e in #( 17606 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17607esac 17608fi 17609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17610esac 17611fi 17612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17615 CFLAGS="$xorg_testset_save_CFLAGS" 17616fi 17617 17618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17621 fi 17622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17626then : 17627 printf %s "(cached) " >&6 17628else case e in #( 17629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630/* end confdefs.h. */ 17631int i; 17632_ACEOF 17633if ac_fn_c_try_compile "$LINENO" 17634then : 17635 xorg_cv_cc_flag_unused_command_line_argument=yes 17636else case e in #( 17637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17638esac 17639fi 17640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17641esac 17642fi 17643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17646 CFLAGS="$xorg_testset_save_CFLAGS" 17647fi 17648 17649found="no" 17650 17651 if test $found = "no" ; then 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 fi 17655 17656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17658 fi 17659 17660 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17661 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17663printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17664 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17665 if eval test \${$cacheid+y} 17666then : 17667 printf %s "(cached) " >&6 17668else case e in #( 17669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17670/* end confdefs.h. */ 17671int i; 17672int 17673main (void) 17674{ 17675 17676 ; 17677 return 0; 17678} 17679_ACEOF 17680if ac_fn_c_try_link "$LINENO" 17681then : 17682 eval $cacheid=yes 17683else case e in #( 17684 e) eval $cacheid=no ;; 17685esac 17686fi 17687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17688 conftest$ac_exeext conftest.$ac_ext ;; 17689esac 17690fi 17691 17692 17693 CFLAGS="$xorg_testset_save_CFLAGS" 17694 17695 eval supported=\$$cacheid 17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17697printf "%s\n" "$supported" >&6; } 17698 if test "$supported" = "yes" ; then 17699 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17700 found="yes" 17701 fi 17702 fi 17703 17704 if test $found = "no" ; then 17705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17707 fi 17708 17709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17711 fi 17712 17713 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17714 17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17716printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17717 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17718 if eval test \${$cacheid+y} 17719then : 17720 printf %s "(cached) " >&6 17721else case e in #( 17722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724int i; 17725int 17726main (void) 17727{ 17728 17729 ; 17730 return 0; 17731} 17732_ACEOF 17733if ac_fn_c_try_link "$LINENO" 17734then : 17735 eval $cacheid=yes 17736else case e in #( 17737 e) eval $cacheid=no ;; 17738esac 17739fi 17740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17741 conftest$ac_exeext conftest.$ac_ext ;; 17742esac 17743fi 17744 17745 17746 CFLAGS="$xorg_testset_save_CFLAGS" 17747 17748 eval supported=\$$cacheid 17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17750printf "%s\n" "$supported" >&6; } 17751 if test "$supported" = "yes" ; then 17752 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17753 found="yes" 17754 fi 17755 fi 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771xorg_testset_save_CFLAGS="$CFLAGS" 17772 17773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17777if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17778then : 17779 printf %s "(cached) " >&6 17780else case e in #( 17781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17782/* end confdefs.h. */ 17783int i; 17784_ACEOF 17785if ac_fn_c_try_compile "$LINENO" 17786then : 17787 xorg_cv_cc_flag_unknown_warning_option=yes 17788else case e in #( 17789 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17790esac 17791fi 17792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17793esac 17794fi 17795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17798 CFLAGS="$xorg_testset_save_CFLAGS" 17799fi 17800 17801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17804 fi 17805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17809then : 17810 printf %s "(cached) " >&6 17811else case e in #( 17812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17813/* end confdefs.h. */ 17814int i; 17815_ACEOF 17816if ac_fn_c_try_compile "$LINENO" 17817then : 17818 xorg_cv_cc_flag_unused_command_line_argument=yes 17819else case e in #( 17820 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17821esac 17822fi 17823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17824esac 17825fi 17826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17829 CFLAGS="$xorg_testset_save_CFLAGS" 17830fi 17831 17832found="no" 17833 17834 if test $found = "no" ; then 17835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17837 fi 17838 17839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17841 fi 17842 17843 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17844 17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17846printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17847 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17848 if eval test \${$cacheid+y} 17849then : 17850 printf %s "(cached) " >&6 17851else case e in #( 17852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853/* end confdefs.h. */ 17854int i; 17855int 17856main (void) 17857{ 17858 17859 ; 17860 return 0; 17861} 17862_ACEOF 17863if ac_fn_c_try_link "$LINENO" 17864then : 17865 eval $cacheid=yes 17866else case e in #( 17867 e) eval $cacheid=no ;; 17868esac 17869fi 17870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17871 conftest$ac_exeext conftest.$ac_ext ;; 17872esac 17873fi 17874 17875 17876 CFLAGS="$xorg_testset_save_CFLAGS" 17877 17878 eval supported=\$$cacheid 17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17880printf "%s\n" "$supported" >&6; } 17881 if test "$supported" = "yes" ; then 17882 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17883 found="yes" 17884 fi 17885 fi 17886 17887 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17888else 17889{ 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 17890printf "%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;} 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904xorg_testset_save_CFLAGS="$CFLAGS" 17905 17906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17909printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17910if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17911then : 17912 printf %s "(cached) " >&6 17913else case e in #( 17914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17915/* end confdefs.h. */ 17916int i; 17917_ACEOF 17918if ac_fn_c_try_compile "$LINENO" 17919then : 17920 xorg_cv_cc_flag_unknown_warning_option=yes 17921else case e in #( 17922 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17923esac 17924fi 17925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17926esac 17927fi 17928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17929printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17931 CFLAGS="$xorg_testset_save_CFLAGS" 17932fi 17933 17934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17937 fi 17938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17940printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17941if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 17952else case e in #( 17953 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 17960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17962 CFLAGS="$xorg_testset_save_CFLAGS" 17963fi 17964 17965found="no" 17966 17967 if test $found = "no" ; then 17968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17970 fi 17971 17972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17974 fi 17975 17976 CFLAGS="$CFLAGS -Wimplicit" 17977 17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17979printf %s "checking if $CC supports -Wimplicit... " >&6; } 17980 cacheid=xorg_cv_cc_flag__Wimplicit 17981 if eval test \${$cacheid+y} 17982then : 17983 printf %s "(cached) " >&6 17984else case e in #( 17985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17986/* end confdefs.h. */ 17987int i; 17988int 17989main (void) 17990{ 17991 17992 ; 17993 return 0; 17994} 17995_ACEOF 17996if ac_fn_c_try_link "$LINENO" 17997then : 17998 eval $cacheid=yes 17999else case e in #( 18000 e) eval $cacheid=no ;; 18001esac 18002fi 18003rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18004 conftest$ac_exeext conftest.$ac_ext ;; 18005esac 18006fi 18007 18008 18009 CFLAGS="$xorg_testset_save_CFLAGS" 18010 18011 eval supported=\$$cacheid 18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18013printf "%s\n" "$supported" >&6; } 18014 if test "$supported" = "yes" ; then 18015 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18016 found="yes" 18017 fi 18018 fi 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034xorg_testset_save_CFLAGS="$CFLAGS" 18035 18036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18040if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18041then : 18042 printf %s "(cached) " >&6 18043else case e in #( 18044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045/* end confdefs.h. */ 18046int i; 18047_ACEOF 18048if ac_fn_c_try_compile "$LINENO" 18049then : 18050 xorg_cv_cc_flag_unknown_warning_option=yes 18051else case e in #( 18052 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18053esac 18054fi 18055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18056esac 18057fi 18058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18061 CFLAGS="$xorg_testset_save_CFLAGS" 18062fi 18063 18064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18067 fi 18068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18071if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18082else case e in #( 18083 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18090printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18092 CFLAGS="$xorg_testset_save_CFLAGS" 18093fi 18094 18095found="no" 18096 18097 if test $found = "no" ; then 18098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18100 fi 18101 18102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18104 fi 18105 18106 CFLAGS="$CFLAGS -Wnonnull" 18107 18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18109printf %s "checking if $CC supports -Wnonnull... " >&6; } 18110 cacheid=xorg_cv_cc_flag__Wnonnull 18111 if eval test \${$cacheid+y} 18112then : 18113 printf %s "(cached) " >&6 18114else case e in #( 18115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18116/* end confdefs.h. */ 18117int i; 18118int 18119main (void) 18120{ 18121 18122 ; 18123 return 0; 18124} 18125_ACEOF 18126if ac_fn_c_try_link "$LINENO" 18127then : 18128 eval $cacheid=yes 18129else case e in #( 18130 e) eval $cacheid=no ;; 18131esac 18132fi 18133rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18134 conftest$ac_exeext conftest.$ac_ext ;; 18135esac 18136fi 18137 18138 18139 CFLAGS="$xorg_testset_save_CFLAGS" 18140 18141 eval supported=\$$cacheid 18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18143printf "%s\n" "$supported" >&6; } 18144 if test "$supported" = "yes" ; then 18145 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18146 found="yes" 18147 fi 18148 fi 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164xorg_testset_save_CFLAGS="$CFLAGS" 18165 18166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18170if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18171then : 18172 printf %s "(cached) " >&6 18173else case e in #( 18174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18175/* end confdefs.h. */ 18176int i; 18177_ACEOF 18178if ac_fn_c_try_compile "$LINENO" 18179then : 18180 xorg_cv_cc_flag_unknown_warning_option=yes 18181else case e in #( 18182 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18183esac 18184fi 18185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18186esac 18187fi 18188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18191 CFLAGS="$xorg_testset_save_CFLAGS" 18192fi 18193 18194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18197 fi 18198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18201if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18212else case e in #( 18213 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18222 CFLAGS="$xorg_testset_save_CFLAGS" 18223fi 18224 18225found="no" 18226 18227 if test $found = "no" ; then 18228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18230 fi 18231 18232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18234 fi 18235 18236 CFLAGS="$CFLAGS -Winit-self" 18237 18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18239printf %s "checking if $CC supports -Winit-self... " >&6; } 18240 cacheid=xorg_cv_cc_flag__Winit_self 18241 if eval test \${$cacheid+y} 18242then : 18243 printf %s "(cached) " >&6 18244else case e in #( 18245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18246/* end confdefs.h. */ 18247int i; 18248int 18249main (void) 18250{ 18251 18252 ; 18253 return 0; 18254} 18255_ACEOF 18256if ac_fn_c_try_link "$LINENO" 18257then : 18258 eval $cacheid=yes 18259else case e in #( 18260 e) eval $cacheid=no ;; 18261esac 18262fi 18263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18264 conftest$ac_exeext conftest.$ac_ext ;; 18265esac 18266fi 18267 18268 18269 CFLAGS="$xorg_testset_save_CFLAGS" 18270 18271 eval supported=\$$cacheid 18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18273printf "%s\n" "$supported" >&6; } 18274 if test "$supported" = "yes" ; then 18275 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18276 found="yes" 18277 fi 18278 fi 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294xorg_testset_save_CFLAGS="$CFLAGS" 18295 18296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18300if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18301then : 18302 printf %s "(cached) " >&6 18303else case e in #( 18304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18305/* end confdefs.h. */ 18306int i; 18307_ACEOF 18308if ac_fn_c_try_compile "$LINENO" 18309then : 18310 xorg_cv_cc_flag_unknown_warning_option=yes 18311else case e in #( 18312 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18313esac 18314fi 18315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18316esac 18317fi 18318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18321 CFLAGS="$xorg_testset_save_CFLAGS" 18322fi 18323 18324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18327 fi 18328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18331if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18342else case e in #( 18343 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18352 CFLAGS="$xorg_testset_save_CFLAGS" 18353fi 18354 18355found="no" 18356 18357 if test $found = "no" ; then 18358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18360 fi 18361 18362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18364 fi 18365 18366 CFLAGS="$CFLAGS -Wmain" 18367 18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18369printf %s "checking if $CC supports -Wmain... " >&6; } 18370 cacheid=xorg_cv_cc_flag__Wmain 18371 if eval test \${$cacheid+y} 18372then : 18373 printf %s "(cached) " >&6 18374else case e in #( 18375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18376/* end confdefs.h. */ 18377int i; 18378int 18379main (void) 18380{ 18381 18382 ; 18383 return 0; 18384} 18385_ACEOF 18386if ac_fn_c_try_link "$LINENO" 18387then : 18388 eval $cacheid=yes 18389else case e in #( 18390 e) eval $cacheid=no ;; 18391esac 18392fi 18393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18394 conftest$ac_exeext conftest.$ac_ext ;; 18395esac 18396fi 18397 18398 18399 CFLAGS="$xorg_testset_save_CFLAGS" 18400 18401 eval supported=\$$cacheid 18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18403printf "%s\n" "$supported" >&6; } 18404 if test "$supported" = "yes" ; then 18405 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18406 found="yes" 18407 fi 18408 fi 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424xorg_testset_save_CFLAGS="$CFLAGS" 18425 18426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18430if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18431then : 18432 printf %s "(cached) " >&6 18433else case e in #( 18434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18435/* end confdefs.h. */ 18436int i; 18437_ACEOF 18438if ac_fn_c_try_compile "$LINENO" 18439then : 18440 xorg_cv_cc_flag_unknown_warning_option=yes 18441else case e in #( 18442 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18443esac 18444fi 18445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18446esac 18447fi 18448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18451 CFLAGS="$xorg_testset_save_CFLAGS" 18452fi 18453 18454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18457 fi 18458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18461if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18472else case e in #( 18473 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18482 CFLAGS="$xorg_testset_save_CFLAGS" 18483fi 18484 18485found="no" 18486 18487 if test $found = "no" ; then 18488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18490 fi 18491 18492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18494 fi 18495 18496 CFLAGS="$CFLAGS -Wmissing-braces" 18497 18498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18499printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18500 cacheid=xorg_cv_cc_flag__Wmissing_braces 18501 if eval test \${$cacheid+y} 18502then : 18503 printf %s "(cached) " >&6 18504else case e in #( 18505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506/* end confdefs.h. */ 18507int i; 18508int 18509main (void) 18510{ 18511 18512 ; 18513 return 0; 18514} 18515_ACEOF 18516if ac_fn_c_try_link "$LINENO" 18517then : 18518 eval $cacheid=yes 18519else case e in #( 18520 e) eval $cacheid=no ;; 18521esac 18522fi 18523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18524 conftest$ac_exeext conftest.$ac_ext ;; 18525esac 18526fi 18527 18528 18529 CFLAGS="$xorg_testset_save_CFLAGS" 18530 18531 eval supported=\$$cacheid 18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18533printf "%s\n" "$supported" >&6; } 18534 if test "$supported" = "yes" ; then 18535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18536 found="yes" 18537 fi 18538 fi 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554xorg_testset_save_CFLAGS="$CFLAGS" 18555 18556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18560if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18561then : 18562 printf %s "(cached) " >&6 18563else case e in #( 18564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18565/* end confdefs.h. */ 18566int i; 18567_ACEOF 18568if ac_fn_c_try_compile "$LINENO" 18569then : 18570 xorg_cv_cc_flag_unknown_warning_option=yes 18571else case e in #( 18572 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18573esac 18574fi 18575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18576esac 18577fi 18578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18581 CFLAGS="$xorg_testset_save_CFLAGS" 18582fi 18583 18584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18587 fi 18588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18591if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18602else case e in #( 18603 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18612 CFLAGS="$xorg_testset_save_CFLAGS" 18613fi 18614 18615found="no" 18616 18617 if test $found = "no" ; then 18618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18620 fi 18621 18622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18624 fi 18625 18626 CFLAGS="$CFLAGS -Wsequence-point" 18627 18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18629printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18630 cacheid=xorg_cv_cc_flag__Wsequence_point 18631 if eval test \${$cacheid+y} 18632then : 18633 printf %s "(cached) " >&6 18634else case e in #( 18635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637int i; 18638int 18639main (void) 18640{ 18641 18642 ; 18643 return 0; 18644} 18645_ACEOF 18646if ac_fn_c_try_link "$LINENO" 18647then : 18648 eval $cacheid=yes 18649else case e in #( 18650 e) eval $cacheid=no ;; 18651esac 18652fi 18653rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18654 conftest$ac_exeext conftest.$ac_ext ;; 18655esac 18656fi 18657 18658 18659 CFLAGS="$xorg_testset_save_CFLAGS" 18660 18661 eval supported=\$$cacheid 18662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18663printf "%s\n" "$supported" >&6; } 18664 if test "$supported" = "yes" ; then 18665 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18666 found="yes" 18667 fi 18668 fi 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684xorg_testset_save_CFLAGS="$CFLAGS" 18685 18686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18690if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18691then : 18692 printf %s "(cached) " >&6 18693else case e in #( 18694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18695/* end confdefs.h. */ 18696int i; 18697_ACEOF 18698if ac_fn_c_try_compile "$LINENO" 18699then : 18700 xorg_cv_cc_flag_unknown_warning_option=yes 18701else case e in #( 18702 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18703esac 18704fi 18705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18706esac 18707fi 18708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18711 CFLAGS="$xorg_testset_save_CFLAGS" 18712fi 18713 18714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18717 fi 18718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18721if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18732else case e in #( 18733 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18742 CFLAGS="$xorg_testset_save_CFLAGS" 18743fi 18744 18745found="no" 18746 18747 if test $found = "no" ; then 18748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18750 fi 18751 18752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18754 fi 18755 18756 CFLAGS="$CFLAGS -Wreturn-type" 18757 18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18759printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18760 cacheid=xorg_cv_cc_flag__Wreturn_type 18761 if eval test \${$cacheid+y} 18762then : 18763 printf %s "(cached) " >&6 18764else case e in #( 18765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766/* end confdefs.h. */ 18767int i; 18768int 18769main (void) 18770{ 18771 18772 ; 18773 return 0; 18774} 18775_ACEOF 18776if ac_fn_c_try_link "$LINENO" 18777then : 18778 eval $cacheid=yes 18779else case e in #( 18780 e) eval $cacheid=no ;; 18781esac 18782fi 18783rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18784 conftest$ac_exeext conftest.$ac_ext ;; 18785esac 18786fi 18787 18788 18789 CFLAGS="$xorg_testset_save_CFLAGS" 18790 18791 eval supported=\$$cacheid 18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18793printf "%s\n" "$supported" >&6; } 18794 if test "$supported" = "yes" ; then 18795 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18796 found="yes" 18797 fi 18798 fi 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814xorg_testset_save_CFLAGS="$CFLAGS" 18815 18816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18820if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18821then : 18822 printf %s "(cached) " >&6 18823else case e in #( 18824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18825/* end confdefs.h. */ 18826int i; 18827_ACEOF 18828if ac_fn_c_try_compile "$LINENO" 18829then : 18830 xorg_cv_cc_flag_unknown_warning_option=yes 18831else case e in #( 18832 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18833esac 18834fi 18835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18836esac 18837fi 18838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18841 CFLAGS="$xorg_testset_save_CFLAGS" 18842fi 18843 18844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18847 fi 18848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18851if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18862else case e in #( 18863 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18872 CFLAGS="$xorg_testset_save_CFLAGS" 18873fi 18874 18875found="no" 18876 18877 if test $found = "no" ; then 18878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18880 fi 18881 18882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18884 fi 18885 18886 CFLAGS="$CFLAGS -Wtrigraphs" 18887 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18889printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18890 cacheid=xorg_cv_cc_flag__Wtrigraphs 18891 if eval test \${$cacheid+y} 18892then : 18893 printf %s "(cached) " >&6 18894else case e in #( 18895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18896/* end confdefs.h. */ 18897int i; 18898int 18899main (void) 18900{ 18901 18902 ; 18903 return 0; 18904} 18905_ACEOF 18906if ac_fn_c_try_link "$LINENO" 18907then : 18908 eval $cacheid=yes 18909else case e in #( 18910 e) eval $cacheid=no ;; 18911esac 18912fi 18913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18914 conftest$ac_exeext conftest.$ac_ext ;; 18915esac 18916fi 18917 18918 18919 CFLAGS="$xorg_testset_save_CFLAGS" 18920 18921 eval supported=\$$cacheid 18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18923printf "%s\n" "$supported" >&6; } 18924 if test "$supported" = "yes" ; then 18925 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18926 found="yes" 18927 fi 18928 fi 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944xorg_testset_save_CFLAGS="$CFLAGS" 18945 18946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18950if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18951then : 18952 printf %s "(cached) " >&6 18953else case e in #( 18954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18955/* end confdefs.h. */ 18956int i; 18957_ACEOF 18958if ac_fn_c_try_compile "$LINENO" 18959then : 18960 xorg_cv_cc_flag_unknown_warning_option=yes 18961else case e in #( 18962 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18963esac 18964fi 18965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18966esac 18967fi 18968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18971 CFLAGS="$xorg_testset_save_CFLAGS" 18972fi 18973 18974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18977 fi 18978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18981if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18992else case e in #( 18993 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 19000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19002 CFLAGS="$xorg_testset_save_CFLAGS" 19003fi 19004 19005found="no" 19006 19007 if test $found = "no" ; then 19008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19010 fi 19011 19012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19014 fi 19015 19016 CFLAGS="$CFLAGS -Warray-bounds" 19017 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19019printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19020 cacheid=xorg_cv_cc_flag__Warray_bounds 19021 if eval test \${$cacheid+y} 19022then : 19023 printf %s "(cached) " >&6 19024else case e in #( 19025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19026/* end confdefs.h. */ 19027int i; 19028int 19029main (void) 19030{ 19031 19032 ; 19033 return 0; 19034} 19035_ACEOF 19036if ac_fn_c_try_link "$LINENO" 19037then : 19038 eval $cacheid=yes 19039else case e in #( 19040 e) eval $cacheid=no ;; 19041esac 19042fi 19043rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19044 conftest$ac_exeext conftest.$ac_ext ;; 19045esac 19046fi 19047 19048 19049 CFLAGS="$xorg_testset_save_CFLAGS" 19050 19051 eval supported=\$$cacheid 19052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19053printf "%s\n" "$supported" >&6; } 19054 if test "$supported" = "yes" ; then 19055 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19056 found="yes" 19057 fi 19058 fi 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074xorg_testset_save_CFLAGS="$CFLAGS" 19075 19076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19080if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19081then : 19082 printf %s "(cached) " >&6 19083else case e in #( 19084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19085/* end confdefs.h. */ 19086int i; 19087_ACEOF 19088if ac_fn_c_try_compile "$LINENO" 19089then : 19090 xorg_cv_cc_flag_unknown_warning_option=yes 19091else case e in #( 19092 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19093esac 19094fi 19095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19096esac 19097fi 19098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19101 CFLAGS="$xorg_testset_save_CFLAGS" 19102fi 19103 19104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19107 fi 19108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19111if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 19122else case e in #( 19123 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 19130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19132 CFLAGS="$xorg_testset_save_CFLAGS" 19133fi 19134 19135found="no" 19136 19137 if test $found = "no" ; then 19138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19140 fi 19141 19142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19144 fi 19145 19146 CFLAGS="$CFLAGS -Wwrite-strings" 19147 19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19149printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19150 cacheid=xorg_cv_cc_flag__Wwrite_strings 19151 if eval test \${$cacheid+y} 19152then : 19153 printf %s "(cached) " >&6 19154else case e in #( 19155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19156/* end confdefs.h. */ 19157int i; 19158int 19159main (void) 19160{ 19161 19162 ; 19163 return 0; 19164} 19165_ACEOF 19166if ac_fn_c_try_link "$LINENO" 19167then : 19168 eval $cacheid=yes 19169else case e in #( 19170 e) eval $cacheid=no ;; 19171esac 19172fi 19173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19174 conftest$ac_exeext conftest.$ac_ext ;; 19175esac 19176fi 19177 19178 19179 CFLAGS="$xorg_testset_save_CFLAGS" 19180 19181 eval supported=\$$cacheid 19182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19183printf "%s\n" "$supported" >&6; } 19184 if test "$supported" = "yes" ; then 19185 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19186 found="yes" 19187 fi 19188 fi 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204xorg_testset_save_CFLAGS="$CFLAGS" 19205 19206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19210if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19211then : 19212 printf %s "(cached) " >&6 19213else case e in #( 19214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215/* end confdefs.h. */ 19216int i; 19217_ACEOF 19218if ac_fn_c_try_compile "$LINENO" 19219then : 19220 xorg_cv_cc_flag_unknown_warning_option=yes 19221else case e in #( 19222 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19223esac 19224fi 19225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19226esac 19227fi 19228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19231 CFLAGS="$xorg_testset_save_CFLAGS" 19232fi 19233 19234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19237 fi 19238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19241if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19242then : 19243 printf %s "(cached) " >&6 19244else case e in #( 19245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19246/* end confdefs.h. */ 19247int i; 19248_ACEOF 19249if ac_fn_c_try_compile "$LINENO" 19250then : 19251 xorg_cv_cc_flag_unused_command_line_argument=yes 19252else case e in #( 19253 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19254esac 19255fi 19256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19257esac 19258fi 19259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19262 CFLAGS="$xorg_testset_save_CFLAGS" 19263fi 19264 19265found="no" 19266 19267 if test $found = "no" ; then 19268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19270 fi 19271 19272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19274 fi 19275 19276 CFLAGS="$CFLAGS -Waddress" 19277 19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19279printf %s "checking if $CC supports -Waddress... " >&6; } 19280 cacheid=xorg_cv_cc_flag__Waddress 19281 if eval test \${$cacheid+y} 19282then : 19283 printf %s "(cached) " >&6 19284else case e in #( 19285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287int i; 19288int 19289main (void) 19290{ 19291 19292 ; 19293 return 0; 19294} 19295_ACEOF 19296if ac_fn_c_try_link "$LINENO" 19297then : 19298 eval $cacheid=yes 19299else case e in #( 19300 e) eval $cacheid=no ;; 19301esac 19302fi 19303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19304 conftest$ac_exeext conftest.$ac_ext ;; 19305esac 19306fi 19307 19308 19309 CFLAGS="$xorg_testset_save_CFLAGS" 19310 19311 eval supported=\$$cacheid 19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19313printf "%s\n" "$supported" >&6; } 19314 if test "$supported" = "yes" ; then 19315 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19316 found="yes" 19317 fi 19318 fi 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334xorg_testset_save_CFLAGS="$CFLAGS" 19335 19336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19340if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19341then : 19342 printf %s "(cached) " >&6 19343else case e in #( 19344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19345/* end confdefs.h. */ 19346int i; 19347_ACEOF 19348if ac_fn_c_try_compile "$LINENO" 19349then : 19350 xorg_cv_cc_flag_unknown_warning_option=yes 19351else case e in #( 19352 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19353esac 19354fi 19355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19356esac 19357fi 19358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19359printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19361 CFLAGS="$xorg_testset_save_CFLAGS" 19362fi 19363 19364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19367 fi 19368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19370printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19371if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19372then : 19373 printf %s "(cached) " >&6 19374else case e in #( 19375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376/* end confdefs.h. */ 19377int i; 19378_ACEOF 19379if ac_fn_c_try_compile "$LINENO" 19380then : 19381 xorg_cv_cc_flag_unused_command_line_argument=yes 19382else case e in #( 19383 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19384esac 19385fi 19386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19387esac 19388fi 19389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19392 CFLAGS="$xorg_testset_save_CFLAGS" 19393fi 19394 19395found="no" 19396 19397 if test $found = "no" ; then 19398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19400 fi 19401 19402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19404 fi 19405 19406 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19407 19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19409printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19410 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19411 if eval test \${$cacheid+y} 19412then : 19413 printf %s "(cached) " >&6 19414else case e in #( 19415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417int i; 19418int 19419main (void) 19420{ 19421 19422 ; 19423 return 0; 19424} 19425_ACEOF 19426if ac_fn_c_try_link "$LINENO" 19427then : 19428 eval $cacheid=yes 19429else case e in #( 19430 e) eval $cacheid=no ;; 19431esac 19432fi 19433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19434 conftest$ac_exeext conftest.$ac_ext ;; 19435esac 19436fi 19437 19438 19439 CFLAGS="$xorg_testset_save_CFLAGS" 19440 19441 eval supported=\$$cacheid 19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19443printf "%s\n" "$supported" >&6; } 19444 if test "$supported" = "yes" ; then 19445 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19446 found="yes" 19447 fi 19448 fi 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464xorg_testset_save_CFLAGS="$CFLAGS" 19465 19466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19471then : 19472 printf %s "(cached) " >&6 19473else case e in #( 19474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19475/* end confdefs.h. */ 19476int i; 19477_ACEOF 19478if ac_fn_c_try_compile "$LINENO" 19479then : 19480 xorg_cv_cc_flag_unknown_warning_option=yes 19481else case e in #( 19482 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19483esac 19484fi 19485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19486esac 19487fi 19488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19491 CFLAGS="$xorg_testset_save_CFLAGS" 19492fi 19493 19494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19497 fi 19498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19502then : 19503 printf %s "(cached) " >&6 19504else case e in #( 19505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19506/* end confdefs.h. */ 19507int i; 19508_ACEOF 19509if ac_fn_c_try_compile "$LINENO" 19510then : 19511 xorg_cv_cc_flag_unused_command_line_argument=yes 19512else case e in #( 19513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19514esac 19515fi 19516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19517esac 19518fi 19519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19522 CFLAGS="$xorg_testset_save_CFLAGS" 19523fi 19524 19525found="no" 19526 19527 if test $found = "no" ; then 19528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19530 fi 19531 19532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19534 fi 19535 19536 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19537 19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19539printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19540 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19541 if eval test \${$cacheid+y} 19542then : 19543 printf %s "(cached) " >&6 19544else case e in #( 19545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19546/* end confdefs.h. */ 19547int i; 19548int 19549main (void) 19550{ 19551 19552 ; 19553 return 0; 19554} 19555_ACEOF 19556if ac_fn_c_try_link "$LINENO" 19557then : 19558 eval $cacheid=yes 19559else case e in #( 19560 e) eval $cacheid=no ;; 19561esac 19562fi 19563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19564 conftest$ac_exeext conftest.$ac_ext ;; 19565esac 19566fi 19567 19568 19569 CFLAGS="$xorg_testset_save_CFLAGS" 19570 19571 eval supported=\$$cacheid 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19573printf "%s\n" "$supported" >&6; } 19574 if test "$supported" = "yes" ; then 19575 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19576 found="yes" 19577 fi 19578 fi 19579 19580 19581fi 19582 19583 19584 19585 19586 19587 19588 19589 CWARNFLAGS="$BASE_CFLAGS" 19590 if test "x$GCC" = xyes ; then 19591 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19592 fi 19593 19594 19595 19596 19597 19598 19599 19600 19601# Check whether --enable-strict-compilation was given. 19602if test ${enable_strict_compilation+y} 19603then : 19604 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19605else case e in #( 19606 e) STRICT_COMPILE=no ;; 19607esac 19608fi 19609 19610 19611 19612 19613 19614 19615STRICT_CFLAGS="" 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629xorg_testset_save_CFLAGS="$CFLAGS" 19630 19631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19636then : 19637 printf %s "(cached) " >&6 19638else case e in #( 19639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19640/* end confdefs.h. */ 19641int i; 19642_ACEOF 19643if ac_fn_c_try_compile "$LINENO" 19644then : 19645 xorg_cv_cc_flag_unknown_warning_option=yes 19646else case e in #( 19647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19648esac 19649fi 19650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19651esac 19652fi 19653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19656 CFLAGS="$xorg_testset_save_CFLAGS" 19657fi 19658 19659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19662 fi 19663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19667then : 19668 printf %s "(cached) " >&6 19669else case e in #( 19670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19671/* end confdefs.h. */ 19672int i; 19673_ACEOF 19674if ac_fn_c_try_compile "$LINENO" 19675then : 19676 xorg_cv_cc_flag_unused_command_line_argument=yes 19677else case e in #( 19678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19679esac 19680fi 19681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19682esac 19683fi 19684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19687 CFLAGS="$xorg_testset_save_CFLAGS" 19688fi 19689 19690found="no" 19691 19692 if test $found = "no" ; then 19693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19695 fi 19696 19697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19699 fi 19700 19701 CFLAGS="$CFLAGS -pedantic" 19702 19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19704printf %s "checking if $CC supports -pedantic... " >&6; } 19705 cacheid=xorg_cv_cc_flag__pedantic 19706 if eval test \${$cacheid+y} 19707then : 19708 printf %s "(cached) " >&6 19709else case e in #( 19710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19711/* end confdefs.h. */ 19712int i; 19713int 19714main (void) 19715{ 19716 19717 ; 19718 return 0; 19719} 19720_ACEOF 19721if ac_fn_c_try_link "$LINENO" 19722then : 19723 eval $cacheid=yes 19724else case e in #( 19725 e) eval $cacheid=no ;; 19726esac 19727fi 19728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19729 conftest$ac_exeext conftest.$ac_ext ;; 19730esac 19731fi 19732 19733 19734 CFLAGS="$xorg_testset_save_CFLAGS" 19735 19736 eval supported=\$$cacheid 19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19738printf "%s\n" "$supported" >&6; } 19739 if test "$supported" = "yes" ; then 19740 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19741 found="yes" 19742 fi 19743 fi 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759xorg_testset_save_CFLAGS="$CFLAGS" 19760 19761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19765if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19766then : 19767 printf %s "(cached) " >&6 19768else case e in #( 19769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19770/* end confdefs.h. */ 19771int i; 19772_ACEOF 19773if ac_fn_c_try_compile "$LINENO" 19774then : 19775 xorg_cv_cc_flag_unknown_warning_option=yes 19776else case e in #( 19777 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19778esac 19779fi 19780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19781esac 19782fi 19783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19786 CFLAGS="$xorg_testset_save_CFLAGS" 19787fi 19788 19789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19792 fi 19793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19796if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19797then : 19798 printf %s "(cached) " >&6 19799else case e in #( 19800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19801/* end confdefs.h. */ 19802int i; 19803_ACEOF 19804if ac_fn_c_try_compile "$LINENO" 19805then : 19806 xorg_cv_cc_flag_unused_command_line_argument=yes 19807else case e in #( 19808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19809esac 19810fi 19811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19812esac 19813fi 19814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19817 CFLAGS="$xorg_testset_save_CFLAGS" 19818fi 19819 19820found="no" 19821 19822 if test $found = "no" ; then 19823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19825 fi 19826 19827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19829 fi 19830 19831 CFLAGS="$CFLAGS -Werror" 19832 19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19834printf %s "checking if $CC supports -Werror... " >&6; } 19835 cacheid=xorg_cv_cc_flag__Werror 19836 if eval test \${$cacheid+y} 19837then : 19838 printf %s "(cached) " >&6 19839else case e in #( 19840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19841/* end confdefs.h. */ 19842int i; 19843int 19844main (void) 19845{ 19846 19847 ; 19848 return 0; 19849} 19850_ACEOF 19851if ac_fn_c_try_link "$LINENO" 19852then : 19853 eval $cacheid=yes 19854else case e in #( 19855 e) eval $cacheid=no ;; 19856esac 19857fi 19858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19859 conftest$ac_exeext conftest.$ac_ext ;; 19860esac 19861fi 19862 19863 19864 CFLAGS="$xorg_testset_save_CFLAGS" 19865 19866 eval supported=\$$cacheid 19867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19868printf "%s\n" "$supported" >&6; } 19869 if test "$supported" = "yes" ; then 19870 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19871 found="yes" 19872 fi 19873 fi 19874 19875 if test $found = "no" ; then 19876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19878 fi 19879 19880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19882 fi 19883 19884 CFLAGS="$CFLAGS -errwarn" 19885 19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19887printf %s "checking if $CC supports -errwarn... " >&6; } 19888 cacheid=xorg_cv_cc_flag__errwarn 19889 if eval test \${$cacheid+y} 19890then : 19891 printf %s "(cached) " >&6 19892else case e in #( 19893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19894/* end confdefs.h. */ 19895int i; 19896int 19897main (void) 19898{ 19899 19900 ; 19901 return 0; 19902} 19903_ACEOF 19904if ac_fn_c_try_link "$LINENO" 19905then : 19906 eval $cacheid=yes 19907else case e in #( 19908 e) eval $cacheid=no ;; 19909esac 19910fi 19911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19912 conftest$ac_exeext conftest.$ac_ext ;; 19913esac 19914fi 19915 19916 19917 CFLAGS="$xorg_testset_save_CFLAGS" 19918 19919 eval supported=\$$cacheid 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19921printf "%s\n" "$supported" >&6; } 19922 if test "$supported" = "yes" ; then 19923 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19924 found="yes" 19925 fi 19926 fi 19927 19928 19929 19930# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19931# activate it with -Werror, so we add it here explicitly. 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945xorg_testset_save_CFLAGS="$CFLAGS" 19946 19947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19952then : 19953 printf %s "(cached) " >&6 19954else case e in #( 19955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19956/* end confdefs.h. */ 19957int i; 19958_ACEOF 19959if ac_fn_c_try_compile "$LINENO" 19960then : 19961 xorg_cv_cc_flag_unknown_warning_option=yes 19962else case e in #( 19963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19964esac 19965fi 19966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19967esac 19968fi 19969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19972 CFLAGS="$xorg_testset_save_CFLAGS" 19973fi 19974 19975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19978 fi 19979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19983then : 19984 printf %s "(cached) " >&6 19985else case e in #( 19986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19987/* end confdefs.h. */ 19988int i; 19989_ACEOF 19990if ac_fn_c_try_compile "$LINENO" 19991then : 19992 xorg_cv_cc_flag_unused_command_line_argument=yes 19993else case e in #( 19994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19995esac 19996fi 19997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19998esac 19999fi 20000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20003 CFLAGS="$xorg_testset_save_CFLAGS" 20004fi 20005 20006found="no" 20007 20008 if test $found = "no" ; then 20009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20011 fi 20012 20013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20015 fi 20016 20017 CFLAGS="$CFLAGS -Werror=attributes" 20018 20019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20020printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20021 cacheid=xorg_cv_cc_flag__Werror_attributes 20022 if eval test \${$cacheid+y} 20023then : 20024 printf %s "(cached) " >&6 20025else case e in #( 20026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20027/* end confdefs.h. */ 20028int i; 20029int 20030main (void) 20031{ 20032 20033 ; 20034 return 0; 20035} 20036_ACEOF 20037if ac_fn_c_try_link "$LINENO" 20038then : 20039 eval $cacheid=yes 20040else case e in #( 20041 e) eval $cacheid=no ;; 20042esac 20043fi 20044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20045 conftest$ac_exeext conftest.$ac_ext ;; 20046esac 20047fi 20048 20049 20050 CFLAGS="$xorg_testset_save_CFLAGS" 20051 20052 eval supported=\$$cacheid 20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20054printf "%s\n" "$supported" >&6; } 20055 if test "$supported" = "yes" ; then 20056 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20057 found="yes" 20058 fi 20059 fi 20060 20061 20062 20063if test "x$STRICT_COMPILE" = "xyes"; then 20064 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20065 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20066fi 20067 20068 20069 20070 20071 20072 20073 20074 20075cat >>confdefs.h <<_ACEOF 20076#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20077_ACEOF 20078 20079 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20080 if test "x$PVM" = "x"; then 20081 PVM="0" 20082 fi 20083 20084printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20085 20086 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20087 if test "x$PVP" = "x"; then 20088 PVP="0" 20089 fi 20090 20091printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20092 20093 20094 20095CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20096mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20097|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20098touch \$(top_srcdir)/ChangeLog; \ 20099echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20100 20101 20102 20103 20104macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20105INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20106mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20107|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20108touch \$(top_srcdir)/INSTALL; \ 20109echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20110 20111 20112 20113 20114 20115 20116case $host_os in 20117 solaris*) 20118 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20119 # check for a man page file found in later versions that use 20120 # traditional section numbers instead 20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20122printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20123if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20124then : 20125 printf %s "(cached) " >&6 20126else case e in #( 20127 e) test "$cross_compiling" = yes && 20128 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20129if test -r "/usr/share/man/man7/attributes.7"; then 20130 ac_cv_file__usr_share_man_man7_attributes_7=yes 20131else 20132 ac_cv_file__usr_share_man_man7_attributes_7=no 20133fi ;; 20134esac 20135fi 20136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20137printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20138if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20139then : 20140 SYSV_MAN_SECTIONS=false 20141else case e in #( 20142 e) SYSV_MAN_SECTIONS=true ;; 20143esac 20144fi 20145 20146 ;; 20147 *) SYSV_MAN_SECTIONS=false ;; 20148esac 20149 20150if test x$APP_MAN_SUFFIX = x ; then 20151 APP_MAN_SUFFIX=1 20152fi 20153if test x$APP_MAN_DIR = x ; then 20154 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20155fi 20156 20157if test x$LIB_MAN_SUFFIX = x ; then 20158 LIB_MAN_SUFFIX=3 20159fi 20160if test x$LIB_MAN_DIR = x ; then 20161 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20162fi 20163 20164if test x$FILE_MAN_SUFFIX = x ; then 20165 case $SYSV_MAN_SECTIONS in 20166 true) FILE_MAN_SUFFIX=4 ;; 20167 *) FILE_MAN_SUFFIX=5 ;; 20168 esac 20169fi 20170if test x$FILE_MAN_DIR = x ; then 20171 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20172fi 20173 20174if test x$MISC_MAN_SUFFIX = x ; then 20175 case $SYSV_MAN_SECTIONS in 20176 true) MISC_MAN_SUFFIX=5 ;; 20177 *) MISC_MAN_SUFFIX=7 ;; 20178 esac 20179fi 20180if test x$MISC_MAN_DIR = x ; then 20181 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20182fi 20183 20184if test x$DRIVER_MAN_SUFFIX = x ; then 20185 case $SYSV_MAN_SECTIONS in 20186 true) DRIVER_MAN_SUFFIX=7 ;; 20187 *) DRIVER_MAN_SUFFIX=4 ;; 20188 esac 20189fi 20190if test x$DRIVER_MAN_DIR = x ; then 20191 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20192fi 20193 20194if test x$ADMIN_MAN_SUFFIX = x ; then 20195 case $SYSV_MAN_SECTIONS in 20196 true) ADMIN_MAN_SUFFIX=1m ;; 20197 *) ADMIN_MAN_SUFFIX=8 ;; 20198 esac 20199fi 20200if test x$ADMIN_MAN_DIR = x ; then 20201 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20202fi 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218XORG_MAN_PAGE="X Version 11" 20219 20220MAN_SUBSTS="\ 20221 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20222 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20223 -e 's|__xservername__|Xorg|g' \ 20224 -e 's|__xconfigfile__|xorg.conf|g' \ 20225 -e 's|__projectroot__|\$(prefix)|g' \ 20226 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20227 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20228 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20229 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20230 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20231 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20232 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20233 20234 20235 20236 20237AM_DEFAULT_VERBOSITY=0 20238 20239 20240 20241 20242# Check whether --enable-devel-docs was given. 20243if test ${enable_devel_docs+y} 20244then : 20245 enableval=$enable_devel_docs; build_devel_docs=$enableval 20246else case e in #( 20247 e) build_devel_docs=yes ;; 20248esac 20249fi 20250 20251 20252 if test x$build_devel_docs = xyes; then 20253 ENABLE_DEVEL_DOCS_TRUE= 20254 ENABLE_DEVEL_DOCS_FALSE='#' 20255else 20256 ENABLE_DEVEL_DOCS_TRUE='#' 20257 ENABLE_DEVEL_DOCS_FALSE= 20258fi 20259 20260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 20261printf %s "checking whether to build developer documentation... " >&6; } 20262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 20263printf "%s\n" "$build_devel_docs" >&6; } 20264 20265 20266 20267 20268 20269# Check whether --with-xmlto was given. 20270if test ${with_xmlto+y} 20271then : 20272 withval=$with_xmlto; use_xmlto=$withval 20273else case e in #( 20274 e) use_xmlto=auto ;; 20275esac 20276fi 20277 20278 20279 20280if test "x$use_xmlto" = x"auto"; then 20281 # Extract the first word of "xmlto", so it can be a program name with args. 20282set dummy xmlto; ac_word=$2 20283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20284printf %s "checking for $ac_word... " >&6; } 20285if test ${ac_cv_path_XMLTO+y} 20286then : 20287 printf %s "(cached) " >&6 20288else case e in #( 20289 e) case $XMLTO in 20290 [\\/]* | ?:[\\/]*) 20291 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20292 ;; 20293 *) 20294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20295for as_dir in $PATH 20296do 20297 IFS=$as_save_IFS 20298 case $as_dir in #((( 20299 '') as_dir=./ ;; 20300 */) ;; 20301 *) as_dir=$as_dir/ ;; 20302 esac 20303 for ac_exec_ext in '' $ac_executable_extensions; do 20304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20305 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20307 break 2 20308 fi 20309done 20310 done 20311IFS=$as_save_IFS 20312 20313 ;; 20314esac ;; 20315esac 20316fi 20317XMLTO=$ac_cv_path_XMLTO 20318if test -n "$XMLTO"; then 20319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20320printf "%s\n" "$XMLTO" >&6; } 20321else 20322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20323printf "%s\n" "no" >&6; } 20324fi 20325 20326 20327 if test "x$XMLTO" = "x"; then 20328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20329printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20330 have_xmlto=no 20331 else 20332 have_xmlto=yes 20333 fi 20334elif test "x$use_xmlto" = x"yes" ; then 20335 # Extract the first word of "xmlto", so it can be a program name with args. 20336set dummy xmlto; ac_word=$2 20337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20338printf %s "checking for $ac_word... " >&6; } 20339if test ${ac_cv_path_XMLTO+y} 20340then : 20341 printf %s "(cached) " >&6 20342else case e in #( 20343 e) case $XMLTO in 20344 [\\/]* | ?:[\\/]*) 20345 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20346 ;; 20347 *) 20348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20349for as_dir in $PATH 20350do 20351 IFS=$as_save_IFS 20352 case $as_dir in #((( 20353 '') as_dir=./ ;; 20354 */) ;; 20355 *) as_dir=$as_dir/ ;; 20356 esac 20357 for ac_exec_ext in '' $ac_executable_extensions; do 20358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20359 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20361 break 2 20362 fi 20363done 20364 done 20365IFS=$as_save_IFS 20366 20367 ;; 20368esac ;; 20369esac 20370fi 20371XMLTO=$ac_cv_path_XMLTO 20372if test -n "$XMLTO"; then 20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20374printf "%s\n" "$XMLTO" >&6; } 20375else 20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20377printf "%s\n" "no" >&6; } 20378fi 20379 20380 20381 if test "x$XMLTO" = "x"; then 20382 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20383 fi 20384 have_xmlto=yes 20385elif test "x$use_xmlto" = x"no" ; then 20386 if test "x$XMLTO" != "x"; then 20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20388printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20389 fi 20390 have_xmlto=no 20391else 20392 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20393fi 20394 20395# Test for a minimum version of xmlto, if provided. 20396if test "$have_xmlto" = yes; then 20397 # scrape the xmlto version 20398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20399printf %s "checking the xmlto version... " >&6; } 20400 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20402printf "%s\n" "$xmlto_version" >&6; } 20403 as_arg_v1=$xmlto_version 20404as_arg_v2=0.0.22 20405awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20406case $? in #( 20407 1) : 20408 if test "x$use_xmlto" = xauto; then 20409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20410printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20411 have_xmlto=no 20412 else 20413 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20414 fi ;; #( 20415 0) : 20416 ;; #( 20417 2) : 20418 ;; #( 20419 *) : 20420 ;; 20421esac 20422fi 20423 20424# Test for the ability of xmlto to generate a text target 20425# 20426# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20427# following test for empty XML docbook files. 20428# For compatibility reasons use the following empty XML docbook file and if 20429# it fails try it again with a non-empty XML file. 20430have_xmlto_text=no 20431cat > conftest.xml << "EOF" 20432EOF 20433if test "$have_xmlto" = yes 20434then : 20435 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20436then : 20437 have_xmlto_text=yes 20438else case e in #( 20439 e) # Try it again with a non-empty XML file. 20440 cat > conftest.xml << "EOF" 20441<x></x> 20442EOF 20443 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20444then : 20445 have_xmlto_text=yes 20446else case e in #( 20447 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20448printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20449esac 20450fi ;; 20451esac 20452fi 20453fi 20454rm -f conftest.xml 20455 if test $have_xmlto_text = yes; then 20456 HAVE_XMLTO_TEXT_TRUE= 20457 HAVE_XMLTO_TEXT_FALSE='#' 20458else 20459 HAVE_XMLTO_TEXT_TRUE='#' 20460 HAVE_XMLTO_TEXT_FALSE= 20461fi 20462 20463 if test "$have_xmlto" = yes; then 20464 HAVE_XMLTO_TRUE= 20465 HAVE_XMLTO_FALSE='#' 20466else 20467 HAVE_XMLTO_TRUE='#' 20468 HAVE_XMLTO_FALSE= 20469fi 20470 20471 20472 20473 20474 20475 20476# Check whether --with-fop was given. 20477if test ${with_fop+y} 20478then : 20479 withval=$with_fop; use_fop=$withval 20480else case e in #( 20481 e) use_fop=auto ;; 20482esac 20483fi 20484 20485 20486 20487if test "x$use_fop" = x"auto"; then 20488 # Extract the first word of "fop", so it can be a program name with args. 20489set dummy fop; ac_word=$2 20490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20491printf %s "checking for $ac_word... " >&6; } 20492if test ${ac_cv_path_FOP+y} 20493then : 20494 printf %s "(cached) " >&6 20495else case e in #( 20496 e) case $FOP in 20497 [\\/]* | ?:[\\/]*) 20498 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20499 ;; 20500 *) 20501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20502for as_dir in $PATH 20503do 20504 IFS=$as_save_IFS 20505 case $as_dir in #((( 20506 '') as_dir=./ ;; 20507 */) ;; 20508 *) as_dir=$as_dir/ ;; 20509 esac 20510 for ac_exec_ext in '' $ac_executable_extensions; do 20511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20512 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20514 break 2 20515 fi 20516done 20517 done 20518IFS=$as_save_IFS 20519 20520 ;; 20521esac ;; 20522esac 20523fi 20524FOP=$ac_cv_path_FOP 20525if test -n "$FOP"; then 20526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20527printf "%s\n" "$FOP" >&6; } 20528else 20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20530printf "%s\n" "no" >&6; } 20531fi 20532 20533 20534 if test "x$FOP" = "x"; then 20535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20536printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20537 have_fop=no 20538 else 20539 have_fop=yes 20540 fi 20541elif test "x$use_fop" = x"yes" ; then 20542 # Extract the first word of "fop", so it can be a program name with args. 20543set dummy fop; ac_word=$2 20544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20545printf %s "checking for $ac_word... " >&6; } 20546if test ${ac_cv_path_FOP+y} 20547then : 20548 printf %s "(cached) " >&6 20549else case e in #( 20550 e) case $FOP in 20551 [\\/]* | ?:[\\/]*) 20552 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20553 ;; 20554 *) 20555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20556for as_dir in $PATH 20557do 20558 IFS=$as_save_IFS 20559 case $as_dir in #((( 20560 '') as_dir=./ ;; 20561 */) ;; 20562 *) as_dir=$as_dir/ ;; 20563 esac 20564 for ac_exec_ext in '' $ac_executable_extensions; do 20565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20566 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20568 break 2 20569 fi 20570done 20571 done 20572IFS=$as_save_IFS 20573 20574 ;; 20575esac ;; 20576esac 20577fi 20578FOP=$ac_cv_path_FOP 20579if test -n "$FOP"; then 20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20581printf "%s\n" "$FOP" >&6; } 20582else 20583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20584printf "%s\n" "no" >&6; } 20585fi 20586 20587 20588 if test "x$FOP" = "x"; then 20589 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20590 fi 20591 have_fop=yes 20592elif test "x$use_fop" = x"no" ; then 20593 if test "x$FOP" != "x"; then 20594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20595printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20596 fi 20597 have_fop=no 20598else 20599 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20600fi 20601 20602# Test for a minimum version of fop, if provided. 20603 20604 if test "$have_fop" = yes; then 20605 HAVE_FOP_TRUE= 20606 HAVE_FOP_FALSE='#' 20607else 20608 HAVE_FOP_TRUE='#' 20609 HAVE_FOP_FALSE= 20610fi 20611 20612 20613 20614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5 20615printf %s "checking for X.Org SGML entities >= 1.7... " >&6; } 20616XORG_SGML_PATH= 20617if test -n "$PKG_CONFIG" && \ 20618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5 20619 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5 20620 ac_status=$? 20621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20622 test $ac_status = 0; }; then 20623 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20624else 20625 : 20626 20627fi 20628 20629# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20630# the path and the name of the doc stylesheet 20631if test "x$XORG_SGML_PATH" != "x" ; then 20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20633printf "%s\n" "$XORG_SGML_PATH" >&6; } 20634 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20635 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20636else 20637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20638printf "%s\n" "no" >&6; } 20639fi 20640 20641 20642 20643 20644 if test "x$XSL_STYLESHEET" != "x"; then 20645 HAVE_STYLESHEETS_TRUE= 20646 HAVE_STYLESHEETS_FALSE='#' 20647else 20648 HAVE_STYLESHEETS_TRUE='#' 20649 HAVE_STYLESHEETS_FALSE= 20650fi 20651 20652 20653 20654# Checks for header files. 20655ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 20656if test "x$ac_cv_header_endian_h" = xyes 20657then : 20658 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 20659 20660fi 20661ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 20662if test "x$ac_cv_header_poll_h" = xyes 20663then : 20664 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 20665 20666fi 20667ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 20668if test "x$ac_cv_header_sys_poll_h" = xyes 20669then : 20670 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 20671 20672fi 20673 20674 20675# Checks for non-standard functions and fallback to libbsd if we can 20676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20677/* end confdefs.h. */ 20678 20679/* Override any GCC internal prototype to avoid an error. 20680 Use char because int might match the return type of a GCC 20681 builtin and then its argument prototype would still apply. 20682 The 'extern "C"' is for builds by C++ compilers; 20683 although this is not generally supported in C code supporting it here 20684 has little cost and some practical benefit (sr 110532). */ 20685#ifdef __cplusplus 20686extern "C" 20687#endif 20688char reallocarray (void); 20689int 20690main (void) 20691{ 20692return reallocarray (); 20693 ; 20694 return 0; 20695} 20696_ACEOF 20697if ac_fn_c_try_link "$LINENO" 20698then : 20699 TRY_LIBBSD="no" 20700else case e in #( 20701 e) TRY_LIBBSD="yes" ;; 20702esac 20703fi 20704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20705 conftest$ac_exeext conftest.$ac_ext 20706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20707/* end confdefs.h. */ 20708 20709/* Override any GCC internal prototype to avoid an error. 20710 Use char because int might match the return type of a GCC 20711 builtin and then its argument prototype would still apply. 20712 The 'extern "C"' is for builds by C++ compilers; 20713 although this is not generally supported in C code supporting it here 20714 has little cost and some practical benefit (sr 110532). */ 20715#ifdef __cplusplus 20716extern "C" 20717#endif 20718char strlcat (void); 20719int 20720main (void) 20721{ 20722return strlcat (); 20723 ; 20724 return 0; 20725} 20726_ACEOF 20727if ac_fn_c_try_link "$LINENO" 20728then : 20729 TRY_LIBBSD="no" 20730else case e in #( 20731 e) TRY_LIBBSD="yes" ;; 20732esac 20733fi 20734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20735 conftest$ac_exeext conftest.$ac_ext 20736if test "x$TRY_LIBBSD" = "xyes" 20737then : 20738 20739pkg_failed=no 20740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 20741printf %s "checking for LIBBSD... " >&6; } 20742 20743if test -n "$LIBBSD_CFLAGS"; then 20744 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 20745 elif test -n "$PKG_CONFIG"; then 20746 if test -n "$PKG_CONFIG" && \ 20747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20748 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20749 ac_status=$? 20750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20751 test $ac_status = 0; }; then 20752 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 20753 test "x$?" != "x0" && pkg_failed=yes 20754else 20755 pkg_failed=yes 20756fi 20757 else 20758 pkg_failed=untried 20759fi 20760if test -n "$LIBBSD_LIBS"; then 20761 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 20762 elif test -n "$PKG_CONFIG"; then 20763 if test -n "$PKG_CONFIG" && \ 20764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20765 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20766 ac_status=$? 20767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20768 test $ac_status = 0; }; then 20769 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 20770 test "x$?" != "x0" && pkg_failed=yes 20771else 20772 pkg_failed=yes 20773fi 20774 else 20775 pkg_failed=untried 20776fi 20777 20778 20779 20780if test $pkg_failed = yes; then 20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20782printf "%s\n" "no" >&6; } 20783 20784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20785 _pkg_short_errors_supported=yes 20786else 20787 _pkg_short_errors_supported=no 20788fi 20789 if test $_pkg_short_errors_supported = yes; then 20790 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20791 else 20792 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20793 fi 20794 # Put the nasty error message in config.log where it belongs 20795 echo "$LIBBSD_PKG_ERRORS" >&5 20796 20797 : 20798elif test $pkg_failed = untried; then 20799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20800printf "%s\n" "no" >&6; } 20801 : 20802else 20803 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 20804 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 20805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20806printf "%s\n" "yes" >&6; } 20807 20808 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 20809 LIBS="$LIBS $LIBBSD_LIBS" 20810 20811fi 20812fi 20813 20814# Checks for library functions. 20815ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20816if test "x$ac_cv_func_poll" = xyes 20817then : 20818 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 20819 20820fi 20821ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 20822if test "x$ac_cv_func_readlink" = xyes 20823then : 20824 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h 20825 20826fi 20827ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20828if test "x$ac_cv_func_strlcat" = xyes 20829then : 20830 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20831 20832fi 20833 20834 20835ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20836if test "x$ac_cv_func_reallocarray" = xyes 20837then : 20838 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20839 20840else case e in #( 20841 e) case " $LIBOBJS " in 20842 *" reallocarray.$ac_objext "* ) ;; 20843 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20844 ;; 20845esac 20846 ;; 20847esac 20848fi 20849ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 20850if test "x$ac_cv_func_realpath" = xyes 20851then : 20852 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 20853 20854else case e in #( 20855 e) case " $LIBOBJS " in 20856 *" realpath.$ac_objext "* ) ;; 20857 *) LIBOBJS="$LIBOBJS realpath.$ac_objext" 20858 ;; 20859esac 20860 ;; 20861esac 20862fi 20863ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20864if test "x$ac_cv_func_strlcat" = xyes 20865then : 20866 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20867 20868else case e in #( 20869 e) case " $LIBOBJS " in 20870 *" strlcat.$ac_objext "* ) ;; 20871 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20872 ;; 20873esac 20874 ;; 20875esac 20876fi 20877ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20878if test "x$ac_cv_func_strlcpy" = xyes 20879then : 20880 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20881 20882else case e in #( 20883 e) case " $LIBOBJS " in 20884 *" strlcpy.$ac_objext "* ) ;; 20885 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20886 ;; 20887esac 20888 ;; 20889esac 20890fi 20891 20892 20893# Checks for header files. 20894ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 20895if test "x$ac_cv_header_err_h" = xyes 20896then : 20897 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 20898 20899fi 20900ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 20901if test "x$ac_cv_header_float_h" = xyes 20902then : 20903 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h 20904 20905fi 20906 20907 20908# Checks for typedefs, structures, and compiler characteristics. 20909# Check whether --enable-largefile was given. 20910if test ${enable_largefile+y} 20911then : 20912 enableval=$enable_largefile; 20913fi 20914if test "$enable_largefile,$enable_year2038" != no,no 20915then : 20916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 20917printf %s "checking for $CC option to enable large file support... " >&6; } 20918if test ${ac_cv_sys_largefile_opts+y} 20919then : 20920 printf %s "(cached) " >&6 20921else case e in #( 20922 e) ac_save_CC="$CC" 20923 ac_opt_found=no 20924 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 20925 if test x"$ac_opt" != x"none needed" 20926then : 20927 CC="$ac_save_CC $ac_opt" 20928fi 20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20930/* end confdefs.h. */ 20931#include <sys/types.h> 20932#ifndef FTYPE 20933# define FTYPE off_t 20934#endif 20935 /* Check that FTYPE can represent 2**63 - 1 correctly. 20936 We can't simply define LARGE_FTYPE to be 9223372036854775807, 20937 since some C++ compilers masquerading as C compilers 20938 incorrectly reject 9223372036854775807. */ 20939#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 20940 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 20941 && LARGE_FTYPE % 2147483647 == 1) 20942 ? 1 : -1]; 20943int 20944main (void) 20945{ 20946 20947 ; 20948 return 0; 20949} 20950_ACEOF 20951if ac_fn_c_try_compile "$LINENO" 20952then : 20953 if test x"$ac_opt" = x"none needed" 20954then : 20955 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 20956 CC="$CC -DFTYPE=ino_t" 20957 if ac_fn_c_try_compile "$LINENO" 20958then : 20959 20960else case e in #( 20961 e) CC="$CC -D_FILE_OFFSET_BITS=64" 20962 if ac_fn_c_try_compile "$LINENO" 20963then : 20964 ac_opt='-D_FILE_OFFSET_BITS=64' 20965fi 20966rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 20967esac 20968fi 20969rm -f core conftest.err conftest.$ac_objext conftest.beam 20970fi 20971 ac_cv_sys_largefile_opts=$ac_opt 20972 ac_opt_found=yes 20973fi 20974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20975 test $ac_opt_found = no || break 20976 done 20977 CC="$ac_save_CC" 20978 20979 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 20980esac 20981fi 20982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 20983printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 20984 20985ac_have_largefile=yes 20986case $ac_cv_sys_largefile_opts in #( 20987 "none needed") : 20988 ;; #( 20989 "supported through gnulib") : 20990 ;; #( 20991 "support not detected") : 20992 ac_have_largefile=no ;; #( 20993 "-D_FILE_OFFSET_BITS=64") : 20994 20995printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 20996 ;; #( 20997 "-D_LARGE_FILES=1") : 20998 20999printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 21000 ;; #( 21001 "-n32") : 21002 CC="$CC -n32" ;; #( 21003 *) : 21004 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 21005esac 21006 21007if test "$enable_year2038" != no 21008then : 21009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 21010printf %s "checking for $CC option for timestamps after 2038... " >&6; } 21011if test ${ac_cv_sys_year2038_opts+y} 21012then : 21013 printf %s "(cached) " >&6 21014else case e in #( 21015 e) ac_save_CPPFLAGS="$CPPFLAGS" 21016 ac_opt_found=no 21017 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 21018 if test x"$ac_opt" != x"none needed" 21019then : 21020 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 21021fi 21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21023/* end confdefs.h. */ 21024 21025 #include <time.h> 21026 /* Check that time_t can represent 2**32 - 1 correctly. */ 21027 #define LARGE_TIME_T \\ 21028 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 21029 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 21030 && LARGE_TIME_T % 65537 == 0) 21031 ? 1 : -1]; 21032 21033int 21034main (void) 21035{ 21036 21037 ; 21038 return 0; 21039} 21040_ACEOF 21041if ac_fn_c_try_compile "$LINENO" 21042then : 21043 ac_cv_sys_year2038_opts="$ac_opt" 21044 ac_opt_found=yes 21045fi 21046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21047 test $ac_opt_found = no || break 21048 done 21049 CPPFLAGS="$ac_save_CPPFLAGS" 21050 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 21051esac 21052fi 21053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 21054printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 21055 21056ac_have_year2038=yes 21057case $ac_cv_sys_year2038_opts in #( 21058 "none needed") : 21059 ;; #( 21060 "support not detected") : 21061 ac_have_year2038=no ;; #( 21062 "-D_TIME_BITS=64") : 21063 21064printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 21065 ;; #( 21066 "-D__MINGW_USE_VC2005_COMPAT") : 21067 21068printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 21069 ;; #( 21070 "-U_USE_32_BIT_TIME_T"*) : 21071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21072printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21073as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 21074will stop working after mid-January 2038. Remove 21075_USE_32BIT_TIME_T from the compiler flags. 21076See 'config.log' for more details" "$LINENO" 5; } ;; #( 21077 *) : 21078 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 21079esac 21080 21081fi 21082 21083fi 21084 21085# 21086# select libraries to include 21087# 21088 21089XFONT_FONTFILE=no 21090 21091# 21092# FreeType for all scalable (OpenType, TrueType, PostScript) and 21093# some bitmap formats (BDF & PCF) 21094# 21095# Check whether --enable-freetype was given. 21096if test ${enable_freetype+y} 21097then : 21098 enableval=$enable_freetype; XFONT_FREETYPE=$enableval 21099else case e in #( 21100 e) XFONT_FREETYPE=yes ;; 21101esac 21102fi 21103 21104 if test x$XFONT_FREETYPE = xyes; then 21105 XFONT_FREETYPE_TRUE= 21106 XFONT_FREETYPE_FALSE='#' 21107else 21108 XFONT_FREETYPE_TRUE='#' 21109 XFONT_FREETYPE_FALSE= 21110fi 21111 21112if test x$XFONT_FREETYPE = xyes; then 21113 21114printf "%s\n" "#define XFONT_FREETYPE 1" >>confdefs.h 21115 21116 21117# Check whether --with-freetype-config was given. 21118if test ${with_freetype_config+y} 21119then : 21120 withval=$with_freetype_config; freetype_config=$withval 21121else case e in #( 21122 e) freetype_config=auto ;; 21123esac 21124fi 21125 21126 21127 if test "$freetype_config" = "auto" ; then 21128 21129pkg_failed=no 21130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 21131printf %s "checking for FREETYPE... " >&6; } 21132 21133if test -n "$FREETYPE_CFLAGS"; then 21134 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 21135 elif test -n "$PKG_CONFIG"; then 21136 if test -n "$PKG_CONFIG" && \ 21137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 21138 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 21139 ac_status=$? 21140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21141 test $ac_status = 0; }; then 21142 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 21143 test "x$?" != "x0" && pkg_failed=yes 21144else 21145 pkg_failed=yes 21146fi 21147 else 21148 pkg_failed=untried 21149fi 21150if test -n "$FREETYPE_LIBS"; then 21151 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 21152 elif test -n "$PKG_CONFIG"; then 21153 if test -n "$PKG_CONFIG" && \ 21154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 21155 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 21156 ac_status=$? 21157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21158 test $ac_status = 0; }; then 21159 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 21160 test "x$?" != "x0" && pkg_failed=yes 21161else 21162 pkg_failed=yes 21163fi 21164 else 21165 pkg_failed=untried 21166fi 21167 21168 21169 21170if test $pkg_failed = yes; then 21171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21172printf "%s\n" "no" >&6; } 21173 21174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21175 _pkg_short_errors_supported=yes 21176else 21177 _pkg_short_errors_supported=no 21178fi 21179 if test $_pkg_short_errors_supported = yes; then 21180 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 21181 else 21182 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 21183 fi 21184 # Put the nasty error message in config.log where it belongs 21185 echo "$FREETYPE_PKG_ERRORS" >&5 21186 21187 freetype_config=yes 21188elif test $pkg_failed = untried; then 21189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21190printf "%s\n" "no" >&6; } 21191 freetype_config=yes 21192else 21193 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 21194 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 21195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21196printf "%s\n" "yes" >&6; } 21197 freetype_config=no 21198fi 21199 fi 21200 21201 if test "$freetype_config" = "yes"; then 21202 # Extract the first word of "freetype-config", so it can be a program name with args. 21203set dummy freetype-config; ac_word=$2 21204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21205printf %s "checking for $ac_word... " >&6; } 21206if test ${ac_cv_path_ft_config+y} 21207then : 21208 printf %s "(cached) " >&6 21209else case e in #( 21210 e) case $ft_config in 21211 [\\/]* | ?:[\\/]*) 21212 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 21213 ;; 21214 *) 21215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21216for as_dir in $PATH 21217do 21218 IFS=$as_save_IFS 21219 case $as_dir in #((( 21220 '') as_dir=./ ;; 21221 */) ;; 21222 *) as_dir=$as_dir/ ;; 21223 esac 21224 for ac_exec_ext in '' $ac_executable_extensions; do 21225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21226 ac_cv_path_ft_config="$as_dir$ac_word$ac_exec_ext" 21227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21228 break 2 21229 fi 21230done 21231 done 21232IFS=$as_save_IFS 21233 21234 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 21235 ;; 21236esac ;; 21237esac 21238fi 21239ft_config=$ac_cv_path_ft_config 21240if test -n "$ft_config"; then 21241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5 21242printf "%s\n" "$ft_config" >&6; } 21243else 21244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21245printf "%s\n" "no" >&6; } 21246fi 21247 21248 21249 if test "$ft_config" = "no"; then 21250 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5 21251 fi 21252 else 21253 ft_config="$freetype_config" 21254 fi 21255 21256 if test "$freetype_config" != "no"; then 21257 FREETYPE_CFLAGS="`$ft_config --cflags`" 21258 FREETYPE_LIBS="`$ft_config --libs`" 21259 fi 21260 FREETYPE_REQUIRES="freetype2" 21261 XFONT_FONTFILE=yes 21262else 21263 FREETYPE_CFLAGS="" 21264 FREETYPE_LIBS="" 21265 FREETYPE_REQUIRES="" 21266fi 21267 21268 21269 21270 21271# 21272# Bitmap fonts in files: 21273# Builtins (gzipped pcf format in .text segment) 21274# PCF 21275# BDF 21276# SNF 21277# 21278 21279 21280printf "%s\n" "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h 21281 21282X_GZIP_FONT_COMPRESSION=1 21283 21284 21285pkg_failed=no 21286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 21287printf %s "checking for ZLIB... " >&6; } 21288 21289if test -n "$ZLIB_CFLAGS"; then 21290 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 21291 elif test -n "$PKG_CONFIG"; then 21292 if test -n "$PKG_CONFIG" && \ 21293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 21294 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 21295 ac_status=$? 21296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21297 test $ac_status = 0; }; then 21298 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 21299 test "x$?" != "x0" && pkg_failed=yes 21300else 21301 pkg_failed=yes 21302fi 21303 else 21304 pkg_failed=untried 21305fi 21306if test -n "$ZLIB_LIBS"; then 21307 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 21308 elif test -n "$PKG_CONFIG"; then 21309 if test -n "$PKG_CONFIG" && \ 21310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 21311 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 21312 ac_status=$? 21313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21314 test $ac_status = 0; }; then 21315 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 21316 test "x$?" != "x0" && pkg_failed=yes 21317else 21318 pkg_failed=yes 21319fi 21320 else 21321 pkg_failed=untried 21322fi 21323 21324 21325 21326if test $pkg_failed = yes; then 21327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21328printf "%s\n" "no" >&6; } 21329 21330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21331 _pkg_short_errors_supported=yes 21332else 21333 _pkg_short_errors_supported=no 21334fi 21335 if test $_pkg_short_errors_supported = yes; then 21336 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 21337 else 21338 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 21339 fi 21340 # Put the nasty error message in config.log where it belongs 21341 echo "$ZLIB_PKG_ERRORS" >&5 21342 21343 Z_REQUIRES="" 21344elif test $pkg_failed = untried; then 21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21346printf "%s\n" "no" >&6; } 21347 Z_REQUIRES="" 21348else 21349 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 21350 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 21351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21352printf "%s\n" "yes" >&6; } 21353 Z_REQUIRES=zlib 21354fi 21355if test "x$Z_REQUIRES" = "x"; then 21356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 21357printf %s "checking for gzopen in -lz... " >&6; } 21358if test ${ac_cv_lib_z_gzopen+y} 21359then : 21360 printf %s "(cached) " >&6 21361else case e in #( 21362 e) ac_check_lib_save_LIBS=$LIBS 21363LIBS="-lz $LIBS" 21364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21365/* end confdefs.h. */ 21366 21367/* Override any GCC internal prototype to avoid an error. 21368 Use char because int might match the return type of a GCC 21369 builtin and then its argument prototype would still apply. 21370 The 'extern "C"' is for builds by C++ compilers; 21371 although this is not generally supported in C code supporting it here 21372 has little cost and some practical benefit (sr 110532). */ 21373#ifdef __cplusplus 21374extern "C" 21375#endif 21376char gzopen (void); 21377int 21378main (void) 21379{ 21380return gzopen (); 21381 ; 21382 return 0; 21383} 21384_ACEOF 21385if ac_fn_c_try_link "$LINENO" 21386then : 21387 ac_cv_lib_z_gzopen=yes 21388else case e in #( 21389 e) ac_cv_lib_z_gzopen=no ;; 21390esac 21391fi 21392rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21393 conftest$ac_exeext conftest.$ac_ext 21394LIBS=$ac_check_lib_save_LIBS ;; 21395esac 21396fi 21397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 21398printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 21399if test "x$ac_cv_lib_z_gzopen" = xyes 21400then : 21401 Z_LIBS=-lz 21402else case e in #( 21403 e) as_fn_error $? "*** zlib is required" "$LINENO" 5 ;; 21404esac 21405fi 21406 21407fi 21408 21409 21410 21411# Check whether --with-bzip2 was given. 21412if test ${with_bzip2+y} 21413then : 21414 withval=$with_bzip2; 21415else case e in #( 21416 e) with_bzip2=no ;; 21417esac 21418fi 21419 21420if test "x$with_bzip2" = xyes; then 21421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 21422printf %s "checking for BZ2_bzopen in -lbz2... " >&6; } 21423if test ${ac_cv_lib_bz2_BZ2_bzopen+y} 21424then : 21425 printf %s "(cached) " >&6 21426else case e in #( 21427 e) ac_check_lib_save_LIBS=$LIBS 21428LIBS="-lbz2 $LIBS" 21429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21430/* end confdefs.h. */ 21431 21432/* Override any GCC internal prototype to avoid an error. 21433 Use char because int might match the return type of a GCC 21434 builtin and then its argument prototype would still apply. 21435 The 'extern "C"' is for builds by C++ compilers; 21436 although this is not generally supported in C code supporting it here 21437 has little cost and some practical benefit (sr 110532). */ 21438#ifdef __cplusplus 21439extern "C" 21440#endif 21441char BZ2_bzopen (void); 21442int 21443main (void) 21444{ 21445return BZ2_bzopen (); 21446 ; 21447 return 0; 21448} 21449_ACEOF 21450if ac_fn_c_try_link "$LINENO" 21451then : 21452 ac_cv_lib_bz2_BZ2_bzopen=yes 21453else case e in #( 21454 e) ac_cv_lib_bz2_BZ2_bzopen=no ;; 21455esac 21456fi 21457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21458 conftest$ac_exeext conftest.$ac_ext 21459LIBS=$ac_check_lib_save_LIBS ;; 21460esac 21461fi 21462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 21463printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 21464if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes 21465then : 21466 Z_LIBS="$Z_LIBS -lbz2" 21467else case e in #( 21468 e) as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 ;; 21469esac 21470fi 21471 21472 21473printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 21474 21475fi 21476 if test "x$with_bzip2" = xyes ; then 21477 X_BZIP2_FONT_COMPRESSION_TRUE= 21478 X_BZIP2_FONT_COMPRESSION_FALSE='#' 21479else 21480 X_BZIP2_FONT_COMPRESSION_TRUE='#' 21481 X_BZIP2_FONT_COMPRESSION_FALSE= 21482fi 21483 21484 21485 21486# Check whether --enable-builtins was given. 21487if test ${enable_builtins+y} 21488then : 21489 enableval=$enable_builtins; XFONT_BUILTINS=$enableval 21490else case e in #( 21491 e) XFONT_BUILTINS=yes ;; 21492esac 21493fi 21494 21495 if test "x$XFONT_BUILTINS" = xyes ; then 21496 XFONT_BUILTINS_TRUE= 21497 XFONT_BUILTINS_FALSE='#' 21498else 21499 XFONT_BUILTINS_TRUE='#' 21500 XFONT_BUILTINS_FALSE= 21501fi 21502 21503if test "x$XFONT_BUILTINS" = xyes; then 21504 21505printf "%s\n" "#define XFONT_BUILTINS 1" >>confdefs.h 21506 21507 XFONT_BITMAP=yes 21508fi 21509 21510# Check whether --enable-pcfformat was given. 21511if test ${enable_pcfformat+y} 21512then : 21513 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval 21514else case e in #( 21515 e) XFONT_PCFFORMAT=yes ;; 21516esac 21517fi 21518 21519 if test "x$XFONT_PCFFORMAT" = xyes; then 21520 XFONT_PCFFORMAT_TRUE= 21521 XFONT_PCFFORMAT_FALSE='#' 21522else 21523 XFONT_PCFFORMAT_TRUE='#' 21524 XFONT_PCFFORMAT_FALSE= 21525fi 21526 21527if test "x$XFONT_PCFFORMAT" = xyes; then 21528 21529printf "%s\n" "#define XFONT_PCFFORMAT 1" >>confdefs.h 21530 21531 XFONT_BITMAP=yes 21532fi 21533 21534 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then 21535 XFONT_PCF_OR_BUILTIN_TRUE= 21536 XFONT_PCF_OR_BUILTIN_FALSE='#' 21537else 21538 XFONT_PCF_OR_BUILTIN_TRUE='#' 21539 XFONT_PCF_OR_BUILTIN_FALSE= 21540fi 21541 21542 21543# Check whether --enable-bdfformat was given. 21544if test ${enable_bdfformat+y} 21545then : 21546 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval 21547else case e in #( 21548 e) XFONT_BDFFORMAT=yes ;; 21549esac 21550fi 21551 21552 if test "x$XFONT_BDFFORMAT" = xyes; then 21553 XFONT_BDFFORMAT_TRUE= 21554 XFONT_BDFFORMAT_FALSE='#' 21555else 21556 XFONT_BDFFORMAT_TRUE='#' 21557 XFONT_BDFFORMAT_FALSE= 21558fi 21559 21560if test "x$XFONT_BDFFORMAT" = xyes; then 21561 21562printf "%s\n" "#define XFONT_BDFFORMAT 1" >>confdefs.h 21563 21564 XFONT_BITMAP=yes 21565fi 21566 21567# Check whether --enable-snfformat was given. 21568if test ${enable_snfformat+y} 21569then : 21570 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval 21571else case e in #( 21572 e) XFONT_SNFFORMAT=no ;; 21573esac 21574fi 21575 21576 if test "x$XFONT_SNFFORMAT" = xyes; then 21577 XFONT_SNFFORMAT_TRUE= 21578 XFONT_SNFFORMAT_FALSE='#' 21579else 21580 XFONT_SNFFORMAT_TRUE='#' 21581 XFONT_SNFFORMAT_FALSE= 21582fi 21583 21584if test "x$XFONT_SNFFORMAT" = xyes; then 21585 21586printf "%s\n" "#define XFONT_SNFFORMAT 1" >>confdefs.h 21587 21588 XFONT_BITMAP=yes 21589fi 21590 21591 if test "x$XFONT_BITMAP" = xyes ; then 21592 XFONT_BITMAP_TRUE= 21593 XFONT_BITMAP_FALSE='#' 21594else 21595 XFONT_BITMAP_TRUE='#' 21596 XFONT_BITMAP_FALSE= 21597fi 21598 21599if test "x$XFONT_BITMAP" = xyes; then 21600 21601printf "%s\n" "#define XFONT_BITMAP 1" >>confdefs.h 21602 21603 XFONT_FONTFILE=yes 21604fi 21605 21606 if test "x$XFONT_FONTFILE" = xyes; then 21607 XFONT_FONTFILE_TRUE= 21608 XFONT_FONTFILE_FALSE='#' 21609else 21610 XFONT_FONTFILE_TRUE='#' 21611 XFONT_FONTFILE_FALSE= 21612fi 21613 21614if test "x$XFONT_FONTFILE" = xyes; then 21615 21616printf "%s\n" "#define XFONT_FONTFILE 1" >>confdefs.h 21617 21618fi 21619 21620# 21621# Support connection to font servers? 21622# 21623 21624# Check whether --enable-fc was given. 21625if test ${enable_fc+y} 21626then : 21627 enableval=$enable_fc; XFONT_FC=$enableval 21628else case e in #( 21629 e) XFONT_FC=yes ;; 21630esac 21631fi 21632 21633 if test "x$XFONT_FC" = xyes; then 21634 XFONT_FC_TRUE= 21635 XFONT_FC_FALSE='#' 21636else 21637 XFONT_FC_TRUE='#' 21638 XFONT_FC_FALSE= 21639fi 21640 21641if test "x$XFONT_FC" = xyes; then 21642 21643printf "%s\n" "#define XFONT_FC 1" >>confdefs.h 21644 21645fi 21646 21647 21648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5 21649printf %s "checking for hypot in -lm... " >&6; } 21650if test ${ac_cv_lib_m_hypot+y} 21651then : 21652 printf %s "(cached) " >&6 21653else case e in #( 21654 e) ac_check_lib_save_LIBS=$LIBS 21655LIBS="-lm $LIBS" 21656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21657/* end confdefs.h. */ 21658 21659/* Override any GCC internal prototype to avoid an error. 21660 Use char because int might match the return type of a GCC 21661 builtin and then its argument prototype would still apply. 21662 The 'extern "C"' is for builds by C++ compilers; 21663 although this is not generally supported in C code supporting it here 21664 has little cost and some practical benefit (sr 110532). */ 21665#ifdef __cplusplus 21666extern "C" 21667#endif 21668char hypot (void); 21669int 21670main (void) 21671{ 21672return hypot (); 21673 ; 21674 return 0; 21675} 21676_ACEOF 21677if ac_fn_c_try_link "$LINENO" 21678then : 21679 ac_cv_lib_m_hypot=yes 21680else case e in #( 21681 e) ac_cv_lib_m_hypot=no ;; 21682esac 21683fi 21684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21685 conftest$ac_exeext conftest.$ac_ext 21686LIBS=$ac_check_lib_save_LIBS ;; 21687esac 21688fi 21689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5 21690printf "%s\n" "$ac_cv_lib_m_hypot" >&6; } 21691if test "x$ac_cv_lib_m_hypot" = xyes 21692then : 21693 MATH_LIBS=-lm 21694 21695else case e in #( 21696 e) as_fn_error $? "*** libm is required" "$LINENO" 5 ;; 21697esac 21698fi 21699 21700 21701 21702pkg_failed=no 21703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5 21704printf %s "checking for XFONT... " >&6; } 21705 21706if test -n "$XFONT_CFLAGS"; then 21707 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS" 21708 elif test -n "$PKG_CONFIG"; then 21709 if test -n "$PKG_CONFIG" && \ 21710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 21711 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 21712 ac_status=$? 21713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21714 test $ac_status = 0; }; then 21715 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 21716 test "x$?" != "x0" && pkg_failed=yes 21717else 21718 pkg_failed=yes 21719fi 21720 else 21721 pkg_failed=untried 21722fi 21723if test -n "$XFONT_LIBS"; then 21724 pkg_cv_XFONT_LIBS="$XFONT_LIBS" 21725 elif test -n "$PKG_CONFIG"; then 21726 if test -n "$PKG_CONFIG" && \ 21727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 21728 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 21729 ac_status=$? 21730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21731 test $ac_status = 0; }; then 21732 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 21733 test "x$?" != "x0" && pkg_failed=yes 21734else 21735 pkg_failed=yes 21736fi 21737 else 21738 pkg_failed=untried 21739fi 21740 21741 21742 21743if test $pkg_failed = yes; then 21744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21745printf "%s\n" "no" >&6; } 21746 21747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21748 _pkg_short_errors_supported=yes 21749else 21750 _pkg_short_errors_supported=no 21751fi 21752 if test $_pkg_short_errors_supported = yes; then 21753 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 21754 else 21755 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 21756 fi 21757 # Put the nasty error message in config.log where it belongs 21758 echo "$XFONT_PKG_ERRORS" >&5 21759 21760 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met: 21761 21762$XFONT_PKG_ERRORS 21763 21764Consider adjusting the PKG_CONFIG_PATH environment variable if you 21765installed software in a non-standard prefix. 21766 21767Alternatively, you may set the environment variables XFONT_CFLAGS 21768and XFONT_LIBS to avoid the need to call pkg-config. 21769See the pkg-config man page for more details." "$LINENO" 5 21770elif test $pkg_failed = untried; then 21771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21772printf "%s\n" "no" >&6; } 21773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21774printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21775as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21776is in your PATH or set the PKG_CONFIG environment variable to the full 21777path to pkg-config. 21778 21779Alternatively, you may set the environment variables XFONT_CFLAGS 21780and XFONT_LIBS to avoid the need to call pkg-config. 21781See the pkg-config man page for more details. 21782 21783To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21784See 'config.log' for more details" "$LINENO" 5; } 21785else 21786 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS 21787 XFONT_LIBS=$pkg_cv_XFONT_LIBS 21788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21789printf "%s\n" "yes" >&6; } 21790 21791fi 21792 21793# Transport selection macro from xtrans.m4 21794 21795 21796 case $host_os in 21797 mingw*) unixdef="no" ;; 21798 *) unixdef="yes" ;; 21799 esac 21800 # Check whether --enable-unix-transport was given. 21801if test ${enable_unix_transport+y} 21802then : 21803 enableval=$enable_unix_transport; UNIXCONN=$enableval 21804else case e in #( 21805 e) UNIXCONN=$unixdef ;; 21806esac 21807fi 21808 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21810printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21811 if test "$UNIXCONN" = "yes"; then 21812 21813printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21814 21815 fi 21816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21817printf "%s\n" "$UNIXCONN" >&6; } 21818 # Check whether --enable-tcp-transport was given. 21819if test ${enable_tcp_transport+y} 21820then : 21821 enableval=$enable_tcp_transport; TCPCONN=$enableval 21822else case e in #( 21823 e) TCPCONN=yes ;; 21824esac 21825fi 21826 21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21828printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21830printf "%s\n" "$TCPCONN" >&6; } 21831 if test "$TCPCONN" = "yes"; then 21832 21833printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21834 21835 21836 # SVR4 hides these in libraries other than libc 21837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21838printf %s "checking for library containing socket... " >&6; } 21839if test ${ac_cv_search_socket+y} 21840then : 21841 printf %s "(cached) " >&6 21842else case e in #( 21843 e) ac_func_search_save_LIBS=$LIBS 21844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21845/* end confdefs.h. */ 21846 21847/* Override any GCC internal prototype to avoid an error. 21848 Use char because int might match the return type of a GCC 21849 builtin and then its argument prototype would still apply. 21850 The 'extern "C"' is for builds by C++ compilers; 21851 although this is not generally supported in C code supporting it here 21852 has little cost and some practical benefit (sr 110532). */ 21853#ifdef __cplusplus 21854extern "C" 21855#endif 21856char socket (void); 21857int 21858main (void) 21859{ 21860return socket (); 21861 ; 21862 return 0; 21863} 21864_ACEOF 21865for ac_lib in '' socket 21866do 21867 if test -z "$ac_lib"; then 21868 ac_res="none required" 21869 else 21870 ac_res=-l$ac_lib 21871 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21872 fi 21873 if ac_fn_c_try_link "$LINENO" 21874then : 21875 ac_cv_search_socket=$ac_res 21876fi 21877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21878 conftest$ac_exeext 21879 if test ${ac_cv_search_socket+y} 21880then : 21881 break 21882fi 21883done 21884if test ${ac_cv_search_socket+y} 21885then : 21886 21887else case e in #( 21888 e) ac_cv_search_socket=no ;; 21889esac 21890fi 21891rm conftest.$ac_ext 21892LIBS=$ac_func_search_save_LIBS ;; 21893esac 21894fi 21895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21896printf "%s\n" "$ac_cv_search_socket" >&6; } 21897ac_res=$ac_cv_search_socket 21898if test "$ac_res" != no 21899then : 21900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21901 21902fi 21903 21904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21905printf %s "checking for library containing gethostbyname... " >&6; } 21906if test ${ac_cv_search_gethostbyname+y} 21907then : 21908 printf %s "(cached) " >&6 21909else case e in #( 21910 e) ac_func_search_save_LIBS=$LIBS 21911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21912/* end confdefs.h. */ 21913 21914/* Override any GCC internal prototype to avoid an error. 21915 Use char because int might match the return type of a GCC 21916 builtin and then its argument prototype would still apply. 21917 The 'extern "C"' is for builds by C++ compilers; 21918 although this is not generally supported in C code supporting it here 21919 has little cost and some practical benefit (sr 110532). */ 21920#ifdef __cplusplus 21921extern "C" 21922#endif 21923char gethostbyname (void); 21924int 21925main (void) 21926{ 21927return gethostbyname (); 21928 ; 21929 return 0; 21930} 21931_ACEOF 21932for ac_lib in '' nsl 21933do 21934 if test -z "$ac_lib"; then 21935 ac_res="none required" 21936 else 21937 ac_res=-l$ac_lib 21938 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21939 fi 21940 if ac_fn_c_try_link "$LINENO" 21941then : 21942 ac_cv_search_gethostbyname=$ac_res 21943fi 21944rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21945 conftest$ac_exeext 21946 if test ${ac_cv_search_gethostbyname+y} 21947then : 21948 break 21949fi 21950done 21951if test ${ac_cv_search_gethostbyname+y} 21952then : 21953 21954else case e in #( 21955 e) ac_cv_search_gethostbyname=no ;; 21956esac 21957fi 21958rm conftest.$ac_ext 21959LIBS=$ac_func_search_save_LIBS ;; 21960esac 21961fi 21962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21963printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 21964ac_res=$ac_cv_search_gethostbyname 21965if test "$ac_res" != no 21966then : 21967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21968 21969fi 21970 21971 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21973printf %s "checking for main in -lws2_32... " >&6; } 21974if test ${ac_cv_lib_ws2_32_main+y} 21975then : 21976 printf %s "(cached) " >&6 21977else case e in #( 21978 e) ac_check_lib_save_LIBS=$LIBS 21979LIBS="-lws2_32 $LIBS" 21980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21981/* end confdefs.h. */ 21982 21983 21984int 21985main (void) 21986{ 21987return main (); 21988 ; 21989 return 0; 21990} 21991_ACEOF 21992if ac_fn_c_try_link "$LINENO" 21993then : 21994 ac_cv_lib_ws2_32_main=yes 21995else case e in #( 21996 e) ac_cv_lib_ws2_32_main=no ;; 21997esac 21998fi 21999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22000 conftest$ac_exeext conftest.$ac_ext 22001LIBS=$ac_check_lib_save_LIBS ;; 22002esac 22003fi 22004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 22005printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 22006if test "x$ac_cv_lib_ws2_32_main" = xyes 22007then : 22008 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 22009 22010 LIBS="-lws2_32 $LIBS" 22011 22012fi 22013 22014 fi 22015 22016 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 22017 # Check whether --enable-ipv6 was given. 22018if test ${enable_ipv6+y} 22019then : 22020 enableval=$enable_ipv6; IPV6CONN=$enableval 22021else case e in #( 22022 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22023if test "x$ac_cv_func_getaddrinfo" = xyes 22024then : 22025 IPV6CONN=yes 22026else case e in #( 22027 e) IPV6CONN=no ;; 22028esac 22029fi 22030 ;; 22031esac 22032fi 22033 22034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 22035printf %s "checking if IPv6 support should be built... " >&6; } 22036 if test "$IPV6CONN" = "yes"; then 22037 22038printf "%s\n" "#define IPv6 1" >>confdefs.h 22039 22040 fi 22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 22042printf "%s\n" "$IPV6CONN" >&6; } 22043 22044 # 4.3BSD-Reno added a new member to struct sockaddr_in 22045 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 22046#include <sys/types.h> 22047#include <sys/socket.h> 22048#include <netinet/in.h> 22049 22050" 22051if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 22052then : 22053 22054printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 22055 22056fi 22057 22058 22059 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 22060 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 22061$ac_includes_default 22062#include <sys/socket.h> 22063" 22064if test "x$ac_cv_type_socklen_t" = xyes 22065then : 22066 22067printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 22068 22069 22070fi 22071 22072 22073 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 22074 # _XOPEN_SOURCE to get it (such as on Solaris) 22075 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22076$ac_includes_default 22077#include <sys/socket.h> 22078 22079" 22080if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22081then : 22082 22083fi 22084 22085 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 22086 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22087 unset ac_cv_member_struct_msghdr_msg_control 22088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 22089printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 22090 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22091#define _XOPEN_SOURCE 600 22092$ac_includes_default 22093#include <sys/socket.h> 22094 22095" 22096if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22097then : 22098 22099printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 22100 22101 22102fi 22103 22104 fi 22105 # If that didn't work, fall back to XPG5/UNIX98 with C89 22106 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22107 unset ac_cv_member_struct_msghdr_msg_control 22108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 22109printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22110 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22111#define _XOPEN_SOURCE 500 22112$ac_includes_default 22113#include <sys/socket.h> 22114 22115" 22116if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22117then : 22118 22119printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22120 22121 22122fi 22123 22124 fi 22125 22126 22127 22128 fi 22129 case $host_os in 22130 solaris*) localdef="yes" ;; 22131 *) localdef="no" ;; 22132 esac 22133 # Check whether --enable-local-transport was given. 22134if test ${enable_local_transport+y} 22135then : 22136 enableval=$enable_local_transport; LOCALCONN=$enableval 22137else case e in #( 22138 e) LOCALCONN=$localdef ;; 22139esac 22140fi 22141 22142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22143printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22145printf "%s\n" "$LOCALCONN" >&6; } 22146 if test "$LOCALCONN" = "yes"; then 22147 22148printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22149 22150 fi 22151 22152 # Other functions Xtrans may need 22153 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22154if test "x$ac_cv_func_strcasecmp" = xyes 22155then : 22156 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22157 22158fi 22159ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22160if test "x$ac_cv_func_strlcpy" = xyes 22161then : 22162 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22163 22164fi 22165 22166 22167 22168 22169case $host_os in 22170 linux*) 22171 OS_CFLAGS="-D_XOPEN_SOURCE" 22172 ;; 22173 *) 22174 OS_CFLAGS= 22175 ;; 22176esac 22177 22178save_CFLAGS="$CFLAGS" 22179CFLAGS="$CFLAGS -fvisibility=hidden" 22180CFLAGS_VISIBILITY= 22181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22182/* end confdefs.h. */ 22183 22184 #if defined(__CYGWIN__) || defined(__MINGW32__) 22185 #error No visibility support 22186 #endif 22187 extern __attribute__((__visibility__("default"))) int x; 22188 22189_ACEOF 22190if ac_fn_c_try_compile "$LINENO" 22191then : 22192 CFLAGS_VISIBILITY=-fvisibility=hidden 22193fi 22194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22195CFLAGS="$save_CFLAGS" 22196OS_CFLAGS="$OS_CFLAGS $CFLAGS_VISIBILITY" 22197 22198 22199 22200ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc" 22201 22202cat >confcache <<\_ACEOF 22203# This file is a shell script that caches the results of configure 22204# tests run on this system so they can be shared between configure 22205# scripts and configure runs, see configure's option --config-cache. 22206# It is not useful on other systems. If it contains results you don't 22207# want to keep, you may remove or edit it. 22208# 22209# config.status only pays attention to the cache file if you give it 22210# the --recheck option to rerun configure. 22211# 22212# 'ac_cv_env_foo' variables (set or unset) will be overridden when 22213# loading this file, other *unset* 'ac_cv_foo' will be assigned the 22214# following values. 22215 22216_ACEOF 22217 22218# The following way of writing the cache mishandles newlines in values, 22219# but we know of no workaround that is simple, portable, and efficient. 22220# So, we kill variables containing newlines. 22221# Ultrix sh set writes to stderr and can't be redirected directly, 22222# and sets the high bit in the cache file unless we assign to the vars. 22223( 22224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22225 eval ac_val=\$$ac_var 22226 case $ac_val in #( 22227 *${as_nl}*) 22228 case $ac_var in #( 22229 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22230printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22231 esac 22232 case $ac_var in #( 22233 _ | IFS | as_nl) ;; #( 22234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22235 *) { eval $ac_var=; unset $ac_var;} ;; 22236 esac ;; 22237 esac 22238 done 22239 22240 (set) 2>&1 | 22241 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22242 *${as_nl}ac_space=\ *) 22243 # 'set' does not quote correctly, so add quotes: double-quote 22244 # substitution turns \\\\ into \\, and sed turns \\ into \. 22245 sed -n \ 22246 "s/'/'\\\\''/g; 22247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22248 ;; #( 22249 *) 22250 # 'set' quotes correctly as required by POSIX, so do not add quotes. 22251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22252 ;; 22253 esac | 22254 sort 22255) | 22256 sed ' 22257 /^ac_cv_env_/b end 22258 t clear 22259 :clear 22260 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 22261 t end 22262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22263 :end' >>confcache 22264if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22265 if test -w "$cache_file"; then 22266 if test "x$cache_file" != "x/dev/null"; then 22267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22268printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 22269 if test ! -f "$cache_file" || test -h "$cache_file"; then 22270 cat confcache >"$cache_file" 22271 else 22272 case $cache_file in #( 22273 */* | ?:*) 22274 mv -f confcache "$cache_file"$$ && 22275 mv -f "$cache_file"$$ "$cache_file" ;; #( 22276 *) 22277 mv -f confcache "$cache_file" ;; 22278 esac 22279 fi 22280 fi 22281 else 22282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22283printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 22284 fi 22285fi 22286rm -f confcache 22287 22288test "x$prefix" = xNONE && prefix=$ac_default_prefix 22289# Let make expand exec_prefix. 22290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22291 22292DEFS=-DHAVE_CONFIG_H 22293 22294ac_libobjs= 22295ac_ltlibobjs= 22296U= 22297for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22298 # 1. Remove the extension, and $U if already installed. 22299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22300 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 22301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22302 # will be set to the directory where LIBOBJS objects are built. 22303 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22304 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22305done 22306LIBOBJS=$ac_libobjs 22307 22308LTLIBOBJS=$ac_ltlibobjs 22309 22310 22311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22312printf %s "checking that generated files are newer than configure... " >&6; } 22313 if test -n "$am_sleep_pid"; then 22314 # Hide warnings about reused PIDs. 22315 wait $am_sleep_pid 2>/dev/null 22316 fi 22317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 22318printf "%s\n" "done" >&6; } 22319case $enable_silent_rules in # ((( 22320 yes) AM_DEFAULT_VERBOSITY=0;; 22321 no) AM_DEFAULT_VERBOSITY=1;; 22322esac 22323if test $am_cv_make_support_nested_variables = yes; then 22324 AM_V='$(V)' 22325 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 22326else 22327 AM_V=$AM_DEFAULT_VERBOSITY 22328 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 22329fi 22330 22331 if test -n "$EXEEXT"; then 22332 am__EXEEXT_TRUE= 22333 am__EXEEXT_FALSE='#' 22334else 22335 am__EXEEXT_TRUE='#' 22336 am__EXEEXT_FALSE= 22337fi 22338 22339if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22340 as_fn_error $? "conditional \"AMDEP\" was never defined. 22341Usually this means the macro was only invoked conditionally." "$LINENO" 5 22342fi 22343if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22345Usually this means the macro was only invoked conditionally." "$LINENO" 5 22346fi 22347if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 22348 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 22349Usually this means the macro was only invoked conditionally." "$LINENO" 5 22350fi 22351if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 22352 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 22353Usually this means the macro was only invoked conditionally." "$LINENO" 5 22354fi 22355if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 22356 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 22357Usually this means the macro was only invoked conditionally." "$LINENO" 5 22358fi 22359if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 22360 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 22361Usually this means the macro was only invoked conditionally." "$LINENO" 5 22362fi 22363if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 22364 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 22365Usually this means the macro was only invoked conditionally." "$LINENO" 5 22366fi 22367# Check whether --enable-year2038 was given. 22368if test ${enable_year2038+y} 22369then : 22370 enableval=$enable_year2038; 22371fi 22372 22373if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then 22374 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined. 22375Usually this means the macro was only invoked conditionally." "$LINENO" 5 22376fi 22377if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then 22378 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined. 22379Usually this means the macro was only invoked conditionally." "$LINENO" 5 22380fi 22381if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then 22382 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined. 22383Usually this means the macro was only invoked conditionally." "$LINENO" 5 22384fi 22385if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then 22386 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined. 22387Usually this means the macro was only invoked conditionally." "$LINENO" 5 22388fi 22389if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then 22390 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined. 22391Usually this means the macro was only invoked conditionally." "$LINENO" 5 22392fi 22393if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then 22394 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined. 22395Usually this means the macro was only invoked conditionally." "$LINENO" 5 22396fi 22397if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then 22398 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined. 22399Usually this means the macro was only invoked conditionally." "$LINENO" 5 22400fi 22401if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then 22402 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined. 22403Usually this means the macro was only invoked conditionally." "$LINENO" 5 22404fi 22405if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then 22406 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined. 22407Usually this means the macro was only invoked conditionally." "$LINENO" 5 22408fi 22409if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then 22410 as_fn_error $? "conditional \"XFONT_FC\" was never defined. 22411Usually this means the macro was only invoked conditionally." "$LINENO" 5 22412fi 22413 22414: "${CONFIG_STATUS=./config.status}" 22415ac_write_fail=0 22416ac_clean_files_save=$ac_clean_files 22417ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22419printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22420as_write_fail=0 22421cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22422#! $SHELL 22423# Generated by $as_me. 22424# Run this file to recreate the current configuration. 22425# Compiler output produced by configure, useful for debugging 22426# configure, is in config.log if it exists. 22427 22428debug=false 22429ac_cs_recheck=false 22430ac_cs_silent=false 22431 22432SHELL=\${CONFIG_SHELL-$SHELL} 22433export SHELL 22434_ASEOF 22435cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22436## -------------------- ## 22437## M4sh Initialization. ## 22438## -------------------- ## 22439 22440# Be more Bourne compatible 22441DUALCASE=1; export DUALCASE # for MKS sh 22442if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22443then : 22444 emulate sh 22445 NULLCMD=: 22446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22447 # is contrary to our usage. Disable this feature. 22448 alias -g '${1+"$@"}'='"$@"' 22449 setopt NO_GLOB_SUBST 22450else case e in #( 22451 e) case `(set -o) 2>/dev/null` in #( 22452 *posix*) : 22453 set -o posix ;; #( 22454 *) : 22455 ;; 22456esac ;; 22457esac 22458fi 22459 22460 22461 22462# Reset variables that may have inherited troublesome values from 22463# the environment. 22464 22465# IFS needs to be set, to space, tab, and newline, in precisely that order. 22466# (If _AS_PATH_WALK were called with IFS unset, it would have the 22467# side effect of setting IFS to empty, thus disabling word splitting.) 22468# Quoting is to prevent editors from complaining about space-tab. 22469as_nl=' 22470' 22471export as_nl 22472IFS=" "" $as_nl" 22473 22474PS1='$ ' 22475PS2='> ' 22476PS4='+ ' 22477 22478# Ensure predictable behavior from utilities with locale-dependent output. 22479LC_ALL=C 22480export LC_ALL 22481LANGUAGE=C 22482export LANGUAGE 22483 22484# We cannot yet rely on "unset" to work, but we need these variables 22485# to be unset--not just set to an empty or harmless value--now, to 22486# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22487# also avoids known problems related to "unset" and subshell syntax 22488# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22489for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22490do eval test \${$as_var+y} \ 22491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22492done 22493 22494# Ensure that fds 0, 1, and 2 are open. 22495if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22496if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22497if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22498 22499# The user is always right. 22500if ${PATH_SEPARATOR+false} :; then 22501 PATH_SEPARATOR=: 22502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22504 PATH_SEPARATOR=';' 22505 } 22506fi 22507 22508 22509# Find who we are. Look in the path if we contain no directory separator. 22510as_myself= 22511case $0 in #(( 22512 *[\\/]* ) as_myself=$0 ;; 22513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22514for as_dir in $PATH 22515do 22516 IFS=$as_save_IFS 22517 case $as_dir in #((( 22518 '') as_dir=./ ;; 22519 */) ;; 22520 *) as_dir=$as_dir/ ;; 22521 esac 22522 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22523 done 22524IFS=$as_save_IFS 22525 22526 ;; 22527esac 22528# We did not find ourselves, most probably we were run as 'sh COMMAND' 22529# in which case we are not to be found in the path. 22530if test "x$as_myself" = x; then 22531 as_myself=$0 22532fi 22533if test ! -f "$as_myself"; then 22534 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22535 exit 1 22536fi 22537 22538 22539 22540# as_fn_error STATUS ERROR [LINENO LOG_FD] 22541# ---------------------------------------- 22542# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22543# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22544# script with STATUS, using 1 if that was 0. 22545as_fn_error () 22546{ 22547 as_status=$1; test $as_status -eq 0 && as_status=1 22548 if test "$4"; then 22549 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22551 fi 22552 printf "%s\n" "$as_me: error: $2" >&2 22553 as_fn_exit $as_status 22554} # as_fn_error 22555 22556 22557# as_fn_set_status STATUS 22558# ----------------------- 22559# Set $? to STATUS, without forking. 22560as_fn_set_status () 22561{ 22562 return $1 22563} # as_fn_set_status 22564 22565# as_fn_exit STATUS 22566# ----------------- 22567# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22568as_fn_exit () 22569{ 22570 set +e 22571 as_fn_set_status $1 22572 exit $1 22573} # as_fn_exit 22574 22575# as_fn_unset VAR 22576# --------------- 22577# Portably unset VAR. 22578as_fn_unset () 22579{ 22580 { eval $1=; unset $1;} 22581} 22582as_unset=as_fn_unset 22583 22584# as_fn_append VAR VALUE 22585# ---------------------- 22586# Append the text in VALUE to the end of the definition contained in VAR. Take 22587# advantage of any shell optimizations that allow amortized linear growth over 22588# repeated appends, instead of the typical quadratic growth present in naive 22589# implementations. 22590if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22591then : 22592 eval 'as_fn_append () 22593 { 22594 eval $1+=\$2 22595 }' 22596else case e in #( 22597 e) as_fn_append () 22598 { 22599 eval $1=\$$1\$2 22600 } ;; 22601esac 22602fi # as_fn_append 22603 22604# as_fn_arith ARG... 22605# ------------------ 22606# Perform arithmetic evaluation on the ARGs, and store the result in the 22607# global $as_val. Take advantage of shells that can avoid forks. The arguments 22608# must be portable across $(()) and expr. 22609if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22610then : 22611 eval 'as_fn_arith () 22612 { 22613 as_val=$(( $* )) 22614 }' 22615else case e in #( 22616 e) as_fn_arith () 22617 { 22618 as_val=`expr "$@" || test $? -eq 1` 22619 } ;; 22620esac 22621fi # as_fn_arith 22622 22623 22624if expr a : '\(a\)' >/dev/null 2>&1 && 22625 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22626 as_expr=expr 22627else 22628 as_expr=false 22629fi 22630 22631if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22632 as_basename=basename 22633else 22634 as_basename=false 22635fi 22636 22637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22638 as_dirname=dirname 22639else 22640 as_dirname=false 22641fi 22642 22643as_me=`$as_basename -- "$0" || 22644$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22645 X"$0" : 'X\(//\)$' \| \ 22646 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22647printf "%s\n" X/"$0" | 22648 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22649 s//\1/ 22650 q 22651 } 22652 /^X\/\(\/\/\)$/{ 22653 s//\1/ 22654 q 22655 } 22656 /^X\/\(\/\).*/{ 22657 s//\1/ 22658 q 22659 } 22660 s/.*/./; q'` 22661 22662# Avoid depending upon Character Ranges. 22663as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22664as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22665as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22666as_cr_digits='0123456789' 22667as_cr_alnum=$as_cr_Letters$as_cr_digits 22668 22669 22670# Determine whether it's possible to make 'echo' print without a newline. 22671# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22672# for compatibility with existing Makefiles. 22673ECHO_C= ECHO_N= ECHO_T= 22674case `echo -n x` in #((((( 22675-n*) 22676 case `echo 'xy\c'` in 22677 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22678 xy) ECHO_C='\c';; 22679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22680 ECHO_T=' ';; 22681 esac;; 22682*) 22683 ECHO_N='-n';; 22684esac 22685 22686# For backward compatibility with old third-party macros, we provide 22687# the shell variables $as_echo and $as_echo_n. New code should use 22688# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22689as_echo='printf %s\n' 22690as_echo_n='printf %s' 22691 22692rm -f conf$$ conf$$.exe conf$$.file 22693if test -d conf$$.dir; then 22694 rm -f conf$$.dir/conf$$.file 22695else 22696 rm -f conf$$.dir 22697 mkdir conf$$.dir 2>/dev/null 22698fi 22699if (echo >conf$$.file) 2>/dev/null; then 22700 if ln -s conf$$.file conf$$ 2>/dev/null; then 22701 as_ln_s='ln -s' 22702 # ... but there are two gotchas: 22703 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22704 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22705 # In both cases, we have to default to 'cp -pR'. 22706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22707 as_ln_s='cp -pR' 22708 elif ln conf$$.file conf$$ 2>/dev/null; then 22709 as_ln_s=ln 22710 else 22711 as_ln_s='cp -pR' 22712 fi 22713else 22714 as_ln_s='cp -pR' 22715fi 22716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22717rmdir conf$$.dir 2>/dev/null 22718 22719 22720# as_fn_mkdir_p 22721# ------------- 22722# Create "$as_dir" as a directory, including parents if necessary. 22723as_fn_mkdir_p () 22724{ 22725 22726 case $as_dir in #( 22727 -*) as_dir=./$as_dir;; 22728 esac 22729 test -d "$as_dir" || eval $as_mkdir_p || { 22730 as_dirs= 22731 while :; do 22732 case $as_dir in #( 22733 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22734 *) as_qdir=$as_dir;; 22735 esac 22736 as_dirs="'$as_qdir' $as_dirs" 22737 as_dir=`$as_dirname -- "$as_dir" || 22738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22739 X"$as_dir" : 'X\(//\)[^/]' \| \ 22740 X"$as_dir" : 'X\(//\)$' \| \ 22741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22742printf "%s\n" X"$as_dir" | 22743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22744 s//\1/ 22745 q 22746 } 22747 /^X\(\/\/\)[^/].*/{ 22748 s//\1/ 22749 q 22750 } 22751 /^X\(\/\/\)$/{ 22752 s//\1/ 22753 q 22754 } 22755 /^X\(\/\).*/{ 22756 s//\1/ 22757 q 22758 } 22759 s/.*/./; q'` 22760 test -d "$as_dir" && break 22761 done 22762 test -z "$as_dirs" || eval "mkdir $as_dirs" 22763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22764 22765 22766} # as_fn_mkdir_p 22767if mkdir -p . 2>/dev/null; then 22768 as_mkdir_p='mkdir -p "$as_dir"' 22769else 22770 test -d ./-p && rmdir ./-p 22771 as_mkdir_p=false 22772fi 22773 22774 22775# as_fn_executable_p FILE 22776# ----------------------- 22777# Test if FILE is an executable regular file. 22778as_fn_executable_p () 22779{ 22780 test -f "$1" && test -x "$1" 22781} # as_fn_executable_p 22782as_test_x='test -x' 22783as_executable_p=as_fn_executable_p 22784 22785# Sed expression to map a string onto a valid CPP name. 22786as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22787as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22788 22789# Sed expression to map a string onto a valid variable name. 22790as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22791as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22792 22793 22794exec 6>&1 22795## ----------------------------------- ## 22796## Main body of $CONFIG_STATUS script. ## 22797## ----------------------------------- ## 22798_ASEOF 22799test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22800 22801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22802# Save the log message, to keep $0 and so on meaningful, and to 22803# report actual input values of CONFIG_FILES etc. instead of their 22804# values after options handling. 22805ac_log=" 22806This file was extended by libXfont2 $as_me 2.0.7, which was 22807generated by GNU Autoconf 2.72. Invocation command line was 22808 22809 CONFIG_FILES = $CONFIG_FILES 22810 CONFIG_HEADERS = $CONFIG_HEADERS 22811 CONFIG_LINKS = $CONFIG_LINKS 22812 CONFIG_COMMANDS = $CONFIG_COMMANDS 22813 $ $0 $@ 22814 22815on `(hostname || uname -n) 2>/dev/null | sed 1q` 22816" 22817 22818_ACEOF 22819 22820case $ac_config_files in *" 22821"*) set x $ac_config_files; shift; ac_config_files=$*;; 22822esac 22823 22824case $ac_config_headers in *" 22825"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22826esac 22827 22828 22829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22830# Files that config.status was made for. 22831config_files="$ac_config_files" 22832config_headers="$ac_config_headers" 22833config_commands="$ac_config_commands" 22834 22835_ACEOF 22836 22837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22838ac_cs_usage="\ 22839'$as_me' instantiates files and other configuration actions 22840from templates according to the current configuration. Unless the files 22841and actions are specified as TAGs, all are instantiated by default. 22842 22843Usage: $0 [OPTION]... [TAG]... 22844 22845 -h, --help print this help, then exit 22846 -V, --version print version number and configuration settings, then exit 22847 --config print configuration, then exit 22848 -q, --quiet, --silent 22849 do not print progress messages 22850 -d, --debug don't remove temporary files 22851 --recheck update $as_me by reconfiguring in the same conditions 22852 --file=FILE[:TEMPLATE] 22853 instantiate the configuration file FILE 22854 --header=FILE[:TEMPLATE] 22855 instantiate the configuration header FILE 22856 22857Configuration files: 22858$config_files 22859 22860Configuration headers: 22861$config_headers 22862 22863Configuration commands: 22864$config_commands 22865 22866Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>." 22867 22868_ACEOF 22869ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22870ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22872ac_cs_config='$ac_cs_config_escaped' 22873ac_cs_version="\\ 22874libXfont2 config.status 2.0.7 22875configured by $0, generated by GNU Autoconf 2.72, 22876 with options \\"\$ac_cs_config\\" 22877 22878Copyright (C) 2023 Free Software Foundation, Inc. 22879This config.status script is free software; the Free Software Foundation 22880gives unlimited permission to copy, distribute and modify it." 22881 22882ac_pwd='$ac_pwd' 22883srcdir='$srcdir' 22884INSTALL='$INSTALL' 22885MKDIR_P='$MKDIR_P' 22886AWK='$AWK' 22887test -n "\$AWK" || AWK=awk 22888_ACEOF 22889 22890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22891# The default lists apply if the user does not specify any file. 22892ac_need_defaults=: 22893while test $# != 0 22894do 22895 case $1 in 22896 --*=?*) 22897 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22899 ac_shift=: 22900 ;; 22901 --*=) 22902 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22903 ac_optarg= 22904 ac_shift=: 22905 ;; 22906 *) 22907 ac_option=$1 22908 ac_optarg=$2 22909 ac_shift=shift 22910 ;; 22911 esac 22912 22913 case $ac_option in 22914 # Handling of the options. 22915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22916 ac_cs_recheck=: ;; 22917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22918 printf "%s\n" "$ac_cs_version"; exit ;; 22919 --config | --confi | --conf | --con | --co | --c ) 22920 printf "%s\n" "$ac_cs_config"; exit ;; 22921 --debug | --debu | --deb | --de | --d | -d ) 22922 debug=: ;; 22923 --file | --fil | --fi | --f ) 22924 $ac_shift 22925 case $ac_optarg in 22926 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22927 '') as_fn_error $? "missing file argument" ;; 22928 esac 22929 as_fn_append CONFIG_FILES " '$ac_optarg'" 22930 ac_need_defaults=false;; 22931 --header | --heade | --head | --hea ) 22932 $ac_shift 22933 case $ac_optarg in 22934 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22935 esac 22936 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22937 ac_need_defaults=false;; 22938 --he | --h) 22939 # Conflict between --help and --header 22940 as_fn_error $? "ambiguous option: '$1' 22941Try '$0 --help' for more information.";; 22942 --help | --hel | -h ) 22943 printf "%s\n" "$ac_cs_usage"; exit ;; 22944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22945 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22946 ac_cs_silent=: ;; 22947 22948 # This is an error. 22949 -*) as_fn_error $? "unrecognized option: '$1' 22950Try '$0 --help' for more information." ;; 22951 22952 *) as_fn_append ac_config_targets " $1" 22953 ac_need_defaults=false ;; 22954 22955 esac 22956 shift 22957done 22958 22959ac_configure_extra_args= 22960 22961if $ac_cs_silent; then 22962 exec 6>/dev/null 22963 ac_configure_extra_args="$ac_configure_extra_args --silent" 22964fi 22965 22966_ACEOF 22967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22968if \$ac_cs_recheck; then 22969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22970 shift 22971 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22972 CONFIG_SHELL='$SHELL' 22973 export CONFIG_SHELL 22974 exec "\$@" 22975fi 22976 22977_ACEOF 22978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22979exec 5>>config.log 22980{ 22981 echo 22982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22983## Running $as_me. ## 22984_ASBOX 22985 printf "%s\n" "$ac_log" 22986} >&5 22987 22988_ACEOF 22989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22990# 22991# INIT-COMMANDS 22992# 22993AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22994 22995 22996# The HP-UX ksh and POSIX shell print the target directory to stdout 22997# if CDPATH is set. 22998(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22999 23000sed_quote_subst='$sed_quote_subst' 23001double_quote_subst='$double_quote_subst' 23002delay_variable_subst='$delay_variable_subst' 23003macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23004macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23005enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23006enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23007pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23008enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23009shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23010SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23011ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23012PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23013host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23014host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23015host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23016build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23017build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23018build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23019SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23020Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23021GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23022EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23023FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23024LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23025NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23026LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23027max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23028ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23029exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23030lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23031lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23032lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23033lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23034lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23035reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23036reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23037FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 23038OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23039deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23040file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23041file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23042want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23043DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23044sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23045AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23046lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 23047AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23048archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23049STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23050RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23051old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23052old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23053old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23054lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23055CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23056CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23057compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23058GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23059lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23060lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23061lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23062lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23063lt_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"`' 23064lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23065nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23066lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23067lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23068objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23069MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23070lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23071lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23072lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23073lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23074lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23075need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23076MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23077DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23078NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23079LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23080OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23081OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23082libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23083shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23084extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23085archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23086enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23087export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23088whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23089compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23090old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23091old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23092archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23093archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23094module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23095module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23096with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23097allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23098no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23099hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23100hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23101hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23102hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23103hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23104hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23105hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23106inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23107link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23108always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23109export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23110exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23111include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23112prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23113postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23114file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23115variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23116need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23117need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23118version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23119runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23120shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23121shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23122libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23123library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23124soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23125install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23126postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23127postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23128finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23129finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23130hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23131sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23132configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23133configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23134hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23135enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23136enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23137enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23138old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23139striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23140 23141LTCC='$LTCC' 23142LTCFLAGS='$LTCFLAGS' 23143compiler='$compiler_DEFAULT' 23144 23145# A function that is used when there is no print builtin or printf. 23146func_fallback_echo () 23147{ 23148 eval 'cat <<_LTECHO_EOF 23149\$1 23150_LTECHO_EOF' 23151} 23152 23153# Quote evaled strings. 23154for var in SHELL \ 23155ECHO \ 23156PATH_SEPARATOR \ 23157SED \ 23158GREP \ 23159EGREP \ 23160FGREP \ 23161LD \ 23162NM \ 23163LN_S \ 23164lt_SP2NL \ 23165lt_NL2SP \ 23166reload_flag \ 23167FILECMD \ 23168OBJDUMP \ 23169deplibs_check_method \ 23170file_magic_cmd \ 23171file_magic_glob \ 23172want_nocaseglob \ 23173DLLTOOL \ 23174sharedlib_from_linklib_cmd \ 23175AR \ 23176archiver_list_spec \ 23177STRIP \ 23178RANLIB \ 23179CC \ 23180CFLAGS \ 23181compiler \ 23182lt_cv_sys_global_symbol_pipe \ 23183lt_cv_sys_global_symbol_to_cdecl \ 23184lt_cv_sys_global_symbol_to_import \ 23185lt_cv_sys_global_symbol_to_c_name_address \ 23186lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23187lt_cv_nm_interface \ 23188nm_file_list_spec \ 23189lt_cv_truncate_bin \ 23190lt_prog_compiler_no_builtin_flag \ 23191lt_prog_compiler_pic \ 23192lt_prog_compiler_wl \ 23193lt_prog_compiler_static \ 23194lt_cv_prog_compiler_c_o \ 23195need_locks \ 23196MANIFEST_TOOL \ 23197DSYMUTIL \ 23198NMEDIT \ 23199LIPO \ 23200OTOOL \ 23201OTOOL64 \ 23202shrext_cmds \ 23203export_dynamic_flag_spec \ 23204whole_archive_flag_spec \ 23205compiler_needs_object \ 23206with_gnu_ld \ 23207allow_undefined_flag \ 23208no_undefined_flag \ 23209hardcode_libdir_flag_spec \ 23210hardcode_libdir_separator \ 23211exclude_expsyms \ 23212include_expsyms \ 23213file_list_spec \ 23214variables_saved_for_relink \ 23215libname_spec \ 23216library_names_spec \ 23217soname_spec \ 23218install_override_mode \ 23219finish_eval \ 23220old_striplib \ 23221striplib; do 23222 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23223 *[\\\\\\\`\\"\\\$]*) 23224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23225 ;; 23226 *) 23227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23228 ;; 23229 esac 23230done 23231 23232# Double-quote double-evaled strings. 23233for var in reload_cmds \ 23234old_postinstall_cmds \ 23235old_postuninstall_cmds \ 23236old_archive_cmds \ 23237extract_expsyms_cmds \ 23238old_archive_from_new_cmds \ 23239old_archive_from_expsyms_cmds \ 23240archive_cmds \ 23241archive_expsym_cmds \ 23242module_cmds \ 23243module_expsym_cmds \ 23244export_symbols_cmds \ 23245prelink_cmds \ 23246postlink_cmds \ 23247postinstall_cmds \ 23248postuninstall_cmds \ 23249finish_cmds \ 23250sys_lib_search_path_spec \ 23251configure_time_dlsearch_path \ 23252configure_time_lt_sys_library_path; do 23253 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23254 *[\\\\\\\`\\"\\\$]*) 23255 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23256 ;; 23257 *) 23258 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23259 ;; 23260 esac 23261done 23262 23263ac_aux_dir='$ac_aux_dir' 23264 23265# See if we are running on zsh, and set the options that allow our 23266# commands through without removal of \ escapes INIT. 23267if test -n "\${ZSH_VERSION+set}"; then 23268 setopt NO_GLOB_SUBST 23269fi 23270 23271 23272 PACKAGE='$PACKAGE' 23273 VERSION='$VERSION' 23274 RM='$RM' 23275 ofile='$ofile' 23276 23277 23278 23279 23280_ACEOF 23281 23282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23283 23284# Handling of arguments. 23285for ac_config_target in $ac_config_targets 23286do 23287 case $ac_config_target in 23288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23289 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23290 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23292 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23293 "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;; 23294 23295 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 23296 esac 23297done 23298 23299 23300# If the user did not use the arguments to specify the items to instantiate, 23301# then the envvar interface is used. Set only those that are not. 23302# We use the long form for the default assignment because of an extremely 23303# bizarre bug on SunOS 4.1.3. 23304if $ac_need_defaults; then 23305 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 23306 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 23307 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 23308fi 23309 23310# Have a temporary directory for convenience. Make it in the build tree 23311# simply because there is no reason against having it here, and in addition, 23312# creating and moving files from /tmp can sometimes cause problems. 23313# Hook for its removal unless debugging. 23314# Note that there is a small window in which the directory will not be cleaned: 23315# after its creation but before its name has been assigned to '$tmp'. 23316$debug || 23317{ 23318 tmp= ac_tmp= 23319 trap 'exit_status=$? 23320 : "${ac_tmp:=$tmp}" 23321 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23322' 0 23323 trap 'as_fn_exit 1' 1 2 13 15 23324} 23325# Create a (secure) tmp directory for tmp files. 23326 23327{ 23328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23329 test -d "$tmp" 23330} || 23331{ 23332 tmp=./conf$$-$RANDOM 23333 (umask 077 && mkdir "$tmp") 23334} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23335ac_tmp=$tmp 23336 23337# Set up the scripts for CONFIG_FILES section. 23338# No need to generate them if there are no CONFIG_FILES. 23339# This happens for instance with './config.status config.h'. 23340if test -n "$CONFIG_FILES"; then 23341 23342 23343ac_cr=`echo X | tr X '\015'` 23344# On cygwin, bash can eat \r inside `` if the user requested igncr. 23345# But we know of no other shell where ac_cr would be empty at this 23346# point, so we can use a bashism as a fallback. 23347if test "x$ac_cr" = x; then 23348 eval ac_cr=\$\'\\r\' 23349fi 23350ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23351if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23352 ac_cs_awk_cr='\\r' 23353else 23354 ac_cs_awk_cr=$ac_cr 23355fi 23356 23357echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23358_ACEOF 23359 23360 23361{ 23362 echo "cat >conf$$subs.awk <<_ACEOF" && 23363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23364 echo "_ACEOF" 23365} >conf$$subs.sh || 23366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23367ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23368ac_delim='%!_!# ' 23369for ac_last_try in false false false false false :; do 23370 . ./conf$$subs.sh || 23371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23372 23373 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23374 if test $ac_delim_n = $ac_delim_num; then 23375 break 23376 elif $ac_last_try; then 23377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23378 else 23379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23380 fi 23381done 23382rm -f conf$$subs.sh 23383 23384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23385cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23386_ACEOF 23387sed -n ' 23388h 23389s/^/S["/; s/!.*/"]=/ 23390p 23391g 23392s/^[^!]*!// 23393:repl 23394t repl 23395s/'"$ac_delim"'$// 23396t delim 23397:nl 23398h 23399s/\(.\{148\}\)..*/\1/ 23400t more1 23401s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23402p 23403n 23404b repl 23405:more1 23406s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23407p 23408g 23409s/.\{148\}// 23410t nl 23411:delim 23412h 23413s/\(.\{148\}\)..*/\1/ 23414t more2 23415s/["\\]/\\&/g; s/^/"/; s/$/"/ 23416p 23417b 23418:more2 23419s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23420p 23421g 23422s/.\{148\}// 23423t delim 23424' <conf$$subs.awk | sed ' 23425/^[^""]/{ 23426 N 23427 s/\n// 23428} 23429' >>$CONFIG_STATUS || ac_write_fail=1 23430rm -f conf$$subs.awk 23431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23432_ACAWK 23433cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23434 for (key in S) S_is_set[key] = 1 23435 FS = "" 23436 23437} 23438{ 23439 line = $ 0 23440 nfields = split(line, field, "@") 23441 substed = 0 23442 len = length(field[1]) 23443 for (i = 2; i < nfields; i++) { 23444 key = field[i] 23445 keylen = length(key) 23446 if (S_is_set[key]) { 23447 value = S[key] 23448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23449 len += length(value) + length(field[++i]) 23450 substed = 1 23451 } else 23452 len += 1 + keylen 23453 } 23454 23455 print line 23456} 23457 23458_ACAWK 23459_ACEOF 23460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23461if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23463else 23464 cat 23465fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23466 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23467_ACEOF 23468 23469# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23470# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23471# trailing colons and then remove the whole line if VPATH becomes empty 23472# (actually we leave an empty line to preserve line numbers). 23473if test "x$srcdir" = x.; then 23474 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23475h 23476s/// 23477s/^/:/ 23478s/[ ]*$/:/ 23479s/:\$(srcdir):/:/g 23480s/:\${srcdir}:/:/g 23481s/:@srcdir@:/:/g 23482s/^:*// 23483s/:*$// 23484x 23485s/\(=[ ]*\).*/\1/ 23486G 23487s/\n// 23488s/^[^=]*=[ ]*$// 23489}' 23490fi 23491 23492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23493fi # test -n "$CONFIG_FILES" 23494 23495# Set up the scripts for CONFIG_HEADERS section. 23496# No need to generate them if there are no CONFIG_HEADERS. 23497# This happens for instance with './config.status Makefile'. 23498if test -n "$CONFIG_HEADERS"; then 23499cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23500BEGIN { 23501_ACEOF 23502 23503# Transform confdefs.h into an awk script 'defines.awk', embedded as 23504# here-document in config.status, that substitutes the proper values into 23505# config.h.in to produce config.h. 23506 23507# Create a delimiter string that does not exist in confdefs.h, to ease 23508# handling of long lines. 23509ac_delim='%!_!# ' 23510for ac_last_try in false false :; do 23511 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23512 if test -z "$ac_tt"; then 23513 break 23514 elif $ac_last_try; then 23515 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23516 else 23517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23518 fi 23519done 23520 23521# For the awk script, D is an array of macro values keyed by name, 23522# likewise P contains macro parameters if any. Preserve backslash 23523# newline sequences. 23524 23525ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23526sed -n ' 23527s/.\{148\}/&'"$ac_delim"'/g 23528t rset 23529:rset 23530s/^[ ]*#[ ]*define[ ][ ]*/ / 23531t def 23532d 23533:def 23534s/\\$// 23535t bsnl 23536s/["\\]/\\&/g 23537s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23538D["\1"]=" \3"/p 23539s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23540d 23541:bsnl 23542s/["\\]/\\&/g 23543s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23544D["\1"]=" \3\\\\\\n"\\/p 23545t cont 23546s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23547t cont 23548d 23549:cont 23550n 23551s/.\{148\}/&'"$ac_delim"'/g 23552t clear 23553:clear 23554s/\\$// 23555t bsnlc 23556s/["\\]/\\&/g; s/^/"/; s/$/"/p 23557d 23558:bsnlc 23559s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23560b cont 23561' <confdefs.h | sed ' 23562s/'"$ac_delim"'/"\\\ 23563"/g' >>$CONFIG_STATUS || ac_write_fail=1 23564 23565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23566 for (key in D) D_is_set[key] = 1 23567 FS = "" 23568} 23569/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23570 line = \$ 0 23571 split(line, arg, " ") 23572 if (arg[1] == "#") { 23573 defundef = arg[2] 23574 mac1 = arg[3] 23575 } else { 23576 defundef = substr(arg[1], 2) 23577 mac1 = arg[2] 23578 } 23579 split(mac1, mac2, "(") #) 23580 macro = mac2[1] 23581 prefix = substr(line, 1, index(line, defundef) - 1) 23582 if (D_is_set[macro]) { 23583 # Preserve the white space surrounding the "#". 23584 print prefix "define", macro P[macro] D[macro] 23585 next 23586 } else { 23587 # Replace #undef with comments. This is necessary, for example, 23588 # in the case of _POSIX_SOURCE, which is predefined and required 23589 # on some systems where configure will not decide to define it. 23590 if (defundef == "undef") { 23591 print "/*", prefix defundef, macro, "*/" 23592 next 23593 } 23594 } 23595} 23596{ print } 23597_ACAWK 23598_ACEOF 23599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23600 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23601fi # test -n "$CONFIG_HEADERS" 23602 23603 23604eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23605shift 23606for ac_tag 23607do 23608 case $ac_tag in 23609 :[FHLC]) ac_mode=$ac_tag; continue;; 23610 esac 23611 case $ac_mode$ac_tag in 23612 :[FHL]*:*);; 23613 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23614 :[FH]-) ac_tag=-:-;; 23615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23616 esac 23617 ac_save_IFS=$IFS 23618 IFS=: 23619 set x $ac_tag 23620 IFS=$ac_save_IFS 23621 shift 23622 ac_file=$1 23623 shift 23624 23625 case $ac_mode in 23626 :L) ac_source=$1;; 23627 :[FH]) 23628 ac_file_inputs= 23629 for ac_f 23630 do 23631 case $ac_f in 23632 -) ac_f="$ac_tmp/stdin";; 23633 *) # Look for the file first in the build tree, then in the source tree 23634 # (if the path is not absolute). The absolute path cannot be DOS-style, 23635 # because $ac_f cannot contain ':'. 23636 test -f "$ac_f" || 23637 case $ac_f in 23638 [\\/$]*) false;; 23639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23640 esac || 23641 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23642 esac 23643 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23644 as_fn_append ac_file_inputs " '$ac_f'" 23645 done 23646 23647 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23648 # use $as_me), people would be surprised to read: 23649 # /* config.h. Generated by config.status. */ 23650 configure_input='Generated from '` 23651 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23652 `' by configure.' 23653 if test x"$ac_file" != x-; then 23654 configure_input="$ac_file. $configure_input" 23655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23656printf "%s\n" "$as_me: creating $ac_file" >&6;} 23657 fi 23658 # Neutralize special characters interpreted by sed in replacement strings. 23659 case $configure_input in #( 23660 *\&* | *\|* | *\\* ) 23661 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23662 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23663 *) ac_sed_conf_input=$configure_input;; 23664 esac 23665 23666 case $ac_tag in 23667 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23669 esac 23670 ;; 23671 esac 23672 23673 ac_dir=`$as_dirname -- "$ac_file" || 23674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23675 X"$ac_file" : 'X\(//\)[^/]' \| \ 23676 X"$ac_file" : 'X\(//\)$' \| \ 23677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23678printf "%s\n" X"$ac_file" | 23679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23680 s//\1/ 23681 q 23682 } 23683 /^X\(\/\/\)[^/].*/{ 23684 s//\1/ 23685 q 23686 } 23687 /^X\(\/\/\)$/{ 23688 s//\1/ 23689 q 23690 } 23691 /^X\(\/\).*/{ 23692 s//\1/ 23693 q 23694 } 23695 s/.*/./; q'` 23696 as_dir="$ac_dir"; as_fn_mkdir_p 23697 ac_builddir=. 23698 23699case "$ac_dir" in 23700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23701*) 23702 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23703 # A ".." for each directory in $ac_dir_suffix. 23704 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23705 case $ac_top_builddir_sub in 23706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23708 esac ;; 23709esac 23710ac_abs_top_builddir=$ac_pwd 23711ac_abs_builddir=$ac_pwd$ac_dir_suffix 23712# for backward compatibility: 23713ac_top_builddir=$ac_top_build_prefix 23714 23715case $srcdir in 23716 .) # We are building in place. 23717 ac_srcdir=. 23718 ac_top_srcdir=$ac_top_builddir_sub 23719 ac_abs_top_srcdir=$ac_pwd ;; 23720 [\\/]* | ?:[\\/]* ) # Absolute name. 23721 ac_srcdir=$srcdir$ac_dir_suffix; 23722 ac_top_srcdir=$srcdir 23723 ac_abs_top_srcdir=$srcdir ;; 23724 *) # Relative name. 23725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23726 ac_top_srcdir=$ac_top_build_prefix$srcdir 23727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23728esac 23729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23730 23731 23732 case $ac_mode in 23733 :F) 23734 # 23735 # CONFIG_FILE 23736 # 23737 23738 case $INSTALL in 23739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23741 esac 23742 ac_MKDIR_P=$MKDIR_P 23743 case $MKDIR_P in 23744 [\\/$]* | ?:[\\/]* ) ;; 23745 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23746 esac 23747_ACEOF 23748 23749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23750# If the template does not know about datarootdir, expand it. 23751# FIXME: This hack should be removed a few years after 2.60. 23752ac_datarootdir_hack=; ac_datarootdir_seen= 23753ac_sed_dataroot=' 23754/datarootdir/ { 23755 p 23756 q 23757} 23758/@datadir@/p 23759/@docdir@/p 23760/@infodir@/p 23761/@localedir@/p 23762/@mandir@/p' 23763case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23764*datarootdir*) ac_datarootdir_seen=yes;; 23765*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23767printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23768_ACEOF 23769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23770 ac_datarootdir_hack=' 23771 s&@datadir@&$datadir&g 23772 s&@docdir@&$docdir&g 23773 s&@infodir@&$infodir&g 23774 s&@localedir@&$localedir&g 23775 s&@mandir@&$mandir&g 23776 s&\\\${datarootdir}&$datarootdir&g' ;; 23777esac 23778_ACEOF 23779 23780# Neutralize VPATH when '$srcdir' = '.'. 23781# Shell code in configure.ac might set extrasub. 23782# FIXME: do we really want to maintain this feature? 23783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23784ac_sed_extra="$ac_vpsub 23785$extrasub 23786_ACEOF 23787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23788:t 23789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23790s|@configure_input@|$ac_sed_conf_input|;t t 23791s&@top_builddir@&$ac_top_builddir_sub&;t t 23792s&@top_build_prefix@&$ac_top_build_prefix&;t t 23793s&@srcdir@&$ac_srcdir&;t t 23794s&@abs_srcdir@&$ac_abs_srcdir&;t t 23795s&@top_srcdir@&$ac_top_srcdir&;t t 23796s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23797s&@builddir@&$ac_builddir&;t t 23798s&@abs_builddir@&$ac_abs_builddir&;t t 23799s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23800s&@INSTALL@&$ac_INSTALL&;t t 23801s&@MKDIR_P@&$ac_MKDIR_P&;t t 23802$ac_datarootdir_hack 23803" 23804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23806 23807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23810 "$ac_tmp/out"`; test -z "$ac_out"; } && 23811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23812which seems to be undefined. Please make sure it is defined" >&5 23813printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23814which seems to be undefined. Please make sure it is defined" >&2;} 23815 23816 rm -f "$ac_tmp/stdin" 23817 case $ac_file in 23818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23820 esac \ 23821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23822 ;; 23823 :H) 23824 # 23825 # CONFIG_HEADER 23826 # 23827 if test x"$ac_file" != x-; then 23828 { 23829 printf "%s\n" "/* $configure_input */" >&1 \ 23830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23831 } >"$ac_tmp/config.h" \ 23832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23833 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23835printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23836 else 23837 rm -f "$ac_file" 23838 mv "$ac_tmp/config.h" "$ac_file" \ 23839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23840 fi 23841 else 23842 printf "%s\n" "/* $configure_input */" >&1 \ 23843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23844 || as_fn_error $? "could not create -" "$LINENO" 5 23845 fi 23846# Compute "$ac_file"'s index in $config_headers. 23847_am_arg="$ac_file" 23848_am_stamp_count=1 23849for _am_header in $config_headers :; do 23850 case $_am_header in 23851 $_am_arg | $_am_arg:* ) 23852 break ;; 23853 * ) 23854 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23855 esac 23856done 23857echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23858$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23859 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23860 X"$_am_arg" : 'X\(//\)$' \| \ 23861 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23862printf "%s\n" X"$_am_arg" | 23863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23864 s//\1/ 23865 q 23866 } 23867 /^X\(\/\/\)[^/].*/{ 23868 s//\1/ 23869 q 23870 } 23871 /^X\(\/\/\)$/{ 23872 s//\1/ 23873 q 23874 } 23875 /^X\(\/\).*/{ 23876 s//\1/ 23877 q 23878 } 23879 s/.*/./; q'`/stamp-h$_am_stamp_count 23880 ;; 23881 23882 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23883printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23884 ;; 23885 esac 23886 23887 23888 case $ac_file$ac_mode in 23889 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23890 # Older Autoconf quotes --file arguments for eval, but not when files 23891 # are listed without --file. Let's play safe and only enable the eval 23892 # if we detect the quoting. 23893 # TODO: see whether this extra hack can be removed once we start 23894 # requiring Autoconf 2.70 or later. 23895 case $CONFIG_FILES in #( 23896 *\'*) : 23897 eval set x "$CONFIG_FILES" ;; #( 23898 *) : 23899 set x $CONFIG_FILES ;; #( 23900 *) : 23901 ;; 23902esac 23903 shift 23904 # Used to flag and report bootstrapping failures. 23905 am_rc=0 23906 for am_mf 23907 do 23908 # Strip MF so we end up with the name of the file. 23909 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23910 # Check whether this is an Automake generated Makefile which includes 23911 # dependency-tracking related rules and includes. 23912 # Grep'ing the whole file directly is not great: AIX grep has a line 23913 # limit of 2048, but all sed's we know have understand at least 4000. 23914 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23915 || continue 23916 am_dirpart=`$as_dirname -- "$am_mf" || 23917$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23918 X"$am_mf" : 'X\(//\)[^/]' \| \ 23919 X"$am_mf" : 'X\(//\)$' \| \ 23920 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23921printf "%s\n" X"$am_mf" | 23922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23923 s//\1/ 23924 q 23925 } 23926 /^X\(\/\/\)[^/].*/{ 23927 s//\1/ 23928 q 23929 } 23930 /^X\(\/\/\)$/{ 23931 s//\1/ 23932 q 23933 } 23934 /^X\(\/\).*/{ 23935 s//\1/ 23936 q 23937 } 23938 s/.*/./; q'` 23939 am_filepart=`$as_basename -- "$am_mf" || 23940$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23941 X"$am_mf" : 'X\(//\)$' \| \ 23942 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23943printf "%s\n" X/"$am_mf" | 23944 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23945 s//\1/ 23946 q 23947 } 23948 /^X\/\(\/\/\)$/{ 23949 s//\1/ 23950 q 23951 } 23952 /^X\/\(\/\).*/{ 23953 s//\1/ 23954 q 23955 } 23956 s/.*/./; q'` 23957 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23958 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23959 | $MAKE -f - am--depfiles" >&5 23960 (cd "$am_dirpart" \ 23961 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23962 | $MAKE -f - am--depfiles) >&5 2>&5 23963 ac_status=$? 23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23965 (exit $ac_status); } || am_rc=$? 23966 done 23967 if test $am_rc -ne 0; then 23968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23969printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23970as_fn_error $? "Something went wrong bootstrapping makefile fragments 23971 for automatic dependency tracking. If GNU make was not used, consider 23972 re-running the configure script with MAKE=\"gmake\" (or whatever is 23973 necessary). You can also try re-running configure with the 23974 '--disable-dependency-tracking' option to at least be able to build 23975 the package (albeit without support for automatic dependency tracking). 23976See 'config.log' for more details" "$LINENO" 5; } 23977 fi 23978 { am_dirpart=; unset am_dirpart;} 23979 { am_filepart=; unset am_filepart;} 23980 { am_mf=; unset am_mf;} 23981 { am_rc=; unset am_rc;} 23982 rm -f conftest-deps.mk 23983} 23984 ;; 23985 "libtool":C) 23986 23987 # See if we are running on zsh, and set the options that allow our 23988 # commands through without removal of \ escapes. 23989 if test -n "${ZSH_VERSION+set}"; then 23990 setopt NO_GLOB_SUBST 23991 fi 23992 23993 cfgfile=${ofile}T 23994 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23995 $RM "$cfgfile" 23996 23997 cat <<_LT_EOF >> "$cfgfile" 23998#! $SHELL 23999# Generated automatically by $as_me ($PACKAGE) $VERSION 24000# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24001# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24002 24003# Provide generalized library-building support services. 24004# Written by Gordon Matzigkeit, 1996 24005 24006# Copyright (C) 2014 Free Software Foundation, Inc. 24007# This is free software; see the source for copying conditions. There is NO 24008# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24009 24010# GNU Libtool is free software; you can redistribute it and/or modify 24011# it under the terms of the GNU General Public License as published by 24012# the Free Software Foundation; either version 2 of of the License, or 24013# (at your option) any later version. 24014# 24015# As a special exception to the GNU General Public License, if you 24016# distribute this file as part of a program or library that is built 24017# using GNU Libtool, you may include this file under the same 24018# distribution terms that you use for the rest of that program. 24019# 24020# GNU Libtool is distributed in the hope that it will be useful, but 24021# WITHOUT ANY WARRANTY; without even the implied warranty of 24022# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24023# GNU General Public License for more details. 24024# 24025# You should have received a copy of the GNU General Public License 24026# along with this program. If not, see <http://www.gnu.org/licenses/>. 24027 24028 24029# The names of the tagged configurations supported by this script. 24030available_tags='' 24031 24032# Configured defaults for sys_lib_dlsearch_path munging. 24033: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24034 24035# ### BEGIN LIBTOOL CONFIG 24036 24037# Which release of libtool.m4 was used? 24038macro_version=$macro_version 24039macro_revision=$macro_revision 24040 24041# Whether or not to build shared libraries. 24042build_libtool_libs=$enable_shared 24043 24044# Whether or not to build static libraries. 24045build_old_libs=$enable_static 24046 24047# What type of objects to build. 24048pic_mode=$pic_mode 24049 24050# Whether or not to optimize for fast installation. 24051fast_install=$enable_fast_install 24052 24053# Shared archive member basename,for filename based shared library versioning on AIX. 24054shared_archive_member_spec=$shared_archive_member_spec 24055 24056# Shell to use when invoking shell scripts. 24057SHELL=$lt_SHELL 24058 24059# An echo program that protects backslashes. 24060ECHO=$lt_ECHO 24061 24062# The PATH separator for the build system. 24063PATH_SEPARATOR=$lt_PATH_SEPARATOR 24064 24065# The host system. 24066host_alias=$host_alias 24067host=$host 24068host_os=$host_os 24069 24070# The build system. 24071build_alias=$build_alias 24072build=$build 24073build_os=$build_os 24074 24075# A sed program that does not truncate output. 24076SED=$lt_SED 24077 24078# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24079Xsed="\$SED -e 1s/^X//" 24080 24081# A grep program that handles long lines. 24082GREP=$lt_GREP 24083 24084# An ERE matcher. 24085EGREP=$lt_EGREP 24086 24087# A literal string matcher. 24088FGREP=$lt_FGREP 24089 24090# A BSD- or MS-compatible name lister. 24091NM=$lt_NM 24092 24093# Whether we need soft or hard links. 24094LN_S=$lt_LN_S 24095 24096# What is the maximum length of a command? 24097max_cmd_len=$max_cmd_len 24098 24099# Object file suffix (normally "o"). 24100objext=$ac_objext 24101 24102# Executable file suffix (normally ""). 24103exeext=$exeext 24104 24105# whether the shell understands "unset". 24106lt_unset=$lt_unset 24107 24108# turn spaces into newlines. 24109SP2NL=$lt_lt_SP2NL 24110 24111# turn newlines into spaces. 24112NL2SP=$lt_lt_NL2SP 24113 24114# convert \$build file names to \$host format. 24115to_host_file_cmd=$lt_cv_to_host_file_cmd 24116 24117# convert \$build files to toolchain format. 24118to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24119 24120# A file(cmd) program that detects file types. 24121FILECMD=$lt_FILECMD 24122 24123# An object symbol dumper. 24124OBJDUMP=$lt_OBJDUMP 24125 24126# Method to check whether dependent libraries are shared objects. 24127deplibs_check_method=$lt_deplibs_check_method 24128 24129# Command to use when deplibs_check_method = "file_magic". 24130file_magic_cmd=$lt_file_magic_cmd 24131 24132# How to find potential files when deplibs_check_method = "file_magic". 24133file_magic_glob=$lt_file_magic_glob 24134 24135# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24136want_nocaseglob=$lt_want_nocaseglob 24137 24138# DLL creation program. 24139DLLTOOL=$lt_DLLTOOL 24140 24141# Command to associate shared and link libraries. 24142sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24143 24144# The archiver. 24145AR=$lt_AR 24146 24147# Flags to create an archive (by configure). 24148lt_ar_flags=$lt_ar_flags 24149 24150# Flags to create an archive. 24151AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 24152 24153# How to feed a file listing to the archiver. 24154archiver_list_spec=$lt_archiver_list_spec 24155 24156# A symbol stripping program. 24157STRIP=$lt_STRIP 24158 24159# Commands used to install an old-style archive. 24160RANLIB=$lt_RANLIB 24161old_postinstall_cmds=$lt_old_postinstall_cmds 24162old_postuninstall_cmds=$lt_old_postuninstall_cmds 24163 24164# Whether to use a lock for old archive extraction. 24165lock_old_archive_extraction=$lock_old_archive_extraction 24166 24167# A C compiler. 24168LTCC=$lt_CC 24169 24170# LTCC compiler flags. 24171LTCFLAGS=$lt_CFLAGS 24172 24173# Take the output of nm and produce a listing of raw symbols and C names. 24174global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24175 24176# Transform the output of nm in a proper C declaration. 24177global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24178 24179# Transform the output of nm into a list of symbols to manually relocate. 24180global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24181 24182# Transform the output of nm in a C name address pair. 24183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24184 24185# Transform the output of nm in a C name address pair when lib prefix is needed. 24186global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24187 24188# The name lister interface. 24189nm_interface=$lt_lt_cv_nm_interface 24190 24191# Specify filename containing input files for \$NM. 24192nm_file_list_spec=$lt_nm_file_list_spec 24193 24194# The root where to search for dependent libraries,and where our libraries should be installed. 24195lt_sysroot=$lt_sysroot 24196 24197# Command to truncate a binary pipe. 24198lt_truncate_bin=$lt_lt_cv_truncate_bin 24199 24200# The name of the directory that contains temporary libtool files. 24201objdir=$objdir 24202 24203# Used to examine libraries when file_magic_cmd begins with "file". 24204MAGIC_CMD=$MAGIC_CMD 24205 24206# Must we lock files when doing compilation? 24207need_locks=$lt_need_locks 24208 24209# Manifest tool. 24210MANIFEST_TOOL=$lt_MANIFEST_TOOL 24211 24212# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24213DSYMUTIL=$lt_DSYMUTIL 24214 24215# Tool to change global to local symbols on Mac OS X. 24216NMEDIT=$lt_NMEDIT 24217 24218# Tool to manipulate fat objects and archives on Mac OS X. 24219LIPO=$lt_LIPO 24220 24221# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24222OTOOL=$lt_OTOOL 24223 24224# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24225OTOOL64=$lt_OTOOL64 24226 24227# Old archive suffix (normally "a"). 24228libext=$libext 24229 24230# Shared library suffix (normally ".so"). 24231shrext_cmds=$lt_shrext_cmds 24232 24233# The commands to extract the exported symbol list from a shared archive. 24234extract_expsyms_cmds=$lt_extract_expsyms_cmds 24235 24236# Variables whose values should be saved in libtool wrapper scripts and 24237# restored at link time. 24238variables_saved_for_relink=$lt_variables_saved_for_relink 24239 24240# Do we need the "lib" prefix for modules? 24241need_lib_prefix=$need_lib_prefix 24242 24243# Do we need a version for libraries? 24244need_version=$need_version 24245 24246# Library versioning type. 24247version_type=$version_type 24248 24249# Shared library runtime path variable. 24250runpath_var=$runpath_var 24251 24252# Shared library path variable. 24253shlibpath_var=$shlibpath_var 24254 24255# Is shlibpath searched before the hard-coded library search path? 24256shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24257 24258# Format of library name prefix. 24259libname_spec=$lt_libname_spec 24260 24261# List of archive names. First name is the real one, the rest are links. 24262# The last name is the one that the linker finds with -lNAME 24263library_names_spec=$lt_library_names_spec 24264 24265# The coded name of the library, if different from the real name. 24266soname_spec=$lt_soname_spec 24267 24268# Permission mode override for installation of shared libraries. 24269install_override_mode=$lt_install_override_mode 24270 24271# Command to use after installation of a shared archive. 24272postinstall_cmds=$lt_postinstall_cmds 24273 24274# Command to use after uninstallation of a shared archive. 24275postuninstall_cmds=$lt_postuninstall_cmds 24276 24277# Commands used to finish a libtool library installation in a directory. 24278finish_cmds=$lt_finish_cmds 24279 24280# As "finish_cmds", except a single script fragment to be evaled but 24281# not shown. 24282finish_eval=$lt_finish_eval 24283 24284# Whether we should hardcode library paths into libraries. 24285hardcode_into_libs=$hardcode_into_libs 24286 24287# Compile-time system search path for libraries. 24288sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24289 24290# Detected run-time system search path for libraries. 24291sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24292 24293# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24294configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24295 24296# Whether dlopen is supported. 24297dlopen_support=$enable_dlopen 24298 24299# Whether dlopen of programs is supported. 24300dlopen_self=$enable_dlopen_self 24301 24302# Whether dlopen of statically linked programs is supported. 24303dlopen_self_static=$enable_dlopen_self_static 24304 24305# Commands to strip libraries. 24306old_striplib=$lt_old_striplib 24307striplib=$lt_striplib 24308 24309 24310# The linker used to build libraries. 24311LD=$lt_LD 24312 24313# How to create reloadable object files. 24314reload_flag=$lt_reload_flag 24315reload_cmds=$lt_reload_cmds 24316 24317# Commands used to build an old-style archive. 24318old_archive_cmds=$lt_old_archive_cmds 24319 24320# A language specific compiler. 24321CC=$lt_compiler 24322 24323# Is the compiler the GNU compiler? 24324with_gcc=$GCC 24325 24326# Compiler flag to turn off builtin functions. 24327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24328 24329# Additional compiler flags for building library objects. 24330pic_flag=$lt_lt_prog_compiler_pic 24331 24332# How to pass a linker flag through the compiler. 24333wl=$lt_lt_prog_compiler_wl 24334 24335# Compiler flag to prevent dynamic linking. 24336link_static_flag=$lt_lt_prog_compiler_static 24337 24338# Does compiler simultaneously support -c and -o options? 24339compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24340 24341# Whether or not to add -lc for building shared libraries. 24342build_libtool_need_lc=$archive_cmds_need_lc 24343 24344# Whether or not to disallow shared libs when runtime libs are static. 24345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24346 24347# Compiler flag to allow reflexive dlopens. 24348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24349 24350# Compiler flag to generate shared objects directly from archives. 24351whole_archive_flag_spec=$lt_whole_archive_flag_spec 24352 24353# Whether the compiler copes with passing no objects directly. 24354compiler_needs_object=$lt_compiler_needs_object 24355 24356# Create an old-style archive from a shared archive. 24357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24358 24359# Create a temporary old-style archive to link instead of a shared archive. 24360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24361 24362# Commands used to build a shared archive. 24363archive_cmds=$lt_archive_cmds 24364archive_expsym_cmds=$lt_archive_expsym_cmds 24365 24366# Commands used to build a loadable module if different from building 24367# a shared archive. 24368module_cmds=$lt_module_cmds 24369module_expsym_cmds=$lt_module_expsym_cmds 24370 24371# Whether we are building with GNU ld or not. 24372with_gnu_ld=$lt_with_gnu_ld 24373 24374# Flag that allows shared libraries with undefined symbols to be built. 24375allow_undefined_flag=$lt_allow_undefined_flag 24376 24377# Flag that enforces no undefined symbols. 24378no_undefined_flag=$lt_no_undefined_flag 24379 24380# Flag to hardcode \$libdir into a binary during linking. 24381# This must work even if \$libdir does not exist 24382hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24383 24384# Whether we need a single "-rpath" flag with a separated argument. 24385hardcode_libdir_separator=$lt_hardcode_libdir_separator 24386 24387# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24388# DIR into the resulting binary. 24389hardcode_direct=$hardcode_direct 24390 24391# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24392# DIR into the resulting binary and the resulting library dependency is 24393# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24394# library is relocated. 24395hardcode_direct_absolute=$hardcode_direct_absolute 24396 24397# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24398# into the resulting binary. 24399hardcode_minus_L=$hardcode_minus_L 24400 24401# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24402# into the resulting binary. 24403hardcode_shlibpath_var=$hardcode_shlibpath_var 24404 24405# Set to "yes" if building a shared library automatically hardcodes DIR 24406# into the library and all subsequent libraries and executables linked 24407# against it. 24408hardcode_automatic=$hardcode_automatic 24409 24410# Set to yes if linker adds runtime paths of dependent libraries 24411# to runtime path list. 24412inherit_rpath=$inherit_rpath 24413 24414# Whether libtool must link a program against all its dependency libraries. 24415link_all_deplibs=$link_all_deplibs 24416 24417# Set to "yes" if exported symbols are required. 24418always_export_symbols=$always_export_symbols 24419 24420# The commands to list exported symbols. 24421export_symbols_cmds=$lt_export_symbols_cmds 24422 24423# Symbols that should not be listed in the preloaded symbols. 24424exclude_expsyms=$lt_exclude_expsyms 24425 24426# Symbols that must always be exported. 24427include_expsyms=$lt_include_expsyms 24428 24429# Commands necessary for linking programs (against libraries) with templates. 24430prelink_cmds=$lt_prelink_cmds 24431 24432# Commands necessary for finishing linking programs. 24433postlink_cmds=$lt_postlink_cmds 24434 24435# Specify filename containing input files. 24436file_list_spec=$lt_file_list_spec 24437 24438# How to hardcode a shared library path into an executable. 24439hardcode_action=$hardcode_action 24440 24441# ### END LIBTOOL CONFIG 24442 24443_LT_EOF 24444 24445 cat <<'_LT_EOF' >> "$cfgfile" 24446 24447# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24448 24449# func_munge_path_list VARIABLE PATH 24450# ----------------------------------- 24451# VARIABLE is name of variable containing _space_ separated list of 24452# directories to be munged by the contents of PATH, which is string 24453# having a format: 24454# "DIR[:DIR]:" 24455# string "DIR[ DIR]" will be prepended to VARIABLE 24456# ":DIR[:DIR]" 24457# string "DIR[ DIR]" will be appended to VARIABLE 24458# "DIRP[:DIRP]::[DIRA:]DIRA" 24459# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24460# "DIRA[ DIRA]" will be appended to VARIABLE 24461# "DIR[:DIR]" 24462# VARIABLE will be replaced by "DIR[ DIR]" 24463func_munge_path_list () 24464{ 24465 case x$2 in 24466 x) 24467 ;; 24468 *:) 24469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24470 ;; 24471 x:*) 24472 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24473 ;; 24474 *::*) 24475 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24476 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24477 ;; 24478 *) 24479 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24480 ;; 24481 esac 24482} 24483 24484 24485# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24486func_cc_basename () 24487{ 24488 for cc_temp in $*""; do 24489 case $cc_temp in 24490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24492 \-*) ;; 24493 *) break;; 24494 esac 24495 done 24496 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24497} 24498 24499 24500# ### END FUNCTIONS SHARED WITH CONFIGURE 24501 24502_LT_EOF 24503 24504 case $host_os in 24505 aix3*) 24506 cat <<\_LT_EOF >> "$cfgfile" 24507# AIX sometimes has problems with the GCC collect2 program. For some 24508# reason, if we set the COLLECT_NAMES environment variable, the problems 24509# vanish in a puff of smoke. 24510if test set != "${COLLECT_NAMES+set}"; then 24511 COLLECT_NAMES= 24512 export COLLECT_NAMES 24513fi 24514_LT_EOF 24515 ;; 24516 esac 24517 24518 24519 24520ltmain=$ac_aux_dir/ltmain.sh 24521 24522 24523 # We use sed instead of cat because bash on DJGPP gets confused if 24524 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24525 # text mode, it properly converts lines to CR/LF. This bash problem 24526 # is reportedly fixed, but why not run on old versions too? 24527 $SED '$q' "$ltmain" >> "$cfgfile" \ 24528 || (rm -f "$cfgfile"; exit 1) 24529 24530 mv -f "$cfgfile" "$ofile" || 24531 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24532 chmod +x "$ofile" 24533 24534 ;; 24535 24536 esac 24537done # for ac_tag 24538 24539 24540as_fn_exit 0 24541_ACEOF 24542ac_clean_files=$ac_clean_files_save 24543 24544test $ac_write_fail = 0 || 24545 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24546 24547 24548# configure is writing to config.log, and then calls config.status. 24549# config.status does its own redirection, appending to config.log. 24550# Unfortunately, on DOS this fails, as config.log is still kept open 24551# by configure, so config.status won't be able to write to it; its 24552# output is simply discarded. So we exec the FD to /dev/null, 24553# effectively closing config.log, so it can be properly (re)opened and 24554# appended to by config.status. When coming back to configure, we 24555# need to make the FD available again. 24556if test "$no_create" != yes; then 24557 ac_cs_success=: 24558 ac_config_status_args= 24559 test "$silent" = yes && 24560 ac_config_status_args="$ac_config_status_args --quiet" 24561 exec 5>/dev/null 24562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24563 exec 5>>config.log 24564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24565 # would make configure fail if this is the last instruction. 24566 $ac_cs_success || as_fn_exit 1 24567fi 24568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24570printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24571fi 24572 24573 24574