configure revision 9e7bcd65
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXt 1.1.4. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 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 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libXt' 633PACKAGE_TARNAME='libXt' 634PACKAGE_VERSION='1.1.4' 635PACKAGE_STRING='libXt 1.1.4' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639ac_unique_file="Makefile.am" 640# Factoring default headers for most tests. 641ac_includes_default="\ 642#include <stdio.h> 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef STDC_HEADERS 650# include <stdlib.h> 651# include <stddef.h> 652#else 653# ifdef HAVE_STDLIB_H 654# include <stdlib.h> 655# endif 656#endif 657#ifdef HAVE_STRING_H 658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659# include <memory.h> 660# endif 661# include <string.h> 662#endif 663#ifdef HAVE_STRINGS_H 664# include <strings.h> 665#endif 666#ifdef HAVE_INTTYPES_H 667# include <inttypes.h> 668#endif 669#ifdef HAVE_STDINT_H 670# include <stdint.h> 671#endif 672#ifdef HAVE_UNISTD_H 673# include <unistd.h> 674#endif" 675 676ac_subst_vars='am__EXEEXT_FALSE 677am__EXEEXT_TRUE 678LTLIBOBJS 679LIBOBJS 680ERRORDBDIR 681STRINGSABIOPTIONS 682appdefaultdir 683XFILESEARCHPATHDEFAULT 684MALLOC_DEBUG_ENV 685HAVE_GLIB_FALSE 686HAVE_GLIB_TRUE 687GLIB_LIBS 688GLIB_CFLAGS 689ENABLE_UNIT_TESTS_FALSE 690ENABLE_UNIT_TESTS_TRUE 691XORG_MALLOC_DEBUG_ENV 692LDFLAGS_FOR_BUILD 693CFLAGS_FOR_BUILD 694CC_FOR_BUILD 695XT_LIBS 696XT_CFLAGS 697HAVE_PERL_FALSE 698HAVE_PERL_TRUE 699PERL 700RAWCPPFLAGS 701RAWCPP 702HAVE_STYLESHEETS_FALSE 703HAVE_STYLESHEETS_TRUE 704XSL_STYLESHEET 705STYLESHEET_SRCDIR 706XORG_SGML_PATH 707HAVE_XSLTPROC_FALSE 708HAVE_XSLTPROC_TRUE 709XSLTPROC 710HAVE_FOP_FALSE 711HAVE_FOP_TRUE 712FOP 713HAVE_XMLTO_FALSE 714HAVE_XMLTO_TRUE 715HAVE_XMLTO_TEXT_FALSE 716HAVE_XMLTO_TEXT_TRUE 717XMLTO 718ENABLE_SPECS_FALSE 719ENABLE_SPECS_TRUE 720XTMALLOC_ZERO_CFLAGS 721XMALLOC_ZERO_CFLAGS 722MALLOC_ZERO_CFLAGS 723MAN_SUBSTS 724XORG_MAN_PAGE 725ADMIN_MAN_DIR 726DRIVER_MAN_DIR 727MISC_MAN_DIR 728FILE_MAN_DIR 729LIB_MAN_DIR 730APP_MAN_DIR 731ADMIN_MAN_SUFFIX 732DRIVER_MAN_SUFFIX 733MISC_MAN_SUFFIX 734FILE_MAN_SUFFIX 735LIB_MAN_SUFFIX 736APP_MAN_SUFFIX 737INSTALL_CMD 738PKG_CONFIG 739CHANGELOG_CMD 740STRICT_CFLAGS 741CWARNFLAGS 742BASE_CFLAGS 743CPP 744OTOOL64 745OTOOL 746LIPO 747NMEDIT 748DSYMUTIL 749MANIFEST_TOOL 750RANLIB 751ac_ct_AR 752AR 753DLLTOOL 754OBJDUMP 755LN_S 756NM 757ac_ct_DUMPBIN 758DUMPBIN 759LD 760FGREP 761EGREP 762GREP 763SED 764am__fastdepCC_FALSE 765am__fastdepCC_TRUE 766CCDEPMODE 767am__nodep 768AMDEPBACKSLASH 769AMDEP_FALSE 770AMDEP_TRUE 771am__quote 772am__include 773DEPDIR 774OBJEXT 775EXEEXT 776ac_ct_CC 777CPPFLAGS 778LDFLAGS 779CFLAGS 780CC 781host_os 782host_vendor 783host_cpu 784host 785build_os 786build_vendor 787build_cpu 788build 789LIBTOOL 790AM_BACKSLASH 791AM_DEFAULT_VERBOSITY 792AM_DEFAULT_V 793AM_V 794am__untar 795am__tar 796AMTAR 797am__leading_dot 798SET_MAKE 799AWK 800mkdir_p 801MKDIR_P 802INSTALL_STRIP_PROGRAM 803STRIP 804install_sh 805MAKEINFO 806AUTOHEADER 807AUTOMAKE 808AUTOCONF 809ACLOCAL 810VERSION 811PACKAGE 812CYGPATH_W 813am__isrc 814INSTALL_DATA 815INSTALL_SCRIPT 816INSTALL_PROGRAM 817target_alias 818host_alias 819build_alias 820LIBS 821ECHO_T 822ECHO_N 823ECHO_C 824DEFS 825mandir 826localedir 827libdir 828psdir 829pdfdir 830dvidir 831htmldir 832infodir 833docdir 834oldincludedir 835includedir 836localstatedir 837sharedstatedir 838sysconfdir 839datadir 840datarootdir 841libexecdir 842sbindir 843bindir 844program_transform_name 845prefix 846exec_prefix 847PACKAGE_URL 848PACKAGE_BUGREPORT 849PACKAGE_STRING 850PACKAGE_VERSION 851PACKAGE_TARNAME 852PACKAGE_NAME 853PATH_SEPARATOR 854SHELL' 855ac_subst_files='' 856ac_user_opts=' 857enable_option_checking 858enable_silent_rules 859enable_shared 860enable_static 861with_pic 862enable_fast_install 863enable_dependency_tracking 864with_gnu_ld 865with_sysroot 866enable_libtool_lock 867enable_selective_werror 868enable_strict_compilation 869enable_malloc0returnsnull 870enable_specs 871with_xmlto 872with_fop 873with_xsltproc 874with_perl 875enable_xkb 876enable_unit_tests 877with_glib 878with_xfile_search_path 879with_appdefaultdir 880' 881 ac_precious_vars='build_alias 882host_alias 883target_alias 884CC 885CFLAGS 886LDFLAGS 887LIBS 888CPPFLAGS 889CPP 890PKG_CONFIG 891XMLTO 892FOP 893XSLTPROC 894PERL 895XT_CFLAGS 896XT_LIBS 897XORG_MALLOC_DEBUG_ENV 898GLIB_CFLAGS 899GLIB_LIBS' 900 901 902# Initialize some variables set by options. 903ac_init_help= 904ac_init_version=false 905ac_unrecognized_opts= 906ac_unrecognized_sep= 907# The variables have the same names as the options, with 908# dashes changed to underlines. 909cache_file=/dev/null 910exec_prefix=NONE 911no_create= 912no_recursion= 913prefix=NONE 914program_prefix=NONE 915program_suffix=NONE 916program_transform_name=s,x,x, 917silent= 918site= 919srcdir= 920verbose= 921x_includes=NONE 922x_libraries=NONE 923 924# Installation directory options. 925# These are left unexpanded so users can "make install exec_prefix=/foo" 926# and all the variables that are supposed to be based on exec_prefix 927# by default will actually change. 928# Use braces instead of parens because sh, perl, etc. also accept them. 929# (The list follows the same order as the GNU Coding Standards.) 930bindir='${exec_prefix}/bin' 931sbindir='${exec_prefix}/sbin' 932libexecdir='${exec_prefix}/libexec' 933datarootdir='${prefix}/share' 934datadir='${datarootdir}' 935sysconfdir='${prefix}/etc' 936sharedstatedir='${prefix}/com' 937localstatedir='${prefix}/var' 938includedir='${prefix}/include' 939oldincludedir='/usr/include' 940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 941infodir='${datarootdir}/info' 942htmldir='${docdir}' 943dvidir='${docdir}' 944pdfdir='${docdir}' 945psdir='${docdir}' 946libdir='${exec_prefix}/lib' 947localedir='${datarootdir}/locale' 948mandir='${datarootdir}/man' 949 950ac_prev= 951ac_dashdash= 952for ac_option 953do 954 # If the previous option needs an argument, assign it. 955 if test -n "$ac_prev"; then 956 eval $ac_prev=\$ac_option 957 ac_prev= 958 continue 959 fi 960 961 case $ac_option in 962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 963 *=) ac_optarg= ;; 964 *) ac_optarg=yes ;; 965 esac 966 967 # Accept the important Cygnus configure options, so we can diagnose typos. 968 969 case $ac_dashdash$ac_option in 970 --) 971 ac_dashdash=yes ;; 972 973 -bindir | --bindir | --bindi | --bind | --bin | --bi) 974 ac_prev=bindir ;; 975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 976 bindir=$ac_optarg ;; 977 978 -build | --build | --buil | --bui | --bu) 979 ac_prev=build_alias ;; 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 981 build_alias=$ac_optarg ;; 982 983 -cache-file | --cache-file | --cache-fil | --cache-fi \ 984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 985 ac_prev=cache_file ;; 986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 988 cache_file=$ac_optarg ;; 989 990 --config-cache | -C) 991 cache_file=config.cache ;; 992 993 -datadir | --datadir | --datadi | --datad) 994 ac_prev=datadir ;; 995 -datadir=* | --datadir=* | --datadi=* | --datad=*) 996 datadir=$ac_optarg ;; 997 998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 999 | --dataroo | --dataro | --datar) 1000 ac_prev=datarootdir ;; 1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1003 datarootdir=$ac_optarg ;; 1004 1005 -disable-* | --disable-*) 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1009 as_fn_error $? "invalid feature name: $ac_useropt" 1010 ac_useropt_orig=$ac_useropt 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1012 case $ac_user_opts in 1013 *" 1014"enable_$ac_useropt" 1015"*) ;; 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1017 ac_unrecognized_sep=', ';; 1018 esac 1019 eval enable_$ac_useropt=no ;; 1020 1021 -docdir | --docdir | --docdi | --doc | --do) 1022 ac_prev=docdir ;; 1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1024 docdir=$ac_optarg ;; 1025 1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1027 ac_prev=dvidir ;; 1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1029 dvidir=$ac_optarg ;; 1030 1031 -enable-* | --enable-*) 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1033 # Reject names that are not valid shell variable names. 1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1035 as_fn_error $? "invalid feature name: $ac_useropt" 1036 ac_useropt_orig=$ac_useropt 1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1038 case $ac_user_opts in 1039 *" 1040"enable_$ac_useropt" 1041"*) ;; 1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1043 ac_unrecognized_sep=', ';; 1044 esac 1045 eval enable_$ac_useropt=\$ac_optarg ;; 1046 1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1049 | --exec | --exe | --ex) 1050 ac_prev=exec_prefix ;; 1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1053 | --exec=* | --exe=* | --ex=*) 1054 exec_prefix=$ac_optarg ;; 1055 1056 -gas | --gas | --ga | --g) 1057 # Obsolete; use --with-gas. 1058 with_gas=yes ;; 1059 1060 -help | --help | --hel | --he | -h) 1061 ac_init_help=long ;; 1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1063 ac_init_help=recursive ;; 1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1065 ac_init_help=short ;; 1066 1067 -host | --host | --hos | --ho) 1068 ac_prev=host_alias ;; 1069 -host=* | --host=* | --hos=* | --ho=*) 1070 host_alias=$ac_optarg ;; 1071 1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1073 ac_prev=htmldir ;; 1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1075 | --ht=*) 1076 htmldir=$ac_optarg ;; 1077 1078 -includedir | --includedir | --includedi | --included | --include \ 1079 | --includ | --inclu | --incl | --inc) 1080 ac_prev=includedir ;; 1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1082 | --includ=* | --inclu=* | --incl=* | --inc=*) 1083 includedir=$ac_optarg ;; 1084 1085 -infodir | --infodir | --infodi | --infod | --info | --inf) 1086 ac_prev=infodir ;; 1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1088 infodir=$ac_optarg ;; 1089 1090 -libdir | --libdir | --libdi | --libd) 1091 ac_prev=libdir ;; 1092 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1093 libdir=$ac_optarg ;; 1094 1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1096 | --libexe | --libex | --libe) 1097 ac_prev=libexecdir ;; 1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1099 | --libexe=* | --libex=* | --libe=*) 1100 libexecdir=$ac_optarg ;; 1101 1102 -localedir | --localedir | --localedi | --localed | --locale) 1103 ac_prev=localedir ;; 1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1105 localedir=$ac_optarg ;; 1106 1107 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1108 | --localstate | --localstat | --localsta | --localst | --locals) 1109 ac_prev=localstatedir ;; 1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1112 localstatedir=$ac_optarg ;; 1113 1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1115 ac_prev=mandir ;; 1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1117 mandir=$ac_optarg ;; 1118 1119 -nfp | --nfp | --nf) 1120 # Obsolete; use --without-fp. 1121 with_fp=no ;; 1122 1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1124 | --no-cr | --no-c | -n) 1125 no_create=yes ;; 1126 1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1129 no_recursion=yes ;; 1130 1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1133 | --oldin | --oldi | --old | --ol | --o) 1134 ac_prev=oldincludedir ;; 1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1138 oldincludedir=$ac_optarg ;; 1139 1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1141 ac_prev=prefix ;; 1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1143 prefix=$ac_optarg ;; 1144 1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1146 | --program-pre | --program-pr | --program-p) 1147 ac_prev=program_prefix ;; 1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1150 program_prefix=$ac_optarg ;; 1151 1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1153 | --program-suf | --program-su | --program-s) 1154 ac_prev=program_suffix ;; 1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1157 program_suffix=$ac_optarg ;; 1158 1159 -program-transform-name | --program-transform-name \ 1160 | --program-transform-nam | --program-transform-na \ 1161 | --program-transform-n | --program-transform- \ 1162 | --program-transform | --program-transfor \ 1163 | --program-transfo | --program-transf \ 1164 | --program-trans | --program-tran \ 1165 | --progr-tra | --program-tr | --program-t) 1166 ac_prev=program_transform_name ;; 1167 -program-transform-name=* | --program-transform-name=* \ 1168 | --program-transform-nam=* | --program-transform-na=* \ 1169 | --program-transform-n=* | --program-transform-=* \ 1170 | --program-transform=* | --program-transfor=* \ 1171 | --program-transfo=* | --program-transf=* \ 1172 | --program-trans=* | --program-tran=* \ 1173 | --progr-tra=* | --program-tr=* | --program-t=*) 1174 program_transform_name=$ac_optarg ;; 1175 1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1177 ac_prev=pdfdir ;; 1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1179 pdfdir=$ac_optarg ;; 1180 1181 -psdir | --psdir | --psdi | --psd | --ps) 1182 ac_prev=psdir ;; 1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1184 psdir=$ac_optarg ;; 1185 1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1187 | -silent | --silent | --silen | --sile | --sil) 1188 silent=yes ;; 1189 1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1191 ac_prev=sbindir ;; 1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1193 | --sbi=* | --sb=*) 1194 sbindir=$ac_optarg ;; 1195 1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1198 | --sharedst | --shareds | --shared | --share | --shar \ 1199 | --sha | --sh) 1200 ac_prev=sharedstatedir ;; 1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1204 | --sha=* | --sh=*) 1205 sharedstatedir=$ac_optarg ;; 1206 1207 -site | --site | --sit) 1208 ac_prev=site ;; 1209 -site=* | --site=* | --sit=*) 1210 site=$ac_optarg ;; 1211 1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1213 ac_prev=srcdir ;; 1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1215 srcdir=$ac_optarg ;; 1216 1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1218 | --syscon | --sysco | --sysc | --sys | --sy) 1219 ac_prev=sysconfdir ;; 1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1222 sysconfdir=$ac_optarg ;; 1223 1224 -target | --target | --targe | --targ | --tar | --ta | --t) 1225 ac_prev=target_alias ;; 1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1227 target_alias=$ac_optarg ;; 1228 1229 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1230 verbose=yes ;; 1231 1232 -version | --version | --versio | --versi | --vers | -V) 1233 ac_init_version=: ;; 1234 1235 -with-* | --with-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid package name: $ac_useropt" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"with_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval with_$ac_useropt=\$ac_optarg ;; 1250 1251 -without-* | --without-*) 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1255 as_fn_error $? "invalid package name: $ac_useropt" 1256 ac_useropt_orig=$ac_useropt 1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1258 case $ac_user_opts in 1259 *" 1260"with_$ac_useropt" 1261"*) ;; 1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1263 ac_unrecognized_sep=', ';; 1264 esac 1265 eval with_$ac_useropt=no ;; 1266 1267 --x) 1268 # Obsolete; use --with-x. 1269 with_x=yes ;; 1270 1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1272 | --x-incl | --x-inc | --x-in | --x-i) 1273 ac_prev=x_includes ;; 1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1276 x_includes=$ac_optarg ;; 1277 1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1280 ac_prev=x_libraries ;; 1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1283 x_libraries=$ac_optarg ;; 1284 1285 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1286Try \`$0 --help' for more information" 1287 ;; 1288 1289 *=*) 1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1291 # Reject names that are not valid shell variable names. 1292 case $ac_envvar in #( 1293 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1295 esac 1296 eval $ac_envvar=\$ac_optarg 1297 export $ac_envvar ;; 1298 1299 *) 1300 # FIXME: should be removed in autoconf 3.0. 1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1305 ;; 1306 1307 esac 1308done 1309 1310if test -n "$ac_prev"; then 1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1312 as_fn_error $? "missing argument to $ac_option" 1313fi 1314 1315if test -n "$ac_unrecognized_opts"; then 1316 case $enable_option_checking in 1317 no) ;; 1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1320 esac 1321fi 1322 1323# Check all directory arguments for consistency. 1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1325 datadir sysconfdir sharedstatedir localstatedir includedir \ 1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1327 libdir localedir mandir 1328do 1329 eval ac_val=\$$ac_var 1330 # Remove trailing slashes. 1331 case $ac_val in 1332 */ ) 1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1334 eval $ac_var=\$ac_val;; 1335 esac 1336 # Be sure to have absolute directory names. 1337 case $ac_val in 1338 [\\/$]* | ?:[\\/]* ) continue;; 1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1340 esac 1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1342done 1343 1344# There might be people who depend on the old broken behavior: `$host' 1345# used to hold the argument of --host etc. 1346# FIXME: To remove some day. 1347build=$build_alias 1348host=$host_alias 1349target=$target_alias 1350 1351# FIXME: To remove some day. 1352if test "x$host_alias" != x; then 1353 if test "x$build_alias" = x; then 1354 cross_compiling=maybe 1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1356 If a cross compiler is detected then cross compile mode will be used" >&2 1357 elif test "x$build_alias" != "x$host_alias"; then 1358 cross_compiling=yes 1359 fi 1360fi 1361 1362ac_tool_prefix= 1363test -n "$host_alias" && ac_tool_prefix=$host_alias- 1364 1365test "$silent" = yes && exec 6>/dev/null 1366 1367 1368ac_pwd=`pwd` && test -n "$ac_pwd" && 1369ac_ls_di=`ls -di .` && 1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1371 as_fn_error $? "working directory cannot be determined" 1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1373 as_fn_error $? "pwd does not report name of working directory" 1374 1375 1376# Find the source files, if location was not specified. 1377if test -z "$srcdir"; then 1378 ac_srcdir_defaulted=yes 1379 # Try the directory containing this script, then the parent directory. 1380 ac_confdir=`$as_dirname -- "$as_myself" || 1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1382 X"$as_myself" : 'X\(//\)[^/]' \| \ 1383 X"$as_myself" : 'X\(//\)$' \| \ 1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1385$as_echo X"$as_myself" | 1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\/\)[^/].*/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\/\)$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\).*/{ 1399 s//\1/ 1400 q 1401 } 1402 s/.*/./; q'` 1403 srcdir=$ac_confdir 1404 if test ! -r "$srcdir/$ac_unique_file"; then 1405 srcdir=.. 1406 fi 1407else 1408 ac_srcdir_defaulted=no 1409fi 1410if test ! -r "$srcdir/$ac_unique_file"; then 1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1413fi 1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1415ac_abs_confdir=`( 1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1417 pwd)` 1418# When building in place, set srcdir=. 1419if test "$ac_abs_confdir" = "$ac_pwd"; then 1420 srcdir=. 1421fi 1422# Remove unnecessary trailing slashes from srcdir. 1423# Double slashes in file names in object file debugging info 1424# mess up M-x gdb in Emacs. 1425case $srcdir in 1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1427esac 1428for ac_var in $ac_precious_vars; do 1429 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1430 eval ac_env_${ac_var}_value=\$${ac_var} 1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1432 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1433done 1434 1435# 1436# Report the --help message. 1437# 1438if test "$ac_init_help" = "long"; then 1439 # Omit some internal or obsolete options to make the list less imposing. 1440 # This message is too long to be a string in the A/UX 3.1 sh. 1441 cat <<_ACEOF 1442\`configure' configures libXt 1.1.4 to adapt to many kinds of systems. 1443 1444Usage: $0 [OPTION]... [VAR=VALUE]... 1445 1446To assign environment variables (e.g., CC, CFLAGS...), specify them as 1447VAR=VALUE. See below for descriptions of some of the useful variables. 1448 1449Defaults for the options are specified in brackets. 1450 1451Configuration: 1452 -h, --help display this help and exit 1453 --help=short display options specific to this package 1454 --help=recursive display the short help of all the included packages 1455 -V, --version display version information and exit 1456 -q, --quiet, --silent do not print \`checking ...' messages 1457 --cache-file=FILE cache test results in FILE [disabled] 1458 -C, --config-cache alias for \`--cache-file=config.cache' 1459 -n, --no-create do not create output files 1460 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1461 1462Installation directories: 1463 --prefix=PREFIX install architecture-independent files in PREFIX 1464 [$ac_default_prefix] 1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1466 [PREFIX] 1467 1468By default, \`make install' will install all the files in 1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1470an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1471for instance \`--prefix=\$HOME'. 1472 1473For better control, use the options below. 1474 1475Fine tuning of the installation directories: 1476 --bindir=DIR user executables [EPREFIX/bin] 1477 --sbindir=DIR system admin executables [EPREFIX/sbin] 1478 --libexecdir=DIR program executables [EPREFIX/libexec] 1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1482 --libdir=DIR object code libraries [EPREFIX/lib] 1483 --includedir=DIR C header files [PREFIX/include] 1484 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1487 --infodir=DIR info documentation [DATAROOTDIR/info] 1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1489 --mandir=DIR man documentation [DATAROOTDIR/man] 1490 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt] 1491 --htmldir=DIR html documentation [DOCDIR] 1492 --dvidir=DIR dvi documentation [DOCDIR] 1493 --pdfdir=DIR pdf documentation [DOCDIR] 1494 --psdir=DIR ps documentation [DOCDIR] 1495_ACEOF 1496 1497 cat <<\_ACEOF 1498 1499Program names: 1500 --program-prefix=PREFIX prepend PREFIX to installed program names 1501 --program-suffix=SUFFIX append SUFFIX to installed program names 1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1503 1504System types: 1505 --build=BUILD configure for building on BUILD [guessed] 1506 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1507_ACEOF 1508fi 1509 1510if test -n "$ac_init_help"; then 1511 case $ac_init_help in 1512 short | recursive ) echo "Configuration of libXt 1.1.4:";; 1513 esac 1514 cat <<\_ACEOF 1515 1516Optional Features: 1517 --disable-option-checking ignore unrecognized --enable/--with options 1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1520 --enable-silent-rules less verbose build output (undo: "make V=1") 1521 --disable-silent-rules verbose build output (undo: "make V=0") 1522 --enable-shared[=PKGS] build shared libraries [default=yes] 1523 --enable-static[=PKGS] build static libraries [default=yes] 1524 --enable-fast-install[=PKGS] 1525 optimize for fast installation [default=yes] 1526 --enable-dependency-tracking 1527 do not reject slow dependency extractors 1528 --disable-dependency-tracking 1529 speeds up one-time build 1530 --disable-libtool-lock avoid locking (might break parallel builds) 1531 --disable-selective-werror 1532 Turn off selective compiler errors. (default: 1533 enabled) 1534 --enable-strict-compilation 1535 Enable all warnings from compiler and make them 1536 errors (default: disabled) 1537 --enable-malloc0returnsnull 1538 malloc(0) returns NULL (default: auto) 1539 --enable-specs Enable building the specs (default: yes) 1540 --disable-xkb Disable XKB support 1541 --enable-unit-tests Enable building unit test cases (default: auto) 1542 1543Optional Packages: 1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1546 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1547 both] 1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1549 --with-sysroot=DIR Search for dependent libraries within DIR 1550 (or the compiler's sysroot if not specified). 1551 --with-xmlto Use xmlto to regenerate documentation (default: 1552 auto) 1553 --with-fop Use fop to regenerate documentation (default: auto) 1554 --with-xsltproc Use xsltproc for the transformation of XML documents 1555 (default: auto) 1556 --with-perl Use perl for extracting information from files 1557 (default: auto) 1558 --with-glib Use GLib library for unit testing (default: auto) 1559 --with-xfile-search-path=<path> 1560 Set path to search for app-defaults and other files 1561 --with-appdefaultdir=<path> 1562 Set app-default directory (default: 1563 ${datadir}/X11/app-defaults) 1564 1565Some influential environment variables: 1566 CC C compiler command 1567 CFLAGS C compiler flags 1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1569 nonstandard directory <lib dir> 1570 LIBS libraries to pass to the linker, e.g. -l<library> 1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1572 you have headers in a nonstandard directory <include dir> 1573 CPP C preprocessor 1574 PKG_CONFIG path to pkg-config utility 1575 XMLTO Path to xmlto command 1576 FOP Path to fop command 1577 XSLTPROC Path to xsltproc command 1578 PERL Path to perl command 1579 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1580 XT_LIBS linker flags for XT, overriding pkg-config 1581 XORG_MALLOC_DEBUG_ENV 1582 Environment variables to enable memory checking in tests 1583 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1584 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1585 1586Use these variables to override the choices made by `configure' or to help 1587it to find libraries and programs with nonstandard names/locations. 1588 1589Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1590_ACEOF 1591ac_status=$? 1592fi 1593 1594if test "$ac_init_help" = "recursive"; then 1595 # If there are subdirs, report their specific --help. 1596 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1597 test -d "$ac_dir" || 1598 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1599 continue 1600 ac_builddir=. 1601 1602case "$ac_dir" in 1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604*) 1605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1606 # A ".." for each directory in $ac_dir_suffix. 1607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1608 case $ac_top_builddir_sub in 1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1611 esac ;; 1612esac 1613ac_abs_top_builddir=$ac_pwd 1614ac_abs_builddir=$ac_pwd$ac_dir_suffix 1615# for backward compatibility: 1616ac_top_builddir=$ac_top_build_prefix 1617 1618case $srcdir in 1619 .) # We are building in place. 1620 ac_srcdir=. 1621 ac_top_srcdir=$ac_top_builddir_sub 1622 ac_abs_top_srcdir=$ac_pwd ;; 1623 [\\/]* | ?:[\\/]* ) # Absolute name. 1624 ac_srcdir=$srcdir$ac_dir_suffix; 1625 ac_top_srcdir=$srcdir 1626 ac_abs_top_srcdir=$srcdir ;; 1627 *) # Relative name. 1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1629 ac_top_srcdir=$ac_top_build_prefix$srcdir 1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1631esac 1632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1633 1634 cd "$ac_dir" || { ac_status=$?; continue; } 1635 # Check for guested configure. 1636 if test -f "$ac_srcdir/configure.gnu"; then 1637 echo && 1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1639 elif test -f "$ac_srcdir/configure"; then 1640 echo && 1641 $SHELL "$ac_srcdir/configure" --help=recursive 1642 else 1643 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1644 fi || ac_status=$? 1645 cd "$ac_pwd" || { ac_status=$?; break; } 1646 done 1647fi 1648 1649test -n "$ac_init_help" && exit $ac_status 1650if $ac_init_version; then 1651 cat <<\_ACEOF 1652libXt configure 1.1.4 1653generated by GNU Autoconf 2.68 1654 1655Copyright (C) 2010 Free Software Foundation, Inc. 1656This configure script is free software; the Free Software Foundation 1657gives unlimited permission to copy, distribute and modify it. 1658_ACEOF 1659 exit 1660fi 1661 1662## ------------------------ ## 1663## Autoconf initialization. ## 1664## ------------------------ ## 1665 1666# ac_fn_c_try_compile LINENO 1667# -------------------------- 1668# Try to compile conftest.$ac_ext, and return whether this succeeded. 1669ac_fn_c_try_compile () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext 1673 if { { ac_try="$ac_compile" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_compile") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest.$ac_objext; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 1698fi 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_compile 1703 1704# ac_fn_c_try_link LINENO 1705# ----------------------- 1706# Try to link conftest.$ac_ext, and return whether this succeeded. 1707ac_fn_c_try_link () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 rm -f conftest.$ac_objext conftest$ac_exeext 1711 if { { ac_try="$ac_link" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_link") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { 1727 test -z "$ac_c_werror_flag" || 1728 test ! -s conftest.err 1729 } && test -s conftest$ac_exeext && { 1730 test "$cross_compiling" = yes || 1731 $as_test_x conftest$ac_exeext 1732 }; then : 1733 ac_retval=0 1734else 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 1739fi 1740 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1741 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1742 # interfere with the next link command; also delete a directory that is 1743 # left behind by Apple's compiler. We do this before executing the actions. 1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_link 1749 1750# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1751# ------------------------------------------------------- 1752# Tests whether HEADER exists and can be compiled using the include files in 1753# INCLUDES, setting the cache variable VAR accordingly. 1754ac_fn_c_check_header_compile () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764$4 1765#include <$2> 1766_ACEOF 1767if ac_fn_c_try_compile "$LINENO"; then : 1768 eval "$3=yes" 1769else 1770 eval "$3=no" 1771fi 1772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1773fi 1774eval ac_res=\$$3 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1776$as_echo "$ac_res" >&6; } 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 1779} # ac_fn_c_check_header_compile 1780 1781# ac_fn_c_try_cpp LINENO 1782# ---------------------- 1783# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1784ac_fn_c_try_cpp () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if { { ac_try="$ac_cpp conftest.$ac_ext" 1788case "(($ac_try" in 1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1790 *) ac_try_echo=$ac_try;; 1791esac 1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1793$as_echo "$ac_try_echo"; } >&5 1794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1795 ac_status=$? 1796 if test -s conftest.err; then 1797 grep -v '^ *+' conftest.err >conftest.er1 1798 cat conftest.er1 >&5 1799 mv -f conftest.er1 conftest.err 1800 fi 1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1802 test $ac_status = 0; } > conftest.i && { 1803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1804 test ! -s conftest.err 1805 }; then : 1806 ac_retval=0 1807else 1808 $as_echo "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=1 1812fi 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_cpp 1817 1818# ac_fn_c_try_run LINENO 1819# ---------------------- 1820# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1821# that executables *can* be run. 1822ac_fn_c_try_run () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 if { { ac_try="$ac_link" 1826case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829esac 1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831$as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_link") 2>&5 1833 ac_status=$? 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1836 { { case "(($ac_try" in 1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1838 *) ac_try_echo=$ac_try;; 1839esac 1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1841$as_echo "$ac_try_echo"; } >&5 1842 (eval "$ac_try") 2>&5 1843 ac_status=$? 1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1845 test $ac_status = 0; }; }; then : 1846 ac_retval=0 1847else 1848 $as_echo "$as_me: program exited with status $ac_status" >&5 1849 $as_echo "$as_me: failed program was:" >&5 1850sed 's/^/| /' conftest.$ac_ext >&5 1851 1852 ac_retval=$ac_status 1853fi 1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 as_fn_set_status $ac_retval 1857 1858} # ac_fn_c_try_run 1859 1860# ac_fn_c_check_func LINENO FUNC VAR 1861# ---------------------------------- 1862# Tests whether FUNC exists, setting the cache variable VAR accordingly 1863ac_fn_c_check_func () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1867$as_echo_n "checking for $2... " >&6; } 1868if eval \${$3+:} false; then : 1869 $as_echo_n "(cached) " >&6 1870else 1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1872/* end confdefs.h. */ 1873/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1874 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1875#define $2 innocuous_$2 1876 1877/* System header to define __stub macros and hopefully few prototypes, 1878 which can conflict with char $2 (); below. 1879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1880 <limits.h> exists even on freestanding compilers. */ 1881 1882#ifdef __STDC__ 1883# include <limits.h> 1884#else 1885# include <assert.h> 1886#endif 1887 1888#undef $2 1889 1890/* Override any GCC internal prototype to avoid an error. 1891 Use char because int might match the return type of a GCC 1892 builtin and then its argument prototype would still apply. */ 1893#ifdef __cplusplus 1894extern "C" 1895#endif 1896char $2 (); 1897/* The GNU C library defines this for functions which it implements 1898 to always fail with ENOSYS. Some functions are actually named 1899 something starting with __ and the normal name is an alias. */ 1900#if defined __stub_$2 || defined __stub___$2 1901choke me 1902#endif 1903 1904int 1905main () 1906{ 1907return $2 (); 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_link "$LINENO"; then : 1913 eval "$3=yes" 1914else 1915 eval "$3=no" 1916fi 1917rm -f core conftest.err conftest.$ac_objext \ 1918 conftest$ac_exeext conftest.$ac_ext 1919fi 1920eval ac_res=\$$3 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922$as_echo "$ac_res" >&6; } 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 1925} # ac_fn_c_check_func 1926 1927# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1928# --------------------------------------------- 1929# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1930# accordingly. 1931ac_fn_c_check_decl () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 as_decl_name=`echo $2|sed 's/ *(.*//'` 1935 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1937$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1938if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940else 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943$4 1944int 1945main () 1946{ 1947#ifndef $as_decl_name 1948#ifdef __cplusplus 1949 (void) $as_decl_use; 1950#else 1951 (void) $as_decl_name; 1952#endif 1953#endif 1954 1955 ; 1956 return 0; 1957} 1958_ACEOF 1959if ac_fn_c_try_compile "$LINENO"; then : 1960 eval "$3=yes" 1961else 1962 eval "$3=no" 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 1971} # ac_fn_c_check_decl 1972 1973# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1974# ------------------------------------------------------- 1975# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1976# the include files in INCLUDES and setting the cache variable VAR 1977# accordingly. 1978ac_fn_c_check_header_mongrel () 1979{ 1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1981 if eval \${$3+:} false; then : 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1983$as_echo_n "checking for $2... " >&6; } 1984if eval \${$3+:} false; then : 1985 $as_echo_n "(cached) " >&6 1986fi 1987eval ac_res=\$$3 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1989$as_echo "$ac_res" >&6; } 1990else 1991 # Is the header compilable? 1992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1993$as_echo_n "checking $2 usability... " >&6; } 1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995/* end confdefs.h. */ 1996$4 1997#include <$2> 1998_ACEOF 1999if ac_fn_c_try_compile "$LINENO"; then : 2000 ac_header_compiler=yes 2001else 2002 ac_header_compiler=no 2003fi 2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2006$as_echo "$ac_header_compiler" >&6; } 2007 2008# Is the header present? 2009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2010$as_echo_n "checking $2 presence... " >&6; } 2011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013#include <$2> 2014_ACEOF 2015if ac_fn_c_try_cpp "$LINENO"; then : 2016 ac_header_preproc=yes 2017else 2018 ac_header_preproc=no 2019fi 2020rm -f conftest.err conftest.i conftest.$ac_ext 2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2022$as_echo "$ac_header_preproc" >&6; } 2023 2024# So? What about this header? 2025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2026 yes:no: ) 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2028$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2030$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2031 ;; 2032 no:yes:* ) 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2034$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2036$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2038$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2040$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2042$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2043( $as_echo "## ---------------------------------------------------------------------- ## 2044## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2045## ---------------------------------------------------------------------- ##" 2046 ) | sed "s/^/$as_me: WARNING: /" >&2 2047 ;; 2048esac 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2050$as_echo_n "checking for $2... " >&6; } 2051if eval \${$3+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 eval "$3=\$ac_header_compiler" 2055fi 2056eval ac_res=\$$3 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2058$as_echo "$ac_res" >&6; } 2059fi 2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2061 2062} # ac_fn_c_check_header_mongrel 2063cat >config.log <<_ACEOF 2064This file contains any messages produced by compilers while 2065running configure, to aid debugging if configure makes a mistake. 2066 2067It was created by libXt $as_me 1.1.4, which was 2068generated by GNU Autoconf 2.68. Invocation command line was 2069 2070 $ $0 $@ 2071 2072_ACEOF 2073exec 5>>config.log 2074{ 2075cat <<_ASUNAME 2076## --------- ## 2077## Platform. ## 2078## --------- ## 2079 2080hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2081uname -m = `(uname -m) 2>/dev/null || echo unknown` 2082uname -r = `(uname -r) 2>/dev/null || echo unknown` 2083uname -s = `(uname -s) 2>/dev/null || echo unknown` 2084uname -v = `(uname -v) 2>/dev/null || echo unknown` 2085 2086/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2087/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2088 2089/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2090/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2091/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2092/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2093/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2094/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2095/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2096 2097_ASUNAME 2098 2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2100for as_dir in $PATH 2101do 2102 IFS=$as_save_IFS 2103 test -z "$as_dir" && as_dir=. 2104 $as_echo "PATH: $as_dir" 2105 done 2106IFS=$as_save_IFS 2107 2108} >&5 2109 2110cat >&5 <<_ACEOF 2111 2112 2113## ----------- ## 2114## Core tests. ## 2115## ----------- ## 2116 2117_ACEOF 2118 2119 2120# Keep a trace of the command line. 2121# Strip out --no-create and --no-recursion so they do not pile up. 2122# Strip out --silent because we don't want to record it for future runs. 2123# Also quote any args containing shell meta-characters. 2124# Make two passes to allow for proper duplicate-argument suppression. 2125ac_configure_args= 2126ac_configure_args0= 2127ac_configure_args1= 2128ac_must_keep_next=false 2129for ac_pass in 1 2 2130do 2131 for ac_arg 2132 do 2133 case $ac_arg in 2134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2136 | -silent | --silent | --silen | --sile | --sil) 2137 continue ;; 2138 *\'*) 2139 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2140 esac 2141 case $ac_pass in 2142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2143 2) 2144 as_fn_append ac_configure_args1 " '$ac_arg'" 2145 if test $ac_must_keep_next = true; then 2146 ac_must_keep_next=false # Got value, back to normal. 2147 else 2148 case $ac_arg in 2149 *=* | --config-cache | -C | -disable-* | --disable-* \ 2150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2152 | -with-* | --with-* | -without-* | --without-* | --x) 2153 case "$ac_configure_args0 " in 2154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2155 esac 2156 ;; 2157 -* ) ac_must_keep_next=true ;; 2158 esac 2159 fi 2160 as_fn_append ac_configure_args " '$ac_arg'" 2161 ;; 2162 esac 2163 done 2164done 2165{ ac_configure_args0=; unset ac_configure_args0;} 2166{ ac_configure_args1=; unset ac_configure_args1;} 2167 2168# When interrupted or exit'd, cleanup temporary files, and complete 2169# config.log. We remove comments because anyway the quotes in there 2170# would cause problems or look ugly. 2171# WARNING: Use '\'' to represent an apostrophe within the trap. 2172# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2173trap 'exit_status=$? 2174 # Save into config.log some information that might help in debugging. 2175 { 2176 echo 2177 2178 $as_echo "## ---------------- ## 2179## Cache variables. ## 2180## ---------------- ##" 2181 echo 2182 # The following way of writing the cache mishandles newlines in values, 2183( 2184 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2185 eval ac_val=\$$ac_var 2186 case $ac_val in #( 2187 *${as_nl}*) 2188 case $ac_var in #( 2189 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2190$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2191 esac 2192 case $ac_var in #( 2193 _ | IFS | as_nl) ;; #( 2194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2195 *) { eval $ac_var=; unset $ac_var;} ;; 2196 esac ;; 2197 esac 2198 done 2199 (set) 2>&1 | 2200 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2201 *${as_nl}ac_space=\ *) 2202 sed -n \ 2203 "s/'\''/'\''\\\\'\'''\''/g; 2204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2205 ;; #( 2206 *) 2207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2208 ;; 2209 esac | 2210 sort 2211) 2212 echo 2213 2214 $as_echo "## ----------------- ## 2215## Output variables. ## 2216## ----------------- ##" 2217 echo 2218 for ac_var in $ac_subst_vars 2219 do 2220 eval ac_val=\$$ac_var 2221 case $ac_val in 2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2223 esac 2224 $as_echo "$ac_var='\''$ac_val'\''" 2225 done | sort 2226 echo 2227 2228 if test -n "$ac_subst_files"; then 2229 $as_echo "## ------------------- ## 2230## File substitutions. ## 2231## ------------------- ##" 2232 echo 2233 for ac_var in $ac_subst_files 2234 do 2235 eval ac_val=\$$ac_var 2236 case $ac_val in 2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2238 esac 2239 $as_echo "$ac_var='\''$ac_val'\''" 2240 done | sort 2241 echo 2242 fi 2243 2244 if test -s confdefs.h; then 2245 $as_echo "## ----------- ## 2246## confdefs.h. ## 2247## ----------- ##" 2248 echo 2249 cat confdefs.h 2250 echo 2251 fi 2252 test "$ac_signal" != 0 && 2253 $as_echo "$as_me: caught signal $ac_signal" 2254 $as_echo "$as_me: exit $exit_status" 2255 } >&5 2256 rm -f core *.core core.conftest.* && 2257 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2258 exit $exit_status 2259' 0 2260for ac_signal in 1 2 13 15; do 2261 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2262done 2263ac_signal=0 2264 2265# confdefs.h avoids OS command line length limits that DEFS can exceed. 2266rm -f -r conftest* confdefs.h 2267 2268$as_echo "/* confdefs.h */" > confdefs.h 2269 2270# Predefined preprocessor variables. 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_NAME "$PACKAGE_NAME" 2274_ACEOF 2275 2276cat >>confdefs.h <<_ACEOF 2277#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2278_ACEOF 2279 2280cat >>confdefs.h <<_ACEOF 2281#define PACKAGE_VERSION "$PACKAGE_VERSION" 2282_ACEOF 2283 2284cat >>confdefs.h <<_ACEOF 2285#define PACKAGE_STRING "$PACKAGE_STRING" 2286_ACEOF 2287 2288cat >>confdefs.h <<_ACEOF 2289#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2290_ACEOF 2291 2292cat >>confdefs.h <<_ACEOF 2293#define PACKAGE_URL "$PACKAGE_URL" 2294_ACEOF 2295 2296 2297# Let the site file select an alternate cache file if it wants to. 2298# Prefer an explicitly selected file to automatically selected ones. 2299ac_site_file1=NONE 2300ac_site_file2=NONE 2301if test -n "$CONFIG_SITE"; then 2302 # We do not want a PATH search for config.site. 2303 case $CONFIG_SITE in #(( 2304 -*) ac_site_file1=./$CONFIG_SITE;; 2305 */*) ac_site_file1=$CONFIG_SITE;; 2306 *) ac_site_file1=./$CONFIG_SITE;; 2307 esac 2308elif test "x$prefix" != xNONE; then 2309 ac_site_file1=$prefix/share/config.site 2310 ac_site_file2=$prefix/etc/config.site 2311else 2312 ac_site_file1=$ac_default_prefix/share/config.site 2313 ac_site_file2=$ac_default_prefix/etc/config.site 2314fi 2315for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2316do 2317 test "x$ac_site_file" = xNONE && continue 2318 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2320$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2321 sed 's/^/| /' "$ac_site_file" >&5 2322 . "$ac_site_file" \ 2323 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2325as_fn_error $? "failed to load site script $ac_site_file 2326See \`config.log' for more details" "$LINENO" 5; } 2327 fi 2328done 2329 2330if test -r "$cache_file"; then 2331 # Some versions of bash will fail to source /dev/null (special files 2332 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2333 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2335$as_echo "$as_me: loading cache $cache_file" >&6;} 2336 case $cache_file in 2337 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2338 *) . "./$cache_file";; 2339 esac 2340 fi 2341else 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2343$as_echo "$as_me: creating cache $cache_file" >&6;} 2344 >$cache_file 2345fi 2346 2347# Check that the precious variables saved in the cache have kept the same 2348# value. 2349ac_cache_corrupted=false 2350for ac_var in $ac_precious_vars; do 2351 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2352 eval ac_new_set=\$ac_env_${ac_var}_set 2353 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2354 eval ac_new_val=\$ac_env_${ac_var}_value 2355 case $ac_old_set,$ac_new_set in 2356 set,) 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2359 ac_cache_corrupted=: ;; 2360 ,set) 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2363 ac_cache_corrupted=: ;; 2364 ,);; 2365 *) 2366 if test "x$ac_old_val" != "x$ac_new_val"; then 2367 # differences in whitespace do not lead to failure. 2368 ac_old_val_w=`echo x $ac_old_val` 2369 ac_new_val_w=`echo x $ac_new_val` 2370 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2373 ac_cache_corrupted=: 2374 else 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2377 eval $ac_var=\$ac_old_val 2378 fi 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2380$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2382$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2383 fi;; 2384 esac 2385 # Pass precious variables to config.status. 2386 if test "$ac_new_set" = set; then 2387 case $ac_new_val in 2388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2389 *) ac_arg=$ac_var=$ac_new_val ;; 2390 esac 2391 case " $ac_configure_args " in 2392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2393 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2394 esac 2395 fi 2396done 2397if $ac_cache_corrupted; then 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2402 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2403fi 2404## -------------------- ## 2405## Main body of script. ## 2406## -------------------- ## 2407 2408ac_ext=c 2409ac_cpp='$CPP $CPPFLAGS' 2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2412ac_compiler_gnu=$ac_cv_c_compiler_gnu 2413 2414 2415 2416ac_config_headers="$ac_config_headers config.h" 2417 2418 2419 2420# Initialize Automake 2421am__api_version='1.13' 2422 2423ac_aux_dir= 2424for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2425 if test -f "$ac_dir/install-sh"; then 2426 ac_aux_dir=$ac_dir 2427 ac_install_sh="$ac_aux_dir/install-sh -c" 2428 break 2429 elif test -f "$ac_dir/install.sh"; then 2430 ac_aux_dir=$ac_dir 2431 ac_install_sh="$ac_aux_dir/install.sh -c" 2432 break 2433 elif test -f "$ac_dir/shtool"; then 2434 ac_aux_dir=$ac_dir 2435 ac_install_sh="$ac_aux_dir/shtool install -c" 2436 break 2437 fi 2438done 2439if test -z "$ac_aux_dir"; then 2440 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2441fi 2442 2443# These three variables are undocumented and unsupported, 2444# and are intended to be withdrawn in a future Autoconf release. 2445# They can cause serious problems if a builder's source tree is in a directory 2446# whose full name contains unusual characters. 2447ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2448ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2449ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2450 2451 2452# Find a good install program. We prefer a C program (faster), 2453# so one script is as good as another. But avoid the broken or 2454# incompatible versions: 2455# SysV /etc/install, /usr/sbin/install 2456# SunOS /usr/etc/install 2457# IRIX /sbin/install 2458# AIX /bin/install 2459# AmigaOS /C/install, which installs bootblocks on floppy discs 2460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2461# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2463# OS/2's system install, which has a completely different semantic 2464# ./install, which can be erroneously created by make from ./install.sh. 2465# Reject install programs that cannot install multiple files. 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2467$as_echo_n "checking for a BSD-compatible install... " >&6; } 2468if test -z "$INSTALL"; then 2469if ${ac_cv_path_install+:} false; then : 2470 $as_echo_n "(cached) " >&6 2471else 2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 # Account for people who put trailing slashes in PATH elements. 2478case $as_dir/ in #(( 2479 ./ | .// | /[cC]/* | \ 2480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2482 /usr/ucb/* ) ;; 2483 *) 2484 # OSF1 and SCO ODT 3.0 have their own names for install. 2485 # Don't use installbsd from OSF since it installs stuff as root 2486 # by default. 2487 for ac_prog in ginstall scoinst install; do 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2490 if test $ac_prog = install && 2491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2492 # AIX install. It has an incompatible calling convention. 2493 : 2494 elif test $ac_prog = install && 2495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2496 # program-specific install script used by HP pwplus--don't use. 2497 : 2498 else 2499 rm -rf conftest.one conftest.two conftest.dir 2500 echo one > conftest.one 2501 echo two > conftest.two 2502 mkdir conftest.dir 2503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2504 test -s conftest.one && test -s conftest.two && 2505 test -s conftest.dir/conftest.one && 2506 test -s conftest.dir/conftest.two 2507 then 2508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2509 break 3 2510 fi 2511 fi 2512 fi 2513 done 2514 done 2515 ;; 2516esac 2517 2518 done 2519IFS=$as_save_IFS 2520 2521rm -rf conftest.one conftest.two conftest.dir 2522 2523fi 2524 if test "${ac_cv_path_install+set}" = set; then 2525 INSTALL=$ac_cv_path_install 2526 else 2527 # As a last resort, use the slow shell script. Don't cache a 2528 # value for INSTALL within a source directory, because that will 2529 # break other packages using the cache if that directory is 2530 # removed, or if the value is a relative name. 2531 INSTALL=$ac_install_sh 2532 fi 2533fi 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2535$as_echo "$INSTALL" >&6; } 2536 2537# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2538# It thinks the first close brace ends the variable substitution. 2539test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2540 2541test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2542 2543test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2544 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2546$as_echo_n "checking whether build environment is sane... " >&6; } 2547# Reject unsafe characters in $srcdir or the absolute working directory 2548# name. Accept space and tab only in the latter. 2549am_lf=' 2550' 2551case `pwd` in 2552 *[\\\"\#\$\&\'\`$am_lf]*) 2553 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2554esac 2555case $srcdir in 2556 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2557 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2558esac 2559 2560# Do 'set' in a subshell so we don't clobber the current shell's 2561# arguments. Must try -L first in case configure is actually a 2562# symlink; some systems play weird games with the mod time of symlinks 2563# (eg FreeBSD returns the mod time of the symlink's containing 2564# directory). 2565if ( 2566 am_has_slept=no 2567 for am_try in 1 2; do 2568 echo "timestamp, slept: $am_has_slept" > conftest.file 2569 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2570 if test "$*" = "X"; then 2571 # -L didn't work. 2572 set X `ls -t "$srcdir/configure" conftest.file` 2573 fi 2574 if test "$*" != "X $srcdir/configure conftest.file" \ 2575 && test "$*" != "X conftest.file $srcdir/configure"; then 2576 2577 # If neither matched, then we have a broken ls. This can happen 2578 # if, for instance, CONFIG_SHELL is bash and it inherits a 2579 # broken ls alias from the environment. This has actually 2580 # happened. Such a system could not be considered "sane". 2581 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2582 alias in your environment" "$LINENO" 5 2583 fi 2584 if test "$2" = conftest.file || test $am_try -eq 2; then 2585 break 2586 fi 2587 # Just in case. 2588 sleep 1 2589 am_has_slept=yes 2590 done 2591 test "$2" = conftest.file 2592 ) 2593then 2594 # Ok. 2595 : 2596else 2597 as_fn_error $? "newly created file is older than distributed files! 2598Check your system clock" "$LINENO" 5 2599fi 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2601$as_echo "yes" >&6; } 2602# If we didn't sleep, we still need to ensure time stamps of config.status and 2603# generated files are strictly newer. 2604am_sleep_pid= 2605if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2606 ( sleep 1 ) & 2607 am_sleep_pid=$! 2608fi 2609 2610rm -f conftest.file 2611 2612test "$program_prefix" != NONE && 2613 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2614# Use a double $ so make ignores it. 2615test "$program_suffix" != NONE && 2616 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2617# Double any \ or $. 2618# By default was `s,x,x', remove it if useless. 2619ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2620program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2621 2622# expand $ac_aux_dir to an absolute path 2623am_aux_dir=`cd $ac_aux_dir && pwd` 2624 2625if test x"${MISSING+set}" != xset; then 2626 case $am_aux_dir in 2627 *\ * | *\ *) 2628 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2629 *) 2630 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2631 esac 2632fi 2633# Use eval to expand $SHELL 2634if eval "$MISSING --is-lightweight"; then 2635 am_missing_run="$MISSING " 2636else 2637 am_missing_run= 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2639$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2640fi 2641 2642if test x"${install_sh}" != xset; then 2643 case $am_aux_dir in 2644 *\ * | *\ *) 2645 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2646 *) 2647 install_sh="\${SHELL} $am_aux_dir/install-sh" 2648 esac 2649fi 2650 2651# Installed binaries are usually stripped using 'strip' when the user 2652# run "make install-strip". However 'strip' might not be the right 2653# tool to use in cross-compilation environments, therefore Automake 2654# will honor the 'STRIP' environment variable to overrule this program. 2655if test "$cross_compiling" != no; then 2656 if test -n "$ac_tool_prefix"; then 2657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2658set dummy ${ac_tool_prefix}strip; ac_word=$2 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2660$as_echo_n "checking for $ac_word... " >&6; } 2661if ${ac_cv_prog_STRIP+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663else 2664 if test -n "$STRIP"; then 2665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2666else 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2674 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2676 break 2 2677 fi 2678done 2679 done 2680IFS=$as_save_IFS 2681 2682fi 2683fi 2684STRIP=$ac_cv_prog_STRIP 2685if test -n "$STRIP"; then 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2687$as_echo "$STRIP" >&6; } 2688else 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2690$as_echo "no" >&6; } 2691fi 2692 2693 2694fi 2695if test -z "$ac_cv_prog_STRIP"; then 2696 ac_ct_STRIP=$STRIP 2697 # Extract the first word of "strip", so it can be a program name with args. 2698set dummy strip; ac_word=$2 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2700$as_echo_n "checking for $ac_word... " >&6; } 2701if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2702 $as_echo_n "(cached) " >&6 2703else 2704 if test -n "$ac_ct_STRIP"; then 2705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2706else 2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708for as_dir in $PATH 2709do 2710 IFS=$as_save_IFS 2711 test -z "$as_dir" && as_dir=. 2712 for ac_exec_ext in '' $ac_executable_extensions; do 2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2714 ac_cv_prog_ac_ct_STRIP="strip" 2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2716 break 2 2717 fi 2718done 2719 done 2720IFS=$as_save_IFS 2721 2722fi 2723fi 2724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2725if test -n "$ac_ct_STRIP"; then 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2727$as_echo "$ac_ct_STRIP" >&6; } 2728else 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2730$as_echo "no" >&6; } 2731fi 2732 2733 if test "x$ac_ct_STRIP" = x; then 2734 STRIP=":" 2735 else 2736 case $cross_compiling:$ac_tool_warned in 2737yes:) 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2740ac_tool_warned=yes ;; 2741esac 2742 STRIP=$ac_ct_STRIP 2743 fi 2744else 2745 STRIP="$ac_cv_prog_STRIP" 2746fi 2747 2748fi 2749INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2750 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2752$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2753if test -z "$MKDIR_P"; then 2754 if ${ac_cv_path_mkdir+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2758for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2759do 2760 IFS=$as_save_IFS 2761 test -z "$as_dir" && as_dir=. 2762 for ac_prog in mkdir gmkdir; do 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2765 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2766 'mkdir (GNU coreutils) '* | \ 2767 'mkdir (coreutils) '* | \ 2768 'mkdir (fileutils) '4.1*) 2769 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2770 break 3;; 2771 esac 2772 done 2773 done 2774 done 2775IFS=$as_save_IFS 2776 2777fi 2778 2779 test -d ./--version && rmdir ./--version 2780 if test "${ac_cv_path_mkdir+set}" = set; then 2781 MKDIR_P="$ac_cv_path_mkdir -p" 2782 else 2783 # As a last resort, use the slow shell script. Don't cache a 2784 # value for MKDIR_P within a source directory, because that will 2785 # break other packages using the cache if that directory is 2786 # removed, or if the value is a relative name. 2787 MKDIR_P="$ac_install_sh -d" 2788 fi 2789fi 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2791$as_echo "$MKDIR_P" >&6; } 2792 2793for ac_prog in gawk mawk nawk awk 2794do 2795 # Extract the first word of "$ac_prog", so it can be a program name with args. 2796set dummy $ac_prog; ac_word=$2 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2798$as_echo_n "checking for $ac_word... " >&6; } 2799if ${ac_cv_prog_AWK+:} false; then : 2800 $as_echo_n "(cached) " >&6 2801else 2802 if test -n "$AWK"; then 2803 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2804else 2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2806for as_dir in $PATH 2807do 2808 IFS=$as_save_IFS 2809 test -z "$as_dir" && as_dir=. 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2812 ac_cv_prog_AWK="$ac_prog" 2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2814 break 2 2815 fi 2816done 2817 done 2818IFS=$as_save_IFS 2819 2820fi 2821fi 2822AWK=$ac_cv_prog_AWK 2823if test -n "$AWK"; then 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2825$as_echo "$AWK" >&6; } 2826else 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2828$as_echo "no" >&6; } 2829fi 2830 2831 2832 test -n "$AWK" && break 2833done 2834 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2836$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2837set x ${MAKE-make} 2838ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2839if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 cat >conftest.make <<\_ACEOF 2843SHELL = /bin/sh 2844all: 2845 @echo '@@@%%%=$(MAKE)=@@@%%%' 2846_ACEOF 2847# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2848case `${MAKE-make} -f conftest.make 2>/dev/null` in 2849 *@@@%%%=?*=@@@%%%*) 2850 eval ac_cv_prog_make_${ac_make}_set=yes;; 2851 *) 2852 eval ac_cv_prog_make_${ac_make}_set=no;; 2853esac 2854rm -f conftest.make 2855fi 2856if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2858$as_echo "yes" >&6; } 2859 SET_MAKE= 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863 SET_MAKE="MAKE=${MAKE-make}" 2864fi 2865 2866rm -rf .tst 2>/dev/null 2867mkdir .tst 2>/dev/null 2868if test -d .tst; then 2869 am__leading_dot=. 2870else 2871 am__leading_dot=_ 2872fi 2873rmdir .tst 2>/dev/null 2874 2875# Check whether --enable-silent-rules was given. 2876if test "${enable_silent_rules+set}" = set; then : 2877 enableval=$enable_silent_rules; 2878fi 2879 2880case $enable_silent_rules in # ((( 2881 yes) AM_DEFAULT_VERBOSITY=0;; 2882 no) AM_DEFAULT_VERBOSITY=1;; 2883 *) AM_DEFAULT_VERBOSITY=1;; 2884esac 2885am_make=${MAKE-make} 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2887$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2888if ${am_cv_make_support_nested_variables+:} false; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 if $as_echo 'TRUE=$(BAR$(V)) 2892BAR0=false 2893BAR1=true 2894V=1 2895am__doit: 2896 @$(TRUE) 2897.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2898 am_cv_make_support_nested_variables=yes 2899else 2900 am_cv_make_support_nested_variables=no 2901fi 2902fi 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2904$as_echo "$am_cv_make_support_nested_variables" >&6; } 2905if test $am_cv_make_support_nested_variables = yes; then 2906 AM_V='$(V)' 2907 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2908else 2909 AM_V=$AM_DEFAULT_VERBOSITY 2910 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2911fi 2912AM_BACKSLASH='\' 2913 2914if test "`cd $srcdir && pwd`" != "`pwd`"; then 2915 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2916 # is not polluted with repeated "-I." 2917 am__isrc=' -I$(srcdir)' 2918 # test to see if srcdir already configured 2919 if test -f $srcdir/config.status; then 2920 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2921 fi 2922fi 2923 2924# test whether we have cygpath 2925if test -z "$CYGPATH_W"; then 2926 if (cygpath --version) >/dev/null 2>/dev/null; then 2927 CYGPATH_W='cygpath -w' 2928 else 2929 CYGPATH_W=echo 2930 fi 2931fi 2932 2933 2934# Define the identity of the package. 2935 PACKAGE='libXt' 2936 VERSION='1.1.4' 2937 2938 2939cat >>confdefs.h <<_ACEOF 2940#define PACKAGE "$PACKAGE" 2941_ACEOF 2942 2943 2944cat >>confdefs.h <<_ACEOF 2945#define VERSION "$VERSION" 2946_ACEOF 2947 2948# Some tools Automake needs. 2949 2950ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2951 2952 2953AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2954 2955 2956AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2957 2958 2959AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2960 2961 2962MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2963 2964# For better backward compatibility. To be removed once Automake 1.9.x 2965# dies out for good. For more background, see: 2966# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2967# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2968mkdir_p='$(MKDIR_P)' 2969 2970# We need awk for the "check" target. The system "awk" is bad on 2971# some platforms. 2972# Always define AMTAR for backward compatibility. Yes, it's still used 2973# in the wild :-( We should find a proper way to deprecate it ... 2974AMTAR='$${TAR-tar}' 2975 2976 2977# We'll loop over all known methods to create a tar archive until one works. 2978_am_tools='gnutar pax cpio none' 2979 2980am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2981 2982 2983 2984 2985 2986 2987 2988# Initialize libtool 2989case `pwd` in 2990 *\ * | *\ *) 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2992$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2993esac 2994 2995 2996 2997macro_version='2.4.2' 2998macro_revision='1.3337' 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012ltmain="$ac_aux_dir/ltmain.sh" 3013 3014# Make sure we can run config.sub. 3015$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3016 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3017 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3019$as_echo_n "checking build system type... " >&6; } 3020if ${ac_cv_build+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 ac_build_alias=$build_alias 3024test "x$ac_build_alias" = x && 3025 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3026test "x$ac_build_alias" = x && 3027 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3028ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3029 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3030 3031fi 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3033$as_echo "$ac_cv_build" >&6; } 3034case $ac_cv_build in 3035*-*-*) ;; 3036*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3037esac 3038build=$ac_cv_build 3039ac_save_IFS=$IFS; IFS='-' 3040set x $ac_cv_build 3041shift 3042build_cpu=$1 3043build_vendor=$2 3044shift; shift 3045# Remember, the first character of IFS is used to create $*, 3046# except with old shells: 3047build_os=$* 3048IFS=$ac_save_IFS 3049case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3050 3051 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3053$as_echo_n "checking host system type... " >&6; } 3054if ${ac_cv_host+:} false; then : 3055 $as_echo_n "(cached) " >&6 3056else 3057 if test "x$host_alias" = x; then 3058 ac_cv_host=$ac_cv_build 3059else 3060 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3061 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3062fi 3063 3064fi 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3066$as_echo "$ac_cv_host" >&6; } 3067case $ac_cv_host in 3068*-*-*) ;; 3069*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3070esac 3071host=$ac_cv_host 3072ac_save_IFS=$IFS; IFS='-' 3073set x $ac_cv_host 3074shift 3075host_cpu=$1 3076host_vendor=$2 3077shift; shift 3078# Remember, the first character of IFS is used to create $*, 3079# except with old shells: 3080host_os=$* 3081IFS=$ac_save_IFS 3082case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3083 3084 3085# Backslashify metacharacters that are still active within 3086# double-quoted strings. 3087sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3088 3089# Same as above, but do not quote variable references. 3090double_quote_subst='s/\(["`\\]\)/\\\1/g' 3091 3092# Sed substitution to delay expansion of an escaped shell variable in a 3093# double_quote_subst'ed string. 3094delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3095 3096# Sed substitution to delay expansion of an escaped single quote. 3097delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3098 3099# Sed substitution to avoid accidental globbing in evaled expressions 3100no_glob_subst='s/\*/\\\*/g' 3101 3102ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3103ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3104ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3105 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3107$as_echo_n "checking how to print strings... " >&6; } 3108# Test print first, because it will be a builtin if present. 3109if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3111 ECHO='print -r --' 3112elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3113 ECHO='printf %s\n' 3114else 3115 # Use this function as a fallback that always works. 3116 func_fallback_echo () 3117 { 3118 eval 'cat <<_LTECHO_EOF 3119$1 3120_LTECHO_EOF' 3121 } 3122 ECHO='func_fallback_echo' 3123fi 3124 3125# func_echo_all arg... 3126# Invoke $ECHO with all args, space-separated. 3127func_echo_all () 3128{ 3129 $ECHO "" 3130} 3131 3132case "$ECHO" in 3133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3134$as_echo "printf" >&6; } ;; 3135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3136$as_echo "print -r" >&6; } ;; 3137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3138$as_echo "cat" >&6; } ;; 3139esac 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154DEPDIR="${am__leading_dot}deps" 3155 3156ac_config_commands="$ac_config_commands depfiles" 3157 3158 3159am_make=${MAKE-make} 3160cat > confinc << 'END' 3161am__doit: 3162 @echo this is the am__doit target 3163.PHONY: am__doit 3164END 3165# If we don't find an include directive, just comment out the code. 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3167$as_echo_n "checking for style of include used by $am_make... " >&6; } 3168am__include="#" 3169am__quote= 3170_am_result=none 3171# First try GNU make style include. 3172echo "include confinc" > confmf 3173# Ignore all kinds of additional output from 'make'. 3174case `$am_make -s -f confmf 2> /dev/null` in #( 3175*the\ am__doit\ target*) 3176 am__include=include 3177 am__quote= 3178 _am_result=GNU 3179 ;; 3180esac 3181# Now try BSD make style include. 3182if test "$am__include" = "#"; then 3183 echo '.include "confinc"' > confmf 3184 case `$am_make -s -f confmf 2> /dev/null` in #( 3185 *the\ am__doit\ target*) 3186 am__include=.include 3187 am__quote="\"" 3188 _am_result=BSD 3189 ;; 3190 esac 3191fi 3192 3193 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3195$as_echo "$_am_result" >&6; } 3196rm -f confinc confmf 3197 3198# Check whether --enable-dependency-tracking was given. 3199if test "${enable_dependency_tracking+set}" = set; then : 3200 enableval=$enable_dependency_tracking; 3201fi 3202 3203if test "x$enable_dependency_tracking" != xno; then 3204 am_depcomp="$ac_aux_dir/depcomp" 3205 AMDEPBACKSLASH='\' 3206 am__nodep='_no' 3207fi 3208 if test "x$enable_dependency_tracking" != xno; then 3209 AMDEP_TRUE= 3210 AMDEP_FALSE='#' 3211else 3212 AMDEP_TRUE='#' 3213 AMDEP_FALSE= 3214fi 3215 3216 3217ac_ext=c 3218ac_cpp='$CPP $CPPFLAGS' 3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3221ac_compiler_gnu=$ac_cv_c_compiler_gnu 3222if test -n "$ac_tool_prefix"; then 3223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3224set dummy ${ac_tool_prefix}gcc; ac_word=$2 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3226$as_echo_n "checking for $ac_word... " >&6; } 3227if ${ac_cv_prog_CC+:} false; then : 3228 $as_echo_n "(cached) " >&6 3229else 3230 if test -n "$CC"; then 3231 ac_cv_prog_CC="$CC" # Let the user override the test. 3232else 3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3234for as_dir in $PATH 3235do 3236 IFS=$as_save_IFS 3237 test -z "$as_dir" && as_dir=. 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3240 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3242 break 2 3243 fi 3244done 3245 done 3246IFS=$as_save_IFS 3247 3248fi 3249fi 3250CC=$ac_cv_prog_CC 3251if test -n "$CC"; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3253$as_echo "$CC" >&6; } 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257fi 3258 3259 3260fi 3261if test -z "$ac_cv_prog_CC"; then 3262 ac_ct_CC=$CC 3263 # Extract the first word of "gcc", so it can be a program name with args. 3264set dummy gcc; ac_word=$2 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266$as_echo_n "checking for $ac_word... " >&6; } 3267if ${ac_cv_prog_ac_ct_CC+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 if test -n "$ac_ct_CC"; then 3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3272else 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 test -z "$as_dir" && as_dir=. 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3280 ac_cv_prog_ac_ct_CC="gcc" 3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3282 break 2 3283 fi 3284done 3285 done 3286IFS=$as_save_IFS 3287 3288fi 3289fi 3290ac_ct_CC=$ac_cv_prog_ac_ct_CC 3291if test -n "$ac_ct_CC"; then 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3293$as_echo "$ac_ct_CC" >&6; } 3294else 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3296$as_echo "no" >&6; } 3297fi 3298 3299 if test "x$ac_ct_CC" = x; then 3300 CC="" 3301 else 3302 case $cross_compiling:$ac_tool_warned in 3303yes:) 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3306ac_tool_warned=yes ;; 3307esac 3308 CC=$ac_ct_CC 3309 fi 3310else 3311 CC="$ac_cv_prog_CC" 3312fi 3313 3314if test -z "$CC"; then 3315 if test -n "$ac_tool_prefix"; then 3316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3317set dummy ${ac_tool_prefix}cc; ac_word=$2 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3319$as_echo_n "checking for $ac_word... " >&6; } 3320if ${ac_cv_prog_CC+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 if test -n "$CC"; then 3324 ac_cv_prog_CC="$CC" # Let the user override the test. 3325else 3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3327for as_dir in $PATH 3328do 3329 IFS=$as_save_IFS 3330 test -z "$as_dir" && as_dir=. 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3333 ac_cv_prog_CC="${ac_tool_prefix}cc" 3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3335 break 2 3336 fi 3337done 3338 done 3339IFS=$as_save_IFS 3340 3341fi 3342fi 3343CC=$ac_cv_prog_CC 3344if test -n "$CC"; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3346$as_echo "$CC" >&6; } 3347else 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349$as_echo "no" >&6; } 3350fi 3351 3352 3353 fi 3354fi 3355if test -z "$CC"; then 3356 # Extract the first word of "cc", so it can be a program name with args. 3357set dummy cc; ac_word=$2 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359$as_echo_n "checking for $ac_word... " >&6; } 3360if ${ac_cv_prog_CC+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 if test -n "$CC"; then 3364 ac_cv_prog_CC="$CC" # Let the user override the test. 3365else 3366 ac_prog_rejected=no 3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH 3369do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3375 ac_prog_rejected=yes 3376 continue 3377 fi 3378 ac_cv_prog_CC="cc" 3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3380 break 2 3381 fi 3382done 3383 done 3384IFS=$as_save_IFS 3385 3386if test $ac_prog_rejected = yes; then 3387 # We found a bogon in the path, so make sure we never use it. 3388 set dummy $ac_cv_prog_CC 3389 shift 3390 if test $# != 0; then 3391 # We chose a different compiler from the bogus one. 3392 # However, it has the same basename, so the bogon will be chosen 3393 # first if we set CC to just the basename; use the full file name. 3394 shift 3395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3396 fi 3397fi 3398fi 3399fi 3400CC=$ac_cv_prog_CC 3401if test -n "$CC"; then 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3403$as_echo "$CC" >&6; } 3404else 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406$as_echo "no" >&6; } 3407fi 3408 3409 3410fi 3411if test -z "$CC"; then 3412 if test -n "$ac_tool_prefix"; then 3413 for ac_prog in cl.exe 3414 do 3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3416set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3418$as_echo_n "checking for $ac_word... " >&6; } 3419if ${ac_cv_prog_CC+:} false; then : 3420 $as_echo_n "(cached) " >&6 3421else 3422 if test -n "$CC"; then 3423 ac_cv_prog_CC="$CC" # Let the user override the test. 3424else 3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3426for as_dir in $PATH 3427do 3428 IFS=$as_save_IFS 3429 test -z "$as_dir" && as_dir=. 3430 for ac_exec_ext in '' $ac_executable_extensions; do 3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3434 break 2 3435 fi 3436done 3437 done 3438IFS=$as_save_IFS 3439 3440fi 3441fi 3442CC=$ac_cv_prog_CC 3443if test -n "$CC"; then 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3445$as_echo "$CC" >&6; } 3446else 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448$as_echo "no" >&6; } 3449fi 3450 3451 3452 test -n "$CC" && break 3453 done 3454fi 3455if test -z "$CC"; then 3456 ac_ct_CC=$CC 3457 for ac_prog in cl.exe 3458do 3459 # Extract the first word of "$ac_prog", so it can be a program name with args. 3460set dummy $ac_prog; ac_word=$2 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3462$as_echo_n "checking for $ac_word... " >&6; } 3463if ${ac_cv_prog_ac_ct_CC+:} false; then : 3464 $as_echo_n "(cached) " >&6 3465else 3466 if test -n "$ac_ct_CC"; then 3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3468else 3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3470for as_dir in $PATH 3471do 3472 IFS=$as_save_IFS 3473 test -z "$as_dir" && as_dir=. 3474 for ac_exec_ext in '' $ac_executable_extensions; do 3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3476 ac_cv_prog_ac_ct_CC="$ac_prog" 3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3478 break 2 3479 fi 3480done 3481 done 3482IFS=$as_save_IFS 3483 3484fi 3485fi 3486ac_ct_CC=$ac_cv_prog_ac_ct_CC 3487if test -n "$ac_ct_CC"; then 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3489$as_echo "$ac_ct_CC" >&6; } 3490else 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492$as_echo "no" >&6; } 3493fi 3494 3495 3496 test -n "$ac_ct_CC" && break 3497done 3498 3499 if test "x$ac_ct_CC" = x; then 3500 CC="" 3501 else 3502 case $cross_compiling:$ac_tool_warned in 3503yes:) 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3506ac_tool_warned=yes ;; 3507esac 3508 CC=$ac_ct_CC 3509 fi 3510fi 3511 3512fi 3513 3514 3515test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3517as_fn_error $? "no acceptable C compiler found in \$PATH 3518See \`config.log' for more details" "$LINENO" 5; } 3519 3520# Provide some information about the compiler. 3521$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3522set X $ac_compile 3523ac_compiler=$2 3524for ac_option in --version -v -V -qversion; do 3525 { { ac_try="$ac_compiler $ac_option >&5" 3526case "(($ac_try" in 3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3528 *) ac_try_echo=$ac_try;; 3529esac 3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3531$as_echo "$ac_try_echo"; } >&5 3532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3533 ac_status=$? 3534 if test -s conftest.err; then 3535 sed '10a\ 3536... rest of stderr output deleted ... 3537 10q' conftest.err >conftest.er1 3538 cat conftest.er1 >&5 3539 fi 3540 rm -f conftest.er1 conftest.err 3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3542 test $ac_status = 0; } 3543done 3544 3545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main () 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556ac_clean_files_save=$ac_clean_files 3557ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3558# Try to create an executable without -o first, disregard a.out. 3559# It will help us diagnose broken compilers, and finding out an intuition 3560# of exeext. 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3562$as_echo_n "checking whether the C compiler works... " >&6; } 3563ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3564 3565# The possible output files: 3566ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3567 3568ac_rmfiles= 3569for ac_file in $ac_files 3570do 3571 case $ac_file in 3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3573 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3574 esac 3575done 3576rm -f $ac_rmfiles 3577 3578if { { ac_try="$ac_link_default" 3579case "(($ac_try" in 3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3581 *) ac_try_echo=$ac_try;; 3582esac 3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3584$as_echo "$ac_try_echo"; } >&5 3585 (eval "$ac_link_default") 2>&5 3586 ac_status=$? 3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3588 test $ac_status = 0; }; then : 3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3590# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3591# in a Makefile. We should not override ac_cv_exeext if it was cached, 3592# so that the user can short-circuit this test for compilers unknown to 3593# Autoconf. 3594for ac_file in $ac_files '' 3595do 3596 test -f "$ac_file" || continue 3597 case $ac_file in 3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3599 ;; 3600 [ab].out ) 3601 # We found the default executable, but exeext='' is most 3602 # certainly right. 3603 break;; 3604 *.* ) 3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3606 then :; else 3607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3608 fi 3609 # We set ac_cv_exeext here because the later test for it is not 3610 # safe: cross compilers may not add the suffix if given an `-o' 3611 # argument, so we may need to know it at that point already. 3612 # Even if this section looks crufty: it has the advantage of 3613 # actually working. 3614 break;; 3615 * ) 3616 break;; 3617 esac 3618done 3619test "$ac_cv_exeext" = no && ac_cv_exeext= 3620 3621else 3622 ac_file='' 3623fi 3624if test -z "$ac_file"; then : 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3626$as_echo "no" >&6; } 3627$as_echo "$as_me: failed program was:" >&5 3628sed 's/^/| /' conftest.$ac_ext >&5 3629 3630{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3632as_fn_error 77 "C compiler cannot create executables 3633See \`config.log' for more details" "$LINENO" 5; } 3634else 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3636$as_echo "yes" >&6; } 3637fi 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3639$as_echo_n "checking for C compiler default output file name... " >&6; } 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3641$as_echo "$ac_file" >&6; } 3642ac_exeext=$ac_cv_exeext 3643 3644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3645ac_clean_files=$ac_clean_files_save 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3647$as_echo_n "checking for suffix of executables... " >&6; } 3648if { { ac_try="$ac_link" 3649case "(($ac_try" in 3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3651 *) ac_try_echo=$ac_try;; 3652esac 3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3654$as_echo "$ac_try_echo"; } >&5 3655 (eval "$ac_link") 2>&5 3656 ac_status=$? 3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3658 test $ac_status = 0; }; then : 3659 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3660# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3661# work properly (i.e., refer to `conftest.exe'), while it won't with 3662# `rm'. 3663for ac_file in conftest.exe conftest conftest.*; do 3664 test -f "$ac_file" || continue 3665 case $ac_file in 3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3668 break;; 3669 * ) break;; 3670 esac 3671done 3672else 3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3675as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3676See \`config.log' for more details" "$LINENO" 5; } 3677fi 3678rm -f conftest conftest$ac_cv_exeext 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3680$as_echo "$ac_cv_exeext" >&6; } 3681 3682rm -f conftest.$ac_ext 3683EXEEXT=$ac_cv_exeext 3684ac_exeext=$EXEEXT 3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3686/* end confdefs.h. */ 3687#include <stdio.h> 3688int 3689main () 3690{ 3691FILE *f = fopen ("conftest.out", "w"); 3692 return ferror (f) || fclose (f) != 0; 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698ac_clean_files="$ac_clean_files conftest.out" 3699# Check that the compiler produces executables we can run. If not, either 3700# the compiler is broken, or we cross compile. 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3702$as_echo_n "checking whether we are cross compiling... " >&6; } 3703if test "$cross_compiling" != yes; then 3704 { { ac_try="$ac_link" 3705case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708esac 3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3710$as_echo "$ac_try_echo"; } >&5 3711 (eval "$ac_link") 2>&5 3712 ac_status=$? 3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3714 test $ac_status = 0; } 3715 if { ac_try='./conftest$ac_cv_exeext' 3716 { { case "(($ac_try" in 3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3718 *) ac_try_echo=$ac_try;; 3719esac 3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3721$as_echo "$ac_try_echo"; } >&5 3722 (eval "$ac_try") 2>&5 3723 ac_status=$? 3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3725 test $ac_status = 0; }; }; then 3726 cross_compiling=no 3727 else 3728 if test "$cross_compiling" = maybe; then 3729 cross_compiling=yes 3730 else 3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3733as_fn_error $? "cannot run C compiled programs. 3734If you meant to cross compile, use \`--host'. 3735See \`config.log' for more details" "$LINENO" 5; } 3736 fi 3737 fi 3738fi 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3740$as_echo "$cross_compiling" >&6; } 3741 3742rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3743ac_clean_files=$ac_clean_files_save 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3745$as_echo_n "checking for suffix of object files... " >&6; } 3746if ${ac_cv_objext+:} false; then : 3747 $as_echo_n "(cached) " >&6 3748else 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3750/* end confdefs.h. */ 3751 3752int 3753main () 3754{ 3755 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760rm -f conftest.o conftest.obj 3761if { { ac_try="$ac_compile" 3762case "(($ac_try" in 3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3764 *) ac_try_echo=$ac_try;; 3765esac 3766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3767$as_echo "$ac_try_echo"; } >&5 3768 (eval "$ac_compile") 2>&5 3769 ac_status=$? 3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3771 test $ac_status = 0; }; then : 3772 for ac_file in conftest.o conftest.obj conftest.*; do 3773 test -f "$ac_file" || continue; 3774 case $ac_file in 3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3777 break;; 3778 esac 3779done 3780else 3781 $as_echo "$as_me: failed program was:" >&5 3782sed 's/^/| /' conftest.$ac_ext >&5 3783 3784{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3786as_fn_error $? "cannot compute suffix of object files: cannot compile 3787See \`config.log' for more details" "$LINENO" 5; } 3788fi 3789rm -f conftest.$ac_cv_objext conftest.$ac_ext 3790fi 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3792$as_echo "$ac_cv_objext" >&6; } 3793OBJEXT=$ac_cv_objext 3794ac_objext=$OBJEXT 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3797if ${ac_cv_c_compiler_gnu+:} false; then : 3798 $as_echo_n "(cached) " >&6 3799else 3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802 3803int 3804main () 3805{ 3806#ifndef __GNUC__ 3807 choke me 3808#endif 3809 3810 ; 3811 return 0; 3812} 3813_ACEOF 3814if ac_fn_c_try_compile "$LINENO"; then : 3815 ac_compiler_gnu=yes 3816else 3817 ac_compiler_gnu=no 3818fi 3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3820ac_cv_c_compiler_gnu=$ac_compiler_gnu 3821 3822fi 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3824$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3825if test $ac_compiler_gnu = yes; then 3826 GCC=yes 3827else 3828 GCC= 3829fi 3830ac_test_CFLAGS=${CFLAGS+set} 3831ac_save_CFLAGS=$CFLAGS 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3833$as_echo_n "checking whether $CC accepts -g... " >&6; } 3834if ${ac_cv_prog_cc_g+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836else 3837 ac_save_c_werror_flag=$ac_c_werror_flag 3838 ac_c_werror_flag=yes 3839 ac_cv_prog_cc_g=no 3840 CFLAGS="-g" 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843 3844int 3845main () 3846{ 3847 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852if ac_fn_c_try_compile "$LINENO"; then : 3853 ac_cv_prog_cc_g=yes 3854else 3855 CFLAGS="" 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3857/* end confdefs.h. */ 3858 3859int 3860main () 3861{ 3862 3863 ; 3864 return 0; 3865} 3866_ACEOF 3867if ac_fn_c_try_compile "$LINENO"; then : 3868 3869else 3870 ac_c_werror_flag=$ac_save_c_werror_flag 3871 CFLAGS="-g" 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874 3875int 3876main () 3877{ 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883if ac_fn_c_try_compile "$LINENO"; then : 3884 ac_cv_prog_cc_g=yes 3885fi 3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3887fi 3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891 ac_c_werror_flag=$ac_save_c_werror_flag 3892fi 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3894$as_echo "$ac_cv_prog_cc_g" >&6; } 3895if test "$ac_test_CFLAGS" = set; then 3896 CFLAGS=$ac_save_CFLAGS 3897elif test $ac_cv_prog_cc_g = yes; then 3898 if test "$GCC" = yes; then 3899 CFLAGS="-g -O2" 3900 else 3901 CFLAGS="-g" 3902 fi 3903else 3904 if test "$GCC" = yes; then 3905 CFLAGS="-O2" 3906 else 3907 CFLAGS= 3908 fi 3909fi 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3912if ${ac_cv_prog_cc_c89+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 ac_cv_prog_cc_c89=no 3916ac_save_CC=$CC 3917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918/* end confdefs.h. */ 3919#include <stdarg.h> 3920#include <stdio.h> 3921#include <sys/types.h> 3922#include <sys/stat.h> 3923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3924struct buf { int x; }; 3925FILE * (*rcsopen) (struct buf *, struct stat *, int); 3926static char *e (p, i) 3927 char **p; 3928 int i; 3929{ 3930 return p[i]; 3931} 3932static char *f (char * (*g) (char **, int), char **p, ...) 3933{ 3934 char *s; 3935 va_list v; 3936 va_start (v,p); 3937 s = g (p, va_arg (v,int)); 3938 va_end (v); 3939 return s; 3940} 3941 3942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3943 function prototypes and stuff, but not '\xHH' hex character constants. 3944 These don't provoke an error unfortunately, instead are silently treated 3945 as 'x'. The following induces an error, until -std is added to get 3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3947 array size at least. It's necessary to write '\x00'==0 to get something 3948 that's true only with -std. */ 3949int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3950 3951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3952 inside strings and character constants. */ 3953#define FOO(x) 'x' 3954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3955 3956int test (int i, double x); 3957struct s1 {int (*f) (int a);}; 3958struct s2 {int (*f) (double a);}; 3959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3960int argc; 3961char **argv; 3962int 3963main () 3964{ 3965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3972do 3973 CC="$ac_save_CC $ac_arg" 3974 if ac_fn_c_try_compile "$LINENO"; then : 3975 ac_cv_prog_cc_c89=$ac_arg 3976fi 3977rm -f core conftest.err conftest.$ac_objext 3978 test "x$ac_cv_prog_cc_c89" != "xno" && break 3979done 3980rm -f conftest.$ac_ext 3981CC=$ac_save_CC 3982 3983fi 3984# AC_CACHE_VAL 3985case "x$ac_cv_prog_cc_c89" in 3986 x) 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3988$as_echo "none needed" >&6; } ;; 3989 xno) 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3991$as_echo "unsupported" >&6; } ;; 3992 *) 3993 CC="$CC $ac_cv_prog_cc_c89" 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3996esac 3997if test "x$ac_cv_prog_cc_c89" != xno; then : 3998 3999fi 4000 4001ac_ext=c 4002ac_cpp='$CPP $CPPFLAGS' 4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4005ac_compiler_gnu=$ac_cv_c_compiler_gnu 4006 4007depcc="$CC" am_compiler_list= 4008 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4010$as_echo_n "checking dependency style of $depcc... " >&6; } 4011if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4012 $as_echo_n "(cached) " >&6 4013else 4014 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4015 # We make a subdir and do the tests there. Otherwise we can end up 4016 # making bogus files that we don't know about and never remove. For 4017 # instance it was reported that on HP-UX the gcc test will end up 4018 # making a dummy file named 'D' -- because '-MD' means "put the output 4019 # in D". 4020 rm -rf conftest.dir 4021 mkdir conftest.dir 4022 # Copy depcomp to subdir because otherwise we won't find it if we're 4023 # using a relative directory. 4024 cp "$am_depcomp" conftest.dir 4025 cd conftest.dir 4026 # We will build objects and dependencies in a subdirectory because 4027 # it helps to detect inapplicable dependency modes. For instance 4028 # both Tru64's cc and ICC support -MD to output dependencies as a 4029 # side effect of compilation, but ICC will put the dependencies in 4030 # the current directory while Tru64 will put them in the object 4031 # directory. 4032 mkdir sub 4033 4034 am_cv_CC_dependencies_compiler_type=none 4035 if test "$am_compiler_list" = ""; then 4036 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4037 fi 4038 am__universal=false 4039 case " $depcc " in #( 4040 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4041 esac 4042 4043 for depmode in $am_compiler_list; do 4044 # Setup a source with many dependencies, because some compilers 4045 # like to wrap large dependency lists on column 80 (with \), and 4046 # we should not choose a depcomp mode which is confused by this. 4047 # 4048 # We need to recreate these files for each test, as the compiler may 4049 # overwrite some of them when testing with obscure command lines. 4050 # This happens at least with the AIX C compiler. 4051 : > sub/conftest.c 4052 for i in 1 2 3 4 5 6; do 4053 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4054 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4055 # Solaris 10 /bin/sh. 4056 echo '/* dummy */' > sub/conftst$i.h 4057 done 4058 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4059 4060 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4061 # mode. It turns out that the SunPro C++ compiler does not properly 4062 # handle '-M -o', and we need to detect this. Also, some Intel 4063 # versions had trouble with output in subdirs. 4064 am__obj=sub/conftest.${OBJEXT-o} 4065 am__minus_obj="-o $am__obj" 4066 case $depmode in 4067 gcc) 4068 # This depmode causes a compiler race in universal mode. 4069 test "$am__universal" = false || continue 4070 ;; 4071 nosideeffect) 4072 # After this tag, mechanisms are not by side-effect, so they'll 4073 # only be used when explicitly requested. 4074 if test "x$enable_dependency_tracking" = xyes; then 4075 continue 4076 else 4077 break 4078 fi 4079 ;; 4080 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4081 # This compiler won't grok '-c -o', but also, the minuso test has 4082 # not run yet. These depmodes are late enough in the game, and 4083 # so weak that their functioning should not be impacted. 4084 am__obj=conftest.${OBJEXT-o} 4085 am__minus_obj= 4086 ;; 4087 none) break ;; 4088 esac 4089 if depmode=$depmode \ 4090 source=sub/conftest.c object=$am__obj \ 4091 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4092 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4093 >/dev/null 2>conftest.err && 4094 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4095 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4096 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4097 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4098 # icc doesn't choke on unknown options, it will just issue warnings 4099 # or remarks (even with -Werror). So we grep stderr for any message 4100 # that says an option was ignored or not supported. 4101 # When given -MP, icc 7.0 and 7.1 complain thusly: 4102 # icc: Command line warning: ignoring option '-M'; no argument required 4103 # The diagnosis changed in icc 8.0: 4104 # icc: Command line remark: option '-MP' not supported 4105 if (grep 'ignoring option' conftest.err || 4106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4107 am_cv_CC_dependencies_compiler_type=$depmode 4108 break 4109 fi 4110 fi 4111 done 4112 4113 cd .. 4114 rm -rf conftest.dir 4115else 4116 am_cv_CC_dependencies_compiler_type=none 4117fi 4118 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4121$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4122CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4123 4124 if 4125 test "x$enable_dependency_tracking" != xno \ 4126 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4127 am__fastdepCC_TRUE= 4128 am__fastdepCC_FALSE='#' 4129else 4130 am__fastdepCC_TRUE='#' 4131 am__fastdepCC_FALSE= 4132fi 4133 4134 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4136$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4137if ${ac_cv_path_SED+:} false; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4141 for ac_i in 1 2 3 4 5 6 7; do 4142 ac_script="$ac_script$as_nl$ac_script" 4143 done 4144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4145 { ac_script=; unset ac_script;} 4146 if test -z "$SED"; then 4147 ac_path_SED_found=false 4148 # Loop through the user's path and test for each of PROGNAME-LIST 4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4150for as_dir in $PATH 4151do 4152 IFS=$as_save_IFS 4153 test -z "$as_dir" && as_dir=. 4154 for ac_prog in sed gsed; do 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4157 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4158# Check for GNU ac_path_SED and select it if it is found. 4159 # Check for GNU $ac_path_SED 4160case `"$ac_path_SED" --version 2>&1` in 4161*GNU*) 4162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4163*) 4164 ac_count=0 4165 $as_echo_n 0123456789 >"conftest.in" 4166 while : 4167 do 4168 cat "conftest.in" "conftest.in" >"conftest.tmp" 4169 mv "conftest.tmp" "conftest.in" 4170 cp "conftest.in" "conftest.nl" 4171 $as_echo '' >> "conftest.nl" 4172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4174 as_fn_arith $ac_count + 1 && ac_count=$as_val 4175 if test $ac_count -gt ${ac_path_SED_max-0}; then 4176 # Best one so far, save it but keep looking for a better one 4177 ac_cv_path_SED="$ac_path_SED" 4178 ac_path_SED_max=$ac_count 4179 fi 4180 # 10*(2^10) chars as input seems more than enough 4181 test $ac_count -gt 10 && break 4182 done 4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4184esac 4185 4186 $ac_path_SED_found && break 3 4187 done 4188 done 4189 done 4190IFS=$as_save_IFS 4191 if test -z "$ac_cv_path_SED"; then 4192 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4193 fi 4194else 4195 ac_cv_path_SED=$SED 4196fi 4197 4198fi 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4200$as_echo "$ac_cv_path_SED" >&6; } 4201 SED="$ac_cv_path_SED" 4202 rm -f conftest.sed 4203 4204test -z "$SED" && SED=sed 4205Xsed="$SED -e 1s/^X//" 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4218$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4219if ${ac_cv_path_GREP+:} false; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 if test -z "$GREP"; then 4223 ac_path_GREP_found=false 4224 # Loop through the user's path and test for each of PROGNAME-LIST 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_prog in grep ggrep; do 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4234# Check for GNU ac_path_GREP and select it if it is found. 4235 # Check for GNU $ac_path_GREP 4236case `"$ac_path_GREP" --version 2>&1` in 4237*GNU*) 4238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4239*) 4240 ac_count=0 4241 $as_echo_n 0123456789 >"conftest.in" 4242 while : 4243 do 4244 cat "conftest.in" "conftest.in" >"conftest.tmp" 4245 mv "conftest.tmp" "conftest.in" 4246 cp "conftest.in" "conftest.nl" 4247 $as_echo 'GREP' >> "conftest.nl" 4248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4250 as_fn_arith $ac_count + 1 && ac_count=$as_val 4251 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4252 # Best one so far, save it but keep looking for a better one 4253 ac_cv_path_GREP="$ac_path_GREP" 4254 ac_path_GREP_max=$ac_count 4255 fi 4256 # 10*(2^10) chars as input seems more than enough 4257 test $ac_count -gt 10 && break 4258 done 4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4260esac 4261 4262 $ac_path_GREP_found && break 3 4263 done 4264 done 4265 done 4266IFS=$as_save_IFS 4267 if test -z "$ac_cv_path_GREP"; then 4268 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4269 fi 4270else 4271 ac_cv_path_GREP=$GREP 4272fi 4273 4274fi 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4276$as_echo "$ac_cv_path_GREP" >&6; } 4277 GREP="$ac_cv_path_GREP" 4278 4279 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4281$as_echo_n "checking for egrep... " >&6; } 4282if ${ac_cv_path_EGREP+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284else 4285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4286 then ac_cv_path_EGREP="$GREP -E" 4287 else 4288 if test -z "$EGREP"; then 4289 ac_path_EGREP_found=false 4290 # Loop through the user's path and test for each of PROGNAME-LIST 4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4293do 4294 IFS=$as_save_IFS 4295 test -z "$as_dir" && as_dir=. 4296 for ac_prog in egrep; do 4297 for ac_exec_ext in '' $ac_executable_extensions; do 4298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4300# Check for GNU ac_path_EGREP and select it if it is found. 4301 # Check for GNU $ac_path_EGREP 4302case `"$ac_path_EGREP" --version 2>&1` in 4303*GNU*) 4304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4305*) 4306 ac_count=0 4307 $as_echo_n 0123456789 >"conftest.in" 4308 while : 4309 do 4310 cat "conftest.in" "conftest.in" >"conftest.tmp" 4311 mv "conftest.tmp" "conftest.in" 4312 cp "conftest.in" "conftest.nl" 4313 $as_echo 'EGREP' >> "conftest.nl" 4314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4316 as_fn_arith $ac_count + 1 && ac_count=$as_val 4317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4318 # Best one so far, save it but keep looking for a better one 4319 ac_cv_path_EGREP="$ac_path_EGREP" 4320 ac_path_EGREP_max=$ac_count 4321 fi 4322 # 10*(2^10) chars as input seems more than enough 4323 test $ac_count -gt 10 && break 4324 done 4325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4326esac 4327 4328 $ac_path_EGREP_found && break 3 4329 done 4330 done 4331 done 4332IFS=$as_save_IFS 4333 if test -z "$ac_cv_path_EGREP"; then 4334 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4335 fi 4336else 4337 ac_cv_path_EGREP=$EGREP 4338fi 4339 4340 fi 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4343$as_echo "$ac_cv_path_EGREP" >&6; } 4344 EGREP="$ac_cv_path_EGREP" 4345 4346 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4348$as_echo_n "checking for fgrep... " >&6; } 4349if ${ac_cv_path_FGREP+:} false; then : 4350 $as_echo_n "(cached) " >&6 4351else 4352 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4353 then ac_cv_path_FGREP="$GREP -F" 4354 else 4355 if test -z "$FGREP"; then 4356 ac_path_FGREP_found=false 4357 # Loop through the user's path and test for each of PROGNAME-LIST 4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_prog in fgrep; do 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4366 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4367# Check for GNU ac_path_FGREP and select it if it is found. 4368 # Check for GNU $ac_path_FGREP 4369case `"$ac_path_FGREP" --version 2>&1` in 4370*GNU*) 4371 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4372*) 4373 ac_count=0 4374 $as_echo_n 0123456789 >"conftest.in" 4375 while : 4376 do 4377 cat "conftest.in" "conftest.in" >"conftest.tmp" 4378 mv "conftest.tmp" "conftest.in" 4379 cp "conftest.in" "conftest.nl" 4380 $as_echo 'FGREP' >> "conftest.nl" 4381 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4383 as_fn_arith $ac_count + 1 && ac_count=$as_val 4384 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4385 # Best one so far, save it but keep looking for a better one 4386 ac_cv_path_FGREP="$ac_path_FGREP" 4387 ac_path_FGREP_max=$ac_count 4388 fi 4389 # 10*(2^10) chars as input seems more than enough 4390 test $ac_count -gt 10 && break 4391 done 4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4393esac 4394 4395 $ac_path_FGREP_found && break 3 4396 done 4397 done 4398 done 4399IFS=$as_save_IFS 4400 if test -z "$ac_cv_path_FGREP"; then 4401 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4402 fi 4403else 4404 ac_cv_path_FGREP=$FGREP 4405fi 4406 4407 fi 4408fi 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4410$as_echo "$ac_cv_path_FGREP" >&6; } 4411 FGREP="$ac_cv_path_FGREP" 4412 4413 4414test -z "$GREP" && GREP=grep 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434# Check whether --with-gnu-ld was given. 4435if test "${with_gnu_ld+set}" = set; then : 4436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4437else 4438 with_gnu_ld=no 4439fi 4440 4441ac_prog=ld 4442if test "$GCC" = yes; then 4443 # Check if gcc -print-prog-name=ld gives a path. 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4445$as_echo_n "checking for ld used by $CC... " >&6; } 4446 case $host in 4447 *-*-mingw*) 4448 # gcc leaves a trailing carriage return which upsets mingw 4449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4450 *) 4451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4452 esac 4453 case $ac_prog in 4454 # Accept absolute paths. 4455 [\\/]* | ?:[\\/]*) 4456 re_direlt='/[^/][^/]*/\.\./' 4457 # Canonicalize the pathname of ld 4458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4461 done 4462 test -z "$LD" && LD="$ac_prog" 4463 ;; 4464 "") 4465 # If it fails, then pretend we aren't using GCC. 4466 ac_prog=ld 4467 ;; 4468 *) 4469 # If it is relative, then search for the first ld in PATH. 4470 with_gnu_ld=unknown 4471 ;; 4472 esac 4473elif test "$with_gnu_ld" = yes; then 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4475$as_echo_n "checking for GNU ld... " >&6; } 4476else 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4478$as_echo_n "checking for non-GNU ld... " >&6; } 4479fi 4480if ${lt_cv_path_LD+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 if test -z "$LD"; then 4484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4485 for ac_dir in $PATH; do 4486 IFS="$lt_save_ifs" 4487 test -z "$ac_dir" && ac_dir=. 4488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4489 lt_cv_path_LD="$ac_dir/$ac_prog" 4490 # Check to see if the program is GNU ld. I'd rather use --version, 4491 # but apparently some variants of GNU ld only accept -v. 4492 # Break only if it was the GNU/non-GNU ld that we prefer. 4493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4494 *GNU* | *'with BFD'*) 4495 test "$with_gnu_ld" != no && break 4496 ;; 4497 *) 4498 test "$with_gnu_ld" != yes && break 4499 ;; 4500 esac 4501 fi 4502 done 4503 IFS="$lt_save_ifs" 4504else 4505 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4506fi 4507fi 4508 4509LD="$lt_cv_path_LD" 4510if test -n "$LD"; then 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4512$as_echo "$LD" >&6; } 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515$as_echo "no" >&6; } 4516fi 4517test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4519$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4520if ${lt_cv_prog_gnu_ld+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4524case `$LD -v 2>&1 </dev/null` in 4525*GNU* | *'with BFD'*) 4526 lt_cv_prog_gnu_ld=yes 4527 ;; 4528*) 4529 lt_cv_prog_gnu_ld=no 4530 ;; 4531esac 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4534$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4535with_gnu_ld=$lt_cv_prog_gnu_ld 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4546$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4547if ${lt_cv_path_NM+:} false; then : 4548 $as_echo_n "(cached) " >&6 4549else 4550 if test -n "$NM"; then 4551 # Let the user override the test. 4552 lt_cv_path_NM="$NM" 4553else 4554 lt_nm_to_check="${ac_tool_prefix}nm" 4555 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4556 lt_nm_to_check="$lt_nm_to_check nm" 4557 fi 4558 for lt_tmp_nm in $lt_nm_to_check; do 4559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4560 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4561 IFS="$lt_save_ifs" 4562 test -z "$ac_dir" && ac_dir=. 4563 tmp_nm="$ac_dir/$lt_tmp_nm" 4564 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4565 # Check to see if the nm accepts a BSD-compat flag. 4566 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4567 # nm: unknown option "B" ignored 4568 # Tru64's nm complains that /dev/null is an invalid object file 4569 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4570 */dev/null* | *'Invalid file or object type'*) 4571 lt_cv_path_NM="$tmp_nm -B" 4572 break 4573 ;; 4574 *) 4575 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4576 */dev/null*) 4577 lt_cv_path_NM="$tmp_nm -p" 4578 break 4579 ;; 4580 *) 4581 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4582 continue # so that we can try to find one that supports BSD flags 4583 ;; 4584 esac 4585 ;; 4586 esac 4587 fi 4588 done 4589 IFS="$lt_save_ifs" 4590 done 4591 : ${lt_cv_path_NM=no} 4592fi 4593fi 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4595$as_echo "$lt_cv_path_NM" >&6; } 4596if test "$lt_cv_path_NM" != "no"; then 4597 NM="$lt_cv_path_NM" 4598else 4599 # Didn't find any BSD compatible name lister, look for dumpbin. 4600 if test -n "$DUMPBIN"; then : 4601 # Let the user override the test. 4602 else 4603 if test -n "$ac_tool_prefix"; then 4604 for ac_prog in dumpbin "link -dump" 4605 do 4606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4607set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4609$as_echo_n "checking for $ac_word... " >&6; } 4610if ${ac_cv_prog_DUMPBIN+:} false; then : 4611 $as_echo_n "(cached) " >&6 4612else 4613 if test -n "$DUMPBIN"; then 4614 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4615else 4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4617for as_dir in $PATH 4618do 4619 IFS=$as_save_IFS 4620 test -z "$as_dir" && as_dir=. 4621 for ac_exec_ext in '' $ac_executable_extensions; do 4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4625 break 2 4626 fi 4627done 4628 done 4629IFS=$as_save_IFS 4630 4631fi 4632fi 4633DUMPBIN=$ac_cv_prog_DUMPBIN 4634if test -n "$DUMPBIN"; then 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4636$as_echo "$DUMPBIN" >&6; } 4637else 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639$as_echo "no" >&6; } 4640fi 4641 4642 4643 test -n "$DUMPBIN" && break 4644 done 4645fi 4646if test -z "$DUMPBIN"; then 4647 ac_ct_DUMPBIN=$DUMPBIN 4648 for ac_prog in dumpbin "link -dump" 4649do 4650 # Extract the first word of "$ac_prog", so it can be a program name with args. 4651set dummy $ac_prog; ac_word=$2 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4653$as_echo_n "checking for $ac_word... " >&6; } 4654if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 if test -n "$ac_ct_DUMPBIN"; then 4658 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4659else 4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4661for as_dir in $PATH 4662do 4663 IFS=$as_save_IFS 4664 test -z "$as_dir" && as_dir=. 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4667 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4669 break 2 4670 fi 4671done 4672 done 4673IFS=$as_save_IFS 4674 4675fi 4676fi 4677ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4678if test -n "$ac_ct_DUMPBIN"; then 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4680$as_echo "$ac_ct_DUMPBIN" >&6; } 4681else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683$as_echo "no" >&6; } 4684fi 4685 4686 4687 test -n "$ac_ct_DUMPBIN" && break 4688done 4689 4690 if test "x$ac_ct_DUMPBIN" = x; then 4691 DUMPBIN=":" 4692 else 4693 case $cross_compiling:$ac_tool_warned in 4694yes:) 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4697ac_tool_warned=yes ;; 4698esac 4699 DUMPBIN=$ac_ct_DUMPBIN 4700 fi 4701fi 4702 4703 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4704 *COFF*) 4705 DUMPBIN="$DUMPBIN -symbols" 4706 ;; 4707 *) 4708 DUMPBIN=: 4709 ;; 4710 esac 4711 fi 4712 4713 if test "$DUMPBIN" != ":"; then 4714 NM="$DUMPBIN" 4715 fi 4716fi 4717test -z "$NM" && NM=nm 4718 4719 4720 4721 4722 4723 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4725$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4726if ${lt_cv_nm_interface+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 lt_cv_nm_interface="BSD nm" 4730 echo "int some_variable = 0;" > conftest.$ac_ext 4731 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4732 (eval "$ac_compile" 2>conftest.err) 4733 cat conftest.err >&5 4734 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4735 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4736 cat conftest.err >&5 4737 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4738 cat conftest.out >&5 4739 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4740 lt_cv_nm_interface="MS dumpbin" 4741 fi 4742 rm -f conftest* 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4745$as_echo "$lt_cv_nm_interface" >&6; } 4746 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4748$as_echo_n "checking whether ln -s works... " >&6; } 4749LN_S=$as_ln_s 4750if test "$LN_S" = "ln -s"; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4752$as_echo "yes" >&6; } 4753else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4755$as_echo "no, using $LN_S" >&6; } 4756fi 4757 4758# find the maximum length of command line arguments 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4760$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4761if ${lt_cv_sys_max_cmd_len+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 i=0 4765 teststring="ABCD" 4766 4767 case $build_os in 4768 msdosdjgpp*) 4769 # On DJGPP, this test can blow up pretty badly due to problems in libc 4770 # (any single argument exceeding 2000 bytes causes a buffer overrun 4771 # during glob expansion). Even if it were fixed, the result of this 4772 # check would be larger than it should be. 4773 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4774 ;; 4775 4776 gnu*) 4777 # Under GNU Hurd, this test is not required because there is 4778 # no limit to the length of command line arguments. 4779 # Libtool will interpret -1 as no limit whatsoever 4780 lt_cv_sys_max_cmd_len=-1; 4781 ;; 4782 4783 cygwin* | mingw* | cegcc*) 4784 # On Win9x/ME, this test blows up -- it succeeds, but takes 4785 # about 5 minutes as the teststring grows exponentially. 4786 # Worse, since 9x/ME are not pre-emptively multitasking, 4787 # you end up with a "frozen" computer, even though with patience 4788 # the test eventually succeeds (with a max line length of 256k). 4789 # Instead, let's just punt: use the minimum linelength reported by 4790 # all of the supported platforms: 8192 (on NT/2K/XP). 4791 lt_cv_sys_max_cmd_len=8192; 4792 ;; 4793 4794 mint*) 4795 # On MiNT this can take a long time and run out of memory. 4796 lt_cv_sys_max_cmd_len=8192; 4797 ;; 4798 4799 amigaos*) 4800 # On AmigaOS with pdksh, this test takes hours, literally. 4801 # So we just punt and use a minimum line length of 8192. 4802 lt_cv_sys_max_cmd_len=8192; 4803 ;; 4804 4805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4806 # This has been around since 386BSD, at least. Likely further. 4807 if test -x /sbin/sysctl; then 4808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4809 elif test -x /usr/sbin/sysctl; then 4810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4811 else 4812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4813 fi 4814 # And add a safety zone 4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4817 ;; 4818 4819 interix*) 4820 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4821 lt_cv_sys_max_cmd_len=196608 4822 ;; 4823 4824 os2*) 4825 # The test takes a long time on OS/2. 4826 lt_cv_sys_max_cmd_len=8192 4827 ;; 4828 4829 osf*) 4830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4832 # nice to cause kernel panics so lets avoid the loop below. 4833 # First set a reasonable default. 4834 lt_cv_sys_max_cmd_len=16384 4835 # 4836 if test -x /sbin/sysconfig; then 4837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4838 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4839 esac 4840 fi 4841 ;; 4842 sco3.2v5*) 4843 lt_cv_sys_max_cmd_len=102400 4844 ;; 4845 sysv5* | sco5v6* | sysv4.2uw2*) 4846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4847 if test -n "$kargmax"; then 4848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4849 else 4850 lt_cv_sys_max_cmd_len=32768 4851 fi 4852 ;; 4853 *) 4854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4855 if test -n "$lt_cv_sys_max_cmd_len"; then 4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4858 else 4859 # Make teststring a little bigger before we do anything with it. 4860 # a 1K string should be a reasonable start. 4861 for i in 1 2 3 4 5 6 7 8 ; do 4862 teststring=$teststring$teststring 4863 done 4864 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4865 # If test is not a shell built-in, we'll probably end up computing a 4866 # maximum length that is only half of the actual maximum length, but 4867 # we can't tell. 4868 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4869 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4870 test $i != 17 # 1/2 MB should be enough 4871 do 4872 i=`expr $i + 1` 4873 teststring=$teststring$teststring 4874 done 4875 # Only check the string length outside the loop. 4876 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4877 teststring= 4878 # Add a significant safety factor because C++ compilers can tack on 4879 # massive amounts of additional arguments before passing them to the 4880 # linker. It appears as though 1/2 is a usable value. 4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4882 fi 4883 ;; 4884 esac 4885 4886fi 4887 4888if test -n $lt_cv_sys_max_cmd_len ; then 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4890$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4891else 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4893$as_echo "none" >&6; } 4894fi 4895max_cmd_len=$lt_cv_sys_max_cmd_len 4896 4897 4898 4899 4900 4901 4902: ${CP="cp -f"} 4903: ${MV="mv -f"} 4904: ${RM="rm -f"} 4905 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4907$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4908# Try some XSI features 4909xsi_shell=no 4910( _lt_dummy="a/b/c" 4911 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4912 = c,a/b,b/c, \ 4913 && eval 'test $(( 1 + 1 )) -eq 2 \ 4914 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4915 && xsi_shell=yes 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4917$as_echo "$xsi_shell" >&6; } 4918 4919 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4921$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4922lt_shell_append=no 4923( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4924 >/dev/null 2>&1 \ 4925 && lt_shell_append=yes 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4927$as_echo "$lt_shell_append" >&6; } 4928 4929 4930if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4931 lt_unset=unset 4932else 4933 lt_unset=false 4934fi 4935 4936 4937 4938 4939 4940# test EBCDIC or ASCII 4941case `echo X|tr X '\101'` in 4942 A) # ASCII based system 4943 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4944 lt_SP2NL='tr \040 \012' 4945 lt_NL2SP='tr \015\012 \040\040' 4946 ;; 4947 *) # EBCDIC based system 4948 lt_SP2NL='tr \100 \n' 4949 lt_NL2SP='tr \r\n \100\100' 4950 ;; 4951esac 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4962$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4963if ${lt_cv_to_host_file_cmd+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965else 4966 case $host in 4967 *-*-mingw* ) 4968 case $build in 4969 *-*-mingw* ) # actually msys 4970 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4971 ;; 4972 *-*-cygwin* ) 4973 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4974 ;; 4975 * ) # otherwise, assume *nix 4976 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4977 ;; 4978 esac 4979 ;; 4980 *-*-cygwin* ) 4981 case $build in 4982 *-*-mingw* ) # actually msys 4983 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4984 ;; 4985 *-*-cygwin* ) 4986 lt_cv_to_host_file_cmd=func_convert_file_noop 4987 ;; 4988 * ) # otherwise, assume *nix 4989 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4990 ;; 4991 esac 4992 ;; 4993 * ) # unhandled hosts (and "normal" native builds) 4994 lt_cv_to_host_file_cmd=func_convert_file_noop 4995 ;; 4996esac 4997 4998fi 4999 5000to_host_file_cmd=$lt_cv_to_host_file_cmd 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5002$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5003 5004 5005 5006 5007 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5009$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5010if ${lt_cv_to_tool_file_cmd+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 #assume ordinary cross tools, or native build. 5014lt_cv_to_tool_file_cmd=func_convert_file_noop 5015case $host in 5016 *-*-mingw* ) 5017 case $build in 5018 *-*-mingw* ) # actually msys 5019 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5020 ;; 5021 esac 5022 ;; 5023esac 5024 5025fi 5026 5027to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5029$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5030 5031 5032 5033 5034 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5036$as_echo_n "checking for $LD option to reload object files... " >&6; } 5037if ${lt_cv_ld_reload_flag+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 lt_cv_ld_reload_flag='-r' 5041fi 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5043$as_echo "$lt_cv_ld_reload_flag" >&6; } 5044reload_flag=$lt_cv_ld_reload_flag 5045case $reload_flag in 5046"" | " "*) ;; 5047*) reload_flag=" $reload_flag" ;; 5048esac 5049reload_cmds='$LD$reload_flag -o $output$reload_objs' 5050case $host_os in 5051 cygwin* | mingw* | pw32* | cegcc*) 5052 if test "$GCC" != yes; then 5053 reload_cmds=false 5054 fi 5055 ;; 5056 darwin*) 5057 if test "$GCC" = yes; then 5058 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5059 else 5060 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5061 fi 5062 ;; 5063esac 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073if test -n "$ac_tool_prefix"; then 5074 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5075set dummy ${ac_tool_prefix}objdump; ac_word=$2 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5077$as_echo_n "checking for $ac_word... " >&6; } 5078if ${ac_cv_prog_OBJDUMP+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 if test -n "$OBJDUMP"; then 5082 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5083else 5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5085for as_dir in $PATH 5086do 5087 IFS=$as_save_IFS 5088 test -z "$as_dir" && as_dir=. 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5091 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5093 break 2 5094 fi 5095done 5096 done 5097IFS=$as_save_IFS 5098 5099fi 5100fi 5101OBJDUMP=$ac_cv_prog_OBJDUMP 5102if test -n "$OBJDUMP"; then 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5104$as_echo "$OBJDUMP" >&6; } 5105else 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5107$as_echo "no" >&6; } 5108fi 5109 5110 5111fi 5112if test -z "$ac_cv_prog_OBJDUMP"; then 5113 ac_ct_OBJDUMP=$OBJDUMP 5114 # Extract the first word of "objdump", so it can be a program name with args. 5115set dummy objdump; ac_word=$2 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5117$as_echo_n "checking for $ac_word... " >&6; } 5118if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 if test -n "$ac_ct_OBJDUMP"; then 5122 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5123else 5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5125for as_dir in $PATH 5126do 5127 IFS=$as_save_IFS 5128 test -z "$as_dir" && as_dir=. 5129 for ac_exec_ext in '' $ac_executable_extensions; do 5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5131 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5133 break 2 5134 fi 5135done 5136 done 5137IFS=$as_save_IFS 5138 5139fi 5140fi 5141ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5142if test -n "$ac_ct_OBJDUMP"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5144$as_echo "$ac_ct_OBJDUMP" >&6; } 5145else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147$as_echo "no" >&6; } 5148fi 5149 5150 if test "x$ac_ct_OBJDUMP" = x; then 5151 OBJDUMP="false" 5152 else 5153 case $cross_compiling:$ac_tool_warned in 5154yes:) 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5157ac_tool_warned=yes ;; 5158esac 5159 OBJDUMP=$ac_ct_OBJDUMP 5160 fi 5161else 5162 OBJDUMP="$ac_cv_prog_OBJDUMP" 5163fi 5164 5165test -z "$OBJDUMP" && OBJDUMP=objdump 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5176$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5177if ${lt_cv_deplibs_check_method+:} false; then : 5178 $as_echo_n "(cached) " >&6 5179else 5180 lt_cv_file_magic_cmd='$MAGIC_CMD' 5181lt_cv_file_magic_test_file= 5182lt_cv_deplibs_check_method='unknown' 5183# Need to set the preceding variable on all platforms that support 5184# interlibrary dependencies. 5185# 'none' -- dependencies not supported. 5186# `unknown' -- same as none, but documents that we really don't know. 5187# 'pass_all' -- all dependencies passed with no checks. 5188# 'test_compile' -- check by making test program. 5189# 'file_magic [[regex]]' -- check by looking for files in library path 5190# which responds to the $file_magic_cmd with a given extended regex. 5191# If you have `file' or equivalent on your system and you're not sure 5192# whether `pass_all' will *always* work, you probably want this one. 5193 5194case $host_os in 5195aix[4-9]*) 5196 lt_cv_deplibs_check_method=pass_all 5197 ;; 5198 5199beos*) 5200 lt_cv_deplibs_check_method=pass_all 5201 ;; 5202 5203bsdi[45]*) 5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5205 lt_cv_file_magic_cmd='/usr/bin/file -L' 5206 lt_cv_file_magic_test_file=/shlib/libc.so 5207 ;; 5208 5209cygwin*) 5210 # func_win32_libid is a shell function defined in ltmain.sh 5211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5212 lt_cv_file_magic_cmd='func_win32_libid' 5213 ;; 5214 5215mingw* | pw32*) 5216 # Base MSYS/MinGW do not provide the 'file' command needed by 5217 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5218 # unless we find 'file', for example because we are cross-compiling. 5219 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5220 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5222 lt_cv_file_magic_cmd='func_win32_libid' 5223 else 5224 # Keep this pattern in sync with the one in func_win32_libid. 5225 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5226 lt_cv_file_magic_cmd='$OBJDUMP -f' 5227 fi 5228 ;; 5229 5230cegcc*) 5231 # use the weaker test based on 'objdump'. See mingw*. 5232 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5233 lt_cv_file_magic_cmd='$OBJDUMP -f' 5234 ;; 5235 5236darwin* | rhapsody*) 5237 lt_cv_deplibs_check_method=pass_all 5238 ;; 5239 5240freebsd* | dragonfly*) 5241 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5242 case $host_cpu in 5243 i*86 ) 5244 # Not sure whether the presence of OpenBSD here was a mistake. 5245 # Let's accept both of them until this is cleared up. 5246 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5247 lt_cv_file_magic_cmd=/usr/bin/file 5248 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5249 ;; 5250 esac 5251 else 5252 lt_cv_deplibs_check_method=pass_all 5253 fi 5254 ;; 5255 5256gnu*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260haiku*) 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263 5264hpux10.20* | hpux11*) 5265 lt_cv_file_magic_cmd=/usr/bin/file 5266 case $host_cpu in 5267 ia64*) 5268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5269 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5270 ;; 5271 hppa*64*) 5272 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]' 5273 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5274 ;; 5275 *) 5276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5277 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5278 ;; 5279 esac 5280 ;; 5281 5282interix[3-9]*) 5283 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5285 ;; 5286 5287irix5* | irix6* | nonstopux*) 5288 case $LD in 5289 *-32|*"-32 ") libmagic=32-bit;; 5290 *-n32|*"-n32 ") libmagic=N32;; 5291 *-64|*"-64 ") libmagic=64-bit;; 5292 *) libmagic=never-match;; 5293 esac 5294 lt_cv_deplibs_check_method=pass_all 5295 ;; 5296 5297# This must be glibc/ELF. 5298linux* | k*bsd*-gnu | kopensolaris*-gnu) 5299 lt_cv_deplibs_check_method=pass_all 5300 ;; 5301 5302netbsd*) 5303 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5305 else 5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5307 fi 5308 ;; 5309 5310newos6*) 5311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5312 lt_cv_file_magic_cmd=/usr/bin/file 5313 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5314 ;; 5315 5316*nto* | *qnx*) 5317 lt_cv_deplibs_check_method=pass_all 5318 ;; 5319 5320openbsd*) 5321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5323 else 5324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5325 fi 5326 ;; 5327 5328osf3* | osf4* | osf5*) 5329 lt_cv_deplibs_check_method=pass_all 5330 ;; 5331 5332rdos*) 5333 lt_cv_deplibs_check_method=pass_all 5334 ;; 5335 5336solaris*) 5337 lt_cv_deplibs_check_method=pass_all 5338 ;; 5339 5340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5341 lt_cv_deplibs_check_method=pass_all 5342 ;; 5343 5344sysv4 | sysv4.3*) 5345 case $host_vendor in 5346 motorola) 5347 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]' 5348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5349 ;; 5350 ncr) 5351 lt_cv_deplibs_check_method=pass_all 5352 ;; 5353 sequent) 5354 lt_cv_file_magic_cmd='/bin/file' 5355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5356 ;; 5357 sni) 5358 lt_cv_file_magic_cmd='/bin/file' 5359 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5360 lt_cv_file_magic_test_file=/lib/libc.so 5361 ;; 5362 siemens) 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365 pc) 5366 lt_cv_deplibs_check_method=pass_all 5367 ;; 5368 esac 5369 ;; 5370 5371tpf*) 5372 lt_cv_deplibs_check_method=pass_all 5373 ;; 5374esac 5375 5376fi 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5378$as_echo "$lt_cv_deplibs_check_method" >&6; } 5379 5380file_magic_glob= 5381want_nocaseglob=no 5382if test "$build" = "$host"; then 5383 case $host_os in 5384 mingw* | pw32*) 5385 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5386 want_nocaseglob=yes 5387 else 5388 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5389 fi 5390 ;; 5391 esac 5392fi 5393 5394file_magic_cmd=$lt_cv_file_magic_cmd 5395deplibs_check_method=$lt_cv_deplibs_check_method 5396test -z "$deplibs_check_method" && deplibs_check_method=unknown 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419if test -n "$ac_tool_prefix"; then 5420 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5421set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5423$as_echo_n "checking for $ac_word... " >&6; } 5424if ${ac_cv_prog_DLLTOOL+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 if test -n "$DLLTOOL"; then 5428 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5429else 5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5431for as_dir in $PATH 5432do 5433 IFS=$as_save_IFS 5434 test -z "$as_dir" && as_dir=. 5435 for ac_exec_ext in '' $ac_executable_extensions; do 5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5437 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5439 break 2 5440 fi 5441done 5442 done 5443IFS=$as_save_IFS 5444 5445fi 5446fi 5447DLLTOOL=$ac_cv_prog_DLLTOOL 5448if test -n "$DLLTOOL"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5450$as_echo "$DLLTOOL" >&6; } 5451else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454fi 5455 5456 5457fi 5458if test -z "$ac_cv_prog_DLLTOOL"; then 5459 ac_ct_DLLTOOL=$DLLTOOL 5460 # Extract the first word of "dlltool", so it can be a program name with args. 5461set dummy dlltool; ac_word=$2 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5463$as_echo_n "checking for $ac_word... " >&6; } 5464if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466else 5467 if test -n "$ac_ct_DLLTOOL"; then 5468 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5469else 5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471for as_dir in $PATH 5472do 5473 IFS=$as_save_IFS 5474 test -z "$as_dir" && as_dir=. 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5477 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5479 break 2 5480 fi 5481done 5482 done 5483IFS=$as_save_IFS 5484 5485fi 5486fi 5487ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5488if test -n "$ac_ct_DLLTOOL"; then 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5490$as_echo "$ac_ct_DLLTOOL" >&6; } 5491else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5493$as_echo "no" >&6; } 5494fi 5495 5496 if test "x$ac_ct_DLLTOOL" = x; then 5497 DLLTOOL="false" 5498 else 5499 case $cross_compiling:$ac_tool_warned in 5500yes:) 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5503ac_tool_warned=yes ;; 5504esac 5505 DLLTOOL=$ac_ct_DLLTOOL 5506 fi 5507else 5508 DLLTOOL="$ac_cv_prog_DLLTOOL" 5509fi 5510 5511test -z "$DLLTOOL" && DLLTOOL=dlltool 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5523$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5524if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 lt_cv_sharedlib_from_linklib_cmd='unknown' 5528 5529case $host_os in 5530cygwin* | mingw* | pw32* | cegcc*) 5531 # two different shell functions defined in ltmain.sh 5532 # decide which to use based on capabilities of $DLLTOOL 5533 case `$DLLTOOL --help 2>&1` in 5534 *--identify-strict*) 5535 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5536 ;; 5537 *) 5538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5539 ;; 5540 esac 5541 ;; 5542*) 5543 # fallback: assume linklib IS sharedlib 5544 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5545 ;; 5546esac 5547 5548fi 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5550$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5551sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5552test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5553 5554 5555 5556 5557 5558 5559 5560 5561if test -n "$ac_tool_prefix"; then 5562 for ac_prog in ar 5563 do 5564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5565set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5567$as_echo_n "checking for $ac_word... " >&6; } 5568if ${ac_cv_prog_AR+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 if test -n "$AR"; then 5572 ac_cv_prog_AR="$AR" # Let the user override the test. 5573else 5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5575for as_dir in $PATH 5576do 5577 IFS=$as_save_IFS 5578 test -z "$as_dir" && as_dir=. 5579 for ac_exec_ext in '' $ac_executable_extensions; do 5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5583 break 2 5584 fi 5585done 5586 done 5587IFS=$as_save_IFS 5588 5589fi 5590fi 5591AR=$ac_cv_prog_AR 5592if test -n "$AR"; then 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5594$as_echo "$AR" >&6; } 5595else 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5597$as_echo "no" >&6; } 5598fi 5599 5600 5601 test -n "$AR" && break 5602 done 5603fi 5604if test -z "$AR"; then 5605 ac_ct_AR=$AR 5606 for ac_prog in ar 5607do 5608 # Extract the first word of "$ac_prog", so it can be a program name with args. 5609set dummy $ac_prog; ac_word=$2 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5611$as_echo_n "checking for $ac_word... " >&6; } 5612if ${ac_cv_prog_ac_ct_AR+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 if test -n "$ac_ct_AR"; then 5616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5617else 5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5619for as_dir in $PATH 5620do 5621 IFS=$as_save_IFS 5622 test -z "$as_dir" && as_dir=. 5623 for ac_exec_ext in '' $ac_executable_extensions; do 5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5625 ac_cv_prog_ac_ct_AR="$ac_prog" 5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5627 break 2 5628 fi 5629done 5630 done 5631IFS=$as_save_IFS 5632 5633fi 5634fi 5635ac_ct_AR=$ac_cv_prog_ac_ct_AR 5636if test -n "$ac_ct_AR"; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5638$as_echo "$ac_ct_AR" >&6; } 5639else 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641$as_echo "no" >&6; } 5642fi 5643 5644 5645 test -n "$ac_ct_AR" && break 5646done 5647 5648 if test "x$ac_ct_AR" = x; then 5649 AR="false" 5650 else 5651 case $cross_compiling:$ac_tool_warned in 5652yes:) 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5655ac_tool_warned=yes ;; 5656esac 5657 AR=$ac_ct_AR 5658 fi 5659fi 5660 5661: ${AR=ar} 5662: ${AR_FLAGS=cru} 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5675$as_echo_n "checking for archiver @FILE support... " >&6; } 5676if ${lt_cv_ar_at_file+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 lt_cv_ar_at_file=no 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682 5683int 5684main () 5685{ 5686 5687 ; 5688 return 0; 5689} 5690_ACEOF 5691if ac_fn_c_try_compile "$LINENO"; then : 5692 echo conftest.$ac_objext > conftest.lst 5693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5695 (eval $lt_ar_try) 2>&5 5696 ac_status=$? 5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5698 test $ac_status = 0; } 5699 if test "$ac_status" -eq 0; then 5700 # Ensure the archiver fails upon bogus file names. 5701 rm -f conftest.$ac_objext libconftest.a 5702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5703 (eval $lt_ar_try) 2>&5 5704 ac_status=$? 5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5706 test $ac_status = 0; } 5707 if test "$ac_status" -ne 0; then 5708 lt_cv_ar_at_file=@ 5709 fi 5710 fi 5711 rm -f conftest.* libconftest.a 5712 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715 5716fi 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5718$as_echo "$lt_cv_ar_at_file" >&6; } 5719 5720if test "x$lt_cv_ar_at_file" = xno; then 5721 archiver_list_spec= 5722else 5723 archiver_list_spec=$lt_cv_ar_at_file 5724fi 5725 5726 5727 5728 5729 5730 5731 5732if test -n "$ac_tool_prefix"; then 5733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5734set dummy ${ac_tool_prefix}strip; ac_word=$2 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5736$as_echo_n "checking for $ac_word... " >&6; } 5737if ${ac_cv_prog_STRIP+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739else 5740 if test -n "$STRIP"; then 5741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5742else 5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744for as_dir in $PATH 5745do 5746 IFS=$as_save_IFS 5747 test -z "$as_dir" && as_dir=. 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5750 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754done 5755 done 5756IFS=$as_save_IFS 5757 5758fi 5759fi 5760STRIP=$ac_cv_prog_STRIP 5761if test -n "$STRIP"; then 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5763$as_echo "$STRIP" >&6; } 5764else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766$as_echo "no" >&6; } 5767fi 5768 5769 5770fi 5771if test -z "$ac_cv_prog_STRIP"; then 5772 ac_ct_STRIP=$STRIP 5773 # Extract the first word of "strip", so it can be a program name with args. 5774set dummy strip; ac_word=$2 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5776$as_echo_n "checking for $ac_word... " >&6; } 5777if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 if test -n "$ac_ct_STRIP"; then 5781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5782else 5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784for as_dir in $PATH 5785do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_exec_ext in '' $ac_executable_extensions; do 5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5790 ac_cv_prog_ac_ct_STRIP="strip" 5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5792 break 2 5793 fi 5794done 5795 done 5796IFS=$as_save_IFS 5797 5798fi 5799fi 5800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5801if test -n "$ac_ct_STRIP"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5803$as_echo "$ac_ct_STRIP" >&6; } 5804else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5806$as_echo "no" >&6; } 5807fi 5808 5809 if test "x$ac_ct_STRIP" = x; then 5810 STRIP=":" 5811 else 5812 case $cross_compiling:$ac_tool_warned in 5813yes:) 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5816ac_tool_warned=yes ;; 5817esac 5818 STRIP=$ac_ct_STRIP 5819 fi 5820else 5821 STRIP="$ac_cv_prog_STRIP" 5822fi 5823 5824test -z "$STRIP" && STRIP=: 5825 5826 5827 5828 5829 5830 5831if test -n "$ac_tool_prefix"; then 5832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5833set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5835$as_echo_n "checking for $ac_word... " >&6; } 5836if ${ac_cv_prog_RANLIB+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 if test -n "$RANLIB"; then 5840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5841else 5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5843for as_dir in $PATH 5844do 5845 IFS=$as_save_IFS 5846 test -z "$as_dir" && as_dir=. 5847 for ac_exec_ext in '' $ac_executable_extensions; do 5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5851 break 2 5852 fi 5853done 5854 done 5855IFS=$as_save_IFS 5856 5857fi 5858fi 5859RANLIB=$ac_cv_prog_RANLIB 5860if test -n "$RANLIB"; then 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5862$as_echo "$RANLIB" >&6; } 5863else 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5865$as_echo "no" >&6; } 5866fi 5867 5868 5869fi 5870if test -z "$ac_cv_prog_RANLIB"; then 5871 ac_ct_RANLIB=$RANLIB 5872 # Extract the first word of "ranlib", so it can be a program name with args. 5873set dummy ranlib; ac_word=$2 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875$as_echo_n "checking for $ac_word... " >&6; } 5876if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 if test -n "$ac_ct_RANLIB"; then 5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5881else 5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883for as_dir in $PATH 5884do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5889 ac_cv_prog_ac_ct_RANLIB="ranlib" 5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893done 5894 done 5895IFS=$as_save_IFS 5896 5897fi 5898fi 5899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5900if test -n "$ac_ct_RANLIB"; then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5902$as_echo "$ac_ct_RANLIB" >&6; } 5903else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905$as_echo "no" >&6; } 5906fi 5907 5908 if test "x$ac_ct_RANLIB" = x; then 5909 RANLIB=":" 5910 else 5911 case $cross_compiling:$ac_tool_warned in 5912yes:) 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5915ac_tool_warned=yes ;; 5916esac 5917 RANLIB=$ac_ct_RANLIB 5918 fi 5919else 5920 RANLIB="$ac_cv_prog_RANLIB" 5921fi 5922 5923test -z "$RANLIB" && RANLIB=: 5924 5925 5926 5927 5928 5929 5930# Determine commands to create old-style static archives. 5931old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5932old_postinstall_cmds='chmod 644 $oldlib' 5933old_postuninstall_cmds= 5934 5935if test -n "$RANLIB"; then 5936 case $host_os in 5937 openbsd*) 5938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5939 ;; 5940 *) 5941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5942 ;; 5943 esac 5944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5945fi 5946 5947case $host_os in 5948 darwin*) 5949 lock_old_archive_extraction=yes ;; 5950 *) 5951 lock_old_archive_extraction=no ;; 5952esac 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992# If no C compiler was specified, use CC. 5993LTCC=${LTCC-"$CC"} 5994 5995# If no C compiler flags were specified, use CFLAGS. 5996LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5997 5998# Allow CC to be a program name with arguments. 5999compiler=$CC 6000 6001 6002# Check for command to grab the raw symbol name followed by C symbol from nm. 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6004$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6005if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 6009# These are sane defaults that work on at least a few old systems. 6010# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6011 6012# Character class describing NM global symbol codes. 6013symcode='[BCDEGRST]' 6014 6015# Regexp to match symbols that can be accessed directly from C. 6016sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6017 6018# Define system-specific variables. 6019case $host_os in 6020aix*) 6021 symcode='[BCDT]' 6022 ;; 6023cygwin* | mingw* | pw32* | cegcc*) 6024 symcode='[ABCDGISTW]' 6025 ;; 6026hpux*) 6027 if test "$host_cpu" = ia64; then 6028 symcode='[ABCDEGRST]' 6029 fi 6030 ;; 6031irix* | nonstopux*) 6032 symcode='[BCDEGRST]' 6033 ;; 6034osf*) 6035 symcode='[BCDEGQRST]' 6036 ;; 6037solaris*) 6038 symcode='[BDRT]' 6039 ;; 6040sco3.2v5*) 6041 symcode='[DT]' 6042 ;; 6043sysv4.2uw2*) 6044 symcode='[DT]' 6045 ;; 6046sysv5* | sco5v6* | unixware* | OpenUNIX*) 6047 symcode='[ABDT]' 6048 ;; 6049sysv4) 6050 symcode='[DFNSTU]' 6051 ;; 6052esac 6053 6054# If we're using GNU nm, then use its standard symbol codes. 6055case `$NM -V 2>&1` in 6056*GNU* | *'with BFD'*) 6057 symcode='[ABCDGIRSTW]' ;; 6058esac 6059 6060# Transform an extracted symbol line into a proper C declaration. 6061# Some systems (esp. on ia64) link data and code symbols differently, 6062# so use this general approach. 6063lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6064 6065# Transform an extracted symbol line into symbol name and symbol address 6066lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6067lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6068 6069# Handle CRLF in mingw tool chain 6070opt_cr= 6071case $build_os in 6072mingw*) 6073 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6074 ;; 6075esac 6076 6077# Try without a prefix underscore, then with it. 6078for ac_symprfx in "" "_"; do 6079 6080 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6081 symxfrm="\\1 $ac_symprfx\\2 \\2" 6082 6083 # Write the raw and C identifiers. 6084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6085 # Fake it for dumpbin and say T for any non-static function 6086 # and D for any global variable. 6087 # Also find C++ and __fastcall symbols from MSVC++, 6088 # which start with @ or ?. 6089 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6090" {last_section=section; section=\$ 3};"\ 6091" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6092" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6093" \$ 0!~/External *\|/{next};"\ 6094" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6095" {if(hide[section]) next};"\ 6096" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6097" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6098" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6099" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6100" ' prfx=^$ac_symprfx" 6101 else 6102 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6103 fi 6104 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6105 6106 # Check to see that the pipe works correctly. 6107 pipe_works=no 6108 6109 rm -f conftest* 6110 cat > conftest.$ac_ext <<_LT_EOF 6111#ifdef __cplusplus 6112extern "C" { 6113#endif 6114char nm_test_var; 6115void nm_test_func(void); 6116void nm_test_func(void){} 6117#ifdef __cplusplus 6118} 6119#endif 6120int main(){nm_test_var='a';nm_test_func();return(0);} 6121_LT_EOF 6122 6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6124 (eval $ac_compile) 2>&5 6125 ac_status=$? 6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6127 test $ac_status = 0; }; then 6128 # Now try to grab the symbols. 6129 nlist=conftest.nm 6130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6131 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6132 ac_status=$? 6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6134 test $ac_status = 0; } && test -s "$nlist"; then 6135 # Try sorting and uniquifying the output. 6136 if sort "$nlist" | uniq > "$nlist"T; then 6137 mv -f "$nlist"T "$nlist" 6138 else 6139 rm -f "$nlist"T 6140 fi 6141 6142 # Make sure that we snagged all the symbols we need. 6143 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6144 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6145 cat <<_LT_EOF > conftest.$ac_ext 6146/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6147#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6148/* DATA imports from DLLs on WIN32 con't be const, because runtime 6149 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6150# define LT_DLSYM_CONST 6151#elif defined(__osf__) 6152/* This system does not cope well with relocations in const data. */ 6153# define LT_DLSYM_CONST 6154#else 6155# define LT_DLSYM_CONST const 6156#endif 6157 6158#ifdef __cplusplus 6159extern "C" { 6160#endif 6161 6162_LT_EOF 6163 # Now generate the symbol file. 6164 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6165 6166 cat <<_LT_EOF >> conftest.$ac_ext 6167 6168/* The mapping between symbol names and symbols. */ 6169LT_DLSYM_CONST struct { 6170 const char *name; 6171 void *address; 6172} 6173lt__PROGRAM__LTX_preloaded_symbols[] = 6174{ 6175 { "@PROGRAM@", (void *) 0 }, 6176_LT_EOF 6177 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6178 cat <<\_LT_EOF >> conftest.$ac_ext 6179 {0, (void *) 0} 6180}; 6181 6182/* This works around a problem in FreeBSD linker */ 6183#ifdef FREEBSD_WORKAROUND 6184static const void *lt_preloaded_setup() { 6185 return lt__PROGRAM__LTX_preloaded_symbols; 6186} 6187#endif 6188 6189#ifdef __cplusplus 6190} 6191#endif 6192_LT_EOF 6193 # Now try linking the two files. 6194 mv conftest.$ac_objext conftstm.$ac_objext 6195 lt_globsym_save_LIBS=$LIBS 6196 lt_globsym_save_CFLAGS=$CFLAGS 6197 LIBS="conftstm.$ac_objext" 6198 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6200 (eval $ac_link) 2>&5 6201 ac_status=$? 6202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6203 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6204 pipe_works=yes 6205 fi 6206 LIBS=$lt_globsym_save_LIBS 6207 CFLAGS=$lt_globsym_save_CFLAGS 6208 else 6209 echo "cannot find nm_test_func in $nlist" >&5 6210 fi 6211 else 6212 echo "cannot find nm_test_var in $nlist" >&5 6213 fi 6214 else 6215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6216 fi 6217 else 6218 echo "$progname: failed program was:" >&5 6219 cat conftest.$ac_ext >&5 6220 fi 6221 rm -rf conftest* conftst* 6222 6223 # Do not use the global_symbol_pipe unless it works. 6224 if test "$pipe_works" = yes; then 6225 break 6226 else 6227 lt_cv_sys_global_symbol_pipe= 6228 fi 6229done 6230 6231fi 6232 6233if test -z "$lt_cv_sys_global_symbol_pipe"; then 6234 lt_cv_sys_global_symbol_to_cdecl= 6235fi 6236if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6238$as_echo "failed" >&6; } 6239else 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6241$as_echo "ok" >&6; } 6242fi 6243 6244# Response file support. 6245if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6246 nm_file_list_spec='@' 6247elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6248 nm_file_list_spec='@' 6249fi 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6278$as_echo_n "checking for sysroot... " >&6; } 6279 6280# Check whether --with-sysroot was given. 6281if test "${with_sysroot+set}" = set; then : 6282 withval=$with_sysroot; 6283else 6284 with_sysroot=no 6285fi 6286 6287 6288lt_sysroot= 6289case ${with_sysroot} in #( 6290 yes) 6291 if test "$GCC" = yes; then 6292 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6293 fi 6294 ;; #( 6295 /*) 6296 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6297 ;; #( 6298 no|'') 6299 ;; #( 6300 *) 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6302$as_echo "${with_sysroot}" >&6; } 6303 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6304 ;; 6305esac 6306 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6308$as_echo "${lt_sysroot:-no}" >&6; } 6309 6310 6311 6312 6313 6314# Check whether --enable-libtool-lock was given. 6315if test "${enable_libtool_lock+set}" = set; then : 6316 enableval=$enable_libtool_lock; 6317fi 6318 6319test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6320 6321# Some flags need to be propagated to the compiler or linker for good 6322# libtool support. 6323case $host in 6324ia64-*-hpux*) 6325 # Find out which ABI we are using. 6326 echo 'int i;' > conftest.$ac_ext 6327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6328 (eval $ac_compile) 2>&5 6329 ac_status=$? 6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6331 test $ac_status = 0; }; then 6332 case `/usr/bin/file conftest.$ac_objext` in 6333 *ELF-32*) 6334 HPUX_IA64_MODE="32" 6335 ;; 6336 *ELF-64*) 6337 HPUX_IA64_MODE="64" 6338 ;; 6339 esac 6340 fi 6341 rm -rf conftest* 6342 ;; 6343*-*-irix6*) 6344 # Find out which ABI we are using. 6345 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6347 (eval $ac_compile) 2>&5 6348 ac_status=$? 6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6350 test $ac_status = 0; }; then 6351 if test "$lt_cv_prog_gnu_ld" = yes; then 6352 case `/usr/bin/file conftest.$ac_objext` in 6353 *32-bit*) 6354 LD="${LD-ld} -melf32bsmip" 6355 ;; 6356 *N32*) 6357 LD="${LD-ld} -melf32bmipn32" 6358 ;; 6359 *64-bit*) 6360 LD="${LD-ld} -melf64bmip" 6361 ;; 6362 esac 6363 else 6364 case `/usr/bin/file conftest.$ac_objext` in 6365 *32-bit*) 6366 LD="${LD-ld} -32" 6367 ;; 6368 *N32*) 6369 LD="${LD-ld} -n32" 6370 ;; 6371 *64-bit*) 6372 LD="${LD-ld} -64" 6373 ;; 6374 esac 6375 fi 6376 fi 6377 rm -rf conftest* 6378 ;; 6379 6380x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6381s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6382 # Find out which ABI we are using. 6383 echo 'int i;' > conftest.$ac_ext 6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6385 (eval $ac_compile) 2>&5 6386 ac_status=$? 6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6388 test $ac_status = 0; }; then 6389 case `/usr/bin/file conftest.o` in 6390 *32-bit*) 6391 case $host in 6392 x86_64-*kfreebsd*-gnu) 6393 LD="${LD-ld} -m elf_i386_fbsd" 6394 ;; 6395 x86_64-*linux*) 6396 LD="${LD-ld} -m elf_i386" 6397 ;; 6398 ppc64-*linux*|powerpc64-*linux*) 6399 LD="${LD-ld} -m elf32ppclinux" 6400 ;; 6401 s390x-*linux*) 6402 LD="${LD-ld} -m elf_s390" 6403 ;; 6404 sparc64-*linux*) 6405 LD="${LD-ld} -m elf32_sparc" 6406 ;; 6407 esac 6408 ;; 6409 *64-bit*) 6410 case $host in 6411 x86_64-*kfreebsd*-gnu) 6412 LD="${LD-ld} -m elf_x86_64_fbsd" 6413 ;; 6414 x86_64-*linux*) 6415 LD="${LD-ld} -m elf_x86_64" 6416 ;; 6417 ppc*-*linux*|powerpc*-*linux*) 6418 LD="${LD-ld} -m elf64ppc" 6419 ;; 6420 s390*-*linux*|s390*-*tpf*) 6421 LD="${LD-ld} -m elf64_s390" 6422 ;; 6423 sparc*-*linux*) 6424 LD="${LD-ld} -m elf64_sparc" 6425 ;; 6426 esac 6427 ;; 6428 esac 6429 fi 6430 rm -rf conftest* 6431 ;; 6432 6433*-*-sco3.2v5*) 6434 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6435 SAVE_CFLAGS="$CFLAGS" 6436 CFLAGS="$CFLAGS -belf" 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6438$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6439if ${lt_cv_cc_needs_belf+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 ac_ext=c 6443ac_cpp='$CPP $CPPFLAGS' 6444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6446ac_compiler_gnu=$ac_cv_c_compiler_gnu 6447 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450 6451int 6452main () 6453{ 6454 6455 ; 6456 return 0; 6457} 6458_ACEOF 6459if ac_fn_c_try_link "$LINENO"; then : 6460 lt_cv_cc_needs_belf=yes 6461else 6462 lt_cv_cc_needs_belf=no 6463fi 6464rm -f core conftest.err conftest.$ac_objext \ 6465 conftest$ac_exeext conftest.$ac_ext 6466 ac_ext=c 6467ac_cpp='$CPP $CPPFLAGS' 6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6470ac_compiler_gnu=$ac_cv_c_compiler_gnu 6471 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6474$as_echo "$lt_cv_cc_needs_belf" >&6; } 6475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6477 CFLAGS="$SAVE_CFLAGS" 6478 fi 6479 ;; 6480*-*solaris*) 6481 # Find out which ABI we are using. 6482 echo 'int i;' > conftest.$ac_ext 6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6484 (eval $ac_compile) 2>&5 6485 ac_status=$? 6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6487 test $ac_status = 0; }; then 6488 case `/usr/bin/file conftest.o` in 6489 *64-bit*) 6490 case $lt_cv_prog_gnu_ld in 6491 yes*) 6492 case $host in 6493 i?86-*-solaris*) 6494 LD="${LD-ld} -m elf_x86_64" 6495 ;; 6496 sparc*-*-solaris*) 6497 LD="${LD-ld} -m elf64_sparc" 6498 ;; 6499 esac 6500 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6501 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6502 LD="${LD-ld}_sol2" 6503 fi 6504 ;; 6505 *) 6506 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6507 LD="${LD-ld} -64" 6508 fi 6509 ;; 6510 esac 6511 ;; 6512 esac 6513 fi 6514 rm -rf conftest* 6515 ;; 6516esac 6517 6518need_locks="$enable_libtool_lock" 6519 6520if test -n "$ac_tool_prefix"; then 6521 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6522set dummy ${ac_tool_prefix}mt; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$MANIFEST_TOOL"; then 6529 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6538 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6549if test -n "$MANIFEST_TOOL"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6551$as_echo "$MANIFEST_TOOL" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 6558fi 6559if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6560 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6561 # Extract the first word of "mt", so it can be a program name with args. 6562set dummy mt; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$ac_ct_MANIFEST_TOOL"; then 6569 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6589if test -n "$ac_ct_MANIFEST_TOOL"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6591$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6598 MANIFEST_TOOL=":" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6607 fi 6608else 6609 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6610fi 6611 6612test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6614$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6615if ${lt_cv_path_mainfest_tool+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 lt_cv_path_mainfest_tool=no 6619 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6620 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6621 cat conftest.err >&5 6622 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6623 lt_cv_path_mainfest_tool=yes 6624 fi 6625 rm -f conftest* 6626fi 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6628$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6629if test "x$lt_cv_path_mainfest_tool" != xyes; then 6630 MANIFEST_TOOL=: 6631fi 6632 6633 6634 6635 6636 6637 6638 case $host_os in 6639 rhapsody* | darwin*) 6640 if test -n "$ac_tool_prefix"; then 6641 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6642set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644$as_echo_n "checking for $ac_word... " >&6; } 6645if ${ac_cv_prog_DSYMUTIL+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 if test -n "$DSYMUTIL"; then 6649 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6658 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668DSYMUTIL=$ac_cv_prog_DSYMUTIL 6669if test -n "$DSYMUTIL"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6671$as_echo "$DSYMUTIL" >&6; } 6672else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674$as_echo "no" >&6; } 6675fi 6676 6677 6678fi 6679if test -z "$ac_cv_prog_DSYMUTIL"; then 6680 ac_ct_DSYMUTIL=$DSYMUTIL 6681 # Extract the first word of "dsymutil", so it can be a program name with args. 6682set dummy dsymutil; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 if test -n "$ac_ct_DSYMUTIL"; then 6689 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6698 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703 done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6709if test -n "$ac_ct_DSYMUTIL"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6711$as_echo "$ac_ct_DSYMUTIL" >&6; } 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; } 6715fi 6716 6717 if test "x$ac_ct_DSYMUTIL" = x; then 6718 DSYMUTIL=":" 6719 else 6720 case $cross_compiling:$ac_tool_warned in 6721yes:) 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6724ac_tool_warned=yes ;; 6725esac 6726 DSYMUTIL=$ac_ct_DSYMUTIL 6727 fi 6728else 6729 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6730fi 6731 6732 if test -n "$ac_tool_prefix"; then 6733 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6734set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6736$as_echo_n "checking for $ac_word... " >&6; } 6737if ${ac_cv_prog_NMEDIT+:} false; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 if test -n "$NMEDIT"; then 6741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6742else 6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744for as_dir in $PATH 6745do 6746 IFS=$as_save_IFS 6747 test -z "$as_dir" && as_dir=. 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6750 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754done 6755 done 6756IFS=$as_save_IFS 6757 6758fi 6759fi 6760NMEDIT=$ac_cv_prog_NMEDIT 6761if test -n "$NMEDIT"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6763$as_echo "$NMEDIT" >&6; } 6764else 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6766$as_echo "no" >&6; } 6767fi 6768 6769 6770fi 6771if test -z "$ac_cv_prog_NMEDIT"; then 6772 ac_ct_NMEDIT=$NMEDIT 6773 # Extract the first word of "nmedit", so it can be a program name with args. 6774set dummy nmedit; ac_word=$2 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776$as_echo_n "checking for $ac_word... " >&6; } 6777if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 if test -n "$ac_ct_NMEDIT"; then 6781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6782else 6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784for as_dir in $PATH 6785do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_exec_ext in '' $ac_executable_extensions; do 6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6790 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6792 break 2 6793 fi 6794done 6795 done 6796IFS=$as_save_IFS 6797 6798fi 6799fi 6800ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6801if test -n "$ac_ct_NMEDIT"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6803$as_echo "$ac_ct_NMEDIT" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806$as_echo "no" >&6; } 6807fi 6808 6809 if test "x$ac_ct_NMEDIT" = x; then 6810 NMEDIT=":" 6811 else 6812 case $cross_compiling:$ac_tool_warned in 6813yes:) 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6816ac_tool_warned=yes ;; 6817esac 6818 NMEDIT=$ac_ct_NMEDIT 6819 fi 6820else 6821 NMEDIT="$ac_cv_prog_NMEDIT" 6822fi 6823 6824 if test -n "$ac_tool_prefix"; then 6825 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6826set dummy ${ac_tool_prefix}lipo; ac_word=$2 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6828$as_echo_n "checking for $ac_word... " >&6; } 6829if ${ac_cv_prog_LIPO+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 if test -n "$LIPO"; then 6833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6834else 6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6836for as_dir in $PATH 6837do 6838 IFS=$as_save_IFS 6839 test -z "$as_dir" && as_dir=. 6840 for ac_exec_ext in '' $ac_executable_extensions; do 6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6842 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6844 break 2 6845 fi 6846done 6847 done 6848IFS=$as_save_IFS 6849 6850fi 6851fi 6852LIPO=$ac_cv_prog_LIPO 6853if test -n "$LIPO"; then 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6855$as_echo "$LIPO" >&6; } 6856else 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6858$as_echo "no" >&6; } 6859fi 6860 6861 6862fi 6863if test -z "$ac_cv_prog_LIPO"; then 6864 ac_ct_LIPO=$LIPO 6865 # Extract the first word of "lipo", so it can be a program name with args. 6866set dummy lipo; ac_word=$2 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868$as_echo_n "checking for $ac_word... " >&6; } 6869if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 if test -n "$ac_ct_LIPO"; then 6873 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6874else 6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6882 ac_cv_prog_ac_ct_LIPO="lipo" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887 done 6888IFS=$as_save_IFS 6889 6890fi 6891fi 6892ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6893if test -n "$ac_ct_LIPO"; then 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6895$as_echo "$ac_ct_LIPO" >&6; } 6896else 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6898$as_echo "no" >&6; } 6899fi 6900 6901 if test "x$ac_ct_LIPO" = x; then 6902 LIPO=":" 6903 else 6904 case $cross_compiling:$ac_tool_warned in 6905yes:) 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6908ac_tool_warned=yes ;; 6909esac 6910 LIPO=$ac_ct_LIPO 6911 fi 6912else 6913 LIPO="$ac_cv_prog_LIPO" 6914fi 6915 6916 if test -n "$ac_tool_prefix"; then 6917 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6918set dummy ${ac_tool_prefix}otool; ac_word=$2 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6920$as_echo_n "checking for $ac_word... " >&6; } 6921if ${ac_cv_prog_OTOOL+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 if test -n "$OTOOL"; then 6925 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6926else 6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6928for as_dir in $PATH 6929do 6930 IFS=$as_save_IFS 6931 test -z "$as_dir" && as_dir=. 6932 for ac_exec_ext in '' $ac_executable_extensions; do 6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6934 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6936 break 2 6937 fi 6938done 6939 done 6940IFS=$as_save_IFS 6941 6942fi 6943fi 6944OTOOL=$ac_cv_prog_OTOOL 6945if test -n "$OTOOL"; then 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6947$as_echo "$OTOOL" >&6; } 6948else 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6950$as_echo "no" >&6; } 6951fi 6952 6953 6954fi 6955if test -z "$ac_cv_prog_OTOOL"; then 6956 ac_ct_OTOOL=$OTOOL 6957 # Extract the first word of "otool", so it can be a program name with args. 6958set dummy otool; ac_word=$2 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6960$as_echo_n "checking for $ac_word... " >&6; } 6961if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 if test -n "$ac_ct_OTOOL"; then 6965 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 test -z "$as_dir" && as_dir=. 6972 for ac_exec_ext in '' $ac_executable_extensions; do 6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6974 ac_cv_prog_ac_ct_OTOOL="otool" 6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6976 break 2 6977 fi 6978done 6979 done 6980IFS=$as_save_IFS 6981 6982fi 6983fi 6984ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6985if test -n "$ac_ct_OTOOL"; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6987$as_echo "$ac_ct_OTOOL" >&6; } 6988else 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990$as_echo "no" >&6; } 6991fi 6992 6993 if test "x$ac_ct_OTOOL" = x; then 6994 OTOOL=":" 6995 else 6996 case $cross_compiling:$ac_tool_warned in 6997yes:) 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7000ac_tool_warned=yes ;; 7001esac 7002 OTOOL=$ac_ct_OTOOL 7003 fi 7004else 7005 OTOOL="$ac_cv_prog_OTOOL" 7006fi 7007 7008 if test -n "$ac_tool_prefix"; then 7009 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7010set dummy ${ac_tool_prefix}otool64; ac_word=$2 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7012$as_echo_n "checking for $ac_word... " >&6; } 7013if ${ac_cv_prog_OTOOL64+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 if test -n "$OTOOL64"; then 7017 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7018else 7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020for as_dir in $PATH 7021do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7026 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034fi 7035fi 7036OTOOL64=$ac_cv_prog_OTOOL64 7037if test -n "$OTOOL64"; then 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7039$as_echo "$OTOOL64" >&6; } 7040else 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7042$as_echo "no" >&6; } 7043fi 7044 7045 7046fi 7047if test -z "$ac_cv_prog_OTOOL64"; then 7048 ac_ct_OTOOL64=$OTOOL64 7049 # Extract the first word of "otool64", so it can be a program name with args. 7050set dummy otool64; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$ac_ct_OTOOL64"; then 7057 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7066 ac_cv_prog_ac_ct_OTOOL64="otool64" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7077if test -n "$ac_ct_OTOOL64"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7079$as_echo "$ac_ct_OTOOL64" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 if test "x$ac_ct_OTOOL64" = x; then 7086 OTOOL64=":" 7087 else 7088 case $cross_compiling:$ac_tool_warned in 7089yes:) 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7092ac_tool_warned=yes ;; 7093esac 7094 OTOOL64=$ac_ct_OTOOL64 7095 fi 7096else 7097 OTOOL64="$ac_cv_prog_OTOOL64" 7098fi 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7127$as_echo_n "checking for -single_module linker flag... " >&6; } 7128if ${lt_cv_apple_cc_single_mod+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 lt_cv_apple_cc_single_mod=no 7132 if test -z "${LT_MULTI_MODULE}"; then 7133 # By default we will add the -single_module flag. You can override 7134 # by either setting the environment variable LT_MULTI_MODULE 7135 # non-empty at configure time, or by adding -multi_module to the 7136 # link flags. 7137 rm -rf libconftest.dylib* 7138 echo "int foo(void){return 1;}" > conftest.c 7139 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7140-dynamiclib -Wl,-single_module conftest.c" >&5 7141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7142 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7143 _lt_result=$? 7144 # If there is a non-empty error log, and "single_module" 7145 # appears in it, assume the flag caused a linker warning 7146 if test -s conftest.err && $GREP single_module conftest.err; then 7147 cat conftest.err >&5 7148 # Otherwise, if the output was created with a 0 exit code from 7149 # the compiler, it worked. 7150 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7151 lt_cv_apple_cc_single_mod=yes 7152 else 7153 cat conftest.err >&5 7154 fi 7155 rm -rf libconftest.dylib* 7156 rm -f conftest.* 7157 fi 7158fi 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7160$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7161 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7163$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7164if ${lt_cv_ld_exported_symbols_list+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 lt_cv_ld_exported_symbols_list=no 7168 save_LDFLAGS=$LDFLAGS 7169 echo "_main" > conftest.sym 7170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173 7174int 7175main () 7176{ 7177 7178 ; 7179 return 0; 7180} 7181_ACEOF 7182if ac_fn_c_try_link "$LINENO"; then : 7183 lt_cv_ld_exported_symbols_list=yes 7184else 7185 lt_cv_ld_exported_symbols_list=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext \ 7188 conftest$ac_exeext conftest.$ac_ext 7189 LDFLAGS="$save_LDFLAGS" 7190 7191fi 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7193$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7194 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7196$as_echo_n "checking for -force_load linker flag... " >&6; } 7197if ${lt_cv_ld_force_load+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 lt_cv_ld_force_load=no 7201 cat > conftest.c << _LT_EOF 7202int forced_loaded() { return 2;} 7203_LT_EOF 7204 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7205 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7206 echo "$AR cru libconftest.a conftest.o" >&5 7207 $AR cru libconftest.a conftest.o 2>&5 7208 echo "$RANLIB libconftest.a" >&5 7209 $RANLIB libconftest.a 2>&5 7210 cat > conftest.c << _LT_EOF 7211int main() { return 0;} 7212_LT_EOF 7213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7215 _lt_result=$? 7216 if test -s conftest.err && $GREP force_load conftest.err; then 7217 cat conftest.err >&5 7218 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7219 lt_cv_ld_force_load=yes 7220 else 7221 cat conftest.err >&5 7222 fi 7223 rm -f conftest.err libconftest.a conftest conftest.c 7224 rm -rf conftest.dSYM 7225 7226fi 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7228$as_echo "$lt_cv_ld_force_load" >&6; } 7229 case $host_os in 7230 rhapsody* | darwin1.[012]) 7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7232 darwin1.*) 7233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7234 darwin*) # darwin 5.x on 7235 # if running on 10.5 or later, the deployment target defaults 7236 # to the OS version, if on x86, and 10.4, the deployment 7237 # target defaults to 10.4. Don't you love it? 7238 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7239 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7240 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7241 10.[012]*) 7242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7243 10.*) 7244 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7245 esac 7246 ;; 7247 esac 7248 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7249 _lt_dar_single_mod='$single_module' 7250 fi 7251 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7252 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7253 else 7254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7255 fi 7256 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7257 _lt_dsymutil='~$DSYMUTIL $lib || :' 7258 else 7259 _lt_dsymutil= 7260 fi 7261 ;; 7262 esac 7263 7264ac_ext=c 7265ac_cpp='$CPP $CPPFLAGS' 7266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7268ac_compiler_gnu=$ac_cv_c_compiler_gnu 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7270$as_echo_n "checking how to run the C preprocessor... " >&6; } 7271# On Suns, sometimes $CPP names a directory. 7272if test -n "$CPP" && test -d "$CPP"; then 7273 CPP= 7274fi 7275if test -z "$CPP"; then 7276 if ${ac_cv_prog_CPP+:} false; then : 7277 $as_echo_n "(cached) " >&6 7278else 7279 # Double quotes because CPP needs to be expanded 7280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7281 do 7282 ac_preproc_ok=false 7283for ac_c_preproc_warn_flag in '' yes 7284do 7285 # Use a header file that comes with gcc, so configuring glibc 7286 # with a fresh cross-compiler works. 7287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7288 # <limits.h> exists even on freestanding compilers. 7289 # On the NeXT, cc -E runs the code through the compiler's parser, 7290 # not just through cpp. "Syntax error" is here to catch this case. 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293#ifdef __STDC__ 7294# include <limits.h> 7295#else 7296# include <assert.h> 7297#endif 7298 Syntax error 7299_ACEOF 7300if ac_fn_c_try_cpp "$LINENO"; then : 7301 7302else 7303 # Broken: fails on valid input. 7304continue 7305fi 7306rm -f conftest.err conftest.i conftest.$ac_ext 7307 7308 # OK, works on sane cases. Now check whether nonexistent headers 7309 # can be detected and how. 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311/* end confdefs.h. */ 7312#include <ac_nonexistent.h> 7313_ACEOF 7314if ac_fn_c_try_cpp "$LINENO"; then : 7315 # Broken: success on invalid input. 7316continue 7317else 7318 # Passes both tests. 7319ac_preproc_ok=: 7320break 7321fi 7322rm -f conftest.err conftest.i conftest.$ac_ext 7323 7324done 7325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7326rm -f conftest.i conftest.err conftest.$ac_ext 7327if $ac_preproc_ok; then : 7328 break 7329fi 7330 7331 done 7332 ac_cv_prog_CPP=$CPP 7333 7334fi 7335 CPP=$ac_cv_prog_CPP 7336else 7337 ac_cv_prog_CPP=$CPP 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7340$as_echo "$CPP" >&6; } 7341ac_preproc_ok=false 7342for ac_c_preproc_warn_flag in '' yes 7343do 7344 # Use a header file that comes with gcc, so configuring glibc 7345 # with a fresh cross-compiler works. 7346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7347 # <limits.h> exists even on freestanding compilers. 7348 # On the NeXT, cc -E runs the code through the compiler's parser, 7349 # not just through cpp. "Syntax error" is here to catch this case. 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352#ifdef __STDC__ 7353# include <limits.h> 7354#else 7355# include <assert.h> 7356#endif 7357 Syntax error 7358_ACEOF 7359if ac_fn_c_try_cpp "$LINENO"; then : 7360 7361else 7362 # Broken: fails on valid input. 7363continue 7364fi 7365rm -f conftest.err conftest.i conftest.$ac_ext 7366 7367 # OK, works on sane cases. Now check whether nonexistent headers 7368 # can be detected and how. 7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7370/* end confdefs.h. */ 7371#include <ac_nonexistent.h> 7372_ACEOF 7373if ac_fn_c_try_cpp "$LINENO"; then : 7374 # Broken: success on invalid input. 7375continue 7376else 7377 # Passes both tests. 7378ac_preproc_ok=: 7379break 7380fi 7381rm -f conftest.err conftest.i conftest.$ac_ext 7382 7383done 7384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7385rm -f conftest.i conftest.err conftest.$ac_ext 7386if $ac_preproc_ok; then : 7387 7388else 7389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7391as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7392See \`config.log' for more details" "$LINENO" 5; } 7393fi 7394 7395ac_ext=c 7396ac_cpp='$CPP $CPPFLAGS' 7397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7399ac_compiler_gnu=$ac_cv_c_compiler_gnu 7400 7401 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7403$as_echo_n "checking for ANSI C header files... " >&6; } 7404if ${ac_cv_header_stdc+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409#include <stdlib.h> 7410#include <stdarg.h> 7411#include <string.h> 7412#include <float.h> 7413 7414int 7415main () 7416{ 7417 7418 ; 7419 return 0; 7420} 7421_ACEOF 7422if ac_fn_c_try_compile "$LINENO"; then : 7423 ac_cv_header_stdc=yes 7424else 7425 ac_cv_header_stdc=no 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7428 7429if test $ac_cv_header_stdc = yes; then 7430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433#include <string.h> 7434 7435_ACEOF 7436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7437 $EGREP "memchr" >/dev/null 2>&1; then : 7438 7439else 7440 ac_cv_header_stdc=no 7441fi 7442rm -f conftest* 7443 7444fi 7445 7446if test $ac_cv_header_stdc = yes; then 7447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450#include <stdlib.h> 7451 7452_ACEOF 7453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7454 $EGREP "free" >/dev/null 2>&1; then : 7455 7456else 7457 ac_cv_header_stdc=no 7458fi 7459rm -f conftest* 7460 7461fi 7462 7463if test $ac_cv_header_stdc = yes; then 7464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7465 if test "$cross_compiling" = yes; then : 7466 : 7467else 7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470#include <ctype.h> 7471#include <stdlib.h> 7472#if ((' ' & 0x0FF) == 0x020) 7473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7475#else 7476# define ISLOWER(c) \ 7477 (('a' <= (c) && (c) <= 'i') \ 7478 || ('j' <= (c) && (c) <= 'r') \ 7479 || ('s' <= (c) && (c) <= 'z')) 7480# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7481#endif 7482 7483#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7484int 7485main () 7486{ 7487 int i; 7488 for (i = 0; i < 256; i++) 7489 if (XOR (islower (i), ISLOWER (i)) 7490 || toupper (i) != TOUPPER (i)) 7491 return 2; 7492 return 0; 7493} 7494_ACEOF 7495if ac_fn_c_try_run "$LINENO"; then : 7496 7497else 7498 ac_cv_header_stdc=no 7499fi 7500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7501 conftest.$ac_objext conftest.beam conftest.$ac_ext 7502fi 7503 7504fi 7505fi 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7507$as_echo "$ac_cv_header_stdc" >&6; } 7508if test $ac_cv_header_stdc = yes; then 7509 7510$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7511 7512fi 7513 7514# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7516 inttypes.h stdint.h unistd.h 7517do : 7518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7520" 7521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7522 cat >>confdefs.h <<_ACEOF 7523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7524_ACEOF 7525 7526fi 7527 7528done 7529 7530 7531for ac_header in dlfcn.h 7532do : 7533 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7534" 7535if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7536 cat >>confdefs.h <<_ACEOF 7537#define HAVE_DLFCN_H 1 7538_ACEOF 7539 7540fi 7541 7542done 7543 7544 7545 7546 7547 7548# Set options 7549 7550 7551 7552 enable_dlopen=no 7553 7554 7555 enable_win32_dll=no 7556 7557 7558 # Check whether --enable-shared was given. 7559if test "${enable_shared+set}" = set; then : 7560 enableval=$enable_shared; p=${PACKAGE-default} 7561 case $enableval in 7562 yes) enable_shared=yes ;; 7563 no) enable_shared=no ;; 7564 *) 7565 enable_shared=no 7566 # Look at the argument we got. We use all the common list separators. 7567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7568 for pkg in $enableval; do 7569 IFS="$lt_save_ifs" 7570 if test "X$pkg" = "X$p"; then 7571 enable_shared=yes 7572 fi 7573 done 7574 IFS="$lt_save_ifs" 7575 ;; 7576 esac 7577else 7578 enable_shared=yes 7579fi 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 # Check whether --enable-static was given. 7590if test "${enable_static+set}" = set; then : 7591 enableval=$enable_static; p=${PACKAGE-default} 7592 case $enableval in 7593 yes) enable_static=yes ;; 7594 no) enable_static=no ;; 7595 *) 7596 enable_static=no 7597 # Look at the argument we got. We use all the common list separators. 7598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7599 for pkg in $enableval; do 7600 IFS="$lt_save_ifs" 7601 if test "X$pkg" = "X$p"; then 7602 enable_static=yes 7603 fi 7604 done 7605 IFS="$lt_save_ifs" 7606 ;; 7607 esac 7608else 7609 enable_static=yes 7610fi 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621# Check whether --with-pic was given. 7622if test "${with_pic+set}" = set; then : 7623 withval=$with_pic; lt_p=${PACKAGE-default} 7624 case $withval in 7625 yes|no) pic_mode=$withval ;; 7626 *) 7627 pic_mode=default 7628 # Look at the argument we got. We use all the common list separators. 7629 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7630 for lt_pkg in $withval; do 7631 IFS="$lt_save_ifs" 7632 if test "X$lt_pkg" = "X$lt_p"; then 7633 pic_mode=yes 7634 fi 7635 done 7636 IFS="$lt_save_ifs" 7637 ;; 7638 esac 7639else 7640 pic_mode=default 7641fi 7642 7643 7644test -z "$pic_mode" && pic_mode=default 7645 7646 7647 7648 7649 7650 7651 7652 # Check whether --enable-fast-install was given. 7653if test "${enable_fast_install+set}" = set; then : 7654 enableval=$enable_fast_install; p=${PACKAGE-default} 7655 case $enableval in 7656 yes) enable_fast_install=yes ;; 7657 no) enable_fast_install=no ;; 7658 *) 7659 enable_fast_install=no 7660 # Look at the argument we got. We use all the common list separators. 7661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7662 for pkg in $enableval; do 7663 IFS="$lt_save_ifs" 7664 if test "X$pkg" = "X$p"; then 7665 enable_fast_install=yes 7666 fi 7667 done 7668 IFS="$lt_save_ifs" 7669 ;; 7670 esac 7671else 7672 enable_fast_install=yes 7673fi 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685# This can be used to rebuild libtool when needed 7686LIBTOOL_DEPS="$ltmain" 7687 7688# Always use our own libtool. 7689LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720test -z "$LN_S" && LN_S="ln -s" 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735if test -n "${ZSH_VERSION+set}" ; then 7736 setopt NO_GLOB_SUBST 7737fi 7738 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7740$as_echo_n "checking for objdir... " >&6; } 7741if ${lt_cv_objdir+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 rm -f .libs 2>/dev/null 7745mkdir .libs 2>/dev/null 7746if test -d .libs; then 7747 lt_cv_objdir=.libs 7748else 7749 # MS-DOS does not allow filenames that begin with a dot. 7750 lt_cv_objdir=_libs 7751fi 7752rmdir .libs 2>/dev/null 7753fi 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7755$as_echo "$lt_cv_objdir" >&6; } 7756objdir=$lt_cv_objdir 7757 7758 7759 7760 7761 7762cat >>confdefs.h <<_ACEOF 7763#define LT_OBJDIR "$lt_cv_objdir/" 7764_ACEOF 7765 7766 7767 7768 7769case $host_os in 7770aix3*) 7771 # AIX sometimes has problems with the GCC collect2 program. For some 7772 # reason, if we set the COLLECT_NAMES environment variable, the problems 7773 # vanish in a puff of smoke. 7774 if test "X${COLLECT_NAMES+set}" != Xset; then 7775 COLLECT_NAMES= 7776 export COLLECT_NAMES 7777 fi 7778 ;; 7779esac 7780 7781# Global variables: 7782ofile=libtool 7783can_build_shared=yes 7784 7785# All known linkers require a `.a' archive for static linking (except MSVC, 7786# which needs '.lib'). 7787libext=a 7788 7789with_gnu_ld="$lt_cv_prog_gnu_ld" 7790 7791old_CC="$CC" 7792old_CFLAGS="$CFLAGS" 7793 7794# Set sane defaults for various variables 7795test -z "$CC" && CC=cc 7796test -z "$LTCC" && LTCC=$CC 7797test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7798test -z "$LD" && LD=ld 7799test -z "$ac_objext" && ac_objext=o 7800 7801for cc_temp in $compiler""; do 7802 case $cc_temp in 7803 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7804 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7805 \-*) ;; 7806 *) break;; 7807 esac 7808done 7809cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7810 7811 7812# Only perform the check for file, if the check method requires it 7813test -z "$MAGIC_CMD" && MAGIC_CMD=file 7814case $deplibs_check_method in 7815file_magic*) 7816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7818$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7819if ${lt_cv_path_MAGIC_CMD+:} false; then : 7820 $as_echo_n "(cached) " >&6 7821else 7822 case $MAGIC_CMD in 7823[\\/*] | ?:[\\/]*) 7824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7825 ;; 7826*) 7827 lt_save_MAGIC_CMD="$MAGIC_CMD" 7828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7830 for ac_dir in $ac_dummy; do 7831 IFS="$lt_save_ifs" 7832 test -z "$ac_dir" && ac_dir=. 7833 if test -f $ac_dir/${ac_tool_prefix}file; then 7834 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7835 if test -n "$file_magic_test_file"; then 7836 case $deplibs_check_method in 7837 "file_magic "*) 7838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7841 $EGREP "$file_magic_regex" > /dev/null; then 7842 : 7843 else 7844 cat <<_LT_EOF 1>&2 7845 7846*** Warning: the command libtool uses to detect shared libraries, 7847*** $file_magic_cmd, produces output that libtool cannot recognize. 7848*** The result is that libtool may fail to recognize shared libraries 7849*** as such. This will affect the creation of libtool libraries that 7850*** depend on shared libraries, but programs linked with such libtool 7851*** libraries will work regardless of this problem. Nevertheless, you 7852*** may want to report the problem to your system manager and/or to 7853*** bug-libtool@gnu.org 7854 7855_LT_EOF 7856 fi ;; 7857 esac 7858 fi 7859 break 7860 fi 7861 done 7862 IFS="$lt_save_ifs" 7863 MAGIC_CMD="$lt_save_MAGIC_CMD" 7864 ;; 7865esac 7866fi 7867 7868MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7869if test -n "$MAGIC_CMD"; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7871$as_echo "$MAGIC_CMD" >&6; } 7872else 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875fi 7876 7877 7878 7879 7880 7881if test -z "$lt_cv_path_MAGIC_CMD"; then 7882 if test -n "$ac_tool_prefix"; then 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7884$as_echo_n "checking for file... " >&6; } 7885if ${lt_cv_path_MAGIC_CMD+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 case $MAGIC_CMD in 7889[\\/*] | ?:[\\/]*) 7890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7891 ;; 7892*) 7893 lt_save_MAGIC_CMD="$MAGIC_CMD" 7894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7896 for ac_dir in $ac_dummy; do 7897 IFS="$lt_save_ifs" 7898 test -z "$ac_dir" && ac_dir=. 7899 if test -f $ac_dir/file; then 7900 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7901 if test -n "$file_magic_test_file"; then 7902 case $deplibs_check_method in 7903 "file_magic "*) 7904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7907 $EGREP "$file_magic_regex" > /dev/null; then 7908 : 7909 else 7910 cat <<_LT_EOF 1>&2 7911 7912*** Warning: the command libtool uses to detect shared libraries, 7913*** $file_magic_cmd, produces output that libtool cannot recognize. 7914*** The result is that libtool may fail to recognize shared libraries 7915*** as such. This will affect the creation of libtool libraries that 7916*** depend on shared libraries, but programs linked with such libtool 7917*** libraries will work regardless of this problem. Nevertheless, you 7918*** may want to report the problem to your system manager and/or to 7919*** bug-libtool@gnu.org 7920 7921_LT_EOF 7922 fi ;; 7923 esac 7924 fi 7925 break 7926 fi 7927 done 7928 IFS="$lt_save_ifs" 7929 MAGIC_CMD="$lt_save_MAGIC_CMD" 7930 ;; 7931esac 7932fi 7933 7934MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7935if test -n "$MAGIC_CMD"; then 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7937$as_echo "$MAGIC_CMD" >&6; } 7938else 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7940$as_echo "no" >&6; } 7941fi 7942 7943 7944 else 7945 MAGIC_CMD=: 7946 fi 7947fi 7948 7949 fi 7950 ;; 7951esac 7952 7953# Use C for the default configuration in the libtool script 7954 7955lt_save_CC="$CC" 7956ac_ext=c 7957ac_cpp='$CPP $CPPFLAGS' 7958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7960ac_compiler_gnu=$ac_cv_c_compiler_gnu 7961 7962 7963# Source file extension for C test sources. 7964ac_ext=c 7965 7966# Object file extension for compiled C test sources. 7967objext=o 7968objext=$objext 7969 7970# Code to be used in simple compile tests 7971lt_simple_compile_test_code="int some_variable = 0;" 7972 7973# Code to be used in simple link tests 7974lt_simple_link_test_code='int main(){return(0);}' 7975 7976 7977 7978 7979 7980 7981 7982# If no C compiler was specified, use CC. 7983LTCC=${LTCC-"$CC"} 7984 7985# If no C compiler flags were specified, use CFLAGS. 7986LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7987 7988# Allow CC to be a program name with arguments. 7989compiler=$CC 7990 7991# Save the default compiler, since it gets overwritten when the other 7992# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7993compiler_DEFAULT=$CC 7994 7995# save warnings/boilerplate of simple test code 7996ac_outfile=conftest.$ac_objext 7997echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7999_lt_compiler_boilerplate=`cat conftest.err` 8000$RM conftest* 8001 8002ac_outfile=conftest.$ac_objext 8003echo "$lt_simple_link_test_code" >conftest.$ac_ext 8004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8005_lt_linker_boilerplate=`cat conftest.err` 8006$RM -r conftest* 8007 8008 8009if test -n "$compiler"; then 8010 8011lt_prog_compiler_no_builtin_flag= 8012 8013if test "$GCC" = yes; then 8014 case $cc_basename in 8015 nvcc*) 8016 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8017 *) 8018 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8019 esac 8020 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8022$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8023if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 lt_cv_prog_compiler_rtti_exceptions=no 8027 ac_outfile=conftest.$ac_objext 8028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8029 lt_compiler_flag="-fno-rtti -fno-exceptions" 8030 # Insert the option either (1) after the last *FLAGS variable, or 8031 # (2) before a word containing "conftest.", or (3) at the end. 8032 # Note that $ac_compile itself does not contain backslashes and begins 8033 # with a dollar sign (not a hyphen), so the echo should work correctly. 8034 # The option is referenced via a variable to avoid confusing sed. 8035 lt_compile=`echo "$ac_compile" | $SED \ 8036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8038 -e 's:$: $lt_compiler_flag:'` 8039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8040 (eval "$lt_compile" 2>conftest.err) 8041 ac_status=$? 8042 cat conftest.err >&5 8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8044 if (exit $ac_status) && test -s "$ac_outfile"; then 8045 # The compiler can only warn and ignore the option if not recognized 8046 # So say no if there are warnings other than the usual output. 8047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8050 lt_cv_prog_compiler_rtti_exceptions=yes 8051 fi 8052 fi 8053 $RM conftest* 8054 8055fi 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8057$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8058 8059if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8061else 8062 : 8063fi 8064 8065fi 8066 8067 8068 8069 8070 8071 8072 lt_prog_compiler_wl= 8073lt_prog_compiler_pic= 8074lt_prog_compiler_static= 8075 8076 8077 if test "$GCC" = yes; then 8078 lt_prog_compiler_wl='-Wl,' 8079 lt_prog_compiler_static='-static' 8080 8081 case $host_os in 8082 aix*) 8083 # All AIX code is PIC. 8084 if test "$host_cpu" = ia64; then 8085 # AIX 5 now supports IA64 processor 8086 lt_prog_compiler_static='-Bstatic' 8087 fi 8088 ;; 8089 8090 amigaos*) 8091 case $host_cpu in 8092 powerpc) 8093 # see comment about AmigaOS4 .so support 8094 lt_prog_compiler_pic='-fPIC' 8095 ;; 8096 m68k) 8097 # FIXME: we need at least 68020 code to build shared libraries, but 8098 # adding the `-m68020' flag to GCC prevents building anything better, 8099 # like `-m68040'. 8100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8101 ;; 8102 esac 8103 ;; 8104 8105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8106 # PIC is the default for these OSes. 8107 ;; 8108 8109 mingw* | cygwin* | pw32* | os2* | cegcc*) 8110 # This hack is so that the source file can tell whether it is being 8111 # built for inclusion in a dll (and should export symbols for example). 8112 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8113 # (--disable-auto-import) libraries 8114 lt_prog_compiler_pic='-DDLL_EXPORT' 8115 ;; 8116 8117 darwin* | rhapsody*) 8118 # PIC is the default on this platform 8119 # Common symbols not allowed in MH_DYLIB files 8120 lt_prog_compiler_pic='-fno-common' 8121 ;; 8122 8123 haiku*) 8124 # PIC is the default for Haiku. 8125 # The "-static" flag exists, but is broken. 8126 lt_prog_compiler_static= 8127 ;; 8128 8129 hpux*) 8130 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8131 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8132 # sets the default TLS model and affects inlining. 8133 case $host_cpu in 8134 hppa*64*) 8135 # +Z the default 8136 ;; 8137 *) 8138 lt_prog_compiler_pic='-fPIC' 8139 ;; 8140 esac 8141 ;; 8142 8143 interix[3-9]*) 8144 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8145 # Instead, we relocate shared libraries at runtime. 8146 ;; 8147 8148 msdosdjgpp*) 8149 # Just because we use GCC doesn't mean we suddenly get shared libraries 8150 # on systems that don't support them. 8151 lt_prog_compiler_can_build_shared=no 8152 enable_shared=no 8153 ;; 8154 8155 *nto* | *qnx*) 8156 # QNX uses GNU C++, but need to define -shared option too, otherwise 8157 # it will coredump. 8158 lt_prog_compiler_pic='-fPIC -shared' 8159 ;; 8160 8161 sysv4*MP*) 8162 if test -d /usr/nec; then 8163 lt_prog_compiler_pic=-Kconform_pic 8164 fi 8165 ;; 8166 8167 *) 8168 lt_prog_compiler_pic='-fPIC' 8169 ;; 8170 esac 8171 8172 case $cc_basename in 8173 nvcc*) # Cuda Compiler Driver 2.2 8174 lt_prog_compiler_wl='-Xlinker ' 8175 if test -n "$lt_prog_compiler_pic"; then 8176 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8177 fi 8178 ;; 8179 esac 8180 else 8181 # PORTME Check for flag to pass linker flags through the system compiler. 8182 case $host_os in 8183 aix*) 8184 lt_prog_compiler_wl='-Wl,' 8185 if test "$host_cpu" = ia64; then 8186 # AIX 5 now supports IA64 processor 8187 lt_prog_compiler_static='-Bstatic' 8188 else 8189 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8190 fi 8191 ;; 8192 8193 mingw* | cygwin* | pw32* | os2* | cegcc*) 8194 # This hack is so that the source file can tell whether it is being 8195 # built for inclusion in a dll (and should export symbols for example). 8196 lt_prog_compiler_pic='-DDLL_EXPORT' 8197 ;; 8198 8199 hpux9* | hpux10* | hpux11*) 8200 lt_prog_compiler_wl='-Wl,' 8201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8202 # not for PA HP-UX. 8203 case $host_cpu in 8204 hppa*64*|ia64*) 8205 # +Z the default 8206 ;; 8207 *) 8208 lt_prog_compiler_pic='+Z' 8209 ;; 8210 esac 8211 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8212 lt_prog_compiler_static='${wl}-a ${wl}archive' 8213 ;; 8214 8215 irix5* | irix6* | nonstopux*) 8216 lt_prog_compiler_wl='-Wl,' 8217 # PIC (with -KPIC) is the default. 8218 lt_prog_compiler_static='-non_shared' 8219 ;; 8220 8221 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8222 case $cc_basename in 8223 # old Intel for x86_64 which still supported -KPIC. 8224 ecc*) 8225 lt_prog_compiler_wl='-Wl,' 8226 lt_prog_compiler_pic='-KPIC' 8227 lt_prog_compiler_static='-static' 8228 ;; 8229 # icc used to be incompatible with GCC. 8230 # ICC 10 doesn't accept -KPIC any more. 8231 icc* | ifort*) 8232 lt_prog_compiler_wl='-Wl,' 8233 lt_prog_compiler_pic='-fPIC' 8234 lt_prog_compiler_static='-static' 8235 ;; 8236 # Lahey Fortran 8.1. 8237 lf95*) 8238 lt_prog_compiler_wl='-Wl,' 8239 lt_prog_compiler_pic='--shared' 8240 lt_prog_compiler_static='--static' 8241 ;; 8242 nagfor*) 8243 # NAG Fortran compiler 8244 lt_prog_compiler_wl='-Wl,-Wl,,' 8245 lt_prog_compiler_pic='-PIC' 8246 lt_prog_compiler_static='-Bstatic' 8247 ;; 8248 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8249 # Portland Group compilers (*not* the Pentium gcc compiler, 8250 # which looks to be a dead project) 8251 lt_prog_compiler_wl='-Wl,' 8252 lt_prog_compiler_pic='-fpic' 8253 lt_prog_compiler_static='-Bstatic' 8254 ;; 8255 ccc*) 8256 lt_prog_compiler_wl='-Wl,' 8257 # All Alpha code is PIC. 8258 lt_prog_compiler_static='-non_shared' 8259 ;; 8260 xl* | bgxl* | bgf* | mpixl*) 8261 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8262 lt_prog_compiler_wl='-Wl,' 8263 lt_prog_compiler_pic='-qpic' 8264 lt_prog_compiler_static='-qstaticlink' 8265 ;; 8266 *) 8267 case `$CC -V 2>&1 | sed 5q` in 8268 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8269 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8270 lt_prog_compiler_pic='-KPIC' 8271 lt_prog_compiler_static='-Bstatic' 8272 lt_prog_compiler_wl='' 8273 ;; 8274 *Sun\ F* | *Sun*Fortran*) 8275 lt_prog_compiler_pic='-KPIC' 8276 lt_prog_compiler_static='-Bstatic' 8277 lt_prog_compiler_wl='-Qoption ld ' 8278 ;; 8279 *Sun\ C*) 8280 # Sun C 5.9 8281 lt_prog_compiler_pic='-KPIC' 8282 lt_prog_compiler_static='-Bstatic' 8283 lt_prog_compiler_wl='-Wl,' 8284 ;; 8285 *Intel*\ [CF]*Compiler*) 8286 lt_prog_compiler_wl='-Wl,' 8287 lt_prog_compiler_pic='-fPIC' 8288 lt_prog_compiler_static='-static' 8289 ;; 8290 *Portland\ Group*) 8291 lt_prog_compiler_wl='-Wl,' 8292 lt_prog_compiler_pic='-fpic' 8293 lt_prog_compiler_static='-Bstatic' 8294 ;; 8295 esac 8296 ;; 8297 esac 8298 ;; 8299 8300 newsos6) 8301 lt_prog_compiler_pic='-KPIC' 8302 lt_prog_compiler_static='-Bstatic' 8303 ;; 8304 8305 *nto* | *qnx*) 8306 # QNX uses GNU C++, but need to define -shared option too, otherwise 8307 # it will coredump. 8308 lt_prog_compiler_pic='-fPIC -shared' 8309 ;; 8310 8311 osf3* | osf4* | osf5*) 8312 lt_prog_compiler_wl='-Wl,' 8313 # All OSF/1 code is PIC. 8314 lt_prog_compiler_static='-non_shared' 8315 ;; 8316 8317 rdos*) 8318 lt_prog_compiler_static='-non_shared' 8319 ;; 8320 8321 solaris*) 8322 lt_prog_compiler_pic='-KPIC' 8323 lt_prog_compiler_static='-Bstatic' 8324 case $cc_basename in 8325 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8326 lt_prog_compiler_wl='-Qoption ld ';; 8327 *) 8328 lt_prog_compiler_wl='-Wl,';; 8329 esac 8330 ;; 8331 8332 sunos4*) 8333 lt_prog_compiler_wl='-Qoption ld ' 8334 lt_prog_compiler_pic='-PIC' 8335 lt_prog_compiler_static='-Bstatic' 8336 ;; 8337 8338 sysv4 | sysv4.2uw2* | sysv4.3*) 8339 lt_prog_compiler_wl='-Wl,' 8340 lt_prog_compiler_pic='-KPIC' 8341 lt_prog_compiler_static='-Bstatic' 8342 ;; 8343 8344 sysv4*MP*) 8345 if test -d /usr/nec ;then 8346 lt_prog_compiler_pic='-Kconform_pic' 8347 lt_prog_compiler_static='-Bstatic' 8348 fi 8349 ;; 8350 8351 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8352 lt_prog_compiler_wl='-Wl,' 8353 lt_prog_compiler_pic='-KPIC' 8354 lt_prog_compiler_static='-Bstatic' 8355 ;; 8356 8357 unicos*) 8358 lt_prog_compiler_wl='-Wl,' 8359 lt_prog_compiler_can_build_shared=no 8360 ;; 8361 8362 uts4*) 8363 lt_prog_compiler_pic='-pic' 8364 lt_prog_compiler_static='-Bstatic' 8365 ;; 8366 8367 *) 8368 lt_prog_compiler_can_build_shared=no 8369 ;; 8370 esac 8371 fi 8372 8373case $host_os in 8374 # For platforms which do not support PIC, -DPIC is meaningless: 8375 *djgpp*) 8376 lt_prog_compiler_pic= 8377 ;; 8378 *) 8379 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8380 ;; 8381esac 8382 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8384$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8385if ${lt_cv_prog_compiler_pic+:} false; then : 8386 $as_echo_n "(cached) " >&6 8387else 8388 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8391$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8392lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8393 8394# 8395# Check to make sure the PIC flag actually works. 8396# 8397if test -n "$lt_prog_compiler_pic"; then 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8399$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8400if ${lt_cv_prog_compiler_pic_works+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 lt_cv_prog_compiler_pic_works=no 8404 ac_outfile=conftest.$ac_objext 8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8406 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8407 # Insert the option either (1) after the last *FLAGS variable, or 8408 # (2) before a word containing "conftest.", or (3) at the end. 8409 # Note that $ac_compile itself does not contain backslashes and begins 8410 # with a dollar sign (not a hyphen), so the echo should work correctly. 8411 # The option is referenced via a variable to avoid confusing sed. 8412 lt_compile=`echo "$ac_compile" | $SED \ 8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8415 -e 's:$: $lt_compiler_flag:'` 8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8417 (eval "$lt_compile" 2>conftest.err) 8418 ac_status=$? 8419 cat conftest.err >&5 8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8421 if (exit $ac_status) && test -s "$ac_outfile"; then 8422 # The compiler can only warn and ignore the option if not recognized 8423 # So say no if there are warnings other than the usual output. 8424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8427 lt_cv_prog_compiler_pic_works=yes 8428 fi 8429 fi 8430 $RM conftest* 8431 8432fi 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8434$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8435 8436if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8437 case $lt_prog_compiler_pic in 8438 "" | " "*) ;; 8439 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8440 esac 8441else 8442 lt_prog_compiler_pic= 8443 lt_prog_compiler_can_build_shared=no 8444fi 8445 8446fi 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458# 8459# Check to make sure the static flag actually works. 8460# 8461wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8463$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8464if ${lt_cv_prog_compiler_static_works+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 lt_cv_prog_compiler_static_works=no 8468 save_LDFLAGS="$LDFLAGS" 8469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8470 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8472 # The linker can only warn and ignore the option if not recognized 8473 # So say no if there are warnings 8474 if test -s conftest.err; then 8475 # Append any errors to the config.log. 8476 cat conftest.err 1>&5 8477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8479 if diff conftest.exp conftest.er2 >/dev/null; then 8480 lt_cv_prog_compiler_static_works=yes 8481 fi 8482 else 8483 lt_cv_prog_compiler_static_works=yes 8484 fi 8485 fi 8486 $RM -r conftest* 8487 LDFLAGS="$save_LDFLAGS" 8488 8489fi 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8491$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8492 8493if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8494 : 8495else 8496 lt_prog_compiler_static= 8497fi 8498 8499 8500 8501 8502 8503 8504 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8506$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8507if ${lt_cv_prog_compiler_c_o+:} false; then : 8508 $as_echo_n "(cached) " >&6 8509else 8510 lt_cv_prog_compiler_c_o=no 8511 $RM -r conftest 2>/dev/null 8512 mkdir conftest 8513 cd conftest 8514 mkdir out 8515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8516 8517 lt_compiler_flag="-o out/conftest2.$ac_objext" 8518 # Insert the option either (1) after the last *FLAGS variable, or 8519 # (2) before a word containing "conftest.", or (3) at the end. 8520 # Note that $ac_compile itself does not contain backslashes and begins 8521 # with a dollar sign (not a hyphen), so the echo should work correctly. 8522 lt_compile=`echo "$ac_compile" | $SED \ 8523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8525 -e 's:$: $lt_compiler_flag:'` 8526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8527 (eval "$lt_compile" 2>out/conftest.err) 8528 ac_status=$? 8529 cat out/conftest.err >&5 8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8531 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8532 then 8533 # The compiler can only warn and ignore the option if not recognized 8534 # So say no if there are warnings 8535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8538 lt_cv_prog_compiler_c_o=yes 8539 fi 8540 fi 8541 chmod u+w . 2>&5 8542 $RM conftest* 8543 # SGI C++ compiler will create directory out/ii_files/ for 8544 # template instantiation 8545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8546 $RM out/* && rmdir out 8547 cd .. 8548 $RM -r conftest 8549 $RM conftest* 8550 8551fi 8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8553$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8554 8555 8556 8557 8558 8559 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8561$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8562if ${lt_cv_prog_compiler_c_o+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564else 8565 lt_cv_prog_compiler_c_o=no 8566 $RM -r conftest 2>/dev/null 8567 mkdir conftest 8568 cd conftest 8569 mkdir out 8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8571 8572 lt_compiler_flag="-o out/conftest2.$ac_objext" 8573 # Insert the option either (1) after the last *FLAGS variable, or 8574 # (2) before a word containing "conftest.", or (3) at the end. 8575 # Note that $ac_compile itself does not contain backslashes and begins 8576 # with a dollar sign (not a hyphen), so the echo should work correctly. 8577 lt_compile=`echo "$ac_compile" | $SED \ 8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8580 -e 's:$: $lt_compiler_flag:'` 8581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8582 (eval "$lt_compile" 2>out/conftest.err) 8583 ac_status=$? 8584 cat out/conftest.err >&5 8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8586 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8587 then 8588 # The compiler can only warn and ignore the option if not recognized 8589 # So say no if there are warnings 8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8593 lt_cv_prog_compiler_c_o=yes 8594 fi 8595 fi 8596 chmod u+w . 2>&5 8597 $RM conftest* 8598 # SGI C++ compiler will create directory out/ii_files/ for 8599 # template instantiation 8600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8601 $RM out/* && rmdir out 8602 cd .. 8603 $RM -r conftest 8604 $RM conftest* 8605 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8608$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8609 8610 8611 8612 8613hard_links="nottested" 8614if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8615 # do not overwrite the value of need_locks provided by the user 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8617$as_echo_n "checking if we can lock with hard links... " >&6; } 8618 hard_links=yes 8619 $RM conftest* 8620 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8621 touch conftest.a 8622 ln conftest.a conftest.b 2>&5 || hard_links=no 8623 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8625$as_echo "$hard_links" >&6; } 8626 if test "$hard_links" = no; then 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8628$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8629 need_locks=warn 8630 fi 8631else 8632 need_locks=no 8633fi 8634 8635 8636 8637 8638 8639 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8641$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8642 8643 runpath_var= 8644 allow_undefined_flag= 8645 always_export_symbols=no 8646 archive_cmds= 8647 archive_expsym_cmds= 8648 compiler_needs_object=no 8649 enable_shared_with_static_runtimes=no 8650 export_dynamic_flag_spec= 8651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8652 hardcode_automatic=no 8653 hardcode_direct=no 8654 hardcode_direct_absolute=no 8655 hardcode_libdir_flag_spec= 8656 hardcode_libdir_separator= 8657 hardcode_minus_L=no 8658 hardcode_shlibpath_var=unsupported 8659 inherit_rpath=no 8660 link_all_deplibs=unknown 8661 module_cmds= 8662 module_expsym_cmds= 8663 old_archive_from_new_cmds= 8664 old_archive_from_expsyms_cmds= 8665 thread_safe_flag_spec= 8666 whole_archive_flag_spec= 8667 # include_expsyms should be a list of space-separated symbols to be *always* 8668 # included in the symbol list 8669 include_expsyms= 8670 # exclude_expsyms can be an extended regexp of symbols to exclude 8671 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8672 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8673 # as well as any symbol that contains `d'. 8674 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8675 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8676 # platforms (ab)use it in PIC code, but their linkers get confused if 8677 # the symbol is explicitly referenced. Since portable code cannot 8678 # rely on this symbol name, it's probably fine to never include it in 8679 # preloaded symbol tables. 8680 # Exclude shared library initialization/finalization symbols. 8681 extract_expsyms_cmds= 8682 8683 case $host_os in 8684 cygwin* | mingw* | pw32* | cegcc*) 8685 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8686 # When not using gcc, we currently assume that we are using 8687 # Microsoft Visual C++. 8688 if test "$GCC" != yes; then 8689 with_gnu_ld=no 8690 fi 8691 ;; 8692 interix*) 8693 # we just hope/assume this is gcc and not c89 (= MSVC++) 8694 with_gnu_ld=yes 8695 ;; 8696 openbsd*) 8697 with_gnu_ld=no 8698 ;; 8699 esac 8700 8701 ld_shlibs=yes 8702 8703 # On some targets, GNU ld is compatible enough with the native linker 8704 # that we're better off using the native interface for both. 8705 lt_use_gnu_ld_interface=no 8706 if test "$with_gnu_ld" = yes; then 8707 case $host_os in 8708 aix*) 8709 # The AIX port of GNU ld has always aspired to compatibility 8710 # with the native linker. However, as the warning in the GNU ld 8711 # block says, versions before 2.19.5* couldn't really create working 8712 # shared libraries, regardless of the interface used. 8713 case `$LD -v 2>&1` in 8714 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8715 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8716 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8717 *) 8718 lt_use_gnu_ld_interface=yes 8719 ;; 8720 esac 8721 ;; 8722 *) 8723 lt_use_gnu_ld_interface=yes 8724 ;; 8725 esac 8726 fi 8727 8728 if test "$lt_use_gnu_ld_interface" = yes; then 8729 # If archive_cmds runs LD, not CC, wlarc should be empty 8730 wlarc='${wl}' 8731 8732 # Set some defaults for GNU ld with shared library support. These 8733 # are reset later if shared libraries are not supported. Putting them 8734 # here allows them to be overridden if necessary. 8735 runpath_var=LD_RUN_PATH 8736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8737 export_dynamic_flag_spec='${wl}--export-dynamic' 8738 # ancient GNU ld didn't support --whole-archive et. al. 8739 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8740 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8741 else 8742 whole_archive_flag_spec= 8743 fi 8744 supports_anon_versioning=no 8745 case `$LD -v 2>&1` in 8746 *GNU\ gold*) supports_anon_versioning=yes ;; 8747 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8748 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8749 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8750 *\ 2.11.*) ;; # other 2.11 versions 8751 *) supports_anon_versioning=yes ;; 8752 esac 8753 8754 # See if GNU ld supports shared libraries. 8755 case $host_os in 8756 aix[3-9]*) 8757 # On AIX/PPC, the GNU linker is very broken 8758 if test "$host_cpu" != ia64; then 8759 ld_shlibs=no 8760 cat <<_LT_EOF 1>&2 8761 8762*** Warning: the GNU linker, at least up to release 2.19, is reported 8763*** to be unable to reliably create shared libraries on AIX. 8764*** Therefore, libtool is disabling shared libraries support. If you 8765*** really care for shared libraries, you may want to install binutils 8766*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8767*** You will then need to restart the configuration process. 8768 8769_LT_EOF 8770 fi 8771 ;; 8772 8773 amigaos*) 8774 case $host_cpu in 8775 powerpc) 8776 # see comment about AmigaOS4 .so support 8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8778 archive_expsym_cmds='' 8779 ;; 8780 m68k) 8781 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)' 8782 hardcode_libdir_flag_spec='-L$libdir' 8783 hardcode_minus_L=yes 8784 ;; 8785 esac 8786 ;; 8787 8788 beos*) 8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8790 allow_undefined_flag=unsupported 8791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8792 # support --undefined. This deserves some investigation. FIXME 8793 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8794 else 8795 ld_shlibs=no 8796 fi 8797 ;; 8798 8799 cygwin* | mingw* | pw32* | cegcc*) 8800 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8801 # as there is no search path for DLLs. 8802 hardcode_libdir_flag_spec='-L$libdir' 8803 export_dynamic_flag_spec='${wl}--export-all-symbols' 8804 allow_undefined_flag=unsupported 8805 always_export_symbols=no 8806 enable_shared_with_static_runtimes=yes 8807 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' 8808 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8809 8810 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8812 # If the export-symbols file already is a .def file (1st line 8813 # is EXPORTS), use it as is; otherwise, prepend... 8814 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8815 cp $export_symbols $output_objdir/$soname.def; 8816 else 8817 echo EXPORTS > $output_objdir/$soname.def; 8818 cat $export_symbols >> $output_objdir/$soname.def; 8819 fi~ 8820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8821 else 8822 ld_shlibs=no 8823 fi 8824 ;; 8825 8826 haiku*) 8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8828 link_all_deplibs=yes 8829 ;; 8830 8831 interix[3-9]*) 8832 hardcode_direct=no 8833 hardcode_shlibpath_var=no 8834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8835 export_dynamic_flag_spec='${wl}-E' 8836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8837 # Instead, shared libraries are loaded at an image base (0x10000000 by 8838 # default) and relocated if they conflict, which is a slow very memory 8839 # consuming and fragmenting process. To avoid this, we pick a random, 8840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8841 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8843 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' 8844 ;; 8845 8846 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8847 tmp_diet=no 8848 if test "$host_os" = linux-dietlibc; then 8849 case $cc_basename in 8850 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8851 esac 8852 fi 8853 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8854 && test "$tmp_diet" = no 8855 then 8856 tmp_addflag=' $pic_flag' 8857 tmp_sharedflag='-shared' 8858 case $cc_basename,$host_cpu in 8859 pgcc*) # Portland Group C compiler 8860 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' 8861 tmp_addflag=' $pic_flag' 8862 ;; 8863 pgf77* | pgf90* | pgf95* | pgfortran*) 8864 # Portland Group f77 and f90 compilers 8865 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' 8866 tmp_addflag=' $pic_flag -Mnomain' ;; 8867 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8868 tmp_addflag=' -i_dynamic' ;; 8869 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8870 tmp_addflag=' -i_dynamic -nofor_main' ;; 8871 ifc* | ifort*) # Intel Fortran compiler 8872 tmp_addflag=' -nofor_main' ;; 8873 lf95*) # Lahey Fortran 8.1 8874 whole_archive_flag_spec= 8875 tmp_sharedflag='--shared' ;; 8876 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8877 tmp_sharedflag='-qmkshrobj' 8878 tmp_addflag= ;; 8879 nvcc*) # Cuda Compiler Driver 2.2 8880 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' 8881 compiler_needs_object=yes 8882 ;; 8883 esac 8884 case `$CC -V 2>&1 | sed 5q` in 8885 *Sun\ C*) # Sun C 5.9 8886 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' 8887 compiler_needs_object=yes 8888 tmp_sharedflag='-G' ;; 8889 *Sun\ F*) # Sun Fortran 8.3 8890 tmp_sharedflag='-G' ;; 8891 esac 8892 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8893 8894 if test "x$supports_anon_versioning" = xyes; then 8895 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8897 echo "local: *; };" >> $output_objdir/$libname.ver~ 8898 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8899 fi 8900 8901 case $cc_basename in 8902 xlf* | bgf* | bgxlf* | mpixlf*) 8903 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8904 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8906 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8907 if test "x$supports_anon_versioning" = xyes; then 8908 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8910 echo "local: *; };" >> $output_objdir/$libname.ver~ 8911 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8912 fi 8913 ;; 8914 esac 8915 else 8916 ld_shlibs=no 8917 fi 8918 ;; 8919 8920 netbsd*) 8921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8922 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8923 wlarc= 8924 else 8925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8926 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8927 fi 8928 ;; 8929 8930 solaris*) 8931 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8932 ld_shlibs=no 8933 cat <<_LT_EOF 1>&2 8934 8935*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8936*** create shared libraries on Solaris systems. Therefore, libtool 8937*** is disabling shared libraries support. We urge you to upgrade GNU 8938*** binutils to release 2.9.1 or newer. Another option is to modify 8939*** your PATH or compiler configuration so that the native linker is 8940*** used, and then restart. 8941 8942_LT_EOF 8943 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8945 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8946 else 8947 ld_shlibs=no 8948 fi 8949 ;; 8950 8951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8952 case `$LD -v 2>&1` in 8953 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8954 ld_shlibs=no 8955 cat <<_LT_EOF 1>&2 8956 8957*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8958*** reliably create shared libraries on SCO systems. Therefore, libtool 8959*** is disabling shared libraries support. We urge you to upgrade GNU 8960*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8961*** your PATH or compiler configuration so that the native linker is 8962*** used, and then restart. 8963 8964_LT_EOF 8965 ;; 8966 *) 8967 # For security reasons, it is highly recommended that you always 8968 # use absolute paths for naming shared libraries, and exclude the 8969 # DT_RUNPATH tag from executables and libraries. But doing so 8970 # requires that you compile everything twice, which is a pain. 8971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8975 else 8976 ld_shlibs=no 8977 fi 8978 ;; 8979 esac 8980 ;; 8981 8982 sunos4*) 8983 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8984 wlarc= 8985 hardcode_direct=yes 8986 hardcode_shlibpath_var=no 8987 ;; 8988 8989 *) 8990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8991 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8992 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8993 else 8994 ld_shlibs=no 8995 fi 8996 ;; 8997 esac 8998 8999 if test "$ld_shlibs" = no; then 9000 runpath_var= 9001 hardcode_libdir_flag_spec= 9002 export_dynamic_flag_spec= 9003 whole_archive_flag_spec= 9004 fi 9005 else 9006 # PORTME fill in a description of your system's linker (not GNU ld) 9007 case $host_os in 9008 aix3*) 9009 allow_undefined_flag=unsupported 9010 always_export_symbols=yes 9011 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' 9012 # Note: this linker hardcodes the directories in LIBPATH if there 9013 # are no directories specified by -L. 9014 hardcode_minus_L=yes 9015 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9016 # Neither direct hardcoding nor static linking is supported with a 9017 # broken collect2. 9018 hardcode_direct=unsupported 9019 fi 9020 ;; 9021 9022 aix[4-9]*) 9023 if test "$host_cpu" = ia64; then 9024 # On IA64, the linker does run time linking by default, so we don't 9025 # have to do anything special. 9026 aix_use_runtimelinking=no 9027 exp_sym_flag='-Bexport' 9028 no_entry_flag="" 9029 else 9030 # If we're using GNU nm, then we don't want the "-C" option. 9031 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9032 # Also, AIX nm treats weak defined symbols like other global 9033 # defined symbols, whereas GNU nm marks them as "W". 9034 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9035 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9036 else 9037 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9038 fi 9039 aix_use_runtimelinking=no 9040 9041 # Test if we are trying to use run time linking or normal 9042 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9043 # need to do runtime linking. 9044 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9045 for ld_flag in $LDFLAGS; do 9046 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9047 aix_use_runtimelinking=yes 9048 break 9049 fi 9050 done 9051 ;; 9052 esac 9053 9054 exp_sym_flag='-bexport' 9055 no_entry_flag='-bnoentry' 9056 fi 9057 9058 # When large executables or shared objects are built, AIX ld can 9059 # have problems creating the table of contents. If linking a library 9060 # or program results in "error TOC overflow" add -mminimal-toc to 9061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9063 9064 archive_cmds='' 9065 hardcode_direct=yes 9066 hardcode_direct_absolute=yes 9067 hardcode_libdir_separator=':' 9068 link_all_deplibs=yes 9069 file_list_spec='${wl}-f,' 9070 9071 if test "$GCC" = yes; then 9072 case $host_os in aix4.[012]|aix4.[012].*) 9073 # We only want to do this on AIX 4.2 and lower, the check 9074 # below for broken collect2 doesn't work under 4.3+ 9075 collect2name=`${CC} -print-prog-name=collect2` 9076 if test -f "$collect2name" && 9077 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9078 then 9079 # We have reworked collect2 9080 : 9081 else 9082 # We have old collect2 9083 hardcode_direct=unsupported 9084 # It fails to find uninstalled libraries when the uninstalled 9085 # path is not listed in the libpath. Setting hardcode_minus_L 9086 # to unsupported forces relinking 9087 hardcode_minus_L=yes 9088 hardcode_libdir_flag_spec='-L$libdir' 9089 hardcode_libdir_separator= 9090 fi 9091 ;; 9092 esac 9093 shared_flag='-shared' 9094 if test "$aix_use_runtimelinking" = yes; then 9095 shared_flag="$shared_flag "'${wl}-G' 9096 fi 9097 else 9098 # not using gcc 9099 if test "$host_cpu" = ia64; then 9100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9101 # chokes on -Wl,-G. The following line is correct: 9102 shared_flag='-G' 9103 else 9104 if test "$aix_use_runtimelinking" = yes; then 9105 shared_flag='${wl}-G' 9106 else 9107 shared_flag='${wl}-bM:SRE' 9108 fi 9109 fi 9110 fi 9111 9112 export_dynamic_flag_spec='${wl}-bexpall' 9113 # It seems that -bexpall does not export symbols beginning with 9114 # underscore (_), so it is better to generate a list of symbols to export. 9115 always_export_symbols=yes 9116 if test "$aix_use_runtimelinking" = yes; then 9117 # Warning - without using the other runtime loading flags (-brtl), 9118 # -berok will link without error, but may produce a broken library. 9119 allow_undefined_flag='-berok' 9120 # Determine the default libpath from the value encoded in an 9121 # empty executable. 9122 if test "${lt_cv_aix_libpath+set}" = set; then 9123 aix_libpath=$lt_cv_aix_libpath 9124else 9125 if ${lt_cv_aix_libpath_+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129/* end confdefs.h. */ 9130 9131int 9132main () 9133{ 9134 9135 ; 9136 return 0; 9137} 9138_ACEOF 9139if ac_fn_c_try_link "$LINENO"; then : 9140 9141 lt_aix_libpath_sed=' 9142 /Import File Strings/,/^$/ { 9143 /^0/ { 9144 s/^0 *\([^ ]*\) *$/\1/ 9145 p 9146 } 9147 }' 9148 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9149 # Check for a 64-bit object if we didn't find anything. 9150 if test -z "$lt_cv_aix_libpath_"; then 9151 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9152 fi 9153fi 9154rm -f core conftest.err conftest.$ac_objext \ 9155 conftest$ac_exeext conftest.$ac_ext 9156 if test -z "$lt_cv_aix_libpath_"; then 9157 lt_cv_aix_libpath_="/usr/lib:/lib" 9158 fi 9159 9160fi 9161 9162 aix_libpath=$lt_cv_aix_libpath_ 9163fi 9164 9165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9166 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9167 else 9168 if test "$host_cpu" = ia64; then 9169 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9170 allow_undefined_flag="-z nodefs" 9171 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" 9172 else 9173 # Determine the default libpath from the value encoded in an 9174 # empty executable. 9175 if test "${lt_cv_aix_libpath+set}" = set; then 9176 aix_libpath=$lt_cv_aix_libpath 9177else 9178 if ${lt_cv_aix_libpath_+:} false; then : 9179 $as_echo_n "(cached) " >&6 9180else 9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9182/* end confdefs.h. */ 9183 9184int 9185main () 9186{ 9187 9188 ; 9189 return 0; 9190} 9191_ACEOF 9192if ac_fn_c_try_link "$LINENO"; then : 9193 9194 lt_aix_libpath_sed=' 9195 /Import File Strings/,/^$/ { 9196 /^0/ { 9197 s/^0 *\([^ ]*\) *$/\1/ 9198 p 9199 } 9200 }' 9201 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9202 # Check for a 64-bit object if we didn't find anything. 9203 if test -z "$lt_cv_aix_libpath_"; then 9204 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9205 fi 9206fi 9207rm -f core conftest.err conftest.$ac_objext \ 9208 conftest$ac_exeext conftest.$ac_ext 9209 if test -z "$lt_cv_aix_libpath_"; then 9210 lt_cv_aix_libpath_="/usr/lib:/lib" 9211 fi 9212 9213fi 9214 9215 aix_libpath=$lt_cv_aix_libpath_ 9216fi 9217 9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9219 # Warning - without using the other run time loading flags, 9220 # -berok will link without error, but may produce a broken library. 9221 no_undefined_flag=' ${wl}-bernotok' 9222 allow_undefined_flag=' ${wl}-berok' 9223 if test "$with_gnu_ld" = yes; then 9224 # We only use this code for GNU lds that support --whole-archive. 9225 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9226 else 9227 # Exported symbols can be pulled into shared objects from archives 9228 whole_archive_flag_spec='$convenience' 9229 fi 9230 archive_cmds_need_lc=yes 9231 # This is similar to how AIX traditionally builds its shared libraries. 9232 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9233 fi 9234 fi 9235 ;; 9236 9237 amigaos*) 9238 case $host_cpu in 9239 powerpc) 9240 # see comment about AmigaOS4 .so support 9241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9242 archive_expsym_cmds='' 9243 ;; 9244 m68k) 9245 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)' 9246 hardcode_libdir_flag_spec='-L$libdir' 9247 hardcode_minus_L=yes 9248 ;; 9249 esac 9250 ;; 9251 9252 bsdi[45]*) 9253 export_dynamic_flag_spec=-rdynamic 9254 ;; 9255 9256 cygwin* | mingw* | pw32* | cegcc*) 9257 # When not using gcc, we currently assume that we are using 9258 # Microsoft Visual C++. 9259 # hardcode_libdir_flag_spec is actually meaningless, as there is 9260 # no search path for DLLs. 9261 case $cc_basename in 9262 cl*) 9263 # Native MSVC 9264 hardcode_libdir_flag_spec=' ' 9265 allow_undefined_flag=unsupported 9266 always_export_symbols=yes 9267 file_list_spec='@' 9268 # Tell ltmain to make .lib files, not .a files. 9269 libext=lib 9270 # Tell ltmain to make .dll files, not .so files. 9271 shrext_cmds=".dll" 9272 # FIXME: Setting linknames here is a bad hack. 9273 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9274 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9275 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9276 else 9277 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9278 fi~ 9279 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9280 linknames=' 9281 # The linker will not automatically build a static lib if we build a DLL. 9282 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9283 enable_shared_with_static_runtimes=yes 9284 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9286 # Don't use ranlib 9287 old_postinstall_cmds='chmod 644 $oldlib' 9288 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9289 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9290 case $lt_outputfile in 9291 *.exe|*.EXE) ;; 9292 *) 9293 lt_outputfile="$lt_outputfile.exe" 9294 lt_tool_outputfile="$lt_tool_outputfile.exe" 9295 ;; 9296 esac~ 9297 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9298 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9299 $RM "$lt_outputfile.manifest"; 9300 fi' 9301 ;; 9302 *) 9303 # Assume MSVC wrapper 9304 hardcode_libdir_flag_spec=' ' 9305 allow_undefined_flag=unsupported 9306 # Tell ltmain to make .lib files, not .a files. 9307 libext=lib 9308 # Tell ltmain to make .dll files, not .so files. 9309 shrext_cmds=".dll" 9310 # FIXME: Setting linknames here is a bad hack. 9311 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9312 # The linker will automatically build a .lib file if we build a DLL. 9313 old_archive_from_new_cmds='true' 9314 # FIXME: Should let the user specify the lib program. 9315 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9316 enable_shared_with_static_runtimes=yes 9317 ;; 9318 esac 9319 ;; 9320 9321 darwin* | rhapsody*) 9322 9323 9324 archive_cmds_need_lc=no 9325 hardcode_direct=no 9326 hardcode_automatic=yes 9327 hardcode_shlibpath_var=unsupported 9328 if test "$lt_cv_ld_force_load" = "yes"; then 9329 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\"`' 9330 9331 else 9332 whole_archive_flag_spec='' 9333 fi 9334 link_all_deplibs=yes 9335 allow_undefined_flag="$_lt_dar_allow_undefined" 9336 case $cc_basename in 9337 ifort*) _lt_dar_can_shared=yes ;; 9338 *) _lt_dar_can_shared=$GCC ;; 9339 esac 9340 if test "$_lt_dar_can_shared" = "yes"; then 9341 output_verbose_link_cmd=func_echo_all 9342 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9343 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9344 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}" 9345 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}" 9346 9347 else 9348 ld_shlibs=no 9349 fi 9350 9351 ;; 9352 9353 dgux*) 9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9355 hardcode_libdir_flag_spec='-L$libdir' 9356 hardcode_shlibpath_var=no 9357 ;; 9358 9359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9360 # support. Future versions do this automatically, but an explicit c++rt0.o 9361 # does not break anything, and helps significantly (at the cost of a little 9362 # extra space). 9363 freebsd2.2*) 9364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9365 hardcode_libdir_flag_spec='-R$libdir' 9366 hardcode_direct=yes 9367 hardcode_shlibpath_var=no 9368 ;; 9369 9370 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9371 freebsd2.*) 9372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9373 hardcode_direct=yes 9374 hardcode_minus_L=yes 9375 hardcode_shlibpath_var=no 9376 ;; 9377 9378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9379 freebsd* | dragonfly*) 9380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9381 hardcode_libdir_flag_spec='-R$libdir' 9382 hardcode_direct=yes 9383 hardcode_shlibpath_var=no 9384 ;; 9385 9386 hpux9*) 9387 if test "$GCC" = yes; then 9388 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9389 else 9390 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9391 fi 9392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9393 hardcode_libdir_separator=: 9394 hardcode_direct=yes 9395 9396 # hardcode_minus_L: Not really in the search PATH, 9397 # but as the default location of the library. 9398 hardcode_minus_L=yes 9399 export_dynamic_flag_spec='${wl}-E' 9400 ;; 9401 9402 hpux10*) 9403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9404 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9405 else 9406 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9407 fi 9408 if test "$with_gnu_ld" = no; then 9409 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9410 hardcode_libdir_separator=: 9411 hardcode_direct=yes 9412 hardcode_direct_absolute=yes 9413 export_dynamic_flag_spec='${wl}-E' 9414 # hardcode_minus_L: Not really in the search PATH, 9415 # but as the default location of the library. 9416 hardcode_minus_L=yes 9417 fi 9418 ;; 9419 9420 hpux11*) 9421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9422 case $host_cpu in 9423 hppa*64*) 9424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9425 ;; 9426 ia64*) 9427 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9428 ;; 9429 *) 9430 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9431 ;; 9432 esac 9433 else 9434 case $host_cpu in 9435 hppa*64*) 9436 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9437 ;; 9438 ia64*) 9439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9440 ;; 9441 *) 9442 9443 # Older versions of the 11.00 compiler do not understand -b yet 9444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9446$as_echo_n "checking if $CC understands -b... " >&6; } 9447if ${lt_cv_prog_compiler__b+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449else 9450 lt_cv_prog_compiler__b=no 9451 save_LDFLAGS="$LDFLAGS" 9452 LDFLAGS="$LDFLAGS -b" 9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9455 # The linker can only warn and ignore the option if not recognized 9456 # So say no if there are warnings 9457 if test -s conftest.err; then 9458 # Append any errors to the config.log. 9459 cat conftest.err 1>&5 9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9462 if diff conftest.exp conftest.er2 >/dev/null; then 9463 lt_cv_prog_compiler__b=yes 9464 fi 9465 else 9466 lt_cv_prog_compiler__b=yes 9467 fi 9468 fi 9469 $RM -r conftest* 9470 LDFLAGS="$save_LDFLAGS" 9471 9472fi 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9474$as_echo "$lt_cv_prog_compiler__b" >&6; } 9475 9476if test x"$lt_cv_prog_compiler__b" = xyes; then 9477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9478else 9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9480fi 9481 9482 ;; 9483 esac 9484 fi 9485 if test "$with_gnu_ld" = no; then 9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9487 hardcode_libdir_separator=: 9488 9489 case $host_cpu in 9490 hppa*64*|ia64*) 9491 hardcode_direct=no 9492 hardcode_shlibpath_var=no 9493 ;; 9494 *) 9495 hardcode_direct=yes 9496 hardcode_direct_absolute=yes 9497 export_dynamic_flag_spec='${wl}-E' 9498 9499 # hardcode_minus_L: Not really in the search PATH, 9500 # but as the default location of the library. 9501 hardcode_minus_L=yes 9502 ;; 9503 esac 9504 fi 9505 ;; 9506 9507 irix5* | irix6* | nonstopux*) 9508 if test "$GCC" = yes; then 9509 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' 9510 # Try to use the -exported_symbol ld option, if it does not 9511 # work, assume that -exports_file does not work either and 9512 # implicitly export all symbols. 9513 # This should be the same for all languages, so no per-tag cache variable. 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9515$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9516if ${lt_cv_irix_exported_symbol+:} false; then : 9517 $as_echo_n "(cached) " >&6 9518else 9519 save_LDFLAGS="$LDFLAGS" 9520 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int foo (void) { return 0; } 9524_ACEOF 9525if ac_fn_c_try_link "$LINENO"; then : 9526 lt_cv_irix_exported_symbol=yes 9527else 9528 lt_cv_irix_exported_symbol=no 9529fi 9530rm -f core conftest.err conftest.$ac_objext \ 9531 conftest$ac_exeext conftest.$ac_ext 9532 LDFLAGS="$save_LDFLAGS" 9533fi 9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9535$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9536 if test "$lt_cv_irix_exported_symbol" = yes; then 9537 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' 9538 fi 9539 else 9540 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' 9541 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' 9542 fi 9543 archive_cmds_need_lc='no' 9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9545 hardcode_libdir_separator=: 9546 inherit_rpath=yes 9547 link_all_deplibs=yes 9548 ;; 9549 9550 netbsd*) 9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9553 else 9554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9555 fi 9556 hardcode_libdir_flag_spec='-R$libdir' 9557 hardcode_direct=yes 9558 hardcode_shlibpath_var=no 9559 ;; 9560 9561 newsos6) 9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9563 hardcode_direct=yes 9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9565 hardcode_libdir_separator=: 9566 hardcode_shlibpath_var=no 9567 ;; 9568 9569 *nto* | *qnx*) 9570 ;; 9571 9572 openbsd*) 9573 if test -f /usr/libexec/ld.so; then 9574 hardcode_direct=yes 9575 hardcode_shlibpath_var=no 9576 hardcode_direct_absolute=yes 9577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9581 export_dynamic_flag_spec='${wl}-E' 9582 else 9583 case $host_os in 9584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9586 hardcode_libdir_flag_spec='-R$libdir' 9587 ;; 9588 *) 9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9591 ;; 9592 esac 9593 fi 9594 else 9595 ld_shlibs=no 9596 fi 9597 ;; 9598 9599 os2*) 9600 hardcode_libdir_flag_spec='-L$libdir' 9601 hardcode_minus_L=yes 9602 allow_undefined_flag=unsupported 9603 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9605 ;; 9606 9607 osf3*) 9608 if test "$GCC" = yes; then 9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9610 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' 9611 else 9612 allow_undefined_flag=' -expect_unresolved \*' 9613 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' 9614 fi 9615 archive_cmds_need_lc='no' 9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9617 hardcode_libdir_separator=: 9618 ;; 9619 9620 osf4* | osf5*) # as osf3* with the addition of -msym flag 9621 if test "$GCC" = yes; then 9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9623 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' 9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9625 else 9626 allow_undefined_flag=' -expect_unresolved \*' 9627 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' 9628 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~ 9629 $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' 9630 9631 # Both c and cxx compiler support -rpath directly 9632 hardcode_libdir_flag_spec='-rpath $libdir' 9633 fi 9634 archive_cmds_need_lc='no' 9635 hardcode_libdir_separator=: 9636 ;; 9637 9638 solaris*) 9639 no_undefined_flag=' -z defs' 9640 if test "$GCC" = yes; then 9641 wlarc='${wl}' 9642 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9644 $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' 9645 else 9646 case `$CC -V 2>&1` in 9647 *"Compilers 5.0"*) 9648 wlarc='' 9649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9652 ;; 9653 *) 9654 wlarc='${wl}' 9655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9658 ;; 9659 esac 9660 fi 9661 hardcode_libdir_flag_spec='-R$libdir' 9662 hardcode_shlibpath_var=no 9663 case $host_os in 9664 solaris2.[0-5] | solaris2.[0-5].*) ;; 9665 *) 9666 # The compiler driver will combine and reorder linker options, 9667 # but understands `-z linker_flag'. GCC discards it without `$wl', 9668 # but is careful enough not to reorder. 9669 # Supported since Solaris 2.6 (maybe 2.5.1?) 9670 if test "$GCC" = yes; then 9671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9672 else 9673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9674 fi 9675 ;; 9676 esac 9677 link_all_deplibs=yes 9678 ;; 9679 9680 sunos4*) 9681 if test "x$host_vendor" = xsequent; then 9682 # Use $CC to link under sequent, because it throws in some extra .o 9683 # files that make .init and .fini sections work. 9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9685 else 9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9687 fi 9688 hardcode_libdir_flag_spec='-L$libdir' 9689 hardcode_direct=yes 9690 hardcode_minus_L=yes 9691 hardcode_shlibpath_var=no 9692 ;; 9693 9694 sysv4) 9695 case $host_vendor in 9696 sni) 9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9698 hardcode_direct=yes # is this really true??? 9699 ;; 9700 siemens) 9701 ## LD is ld it makes a PLAMLIB 9702 ## CC just makes a GrossModule. 9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9704 reload_cmds='$CC -r -o $output$reload_objs' 9705 hardcode_direct=no 9706 ;; 9707 motorola) 9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9710 ;; 9711 esac 9712 runpath_var='LD_RUN_PATH' 9713 hardcode_shlibpath_var=no 9714 ;; 9715 9716 sysv4.3*) 9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9718 hardcode_shlibpath_var=no 9719 export_dynamic_flag_spec='-Bexport' 9720 ;; 9721 9722 sysv4*MP*) 9723 if test -d /usr/nec; then 9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9725 hardcode_shlibpath_var=no 9726 runpath_var=LD_RUN_PATH 9727 hardcode_runpath_var=yes 9728 ld_shlibs=yes 9729 fi 9730 ;; 9731 9732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9733 no_undefined_flag='${wl}-z,text' 9734 archive_cmds_need_lc=no 9735 hardcode_shlibpath_var=no 9736 runpath_var='LD_RUN_PATH' 9737 9738 if test "$GCC" = yes; then 9739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9741 else 9742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9744 fi 9745 ;; 9746 9747 sysv5* | sco3.2v5* | sco5v6*) 9748 # Note: We can NOT use -z defs as we might desire, because we do not 9749 # link with -lc, and that would cause any symbols used from libc to 9750 # always be unresolved, which means just about no library would 9751 # ever link correctly. If we're not using GNU ld we use -z text 9752 # though, which does catch some bad symbols but isn't as heavy-handed 9753 # as -z defs. 9754 no_undefined_flag='${wl}-z,text' 9755 allow_undefined_flag='${wl}-z,nodefs' 9756 archive_cmds_need_lc=no 9757 hardcode_shlibpath_var=no 9758 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9759 hardcode_libdir_separator=':' 9760 link_all_deplibs=yes 9761 export_dynamic_flag_spec='${wl}-Bexport' 9762 runpath_var='LD_RUN_PATH' 9763 9764 if test "$GCC" = yes; then 9765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9767 else 9768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9770 fi 9771 ;; 9772 9773 uts4*) 9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9775 hardcode_libdir_flag_spec='-L$libdir' 9776 hardcode_shlibpath_var=no 9777 ;; 9778 9779 *) 9780 ld_shlibs=no 9781 ;; 9782 esac 9783 9784 if test x$host_vendor = xsni; then 9785 case $host in 9786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9787 export_dynamic_flag_spec='${wl}-Blargedynsym' 9788 ;; 9789 esac 9790 fi 9791 fi 9792 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9794$as_echo "$ld_shlibs" >&6; } 9795test "$ld_shlibs" = no && can_build_shared=no 9796 9797with_gnu_ld=$with_gnu_ld 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813# 9814# Do we need to explicitly link libc? 9815# 9816case "x$archive_cmds_need_lc" in 9817x|xyes) 9818 # Assume -lc should be added 9819 archive_cmds_need_lc=yes 9820 9821 if test "$enable_shared" = yes && test "$GCC" = yes; then 9822 case $archive_cmds in 9823 *'~'*) 9824 # FIXME: we may have to deal with multi-command sequences. 9825 ;; 9826 '$CC '*) 9827 # Test whether the compiler implicitly links with -lc since on some 9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9829 # to ld, don't add -lc before -lgcc. 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9831$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9832if ${lt_cv_archive_cmds_need_lc+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834else 9835 $RM conftest* 9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9837 9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9839 (eval $ac_compile) 2>&5 9840 ac_status=$? 9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9842 test $ac_status = 0; } 2>conftest.err; then 9843 soname=conftest 9844 lib=conftest 9845 libobjs=conftest.$ac_objext 9846 deplibs= 9847 wl=$lt_prog_compiler_wl 9848 pic_flag=$lt_prog_compiler_pic 9849 compiler_flags=-v 9850 linker_flags=-v 9851 verstring= 9852 output_objdir=. 9853 libname=conftest 9854 lt_save_allow_undefined_flag=$allow_undefined_flag 9855 allow_undefined_flag= 9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9858 ac_status=$? 9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9860 test $ac_status = 0; } 9861 then 9862 lt_cv_archive_cmds_need_lc=no 9863 else 9864 lt_cv_archive_cmds_need_lc=yes 9865 fi 9866 allow_undefined_flag=$lt_save_allow_undefined_flag 9867 else 9868 cat conftest.err 1>&5 9869 fi 9870 $RM conftest* 9871 9872fi 9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9874$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9876 ;; 9877 esac 9878 fi 9879 ;; 9880esac 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10034$as_echo_n "checking dynamic linker characteristics... " >&6; } 10035 10036if test "$GCC" = yes; then 10037 case $host_os in 10038 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10039 *) lt_awk_arg="/^libraries:/" ;; 10040 esac 10041 case $host_os in 10042 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10043 *) lt_sed_strip_eq="s,=/,/,g" ;; 10044 esac 10045 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10046 case $lt_search_path_spec in 10047 *\;*) 10048 # if the path contains ";" then we assume it to be the separator 10049 # otherwise default to the standard path separator (i.e. ":") - it is 10050 # assumed that no part of a normal pathname contains ";" but that should 10051 # okay in the real world where ";" in dirpaths is itself problematic. 10052 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10053 ;; 10054 *) 10055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10056 ;; 10057 esac 10058 # Ok, now we have the path, separated by spaces, we can step through it 10059 # and add multilib dir if necessary. 10060 lt_tmp_lt_search_path_spec= 10061 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10062 for lt_sys_path in $lt_search_path_spec; do 10063 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10065 else 10066 test -d "$lt_sys_path" && \ 10067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10068 fi 10069 done 10070 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10071BEGIN {RS=" "; FS="/|\n";} { 10072 lt_foo=""; 10073 lt_count=0; 10074 for (lt_i = NF; lt_i > 0; lt_i--) { 10075 if ($lt_i != "" && $lt_i != ".") { 10076 if ($lt_i == "..") { 10077 lt_count++; 10078 } else { 10079 if (lt_count == 0) { 10080 lt_foo="/" $lt_i lt_foo; 10081 } else { 10082 lt_count--; 10083 } 10084 } 10085 } 10086 } 10087 if (lt_foo != "") { lt_freq[lt_foo]++; } 10088 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10089}'` 10090 # AWK program above erroneously prepends '/' to C:/dos/paths 10091 # for these hosts. 10092 case $host_os in 10093 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10094 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10095 esac 10096 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10097else 10098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10099fi 10100library_names_spec= 10101libname_spec='lib$name' 10102soname_spec= 10103shrext_cmds=".so" 10104postinstall_cmds= 10105postuninstall_cmds= 10106finish_cmds= 10107finish_eval= 10108shlibpath_var= 10109shlibpath_overrides_runpath=unknown 10110version_type=none 10111dynamic_linker="$host_os ld.so" 10112sys_lib_dlsearch_path_spec="/lib /usr/lib" 10113need_lib_prefix=unknown 10114hardcode_into_libs=no 10115 10116# when you set need_version to no, make sure it does not cause -set_version 10117# flags to be left without arguments 10118need_version=unknown 10119 10120case $host_os in 10121aix3*) 10122 version_type=linux # correct to gnu/linux during the next big refactor 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10124 shlibpath_var=LIBPATH 10125 10126 # AIX 3 has no versioning support, so we append a major version to the name. 10127 soname_spec='${libname}${release}${shared_ext}$major' 10128 ;; 10129 10130aix[4-9]*) 10131 version_type=linux # correct to gnu/linux during the next big refactor 10132 need_lib_prefix=no 10133 need_version=no 10134 hardcode_into_libs=yes 10135 if test "$host_cpu" = ia64; then 10136 # AIX 5 supports IA64 10137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10138 shlibpath_var=LD_LIBRARY_PATH 10139 else 10140 # With GCC up to 2.95.x, collect2 would create an import file 10141 # for dependence libraries. The import file would start with 10142 # the line `#! .'. This would cause the generated library to 10143 # depend on `.', always an invalid library. This was fixed in 10144 # development snapshots of GCC prior to 3.0. 10145 case $host_os in 10146 aix4 | aix4.[01] | aix4.[01].*) 10147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10148 echo ' yes ' 10149 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10150 : 10151 else 10152 can_build_shared=no 10153 fi 10154 ;; 10155 esac 10156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10157 # soname into executable. Probably we can add versioning support to 10158 # collect2, so additional links can be useful in future. 10159 if test "$aix_use_runtimelinking" = yes; then 10160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10161 # instead of lib<name>.a to let people know that these are not 10162 # typical AIX shared libraries. 10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10164 else 10165 # We preserve .a as extension for shared libraries through AIX4.2 10166 # and later when we are not doing run time linking. 10167 library_names_spec='${libname}${release}.a $libname.a' 10168 soname_spec='${libname}${release}${shared_ext}$major' 10169 fi 10170 shlibpath_var=LIBPATH 10171 fi 10172 ;; 10173 10174amigaos*) 10175 case $host_cpu in 10176 powerpc) 10177 # Since July 2007 AmigaOS4 officially supports .so libraries. 10178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10180 ;; 10181 m68k) 10182 library_names_spec='$libname.ixlibrary $libname.a' 10183 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10184 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10185 ;; 10186 esac 10187 ;; 10188 10189beos*) 10190 library_names_spec='${libname}${shared_ext}' 10191 dynamic_linker="$host_os ld.so" 10192 shlibpath_var=LIBRARY_PATH 10193 ;; 10194 10195bsdi[45]*) 10196 version_type=linux # correct to gnu/linux during the next big refactor 10197 need_version=no 10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10199 soname_spec='${libname}${release}${shared_ext}$major' 10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10201 shlibpath_var=LD_LIBRARY_PATH 10202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10204 # the default ld.so.conf also contains /usr/contrib/lib and 10205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10206 # libtool to hard-code these into programs 10207 ;; 10208 10209cygwin* | mingw* | pw32* | cegcc*) 10210 version_type=windows 10211 shrext_cmds=".dll" 10212 need_version=no 10213 need_lib_prefix=no 10214 10215 case $GCC,$cc_basename in 10216 yes,*) 10217 # gcc 10218 library_names_spec='$libname.dll.a' 10219 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10220 postinstall_cmds='base_file=`basename \${file}`~ 10221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10222 dldir=$destdir/`dirname \$dlpath`~ 10223 test -d \$dldir || mkdir -p \$dldir~ 10224 $install_prog $dir/$dlname \$dldir/$dlname~ 10225 chmod a+x \$dldir/$dlname~ 10226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10228 fi' 10229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10230 dlpath=$dir/\$dldll~ 10231 $RM \$dlpath' 10232 shlibpath_overrides_runpath=yes 10233 10234 case $host_os in 10235 cygwin*) 10236 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10238 10239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10240 ;; 10241 mingw* | cegcc*) 10242 # MinGW DLLs use traditional 'lib' prefix 10243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10244 ;; 10245 pw32*) 10246 # pw32 DLLs use 'pw' prefix rather than 'lib' 10247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10248 ;; 10249 esac 10250 dynamic_linker='Win32 ld.exe' 10251 ;; 10252 10253 *,cl*) 10254 # Native MSVC 10255 libname_spec='$name' 10256 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10257 library_names_spec='${libname}.dll.lib' 10258 10259 case $build_os in 10260 mingw*) 10261 sys_lib_search_path_spec= 10262 lt_save_ifs=$IFS 10263 IFS=';' 10264 for lt_path in $LIB 10265 do 10266 IFS=$lt_save_ifs 10267 # Let DOS variable expansion print the short 8.3 style file name. 10268 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10269 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10270 done 10271 IFS=$lt_save_ifs 10272 # Convert to MSYS style. 10273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10274 ;; 10275 cygwin*) 10276 # Convert to unix form, then to dos form, then back to unix form 10277 # but this time dos style (no spaces!) so that the unix form looks 10278 # like /cygdrive/c/PROGRA~1:/cygdr... 10279 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10280 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10281 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10282 ;; 10283 *) 10284 sys_lib_search_path_spec="$LIB" 10285 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10286 # It is most probably a Windows format PATH. 10287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10288 else 10289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10290 fi 10291 # FIXME: find the short name or the path components, as spaces are 10292 # common. (e.g. "Program Files" -> "PROGRA~1") 10293 ;; 10294 esac 10295 10296 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10297 postinstall_cmds='base_file=`basename \${file}`~ 10298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10299 dldir=$destdir/`dirname \$dlpath`~ 10300 test -d \$dldir || mkdir -p \$dldir~ 10301 $install_prog $dir/$dlname \$dldir/$dlname' 10302 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10303 dlpath=$dir/\$dldll~ 10304 $RM \$dlpath' 10305 shlibpath_overrides_runpath=yes 10306 dynamic_linker='Win32 link.exe' 10307 ;; 10308 10309 *) 10310 # Assume MSVC wrapper 10311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10312 dynamic_linker='Win32 ld.exe' 10313 ;; 10314 esac 10315 # FIXME: first we should search . and the directory the executable is in 10316 shlibpath_var=PATH 10317 ;; 10318 10319darwin* | rhapsody*) 10320 dynamic_linker="$host_os dyld" 10321 version_type=darwin 10322 need_lib_prefix=no 10323 need_version=no 10324 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10325 soname_spec='${libname}${release}${major}$shared_ext' 10326 shlibpath_overrides_runpath=yes 10327 shlibpath_var=DYLD_LIBRARY_PATH 10328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10329 10330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10332 ;; 10333 10334dgux*) 10335 version_type=linux # correct to gnu/linux during the next big refactor 10336 need_lib_prefix=no 10337 need_version=no 10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10339 soname_spec='${libname}${release}${shared_ext}$major' 10340 shlibpath_var=LD_LIBRARY_PATH 10341 ;; 10342 10343freebsd* | dragonfly*) 10344 # DragonFly does not have aout. When/if they implement a new 10345 # versioning mechanism, adjust this. 10346 if test -x /usr/bin/objformat; then 10347 objformat=`/usr/bin/objformat` 10348 else 10349 case $host_os in 10350 freebsd[23].*) objformat=aout ;; 10351 *) objformat=elf ;; 10352 esac 10353 fi 10354 version_type=freebsd-$objformat 10355 case $version_type in 10356 freebsd-elf*) 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10358 need_version=no 10359 need_lib_prefix=no 10360 ;; 10361 freebsd-*) 10362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10363 need_version=yes 10364 ;; 10365 esac 10366 shlibpath_var=LD_LIBRARY_PATH 10367 case $host_os in 10368 freebsd2.*) 10369 shlibpath_overrides_runpath=yes 10370 ;; 10371 freebsd3.[01]* | freebsdelf3.[01]*) 10372 shlibpath_overrides_runpath=yes 10373 hardcode_into_libs=yes 10374 ;; 10375 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10376 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10377 shlibpath_overrides_runpath=no 10378 hardcode_into_libs=yes 10379 ;; 10380 *) # from 4.6 on, and DragonFly 10381 shlibpath_overrides_runpath=yes 10382 hardcode_into_libs=yes 10383 ;; 10384 esac 10385 ;; 10386 10387gnu*) 10388 version_type=linux # correct to gnu/linux during the next big refactor 10389 need_lib_prefix=no 10390 need_version=no 10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10392 soname_spec='${libname}${release}${shared_ext}$major' 10393 shlibpath_var=LD_LIBRARY_PATH 10394 shlibpath_overrides_runpath=no 10395 hardcode_into_libs=yes 10396 ;; 10397 10398haiku*) 10399 version_type=linux # correct to gnu/linux during the next big refactor 10400 need_lib_prefix=no 10401 need_version=no 10402 dynamic_linker="$host_os runtime_loader" 10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10404 soname_spec='${libname}${release}${shared_ext}$major' 10405 shlibpath_var=LIBRARY_PATH 10406 shlibpath_overrides_runpath=yes 10407 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10408 hardcode_into_libs=yes 10409 ;; 10410 10411hpux9* | hpux10* | hpux11*) 10412 # Give a soname corresponding to the major version so that dld.sl refuses to 10413 # link against other versions. 10414 version_type=sunos 10415 need_lib_prefix=no 10416 need_version=no 10417 case $host_cpu in 10418 ia64*) 10419 shrext_cmds='.so' 10420 hardcode_into_libs=yes 10421 dynamic_linker="$host_os dld.so" 10422 shlibpath_var=LD_LIBRARY_PATH 10423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10425 soname_spec='${libname}${release}${shared_ext}$major' 10426 if test "X$HPUX_IA64_MODE" = X32; then 10427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10428 else 10429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10430 fi 10431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10432 ;; 10433 hppa*64*) 10434 shrext_cmds='.sl' 10435 hardcode_into_libs=yes 10436 dynamic_linker="$host_os dld.sl" 10437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10440 soname_spec='${libname}${release}${shared_ext}$major' 10441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10443 ;; 10444 *) 10445 shrext_cmds='.sl' 10446 dynamic_linker="$host_os dld.sl" 10447 shlibpath_var=SHLIB_PATH 10448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10450 soname_spec='${libname}${release}${shared_ext}$major' 10451 ;; 10452 esac 10453 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10454 postinstall_cmds='chmod 555 $lib' 10455 # or fails outright, so override atomically: 10456 install_override_mode=555 10457 ;; 10458 10459interix[3-9]*) 10460 version_type=linux # correct to gnu/linux during the next big refactor 10461 need_lib_prefix=no 10462 need_version=no 10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10464 soname_spec='${libname}${release}${shared_ext}$major' 10465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10466 shlibpath_var=LD_LIBRARY_PATH 10467 shlibpath_overrides_runpath=no 10468 hardcode_into_libs=yes 10469 ;; 10470 10471irix5* | irix6* | nonstopux*) 10472 case $host_os in 10473 nonstopux*) version_type=nonstopux ;; 10474 *) 10475 if test "$lt_cv_prog_gnu_ld" = yes; then 10476 version_type=linux # correct to gnu/linux during the next big refactor 10477 else 10478 version_type=irix 10479 fi ;; 10480 esac 10481 need_lib_prefix=no 10482 need_version=no 10483 soname_spec='${libname}${release}${shared_ext}$major' 10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10485 case $host_os in 10486 irix5* | nonstopux*) 10487 libsuff= shlibsuff= 10488 ;; 10489 *) 10490 case $LD in # libtool.m4 will add one of these switches to LD 10491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10492 libsuff= shlibsuff= libmagic=32-bit;; 10493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10494 libsuff=32 shlibsuff=N32 libmagic=N32;; 10495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10496 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10497 *) libsuff= shlibsuff= libmagic=never-match;; 10498 esac 10499 ;; 10500 esac 10501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10502 shlibpath_overrides_runpath=no 10503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10505 hardcode_into_libs=yes 10506 ;; 10507 10508# No shared lib support for Linux oldld, aout, or coff. 10509linux*oldld* | linux*aout* | linux*coff*) 10510 dynamic_linker=no 10511 ;; 10512 10513# This must be glibc/ELF. 10514linux* | k*bsd*-gnu | kopensolaris*-gnu) 10515 version_type=linux # correct to gnu/linux during the next big refactor 10516 need_lib_prefix=no 10517 need_version=no 10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10519 soname_spec='${libname}${release}${shared_ext}$major' 10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10521 shlibpath_var=LD_LIBRARY_PATH 10522 shlibpath_overrides_runpath=no 10523 10524 # Some binutils ld are patched to set DT_RUNPATH 10525 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527else 10528 lt_cv_shlibpath_overrides_runpath=no 10529 save_LDFLAGS=$LDFLAGS 10530 save_libdir=$libdir 10531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535 10536int 10537main () 10538{ 10539 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544if ac_fn_c_try_link "$LINENO"; then : 10545 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10546 lt_cv_shlibpath_overrides_runpath=yes 10547fi 10548fi 10549rm -f core conftest.err conftest.$ac_objext \ 10550 conftest$ac_exeext conftest.$ac_ext 10551 LDFLAGS=$save_LDFLAGS 10552 libdir=$save_libdir 10553 10554fi 10555 10556 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10557 10558 # This implies no fast_install, which is unacceptable. 10559 # Some rework will be needed to allow for fast_install 10560 # before this can be enabled. 10561 hardcode_into_libs=yes 10562 10563 # Append ld.so.conf contents to the search path 10564 if test -f /etc/ld.so.conf; then 10565 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' ' '` 10566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10567 fi 10568 10569 # We used to test for /lib/ld.so.1 and disable shared libraries on 10570 # powerpc, because MkLinux only supported shared libraries with the 10571 # GNU dynamic linker. Since this was broken with cross compilers, 10572 # most powerpc-linux boxes support dynamic linking these days and 10573 # people can always --disable-shared, the test was removed, and we 10574 # assume the GNU/Linux dynamic linker is in use. 10575 dynamic_linker='GNU/Linux ld.so' 10576 ;; 10577 10578netbsd*) 10579 version_type=sunos 10580 need_lib_prefix=no 10581 need_version=no 10582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10585 dynamic_linker='NetBSD (a.out) ld.so' 10586 else 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 dynamic_linker='NetBSD ld.elf_so' 10590 fi 10591 shlibpath_var=LD_LIBRARY_PATH 10592 shlibpath_overrides_runpath=yes 10593 hardcode_into_libs=yes 10594 ;; 10595 10596newsos6) 10597 version_type=linux # correct to gnu/linux during the next big refactor 10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10599 shlibpath_var=LD_LIBRARY_PATH 10600 shlibpath_overrides_runpath=yes 10601 ;; 10602 10603*nto* | *qnx*) 10604 version_type=qnx 10605 need_lib_prefix=no 10606 need_version=no 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 shlibpath_overrides_runpath=no 10611 hardcode_into_libs=yes 10612 dynamic_linker='ldqnx.so' 10613 ;; 10614 10615openbsd*) 10616 version_type=sunos 10617 sys_lib_dlsearch_path_spec="/usr/lib" 10618 need_lib_prefix=no 10619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10620 case $host_os in 10621 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10622 *) need_version=no ;; 10623 esac 10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10626 shlibpath_var=LD_LIBRARY_PATH 10627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10628 case $host_os in 10629 openbsd2.[89] | openbsd2.[89].*) 10630 shlibpath_overrides_runpath=no 10631 ;; 10632 *) 10633 shlibpath_overrides_runpath=yes 10634 ;; 10635 esac 10636 else 10637 shlibpath_overrides_runpath=yes 10638 fi 10639 ;; 10640 10641os2*) 10642 libname_spec='$name' 10643 shrext_cmds=".dll" 10644 need_lib_prefix=no 10645 library_names_spec='$libname${shared_ext} $libname.a' 10646 dynamic_linker='OS/2 ld.exe' 10647 shlibpath_var=LIBPATH 10648 ;; 10649 10650osf3* | osf4* | osf5*) 10651 version_type=osf 10652 need_lib_prefix=no 10653 need_version=no 10654 soname_spec='${libname}${release}${shared_ext}$major' 10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10656 shlibpath_var=LD_LIBRARY_PATH 10657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10659 ;; 10660 10661rdos*) 10662 dynamic_linker=no 10663 ;; 10664 10665solaris*) 10666 version_type=linux # correct to gnu/linux during the next big refactor 10667 need_lib_prefix=no 10668 need_version=no 10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10670 soname_spec='${libname}${release}${shared_ext}$major' 10671 shlibpath_var=LD_LIBRARY_PATH 10672 shlibpath_overrides_runpath=yes 10673 hardcode_into_libs=yes 10674 # ldd complains unless libraries are executable 10675 postinstall_cmds='chmod +x $lib' 10676 ;; 10677 10678sunos4*) 10679 version_type=sunos 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10682 shlibpath_var=LD_LIBRARY_PATH 10683 shlibpath_overrides_runpath=yes 10684 if test "$with_gnu_ld" = yes; then 10685 need_lib_prefix=no 10686 fi 10687 need_version=yes 10688 ;; 10689 10690sysv4 | sysv4.3*) 10691 version_type=linux # correct to gnu/linux during the next big refactor 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10693 soname_spec='${libname}${release}${shared_ext}$major' 10694 shlibpath_var=LD_LIBRARY_PATH 10695 case $host_vendor in 10696 sni) 10697 shlibpath_overrides_runpath=no 10698 need_lib_prefix=no 10699 runpath_var=LD_RUN_PATH 10700 ;; 10701 siemens) 10702 need_lib_prefix=no 10703 ;; 10704 motorola) 10705 need_lib_prefix=no 10706 need_version=no 10707 shlibpath_overrides_runpath=no 10708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10709 ;; 10710 esac 10711 ;; 10712 10713sysv4*MP*) 10714 if test -d /usr/nec ;then 10715 version_type=linux # correct to gnu/linux during the next big refactor 10716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10717 soname_spec='$libname${shared_ext}.$major' 10718 shlibpath_var=LD_LIBRARY_PATH 10719 fi 10720 ;; 10721 10722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10723 version_type=freebsd-elf 10724 need_lib_prefix=no 10725 need_version=no 10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10727 soname_spec='${libname}${release}${shared_ext}$major' 10728 shlibpath_var=LD_LIBRARY_PATH 10729 shlibpath_overrides_runpath=yes 10730 hardcode_into_libs=yes 10731 if test "$with_gnu_ld" = yes; then 10732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10733 else 10734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10735 case $host_os in 10736 sco3.2v5*) 10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10738 ;; 10739 esac 10740 fi 10741 sys_lib_dlsearch_path_spec='/usr/lib' 10742 ;; 10743 10744tpf*) 10745 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10746 version_type=linux # correct to gnu/linux during the next big refactor 10747 need_lib_prefix=no 10748 need_version=no 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10750 shlibpath_var=LD_LIBRARY_PATH 10751 shlibpath_overrides_runpath=no 10752 hardcode_into_libs=yes 10753 ;; 10754 10755uts4*) 10756 version_type=linux # correct to gnu/linux during the next big refactor 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 shlibpath_var=LD_LIBRARY_PATH 10760 ;; 10761 10762*) 10763 dynamic_linker=no 10764 ;; 10765esac 10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10767$as_echo "$dynamic_linker" >&6; } 10768test "$dynamic_linker" = no && can_build_shared=no 10769 10770variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10771if test "$GCC" = yes; then 10772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10773fi 10774 10775if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10776 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10777fi 10778if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10780fi 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10874$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10875hardcode_action= 10876if test -n "$hardcode_libdir_flag_spec" || 10877 test -n "$runpath_var" || 10878 test "X$hardcode_automatic" = "Xyes" ; then 10879 10880 # We can hardcode non-existent directories. 10881 if test "$hardcode_direct" != no && 10882 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10883 # have to relink, otherwise we might link with an installed library 10884 # when we should be linking with a yet-to-be-installed one 10885 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10886 test "$hardcode_minus_L" != no; then 10887 # Linking always hardcodes the temporary library directory. 10888 hardcode_action=relink 10889 else 10890 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10891 hardcode_action=immediate 10892 fi 10893else 10894 # We cannot hardcode anything, or else we can only hardcode existing 10895 # directories. 10896 hardcode_action=unsupported 10897fi 10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10899$as_echo "$hardcode_action" >&6; } 10900 10901if test "$hardcode_action" = relink || 10902 test "$inherit_rpath" = yes; then 10903 # Fast installation is not supported 10904 enable_fast_install=no 10905elif test "$shlibpath_overrides_runpath" = yes || 10906 test "$enable_shared" = no; then 10907 # Fast installation is not necessary 10908 enable_fast_install=needless 10909fi 10910 10911 10912 10913 10914 10915 10916 if test "x$enable_dlopen" != xyes; then 10917 enable_dlopen=unknown 10918 enable_dlopen_self=unknown 10919 enable_dlopen_self_static=unknown 10920else 10921 lt_cv_dlopen=no 10922 lt_cv_dlopen_libs= 10923 10924 case $host_os in 10925 beos*) 10926 lt_cv_dlopen="load_add_on" 10927 lt_cv_dlopen_libs= 10928 lt_cv_dlopen_self=yes 10929 ;; 10930 10931 mingw* | pw32* | cegcc*) 10932 lt_cv_dlopen="LoadLibrary" 10933 lt_cv_dlopen_libs= 10934 ;; 10935 10936 cygwin*) 10937 lt_cv_dlopen="dlopen" 10938 lt_cv_dlopen_libs= 10939 ;; 10940 10941 darwin*) 10942 # if libdl is installed we need to link against it 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10944$as_echo_n "checking for dlopen in -ldl... " >&6; } 10945if ${ac_cv_lib_dl_dlopen+:} false; then : 10946 $as_echo_n "(cached) " >&6 10947else 10948 ac_check_lib_save_LIBS=$LIBS 10949LIBS="-ldl $LIBS" 10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952 10953/* Override any GCC internal prototype to avoid an error. 10954 Use char because int might match the return type of a GCC 10955 builtin and then its argument prototype would still apply. */ 10956#ifdef __cplusplus 10957extern "C" 10958#endif 10959char dlopen (); 10960int 10961main () 10962{ 10963return dlopen (); 10964 ; 10965 return 0; 10966} 10967_ACEOF 10968if ac_fn_c_try_link "$LINENO"; then : 10969 ac_cv_lib_dl_dlopen=yes 10970else 10971 ac_cv_lib_dl_dlopen=no 10972fi 10973rm -f core conftest.err conftest.$ac_objext \ 10974 conftest$ac_exeext conftest.$ac_ext 10975LIBS=$ac_check_lib_save_LIBS 10976fi 10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10978$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10979if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10981else 10982 10983 lt_cv_dlopen="dyld" 10984 lt_cv_dlopen_libs= 10985 lt_cv_dlopen_self=yes 10986 10987fi 10988 10989 ;; 10990 10991 *) 10992 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10993if test "x$ac_cv_func_shl_load" = xyes; then : 10994 lt_cv_dlopen="shl_load" 10995else 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10997$as_echo_n "checking for shl_load in -ldld... " >&6; } 10998if ${ac_cv_lib_dld_shl_load+:} false; then : 10999 $as_echo_n "(cached) " >&6 11000else 11001 ac_check_lib_save_LIBS=$LIBS 11002LIBS="-ldld $LIBS" 11003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11004/* end confdefs.h. */ 11005 11006/* Override any GCC internal prototype to avoid an error. 11007 Use char because int might match the return type of a GCC 11008 builtin and then its argument prototype would still apply. */ 11009#ifdef __cplusplus 11010extern "C" 11011#endif 11012char shl_load (); 11013int 11014main () 11015{ 11016return shl_load (); 11017 ; 11018 return 0; 11019} 11020_ACEOF 11021if ac_fn_c_try_link "$LINENO"; then : 11022 ac_cv_lib_dld_shl_load=yes 11023else 11024 ac_cv_lib_dld_shl_load=no 11025fi 11026rm -f core conftest.err conftest.$ac_objext \ 11027 conftest$ac_exeext conftest.$ac_ext 11028LIBS=$ac_check_lib_save_LIBS 11029fi 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11031$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11032if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11034else 11035 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11036if test "x$ac_cv_func_dlopen" = xyes; then : 11037 lt_cv_dlopen="dlopen" 11038else 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11040$as_echo_n "checking for dlopen in -ldl... " >&6; } 11041if ${ac_cv_lib_dl_dlopen+:} false; then : 11042 $as_echo_n "(cached) " >&6 11043else 11044 ac_check_lib_save_LIBS=$LIBS 11045LIBS="-ldl $LIBS" 11046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11047/* end confdefs.h. */ 11048 11049/* Override any GCC internal prototype to avoid an error. 11050 Use char because int might match the return type of a GCC 11051 builtin and then its argument prototype would still apply. */ 11052#ifdef __cplusplus 11053extern "C" 11054#endif 11055char dlopen (); 11056int 11057main () 11058{ 11059return dlopen (); 11060 ; 11061 return 0; 11062} 11063_ACEOF 11064if ac_fn_c_try_link "$LINENO"; then : 11065 ac_cv_lib_dl_dlopen=yes 11066else 11067 ac_cv_lib_dl_dlopen=no 11068fi 11069rm -f core conftest.err conftest.$ac_objext \ 11070 conftest$ac_exeext conftest.$ac_ext 11071LIBS=$ac_check_lib_save_LIBS 11072fi 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11074$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11075if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11077else 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11079$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11080if ${ac_cv_lib_svld_dlopen+:} false; then : 11081 $as_echo_n "(cached) " >&6 11082else 11083 ac_check_lib_save_LIBS=$LIBS 11084LIBS="-lsvld $LIBS" 11085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086/* end confdefs.h. */ 11087 11088/* Override any GCC internal prototype to avoid an error. 11089 Use char because int might match the return type of a GCC 11090 builtin and then its argument prototype would still apply. */ 11091#ifdef __cplusplus 11092extern "C" 11093#endif 11094char dlopen (); 11095int 11096main () 11097{ 11098return dlopen (); 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103if ac_fn_c_try_link "$LINENO"; then : 11104 ac_cv_lib_svld_dlopen=yes 11105else 11106 ac_cv_lib_svld_dlopen=no 11107fi 11108rm -f core conftest.err conftest.$ac_objext \ 11109 conftest$ac_exeext conftest.$ac_ext 11110LIBS=$ac_check_lib_save_LIBS 11111fi 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11113$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11114if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11116else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11118$as_echo_n "checking for dld_link in -ldld... " >&6; } 11119if ${ac_cv_lib_dld_dld_link+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121else 11122 ac_check_lib_save_LIBS=$LIBS 11123LIBS="-ldld $LIBS" 11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126 11127/* Override any GCC internal prototype to avoid an error. 11128 Use char because int might match the return type of a GCC 11129 builtin and then its argument prototype would still apply. */ 11130#ifdef __cplusplus 11131extern "C" 11132#endif 11133char dld_link (); 11134int 11135main () 11136{ 11137return dld_link (); 11138 ; 11139 return 0; 11140} 11141_ACEOF 11142if ac_fn_c_try_link "$LINENO"; then : 11143 ac_cv_lib_dld_dld_link=yes 11144else 11145 ac_cv_lib_dld_dld_link=no 11146fi 11147rm -f core conftest.err conftest.$ac_objext \ 11148 conftest$ac_exeext conftest.$ac_ext 11149LIBS=$ac_check_lib_save_LIBS 11150fi 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11152$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11153if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11155fi 11156 11157 11158fi 11159 11160 11161fi 11162 11163 11164fi 11165 11166 11167fi 11168 11169 11170fi 11171 11172 ;; 11173 esac 11174 11175 if test "x$lt_cv_dlopen" != xno; then 11176 enable_dlopen=yes 11177 else 11178 enable_dlopen=no 11179 fi 11180 11181 case $lt_cv_dlopen in 11182 dlopen) 11183 save_CPPFLAGS="$CPPFLAGS" 11184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11185 11186 save_LDFLAGS="$LDFLAGS" 11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11188 11189 save_LIBS="$LIBS" 11190 LIBS="$lt_cv_dlopen_libs $LIBS" 11191 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11193$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11194if ${lt_cv_dlopen_self+:} false; then : 11195 $as_echo_n "(cached) " >&6 11196else 11197 if test "$cross_compiling" = yes; then : 11198 lt_cv_dlopen_self=cross 11199else 11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11201 lt_status=$lt_dlunknown 11202 cat > conftest.$ac_ext <<_LT_EOF 11203#line $LINENO "configure" 11204#include "confdefs.h" 11205 11206#if HAVE_DLFCN_H 11207#include <dlfcn.h> 11208#endif 11209 11210#include <stdio.h> 11211 11212#ifdef RTLD_GLOBAL 11213# define LT_DLGLOBAL RTLD_GLOBAL 11214#else 11215# ifdef DL_GLOBAL 11216# define LT_DLGLOBAL DL_GLOBAL 11217# else 11218# define LT_DLGLOBAL 0 11219# endif 11220#endif 11221 11222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11223 find out it does not work in some platform. */ 11224#ifndef LT_DLLAZY_OR_NOW 11225# ifdef RTLD_LAZY 11226# define LT_DLLAZY_OR_NOW RTLD_LAZY 11227# else 11228# ifdef DL_LAZY 11229# define LT_DLLAZY_OR_NOW DL_LAZY 11230# else 11231# ifdef RTLD_NOW 11232# define LT_DLLAZY_OR_NOW RTLD_NOW 11233# else 11234# ifdef DL_NOW 11235# define LT_DLLAZY_OR_NOW DL_NOW 11236# else 11237# define LT_DLLAZY_OR_NOW 0 11238# endif 11239# endif 11240# endif 11241# endif 11242#endif 11243 11244/* When -fvisbility=hidden is used, assume the code has been annotated 11245 correspondingly for the symbols needed. */ 11246#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11247int fnord () __attribute__((visibility("default"))); 11248#endif 11249 11250int fnord () { return 42; } 11251int main () 11252{ 11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11254 int status = $lt_dlunknown; 11255 11256 if (self) 11257 { 11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11259 else 11260 { 11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11262 else puts (dlerror ()); 11263 } 11264 /* dlclose (self); */ 11265 } 11266 else 11267 puts (dlerror ()); 11268 11269 return status; 11270} 11271_LT_EOF 11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11273 (eval $ac_link) 2>&5 11274 ac_status=$? 11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11277 (./conftest; exit; ) >&5 2>/dev/null 11278 lt_status=$? 11279 case x$lt_status in 11280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11282 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11283 esac 11284 else : 11285 # compilation failed 11286 lt_cv_dlopen_self=no 11287 fi 11288fi 11289rm -fr conftest* 11290 11291 11292fi 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11294$as_echo "$lt_cv_dlopen_self" >&6; } 11295 11296 if test "x$lt_cv_dlopen_self" = xyes; then 11297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11299$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11300if ${lt_cv_dlopen_self_static+:} false; then : 11301 $as_echo_n "(cached) " >&6 11302else 11303 if test "$cross_compiling" = yes; then : 11304 lt_cv_dlopen_self_static=cross 11305else 11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11307 lt_status=$lt_dlunknown 11308 cat > conftest.$ac_ext <<_LT_EOF 11309#line $LINENO "configure" 11310#include "confdefs.h" 11311 11312#if HAVE_DLFCN_H 11313#include <dlfcn.h> 11314#endif 11315 11316#include <stdio.h> 11317 11318#ifdef RTLD_GLOBAL 11319# define LT_DLGLOBAL RTLD_GLOBAL 11320#else 11321# ifdef DL_GLOBAL 11322# define LT_DLGLOBAL DL_GLOBAL 11323# else 11324# define LT_DLGLOBAL 0 11325# endif 11326#endif 11327 11328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11329 find out it does not work in some platform. */ 11330#ifndef LT_DLLAZY_OR_NOW 11331# ifdef RTLD_LAZY 11332# define LT_DLLAZY_OR_NOW RTLD_LAZY 11333# else 11334# ifdef DL_LAZY 11335# define LT_DLLAZY_OR_NOW DL_LAZY 11336# else 11337# ifdef RTLD_NOW 11338# define LT_DLLAZY_OR_NOW RTLD_NOW 11339# else 11340# ifdef DL_NOW 11341# define LT_DLLAZY_OR_NOW DL_NOW 11342# else 11343# define LT_DLLAZY_OR_NOW 0 11344# endif 11345# endif 11346# endif 11347# endif 11348#endif 11349 11350/* When -fvisbility=hidden is used, assume the code has been annotated 11351 correspondingly for the symbols needed. */ 11352#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11353int fnord () __attribute__((visibility("default"))); 11354#endif 11355 11356int fnord () { return 42; } 11357int main () 11358{ 11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11360 int status = $lt_dlunknown; 11361 11362 if (self) 11363 { 11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11365 else 11366 { 11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11368 else puts (dlerror ()); 11369 } 11370 /* dlclose (self); */ 11371 } 11372 else 11373 puts (dlerror ()); 11374 11375 return status; 11376} 11377_LT_EOF 11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11379 (eval $ac_link) 2>&5 11380 ac_status=$? 11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11383 (./conftest; exit; ) >&5 2>/dev/null 11384 lt_status=$? 11385 case x$lt_status in 11386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11389 esac 11390 else : 11391 # compilation failed 11392 lt_cv_dlopen_self_static=no 11393 fi 11394fi 11395rm -fr conftest* 11396 11397 11398fi 11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11400$as_echo "$lt_cv_dlopen_self_static" >&6; } 11401 fi 11402 11403 CPPFLAGS="$save_CPPFLAGS" 11404 LDFLAGS="$save_LDFLAGS" 11405 LIBS="$save_LIBS" 11406 ;; 11407 esac 11408 11409 case $lt_cv_dlopen_self in 11410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11411 *) enable_dlopen_self=unknown ;; 11412 esac 11413 11414 case $lt_cv_dlopen_self_static in 11415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11416 *) enable_dlopen_self_static=unknown ;; 11417 esac 11418fi 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436striplib= 11437old_striplib= 11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11439$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11440if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11442 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11444$as_echo "yes" >&6; } 11445else 11446# FIXME - insert some real tests, host_os isn't really good enough 11447 case $host_os in 11448 darwin*) 11449 if test -n "$STRIP" ; then 11450 striplib="$STRIP -x" 11451 old_striplib="$STRIP -S" 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11453$as_echo "yes" >&6; } 11454 else 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11456$as_echo "no" >&6; } 11457 fi 11458 ;; 11459 *) 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11461$as_echo "no" >&6; } 11462 ;; 11463 esac 11464fi 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 # Report which library types will actually be built 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11479$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11481$as_echo "$can_build_shared" >&6; } 11482 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11484$as_echo_n "checking whether to build shared libraries... " >&6; } 11485 test "$can_build_shared" = "no" && enable_shared=no 11486 11487 # On AIX, shared libraries and static libraries use the same namespace, and 11488 # are all built from PIC. 11489 case $host_os in 11490 aix3*) 11491 test "$enable_shared" = yes && enable_static=no 11492 if test -n "$RANLIB"; then 11493 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11494 postinstall_cmds='$RANLIB $lib' 11495 fi 11496 ;; 11497 11498 aix[4-9]*) 11499 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11500 test "$enable_shared" = yes && enable_static=no 11501 fi 11502 ;; 11503 esac 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11505$as_echo "$enable_shared" >&6; } 11506 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11508$as_echo_n "checking whether to build static libraries... " >&6; } 11509 # Make sure either enable_shared or enable_static is yes. 11510 test "$enable_shared" = yes || enable_static=yes 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11512$as_echo "$enable_static" >&6; } 11513 11514 11515 11516 11517fi 11518ac_ext=c 11519ac_cpp='$CPP $CPPFLAGS' 11520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11522ac_compiler_gnu=$ac_cv_c_compiler_gnu 11523 11524CC="$lt_save_CC" 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 ac_config_commands="$ac_config_commands libtool" 11541 11542 11543 11544 11545# Only expand once: 11546 11547 11548 11549# Require X.Org macros 1.13 or later for XORG_ENABLE_UNIT_TESTS 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11562$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11563if ${ac_cv_prog_cc_c99+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565else 11566 ac_cv_prog_cc_c99=no 11567ac_save_CC=$CC 11568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11569/* end confdefs.h. */ 11570#include <stdarg.h> 11571#include <stdbool.h> 11572#include <stdlib.h> 11573#include <wchar.h> 11574#include <stdio.h> 11575 11576// Check varargs macros. These examples are taken from C99 6.10.3.5. 11577#define debug(...) fprintf (stderr, __VA_ARGS__) 11578#define showlist(...) puts (#__VA_ARGS__) 11579#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11580static void 11581test_varargs_macros (void) 11582{ 11583 int x = 1234; 11584 int y = 5678; 11585 debug ("Flag"); 11586 debug ("X = %d\n", x); 11587 showlist (The first, second, and third items.); 11588 report (x>y, "x is %d but y is %d", x, y); 11589} 11590 11591// Check long long types. 11592#define BIG64 18446744073709551615ull 11593#define BIG32 4294967295ul 11594#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11595#if !BIG_OK 11596 your preprocessor is broken; 11597#endif 11598#if BIG_OK 11599#else 11600 your preprocessor is broken; 11601#endif 11602static long long int bignum = -9223372036854775807LL; 11603static unsigned long long int ubignum = BIG64; 11604 11605struct incomplete_array 11606{ 11607 int datasize; 11608 double data[]; 11609}; 11610 11611struct named_init { 11612 int number; 11613 const wchar_t *name; 11614 double average; 11615}; 11616 11617typedef const char *ccp; 11618 11619static inline int 11620test_restrict (ccp restrict text) 11621{ 11622 // See if C++-style comments work. 11623 // Iterate through items via the restricted pointer. 11624 // Also check for declarations in for loops. 11625 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11626 continue; 11627 return 0; 11628} 11629 11630// Check varargs and va_copy. 11631static void 11632test_varargs (const char *format, ...) 11633{ 11634 va_list args; 11635 va_start (args, format); 11636 va_list args_copy; 11637 va_copy (args_copy, args); 11638 11639 const char *str; 11640 int number; 11641 float fnumber; 11642 11643 while (*format) 11644 { 11645 switch (*format++) 11646 { 11647 case 's': // string 11648 str = va_arg (args_copy, const char *); 11649 break; 11650 case 'd': // int 11651 number = va_arg (args_copy, int); 11652 break; 11653 case 'f': // float 11654 fnumber = va_arg (args_copy, double); 11655 break; 11656 default: 11657 break; 11658 } 11659 } 11660 va_end (args_copy); 11661 va_end (args); 11662} 11663 11664int 11665main () 11666{ 11667 11668 // Check bool. 11669 _Bool success = false; 11670 11671 // Check restrict. 11672 if (test_restrict ("String literal") == 0) 11673 success = true; 11674 char *restrict newvar = "Another string"; 11675 11676 // Check varargs. 11677 test_varargs ("s, d' f .", "string", 65, 34.234); 11678 test_varargs_macros (); 11679 11680 // Check flexible array members. 11681 struct incomplete_array *ia = 11682 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11683 ia->datasize = 10; 11684 for (int i = 0; i < ia->datasize; ++i) 11685 ia->data[i] = i * 1.234; 11686 11687 // Check named initializers. 11688 struct named_init ni = { 11689 .number = 34, 11690 .name = L"Test wide string", 11691 .average = 543.34343, 11692 }; 11693 11694 ni.number = 58; 11695 11696 int dynamic_array[ni.number]; 11697 dynamic_array[ni.number - 1] = 543; 11698 11699 // work around unused variable warnings 11700 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11701 || dynamic_array[ni.number - 1] != 543); 11702 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11708do 11709 CC="$ac_save_CC $ac_arg" 11710 if ac_fn_c_try_compile "$LINENO"; then : 11711 ac_cv_prog_cc_c99=$ac_arg 11712fi 11713rm -f core conftest.err conftest.$ac_objext 11714 test "x$ac_cv_prog_cc_c99" != "xno" && break 11715done 11716rm -f conftest.$ac_ext 11717CC=$ac_save_CC 11718 11719fi 11720# AC_CACHE_VAL 11721case "x$ac_cv_prog_cc_c99" in 11722 x) 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11724$as_echo "none needed" >&6; } ;; 11725 xno) 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11727$as_echo "unsupported" >&6; } ;; 11728 *) 11729 CC="$CC $ac_cv_prog_cc_c99" 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11731$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11732esac 11733if test "x$ac_cv_prog_cc_c99" != xno; then : 11734 11735fi 11736 11737 11738 11739 11740 11741 11742ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11743if test "x$ac_cv_have_decl___clang__" = xyes; then : 11744 CLANGCC="yes" 11745else 11746 CLANGCC="no" 11747fi 11748 11749ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11750if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11751 INTELCC="yes" 11752else 11753 INTELCC="no" 11754fi 11755 11756ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11757if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11758 SUNCC="yes" 11759else 11760 SUNCC="no" 11761fi 11762 11763 11764 11765 11766if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11767 if test -n "$ac_tool_prefix"; then 11768 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11769set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11771$as_echo_n "checking for $ac_word... " >&6; } 11772if ${ac_cv_path_PKG_CONFIG+:} false; then : 11773 $as_echo_n "(cached) " >&6 11774else 11775 case $PKG_CONFIG in 11776 [\\/]* | ?:[\\/]*) 11777 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11778 ;; 11779 *) 11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11781for as_dir in $PATH 11782do 11783 IFS=$as_save_IFS 11784 test -z "$as_dir" && as_dir=. 11785 for ac_exec_ext in '' $ac_executable_extensions; do 11786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11787 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11789 break 2 11790 fi 11791done 11792 done 11793IFS=$as_save_IFS 11794 11795 ;; 11796esac 11797fi 11798PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11799if test -n "$PKG_CONFIG"; then 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11801$as_echo "$PKG_CONFIG" >&6; } 11802else 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11804$as_echo "no" >&6; } 11805fi 11806 11807 11808fi 11809if test -z "$ac_cv_path_PKG_CONFIG"; then 11810 ac_pt_PKG_CONFIG=$PKG_CONFIG 11811 # Extract the first word of "pkg-config", so it can be a program name with args. 11812set dummy pkg-config; ac_word=$2 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11814$as_echo_n "checking for $ac_word... " >&6; } 11815if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11816 $as_echo_n "(cached) " >&6 11817else 11818 case $ac_pt_PKG_CONFIG in 11819 [\\/]* | ?:[\\/]*) 11820 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11821 ;; 11822 *) 11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11824for as_dir in $PATH 11825do 11826 IFS=$as_save_IFS 11827 test -z "$as_dir" && as_dir=. 11828 for ac_exec_ext in '' $ac_executable_extensions; do 11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11830 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11832 break 2 11833 fi 11834done 11835 done 11836IFS=$as_save_IFS 11837 11838 ;; 11839esac 11840fi 11841ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11842if test -n "$ac_pt_PKG_CONFIG"; then 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11844$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11845else 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11847$as_echo "no" >&6; } 11848fi 11849 11850 if test "x$ac_pt_PKG_CONFIG" = x; then 11851 PKG_CONFIG="" 11852 else 11853 case $cross_compiling:$ac_tool_warned in 11854yes:) 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11857ac_tool_warned=yes ;; 11858esac 11859 PKG_CONFIG=$ac_pt_PKG_CONFIG 11860 fi 11861else 11862 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11863fi 11864 11865fi 11866if test -n "$PKG_CONFIG"; then 11867 _pkg_min_version=0.9.0 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11869$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11870 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11872$as_echo "yes" >&6; } 11873 else 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11875$as_echo "no" >&6; } 11876 PKG_CONFIG="" 11877 fi 11878 11879fi 11880 11881 11882 11883 11884 11885# Check whether --enable-selective-werror was given. 11886if test "${enable_selective_werror+set}" = set; then : 11887 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11888else 11889 SELECTIVE_WERROR=yes 11890fi 11891 11892 11893 11894 11895 11896# -v is too short to test reliably with XORG_TESTSET_CFLAG 11897if test "x$SUNCC" = "xyes"; then 11898 BASE_CFLAGS="-v" 11899else 11900 BASE_CFLAGS="" 11901fi 11902 11903# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917xorg_testset_save_CFLAGS="$CFLAGS" 11918 11919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11924 $as_echo_n "(cached) " >&6 11925else 11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11927/* end confdefs.h. */ 11928int i; 11929_ACEOF 11930if ac_fn_c_try_compile "$LINENO"; then : 11931 xorg_cv_cc_flag_unknown_warning_option=yes 11932else 11933 xorg_cv_cc_flag_unknown_warning_option=no 11934fi 11935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11936fi 11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11940 CFLAGS="$xorg_testset_save_CFLAGS" 11941fi 11942 11943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11946 fi 11947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11954/* end confdefs.h. */ 11955int i; 11956_ACEOF 11957if ac_fn_c_try_compile "$LINENO"; then : 11958 xorg_cv_cc_flag_unused_command_line_argument=yes 11959else 11960 xorg_cv_cc_flag_unused_command_line_argument=no 11961fi 11962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11963fi 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11967 CFLAGS="$xorg_testset_save_CFLAGS" 11968fi 11969 11970found="no" 11971 11972 if test $found = "no" ; then 11973 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11975 fi 11976 11977 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11979 fi 11980 11981 CFLAGS="$CFLAGS -Wall" 11982 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11984$as_echo_n "checking if $CC supports -Wall... " >&6; } 11985 cacheid=xorg_cv_cc_flag__Wall 11986 if eval \${$cacheid+:} false; then : 11987 $as_echo_n "(cached) " >&6 11988else 11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11990/* end confdefs.h. */ 11991int i; 11992int 11993main () 11994{ 11995 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_c_try_link "$LINENO"; then : 12001 eval $cacheid=yes 12002else 12003 eval $cacheid=no 12004fi 12005rm -f core conftest.err conftest.$ac_objext \ 12006 conftest$ac_exeext conftest.$ac_ext 12007fi 12008 12009 12010 CFLAGS="$xorg_testset_save_CFLAGS" 12011 12012 eval supported=\$$cacheid 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12014$as_echo "$supported" >&6; } 12015 if test "$supported" = "yes" ; then 12016 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12017 found="yes" 12018 fi 12019 fi 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035xorg_testset_save_CFLAGS="$CFLAGS" 12036 12037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12042 $as_echo_n "(cached) " >&6 12043else 12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045/* end confdefs.h. */ 12046int i; 12047_ACEOF 12048if ac_fn_c_try_compile "$LINENO"; then : 12049 xorg_cv_cc_flag_unknown_warning_option=yes 12050else 12051 xorg_cv_cc_flag_unknown_warning_option=no 12052fi 12053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12054fi 12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12058 CFLAGS="$xorg_testset_save_CFLAGS" 12059fi 12060 12061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12064 fi 12065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12069 $as_echo_n "(cached) " >&6 12070else 12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12072/* end confdefs.h. */ 12073int i; 12074_ACEOF 12075if ac_fn_c_try_compile "$LINENO"; then : 12076 xorg_cv_cc_flag_unused_command_line_argument=yes 12077else 12078 xorg_cv_cc_flag_unused_command_line_argument=no 12079fi 12080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12081fi 12082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12085 CFLAGS="$xorg_testset_save_CFLAGS" 12086fi 12087 12088found="no" 12089 12090 if test $found = "no" ; then 12091 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12093 fi 12094 12095 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12097 fi 12098 12099 CFLAGS="$CFLAGS -Wpointer-arith" 12100 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12102$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12103 cacheid=xorg_cv_cc_flag__Wpointer_arith 12104 if eval \${$cacheid+:} false; then : 12105 $as_echo_n "(cached) " >&6 12106else 12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12108/* end confdefs.h. */ 12109int i; 12110int 12111main () 12112{ 12113 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118if ac_fn_c_try_link "$LINENO"; then : 12119 eval $cacheid=yes 12120else 12121 eval $cacheid=no 12122fi 12123rm -f core conftest.err conftest.$ac_objext \ 12124 conftest$ac_exeext conftest.$ac_ext 12125fi 12126 12127 12128 CFLAGS="$xorg_testset_save_CFLAGS" 12129 12130 eval supported=\$$cacheid 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12132$as_echo "$supported" >&6; } 12133 if test "$supported" = "yes" ; then 12134 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12135 found="yes" 12136 fi 12137 fi 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153xorg_testset_save_CFLAGS="$CFLAGS" 12154 12155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12160 $as_echo_n "(cached) " >&6 12161else 12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164int i; 12165_ACEOF 12166if ac_fn_c_try_compile "$LINENO"; then : 12167 xorg_cv_cc_flag_unknown_warning_option=yes 12168else 12169 xorg_cv_cc_flag_unknown_warning_option=no 12170fi 12171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12172fi 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12176 CFLAGS="$xorg_testset_save_CFLAGS" 12177fi 12178 12179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12182 fi 12183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188else 12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191int i; 12192_ACEOF 12193if ac_fn_c_try_compile "$LINENO"; then : 12194 xorg_cv_cc_flag_unused_command_line_argument=yes 12195else 12196 xorg_cv_cc_flag_unused_command_line_argument=no 12197fi 12198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12199fi 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12203 CFLAGS="$xorg_testset_save_CFLAGS" 12204fi 12205 12206found="no" 12207 12208 if test $found = "no" ; then 12209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12211 fi 12212 12213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12215 fi 12216 12217 CFLAGS="$CFLAGS -Wmissing-declarations" 12218 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12220$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12221 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12222 if eval \${$cacheid+:} false; then : 12223 $as_echo_n "(cached) " >&6 12224else 12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12226/* end confdefs.h. */ 12227int i; 12228int 12229main () 12230{ 12231 12232 ; 12233 return 0; 12234} 12235_ACEOF 12236if ac_fn_c_try_link "$LINENO"; then : 12237 eval $cacheid=yes 12238else 12239 eval $cacheid=no 12240fi 12241rm -f core conftest.err conftest.$ac_objext \ 12242 conftest$ac_exeext conftest.$ac_ext 12243fi 12244 12245 12246 CFLAGS="$xorg_testset_save_CFLAGS" 12247 12248 eval supported=\$$cacheid 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12250$as_echo "$supported" >&6; } 12251 if test "$supported" = "yes" ; then 12252 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12253 found="yes" 12254 fi 12255 fi 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271xorg_testset_save_CFLAGS="$CFLAGS" 12272 12273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12278 $as_echo_n "(cached) " >&6 12279else 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282int i; 12283_ACEOF 12284if ac_fn_c_try_compile "$LINENO"; then : 12285 xorg_cv_cc_flag_unknown_warning_option=yes 12286else 12287 xorg_cv_cc_flag_unknown_warning_option=no 12288fi 12289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12290fi 12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12294 CFLAGS="$xorg_testset_save_CFLAGS" 12295fi 12296 12297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12300 fi 12301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12305 $as_echo_n "(cached) " >&6 12306else 12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12308/* end confdefs.h. */ 12309int i; 12310_ACEOF 12311if ac_fn_c_try_compile "$LINENO"; then : 12312 xorg_cv_cc_flag_unused_command_line_argument=yes 12313else 12314 xorg_cv_cc_flag_unused_command_line_argument=no 12315fi 12316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12317fi 12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12321 CFLAGS="$xorg_testset_save_CFLAGS" 12322fi 12323 12324found="no" 12325 12326 if test $found = "no" ; then 12327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12329 fi 12330 12331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12333 fi 12334 12335 CFLAGS="$CFLAGS -Wformat=2" 12336 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12338$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12339 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12340 if eval \${$cacheid+:} false; then : 12341 $as_echo_n "(cached) " >&6 12342else 12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12344/* end confdefs.h. */ 12345int i; 12346int 12347main () 12348{ 12349 12350 ; 12351 return 0; 12352} 12353_ACEOF 12354if ac_fn_c_try_link "$LINENO"; then : 12355 eval $cacheid=yes 12356else 12357 eval $cacheid=no 12358fi 12359rm -f core conftest.err conftest.$ac_objext \ 12360 conftest$ac_exeext conftest.$ac_ext 12361fi 12362 12363 12364 CFLAGS="$xorg_testset_save_CFLAGS" 12365 12366 eval supported=\$$cacheid 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12368$as_echo "$supported" >&6; } 12369 if test "$supported" = "yes" ; then 12370 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12371 found="yes" 12372 fi 12373 fi 12374 12375 if test $found = "no" ; then 12376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12378 fi 12379 12380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12382 fi 12383 12384 CFLAGS="$CFLAGS -Wformat" 12385 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12387$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12388 cacheid=xorg_cv_cc_flag__Wformat 12389 if eval \${$cacheid+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394int i; 12395int 12396main () 12397{ 12398 12399 ; 12400 return 0; 12401} 12402_ACEOF 12403if ac_fn_c_try_link "$LINENO"; then : 12404 eval $cacheid=yes 12405else 12406 eval $cacheid=no 12407fi 12408rm -f core conftest.err conftest.$ac_objext \ 12409 conftest$ac_exeext conftest.$ac_ext 12410fi 12411 12412 12413 CFLAGS="$xorg_testset_save_CFLAGS" 12414 12415 eval supported=\$$cacheid 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12417$as_echo "$supported" >&6; } 12418 if test "$supported" = "yes" ; then 12419 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12420 found="yes" 12421 fi 12422 fi 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440xorg_testset_save_CFLAGS="$CFLAGS" 12441 12442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451int i; 12452_ACEOF 12453if ac_fn_c_try_compile "$LINENO"; then : 12454 xorg_cv_cc_flag_unknown_warning_option=yes 12455else 12456 xorg_cv_cc_flag_unknown_warning_option=no 12457fi 12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12459fi 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12463 CFLAGS="$xorg_testset_save_CFLAGS" 12464fi 12465 12466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12469 fi 12470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12474 $as_echo_n "(cached) " >&6 12475else 12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12477/* end confdefs.h. */ 12478int i; 12479_ACEOF 12480if ac_fn_c_try_compile "$LINENO"; then : 12481 xorg_cv_cc_flag_unused_command_line_argument=yes 12482else 12483 xorg_cv_cc_flag_unused_command_line_argument=no 12484fi 12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12486fi 12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12490 CFLAGS="$xorg_testset_save_CFLAGS" 12491fi 12492 12493found="no" 12494 12495 if test $found = "no" ; then 12496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12498 fi 12499 12500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12502 fi 12503 12504 CFLAGS="$CFLAGS -Wstrict-prototypes" 12505 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12507$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12508 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12509 if eval \${$cacheid+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514int i; 12515int 12516main () 12517{ 12518 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523if ac_fn_c_try_link "$LINENO"; then : 12524 eval $cacheid=yes 12525else 12526 eval $cacheid=no 12527fi 12528rm -f core conftest.err conftest.$ac_objext \ 12529 conftest$ac_exeext conftest.$ac_ext 12530fi 12531 12532 12533 CFLAGS="$xorg_testset_save_CFLAGS" 12534 12535 eval supported=\$$cacheid 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12537$as_echo "$supported" >&6; } 12538 if test "$supported" = "yes" ; then 12539 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12540 found="yes" 12541 fi 12542 fi 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558xorg_testset_save_CFLAGS="$CFLAGS" 12559 12560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12565 $as_echo_n "(cached) " >&6 12566else 12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12568/* end confdefs.h. */ 12569int i; 12570_ACEOF 12571if ac_fn_c_try_compile "$LINENO"; then : 12572 xorg_cv_cc_flag_unknown_warning_option=yes 12573else 12574 xorg_cv_cc_flag_unknown_warning_option=no 12575fi 12576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12577fi 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12581 CFLAGS="$xorg_testset_save_CFLAGS" 12582fi 12583 12584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12587 fi 12588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12592 $as_echo_n "(cached) " >&6 12593else 12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12595/* end confdefs.h. */ 12596int i; 12597_ACEOF 12598if ac_fn_c_try_compile "$LINENO"; then : 12599 xorg_cv_cc_flag_unused_command_line_argument=yes 12600else 12601 xorg_cv_cc_flag_unused_command_line_argument=no 12602fi 12603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12604fi 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12608 CFLAGS="$xorg_testset_save_CFLAGS" 12609fi 12610 12611found="no" 12612 12613 if test $found = "no" ; then 12614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12616 fi 12617 12618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12620 fi 12621 12622 CFLAGS="$CFLAGS -Wmissing-prototypes" 12623 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12625$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12626 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12627 if eval \${$cacheid+:} false; then : 12628 $as_echo_n "(cached) " >&6 12629else 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632int i; 12633int 12634main () 12635{ 12636 12637 ; 12638 return 0; 12639} 12640_ACEOF 12641if ac_fn_c_try_link "$LINENO"; then : 12642 eval $cacheid=yes 12643else 12644 eval $cacheid=no 12645fi 12646rm -f core conftest.err conftest.$ac_objext \ 12647 conftest$ac_exeext conftest.$ac_ext 12648fi 12649 12650 12651 CFLAGS="$xorg_testset_save_CFLAGS" 12652 12653 eval supported=\$$cacheid 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12655$as_echo "$supported" >&6; } 12656 if test "$supported" = "yes" ; then 12657 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12658 found="yes" 12659 fi 12660 fi 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676xorg_testset_save_CFLAGS="$CFLAGS" 12677 12678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12683 $as_echo_n "(cached) " >&6 12684else 12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687int i; 12688_ACEOF 12689if ac_fn_c_try_compile "$LINENO"; then : 12690 xorg_cv_cc_flag_unknown_warning_option=yes 12691else 12692 xorg_cv_cc_flag_unknown_warning_option=no 12693fi 12694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12695fi 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12699 CFLAGS="$xorg_testset_save_CFLAGS" 12700fi 12701 12702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12705 fi 12706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12713/* end confdefs.h. */ 12714int i; 12715_ACEOF 12716if ac_fn_c_try_compile "$LINENO"; then : 12717 xorg_cv_cc_flag_unused_command_line_argument=yes 12718else 12719 xorg_cv_cc_flag_unused_command_line_argument=no 12720fi 12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12722fi 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12726 CFLAGS="$xorg_testset_save_CFLAGS" 12727fi 12728 12729found="no" 12730 12731 if test $found = "no" ; then 12732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12734 fi 12735 12736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12738 fi 12739 12740 CFLAGS="$CFLAGS -Wnested-externs" 12741 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12743$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12744 cacheid=xorg_cv_cc_flag__Wnested_externs 12745 if eval \${$cacheid+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750int i; 12751int 12752main () 12753{ 12754 12755 ; 12756 return 0; 12757} 12758_ACEOF 12759if ac_fn_c_try_link "$LINENO"; then : 12760 eval $cacheid=yes 12761else 12762 eval $cacheid=no 12763fi 12764rm -f core conftest.err conftest.$ac_objext \ 12765 conftest$ac_exeext conftest.$ac_ext 12766fi 12767 12768 12769 CFLAGS="$xorg_testset_save_CFLAGS" 12770 12771 eval supported=\$$cacheid 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12773$as_echo "$supported" >&6; } 12774 if test "$supported" = "yes" ; then 12775 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12776 found="yes" 12777 fi 12778 fi 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794xorg_testset_save_CFLAGS="$CFLAGS" 12795 12796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12804/* end confdefs.h. */ 12805int i; 12806_ACEOF 12807if ac_fn_c_try_compile "$LINENO"; then : 12808 xorg_cv_cc_flag_unknown_warning_option=yes 12809else 12810 xorg_cv_cc_flag_unknown_warning_option=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12813fi 12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12817 CFLAGS="$xorg_testset_save_CFLAGS" 12818fi 12819 12820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12823 fi 12824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829else 12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12831/* end confdefs.h. */ 12832int i; 12833_ACEOF 12834if ac_fn_c_try_compile "$LINENO"; then : 12835 xorg_cv_cc_flag_unused_command_line_argument=yes 12836else 12837 xorg_cv_cc_flag_unused_command_line_argument=no 12838fi 12839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12840fi 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12844 CFLAGS="$xorg_testset_save_CFLAGS" 12845fi 12846 12847found="no" 12848 12849 if test $found = "no" ; then 12850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12852 fi 12853 12854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12856 fi 12857 12858 CFLAGS="$CFLAGS -Wbad-function-cast" 12859 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12861$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12862 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12863 if eval \${$cacheid+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867/* end confdefs.h. */ 12868int i; 12869int 12870main () 12871{ 12872 12873 ; 12874 return 0; 12875} 12876_ACEOF 12877if ac_fn_c_try_link "$LINENO"; then : 12878 eval $cacheid=yes 12879else 12880 eval $cacheid=no 12881fi 12882rm -f core conftest.err conftest.$ac_objext \ 12883 conftest$ac_exeext conftest.$ac_ext 12884fi 12885 12886 12887 CFLAGS="$xorg_testset_save_CFLAGS" 12888 12889 eval supported=\$$cacheid 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12891$as_echo "$supported" >&6; } 12892 if test "$supported" = "yes" ; then 12893 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12894 found="yes" 12895 fi 12896 fi 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912xorg_testset_save_CFLAGS="$CFLAGS" 12913 12914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12919 $as_echo_n "(cached) " >&6 12920else 12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12922/* end confdefs.h. */ 12923int i; 12924_ACEOF 12925if ac_fn_c_try_compile "$LINENO"; then : 12926 xorg_cv_cc_flag_unknown_warning_option=yes 12927else 12928 xorg_cv_cc_flag_unknown_warning_option=no 12929fi 12930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12931fi 12932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12935 CFLAGS="$xorg_testset_save_CFLAGS" 12936fi 12937 12938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12941 fi 12942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12946 $as_echo_n "(cached) " >&6 12947else 12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12949/* end confdefs.h. */ 12950int i; 12951_ACEOF 12952if ac_fn_c_try_compile "$LINENO"; then : 12953 xorg_cv_cc_flag_unused_command_line_argument=yes 12954else 12955 xorg_cv_cc_flag_unused_command_line_argument=no 12956fi 12957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12958fi 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12962 CFLAGS="$xorg_testset_save_CFLAGS" 12963fi 12964 12965found="no" 12966 12967 if test $found = "no" ; then 12968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12970 fi 12971 12972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12974 fi 12975 12976 CFLAGS="$CFLAGS -Wold-style-definition" 12977 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12979$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12980 cacheid=xorg_cv_cc_flag__Wold_style_definition 12981 if eval \${$cacheid+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983else 12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12985/* end confdefs.h. */ 12986int i; 12987int 12988main () 12989{ 12990 12991 ; 12992 return 0; 12993} 12994_ACEOF 12995if ac_fn_c_try_link "$LINENO"; then : 12996 eval $cacheid=yes 12997else 12998 eval $cacheid=no 12999fi 13000rm -f core conftest.err conftest.$ac_objext \ 13001 conftest$ac_exeext conftest.$ac_ext 13002fi 13003 13004 13005 CFLAGS="$xorg_testset_save_CFLAGS" 13006 13007 eval supported=\$$cacheid 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13009$as_echo "$supported" >&6; } 13010 if test "$supported" = "yes" ; then 13011 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13012 found="yes" 13013 fi 13014 fi 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030xorg_testset_save_CFLAGS="$CFLAGS" 13031 13032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13037 $as_echo_n "(cached) " >&6 13038else 13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13040/* end confdefs.h. */ 13041int i; 13042_ACEOF 13043if ac_fn_c_try_compile "$LINENO"; then : 13044 xorg_cv_cc_flag_unknown_warning_option=yes 13045else 13046 xorg_cv_cc_flag_unknown_warning_option=no 13047fi 13048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13049fi 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13053 CFLAGS="$xorg_testset_save_CFLAGS" 13054fi 13055 13056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13059 fi 13060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068int i; 13069_ACEOF 13070if ac_fn_c_try_compile "$LINENO"; then : 13071 xorg_cv_cc_flag_unused_command_line_argument=yes 13072else 13073 xorg_cv_cc_flag_unused_command_line_argument=no 13074fi 13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13076fi 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13080 CFLAGS="$xorg_testset_save_CFLAGS" 13081fi 13082 13083found="no" 13084 13085 if test $found = "no" ; then 13086 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13088 fi 13089 13090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13092 fi 13093 13094 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13095 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13097$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13098 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13099 if eval \${$cacheid+:} false; then : 13100 $as_echo_n "(cached) " >&6 13101else 13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13103/* end confdefs.h. */ 13104int i; 13105int 13106main () 13107{ 13108 13109 ; 13110 return 0; 13111} 13112_ACEOF 13113if ac_fn_c_try_link "$LINENO"; then : 13114 eval $cacheid=yes 13115else 13116 eval $cacheid=no 13117fi 13118rm -f core conftest.err conftest.$ac_objext \ 13119 conftest$ac_exeext conftest.$ac_ext 13120fi 13121 13122 13123 CFLAGS="$xorg_testset_save_CFLAGS" 13124 13125 eval supported=\$$cacheid 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13127$as_echo "$supported" >&6; } 13128 if test "$supported" = "yes" ; then 13129 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13130 found="yes" 13131 fi 13132 fi 13133 13134 13135 13136 13137 13138# This chunk adds additional warnings that could catch undesired effects. 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152xorg_testset_save_CFLAGS="$CFLAGS" 13153 13154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13159 $as_echo_n "(cached) " >&6 13160else 13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13162/* end confdefs.h. */ 13163int i; 13164_ACEOF 13165if ac_fn_c_try_compile "$LINENO"; then : 13166 xorg_cv_cc_flag_unknown_warning_option=yes 13167else 13168 xorg_cv_cc_flag_unknown_warning_option=no 13169fi 13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13171fi 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13175 CFLAGS="$xorg_testset_save_CFLAGS" 13176fi 13177 13178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13181 fi 13182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13186 $as_echo_n "(cached) " >&6 13187else 13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13189/* end confdefs.h. */ 13190int i; 13191_ACEOF 13192if ac_fn_c_try_compile "$LINENO"; then : 13193 xorg_cv_cc_flag_unused_command_line_argument=yes 13194else 13195 xorg_cv_cc_flag_unused_command_line_argument=no 13196fi 13197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13198fi 13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13202 CFLAGS="$xorg_testset_save_CFLAGS" 13203fi 13204 13205found="no" 13206 13207 if test $found = "no" ; then 13208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13210 fi 13211 13212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13214 fi 13215 13216 CFLAGS="$CFLAGS -Wunused" 13217 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13219$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13220 cacheid=xorg_cv_cc_flag__Wunused 13221 if eval \${$cacheid+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226int i; 13227int 13228main () 13229{ 13230 13231 ; 13232 return 0; 13233} 13234_ACEOF 13235if ac_fn_c_try_link "$LINENO"; then : 13236 eval $cacheid=yes 13237else 13238 eval $cacheid=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext \ 13241 conftest$ac_exeext conftest.$ac_ext 13242fi 13243 13244 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246 13247 eval supported=\$$cacheid 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13249$as_echo "$supported" >&6; } 13250 if test "$supported" = "yes" ; then 13251 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13252 found="yes" 13253 fi 13254 fi 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270xorg_testset_save_CFLAGS="$CFLAGS" 13271 13272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13280/* end confdefs.h. */ 13281int i; 13282_ACEOF 13283if ac_fn_c_try_compile "$LINENO"; then : 13284 xorg_cv_cc_flag_unknown_warning_option=yes 13285else 13286 xorg_cv_cc_flag_unknown_warning_option=no 13287fi 13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13289fi 13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13293 CFLAGS="$xorg_testset_save_CFLAGS" 13294fi 13295 13296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13299 fi 13300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13304 $as_echo_n "(cached) " >&6 13305else 13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13307/* end confdefs.h. */ 13308int i; 13309_ACEOF 13310if ac_fn_c_try_compile "$LINENO"; then : 13311 xorg_cv_cc_flag_unused_command_line_argument=yes 13312else 13313 xorg_cv_cc_flag_unused_command_line_argument=no 13314fi 13315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13316fi 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13320 CFLAGS="$xorg_testset_save_CFLAGS" 13321fi 13322 13323found="no" 13324 13325 if test $found = "no" ; then 13326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13328 fi 13329 13330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13332 fi 13333 13334 CFLAGS="$CFLAGS -Wuninitialized" 13335 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13337$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13338 cacheid=xorg_cv_cc_flag__Wuninitialized 13339 if eval \${$cacheid+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341else 13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13343/* end confdefs.h. */ 13344int i; 13345int 13346main () 13347{ 13348 13349 ; 13350 return 0; 13351} 13352_ACEOF 13353if ac_fn_c_try_link "$LINENO"; then : 13354 eval $cacheid=yes 13355else 13356 eval $cacheid=no 13357fi 13358rm -f core conftest.err conftest.$ac_objext \ 13359 conftest$ac_exeext conftest.$ac_ext 13360fi 13361 13362 13363 CFLAGS="$xorg_testset_save_CFLAGS" 13364 13365 eval supported=\$$cacheid 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13367$as_echo "$supported" >&6; } 13368 if test "$supported" = "yes" ; then 13369 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13370 found="yes" 13371 fi 13372 fi 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388xorg_testset_save_CFLAGS="$CFLAGS" 13389 13390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13398/* end confdefs.h. */ 13399int i; 13400_ACEOF 13401if ac_fn_c_try_compile "$LINENO"; then : 13402 xorg_cv_cc_flag_unknown_warning_option=yes 13403else 13404 xorg_cv_cc_flag_unknown_warning_option=no 13405fi 13406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13407fi 13408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13411 CFLAGS="$xorg_testset_save_CFLAGS" 13412fi 13413 13414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13417 fi 13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13425/* end confdefs.h. */ 13426int i; 13427_ACEOF 13428if ac_fn_c_try_compile "$LINENO"; then : 13429 xorg_cv_cc_flag_unused_command_line_argument=yes 13430else 13431 xorg_cv_cc_flag_unused_command_line_argument=no 13432fi 13433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13434fi 13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13438 CFLAGS="$xorg_testset_save_CFLAGS" 13439fi 13440 13441found="no" 13442 13443 if test $found = "no" ; then 13444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13446 fi 13447 13448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13450 fi 13451 13452 CFLAGS="$CFLAGS -Wshadow" 13453 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13455$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13456 cacheid=xorg_cv_cc_flag__Wshadow 13457 if eval \${$cacheid+:} false; then : 13458 $as_echo_n "(cached) " >&6 13459else 13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13461/* end confdefs.h. */ 13462int i; 13463int 13464main () 13465{ 13466 13467 ; 13468 return 0; 13469} 13470_ACEOF 13471if ac_fn_c_try_link "$LINENO"; then : 13472 eval $cacheid=yes 13473else 13474 eval $cacheid=no 13475fi 13476rm -f core conftest.err conftest.$ac_objext \ 13477 conftest$ac_exeext conftest.$ac_ext 13478fi 13479 13480 13481 CFLAGS="$xorg_testset_save_CFLAGS" 13482 13483 eval supported=\$$cacheid 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13485$as_echo "$supported" >&6; } 13486 if test "$supported" = "yes" ; then 13487 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13488 found="yes" 13489 fi 13490 fi 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506xorg_testset_save_CFLAGS="$CFLAGS" 13507 13508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13513 $as_echo_n "(cached) " >&6 13514else 13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13516/* end confdefs.h. */ 13517int i; 13518_ACEOF 13519if ac_fn_c_try_compile "$LINENO"; then : 13520 xorg_cv_cc_flag_unknown_warning_option=yes 13521else 13522 xorg_cv_cc_flag_unknown_warning_option=no 13523fi 13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13525fi 13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13529 CFLAGS="$xorg_testset_save_CFLAGS" 13530fi 13531 13532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13535 fi 13536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13540 $as_echo_n "(cached) " >&6 13541else 13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13543/* end confdefs.h. */ 13544int i; 13545_ACEOF 13546if ac_fn_c_try_compile "$LINENO"; then : 13547 xorg_cv_cc_flag_unused_command_line_argument=yes 13548else 13549 xorg_cv_cc_flag_unused_command_line_argument=no 13550fi 13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13552fi 13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13556 CFLAGS="$xorg_testset_save_CFLAGS" 13557fi 13558 13559found="no" 13560 13561 if test $found = "no" ; then 13562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13564 fi 13565 13566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13568 fi 13569 13570 CFLAGS="$CFLAGS -Wcast-qual" 13571 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13573$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13574 cacheid=xorg_cv_cc_flag__Wcast_qual 13575 if eval \${$cacheid+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13579/* end confdefs.h. */ 13580int i; 13581int 13582main () 13583{ 13584 13585 ; 13586 return 0; 13587} 13588_ACEOF 13589if ac_fn_c_try_link "$LINENO"; then : 13590 eval $cacheid=yes 13591else 13592 eval $cacheid=no 13593fi 13594rm -f core conftest.err conftest.$ac_objext \ 13595 conftest$ac_exeext conftest.$ac_ext 13596fi 13597 13598 13599 CFLAGS="$xorg_testset_save_CFLAGS" 13600 13601 eval supported=\$$cacheid 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13603$as_echo "$supported" >&6; } 13604 if test "$supported" = "yes" ; then 13605 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13606 found="yes" 13607 fi 13608 fi 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624xorg_testset_save_CFLAGS="$CFLAGS" 13625 13626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13631 $as_echo_n "(cached) " >&6 13632else 13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13634/* end confdefs.h. */ 13635int i; 13636_ACEOF 13637if ac_fn_c_try_compile "$LINENO"; then : 13638 xorg_cv_cc_flag_unknown_warning_option=yes 13639else 13640 xorg_cv_cc_flag_unknown_warning_option=no 13641fi 13642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13643fi 13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13647 CFLAGS="$xorg_testset_save_CFLAGS" 13648fi 13649 13650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13653 fi 13654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13658 $as_echo_n "(cached) " >&6 13659else 13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661/* end confdefs.h. */ 13662int i; 13663_ACEOF 13664if ac_fn_c_try_compile "$LINENO"; then : 13665 xorg_cv_cc_flag_unused_command_line_argument=yes 13666else 13667 xorg_cv_cc_flag_unused_command_line_argument=no 13668fi 13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13670fi 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13674 CFLAGS="$xorg_testset_save_CFLAGS" 13675fi 13676 13677found="no" 13678 13679 if test $found = "no" ; then 13680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13682 fi 13683 13684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13686 fi 13687 13688 CFLAGS="$CFLAGS -Wmissing-noreturn" 13689 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13691$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13692 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13693 if eval \${$cacheid+:} false; then : 13694 $as_echo_n "(cached) " >&6 13695else 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698int i; 13699int 13700main () 13701{ 13702 13703 ; 13704 return 0; 13705} 13706_ACEOF 13707if ac_fn_c_try_link "$LINENO"; then : 13708 eval $cacheid=yes 13709else 13710 eval $cacheid=no 13711fi 13712rm -f core conftest.err conftest.$ac_objext \ 13713 conftest$ac_exeext conftest.$ac_ext 13714fi 13715 13716 13717 CFLAGS="$xorg_testset_save_CFLAGS" 13718 13719 eval supported=\$$cacheid 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13721$as_echo "$supported" >&6; } 13722 if test "$supported" = "yes" ; then 13723 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13724 found="yes" 13725 fi 13726 fi 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742xorg_testset_save_CFLAGS="$CFLAGS" 13743 13744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13749 $as_echo_n "(cached) " >&6 13750else 13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13752/* end confdefs.h. */ 13753int i; 13754_ACEOF 13755if ac_fn_c_try_compile "$LINENO"; then : 13756 xorg_cv_cc_flag_unknown_warning_option=yes 13757else 13758 xorg_cv_cc_flag_unknown_warning_option=no 13759fi 13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13761fi 13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13765 CFLAGS="$xorg_testset_save_CFLAGS" 13766fi 13767 13768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13771 fi 13772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13776 $as_echo_n "(cached) " >&6 13777else 13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13779/* end confdefs.h. */ 13780int i; 13781_ACEOF 13782if ac_fn_c_try_compile "$LINENO"; then : 13783 xorg_cv_cc_flag_unused_command_line_argument=yes 13784else 13785 xorg_cv_cc_flag_unused_command_line_argument=no 13786fi 13787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13788fi 13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13792 CFLAGS="$xorg_testset_save_CFLAGS" 13793fi 13794 13795found="no" 13796 13797 if test $found = "no" ; then 13798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13800 fi 13801 13802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13804 fi 13805 13806 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13807 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13809$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13810 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13811 if eval \${$cacheid+:} false; then : 13812 $as_echo_n "(cached) " >&6 13813else 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816int i; 13817int 13818main () 13819{ 13820 13821 ; 13822 return 0; 13823} 13824_ACEOF 13825if ac_fn_c_try_link "$LINENO"; then : 13826 eval $cacheid=yes 13827else 13828 eval $cacheid=no 13829fi 13830rm -f core conftest.err conftest.$ac_objext \ 13831 conftest$ac_exeext conftest.$ac_ext 13832fi 13833 13834 13835 CFLAGS="$xorg_testset_save_CFLAGS" 13836 13837 eval supported=\$$cacheid 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13839$as_echo "$supported" >&6; } 13840 if test "$supported" = "yes" ; then 13841 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13842 found="yes" 13843 fi 13844 fi 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860xorg_testset_save_CFLAGS="$CFLAGS" 13861 13862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13867 $as_echo_n "(cached) " >&6 13868else 13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13870/* end confdefs.h. */ 13871int i; 13872_ACEOF 13873if ac_fn_c_try_compile "$LINENO"; then : 13874 xorg_cv_cc_flag_unknown_warning_option=yes 13875else 13876 xorg_cv_cc_flag_unknown_warning_option=no 13877fi 13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13879fi 13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13883 CFLAGS="$xorg_testset_save_CFLAGS" 13884fi 13885 13886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13889 fi 13890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13894 $as_echo_n "(cached) " >&6 13895else 13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13897/* end confdefs.h. */ 13898int i; 13899_ACEOF 13900if ac_fn_c_try_compile "$LINENO"; then : 13901 xorg_cv_cc_flag_unused_command_line_argument=yes 13902else 13903 xorg_cv_cc_flag_unused_command_line_argument=no 13904fi 13905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13906fi 13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13910 CFLAGS="$xorg_testset_save_CFLAGS" 13911fi 13912 13913found="no" 13914 13915 if test $found = "no" ; then 13916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13918 fi 13919 13920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13922 fi 13923 13924 CFLAGS="$CFLAGS -Wredundant-decls" 13925 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13927$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13928 cacheid=xorg_cv_cc_flag__Wredundant_decls 13929 if eval \${$cacheid+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934int i; 13935int 13936main () 13937{ 13938 13939 ; 13940 return 0; 13941} 13942_ACEOF 13943if ac_fn_c_try_link "$LINENO"; then : 13944 eval $cacheid=yes 13945else 13946 eval $cacheid=no 13947fi 13948rm -f core conftest.err conftest.$ac_objext \ 13949 conftest$ac_exeext conftest.$ac_ext 13950fi 13951 13952 13953 CFLAGS="$xorg_testset_save_CFLAGS" 13954 13955 eval supported=\$$cacheid 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13957$as_echo "$supported" >&6; } 13958 if test "$supported" = "yes" ; then 13959 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13960 found="yes" 13961 fi 13962 fi 13963 13964 13965 13966# These are currently disabled because they are noisy. They will be enabled 13967# in the future once the codebase is sufficiently modernized to silence 13968# them. For now, I don't want them to drown out the other warnings. 13969# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13970# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13971# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13972 13973# Turn some warnings into errors, so we don't accidently get successful builds 13974# when there are problems that should be fixed. 13975 13976if test "x$SELECTIVE_WERROR" = "xyes" ; then 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990xorg_testset_save_CFLAGS="$CFLAGS" 13991 13992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13997 $as_echo_n "(cached) " >&6 13998else 13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14000/* end confdefs.h. */ 14001int i; 14002_ACEOF 14003if ac_fn_c_try_compile "$LINENO"; then : 14004 xorg_cv_cc_flag_unknown_warning_option=yes 14005else 14006 xorg_cv_cc_flag_unknown_warning_option=no 14007fi 14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14009fi 14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14013 CFLAGS="$xorg_testset_save_CFLAGS" 14014fi 14015 14016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14019 fi 14020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14027/* end confdefs.h. */ 14028int i; 14029_ACEOF 14030if ac_fn_c_try_compile "$LINENO"; then : 14031 xorg_cv_cc_flag_unused_command_line_argument=yes 14032else 14033 xorg_cv_cc_flag_unused_command_line_argument=no 14034fi 14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14036fi 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14040 CFLAGS="$xorg_testset_save_CFLAGS" 14041fi 14042 14043found="no" 14044 14045 if test $found = "no" ; then 14046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14048 fi 14049 14050 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14052 fi 14053 14054 CFLAGS="$CFLAGS -Werror=implicit" 14055 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14057$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14058 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14059 if eval \${$cacheid+:} false; then : 14060 $as_echo_n "(cached) " >&6 14061else 14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063/* end confdefs.h. */ 14064int i; 14065int 14066main () 14067{ 14068 14069 ; 14070 return 0; 14071} 14072_ACEOF 14073if ac_fn_c_try_link "$LINENO"; then : 14074 eval $cacheid=yes 14075else 14076 eval $cacheid=no 14077fi 14078rm -f core conftest.err conftest.$ac_objext \ 14079 conftest$ac_exeext conftest.$ac_ext 14080fi 14081 14082 14083 CFLAGS="$xorg_testset_save_CFLAGS" 14084 14085 eval supported=\$$cacheid 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14087$as_echo "$supported" >&6; } 14088 if test "$supported" = "yes" ; then 14089 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14090 found="yes" 14091 fi 14092 fi 14093 14094 if test $found = "no" ; then 14095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14097 fi 14098 14099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14101 fi 14102 14103 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14104 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14106$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14107 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14108 if eval \${$cacheid+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14112/* end confdefs.h. */ 14113int i; 14114int 14115main () 14116{ 14117 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_c_try_link "$LINENO"; then : 14123 eval $cacheid=yes 14124else 14125 eval $cacheid=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext \ 14128 conftest$ac_exeext conftest.$ac_ext 14129fi 14130 14131 14132 CFLAGS="$xorg_testset_save_CFLAGS" 14133 14134 eval supported=\$$cacheid 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14136$as_echo "$supported" >&6; } 14137 if test "$supported" = "yes" ; then 14138 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14139 found="yes" 14140 fi 14141 fi 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157xorg_testset_save_CFLAGS="$CFLAGS" 14158 14159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14164 $as_echo_n "(cached) " >&6 14165else 14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14167/* end confdefs.h. */ 14168int i; 14169_ACEOF 14170if ac_fn_c_try_compile "$LINENO"; then : 14171 xorg_cv_cc_flag_unknown_warning_option=yes 14172else 14173 xorg_cv_cc_flag_unknown_warning_option=no 14174fi 14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14176fi 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14180 CFLAGS="$xorg_testset_save_CFLAGS" 14181fi 14182 14183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14186 fi 14187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14194/* end confdefs.h. */ 14195int i; 14196_ACEOF 14197if ac_fn_c_try_compile "$LINENO"; then : 14198 xorg_cv_cc_flag_unused_command_line_argument=yes 14199else 14200 xorg_cv_cc_flag_unused_command_line_argument=no 14201fi 14202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14203fi 14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14207 CFLAGS="$xorg_testset_save_CFLAGS" 14208fi 14209 14210found="no" 14211 14212 if test $found = "no" ; then 14213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14215 fi 14216 14217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14219 fi 14220 14221 CFLAGS="$CFLAGS -Werror=nonnull" 14222 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14224$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14225 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14226 if eval \${$cacheid+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228else 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231int i; 14232int 14233main () 14234{ 14235 14236 ; 14237 return 0; 14238} 14239_ACEOF 14240if ac_fn_c_try_link "$LINENO"; then : 14241 eval $cacheid=yes 14242else 14243 eval $cacheid=no 14244fi 14245rm -f core conftest.err conftest.$ac_objext \ 14246 conftest$ac_exeext conftest.$ac_ext 14247fi 14248 14249 14250 CFLAGS="$xorg_testset_save_CFLAGS" 14251 14252 eval supported=\$$cacheid 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14254$as_echo "$supported" >&6; } 14255 if test "$supported" = "yes" ; then 14256 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14257 found="yes" 14258 fi 14259 fi 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275xorg_testset_save_CFLAGS="$CFLAGS" 14276 14277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14282 $as_echo_n "(cached) " >&6 14283else 14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14285/* end confdefs.h. */ 14286int i; 14287_ACEOF 14288if ac_fn_c_try_compile "$LINENO"; then : 14289 xorg_cv_cc_flag_unknown_warning_option=yes 14290else 14291 xorg_cv_cc_flag_unknown_warning_option=no 14292fi 14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14294fi 14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14298 CFLAGS="$xorg_testset_save_CFLAGS" 14299fi 14300 14301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14304 fi 14305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14309 $as_echo_n "(cached) " >&6 14310else 14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312/* end confdefs.h. */ 14313int i; 14314_ACEOF 14315if ac_fn_c_try_compile "$LINENO"; then : 14316 xorg_cv_cc_flag_unused_command_line_argument=yes 14317else 14318 xorg_cv_cc_flag_unused_command_line_argument=no 14319fi 14320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14321fi 14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14325 CFLAGS="$xorg_testset_save_CFLAGS" 14326fi 14327 14328found="no" 14329 14330 if test $found = "no" ; then 14331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14333 fi 14334 14335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14337 fi 14338 14339 CFLAGS="$CFLAGS -Werror=init-self" 14340 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14342$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14343 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14344 if eval \${$cacheid+:} false; then : 14345 $as_echo_n "(cached) " >&6 14346else 14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349int i; 14350int 14351main () 14352{ 14353 14354 ; 14355 return 0; 14356} 14357_ACEOF 14358if ac_fn_c_try_link "$LINENO"; then : 14359 eval $cacheid=yes 14360else 14361 eval $cacheid=no 14362fi 14363rm -f core conftest.err conftest.$ac_objext \ 14364 conftest$ac_exeext conftest.$ac_ext 14365fi 14366 14367 14368 CFLAGS="$xorg_testset_save_CFLAGS" 14369 14370 eval supported=\$$cacheid 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14372$as_echo "$supported" >&6; } 14373 if test "$supported" = "yes" ; then 14374 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14375 found="yes" 14376 fi 14377 fi 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393xorg_testset_save_CFLAGS="$CFLAGS" 14394 14395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14400 $as_echo_n "(cached) " >&6 14401else 14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14403/* end confdefs.h. */ 14404int i; 14405_ACEOF 14406if ac_fn_c_try_compile "$LINENO"; then : 14407 xorg_cv_cc_flag_unknown_warning_option=yes 14408else 14409 xorg_cv_cc_flag_unknown_warning_option=no 14410fi 14411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14412fi 14413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14416 CFLAGS="$xorg_testset_save_CFLAGS" 14417fi 14418 14419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14422 fi 14423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14427 $as_echo_n "(cached) " >&6 14428else 14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14430/* end confdefs.h. */ 14431int i; 14432_ACEOF 14433if ac_fn_c_try_compile "$LINENO"; then : 14434 xorg_cv_cc_flag_unused_command_line_argument=yes 14435else 14436 xorg_cv_cc_flag_unused_command_line_argument=no 14437fi 14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14439fi 14440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14443 CFLAGS="$xorg_testset_save_CFLAGS" 14444fi 14445 14446found="no" 14447 14448 if test $found = "no" ; then 14449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14451 fi 14452 14453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14455 fi 14456 14457 CFLAGS="$CFLAGS -Werror=main" 14458 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14460$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14461 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14462 if eval \${$cacheid+:} false; then : 14463 $as_echo_n "(cached) " >&6 14464else 14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14466/* end confdefs.h. */ 14467int i; 14468int 14469main () 14470{ 14471 14472 ; 14473 return 0; 14474} 14475_ACEOF 14476if ac_fn_c_try_link "$LINENO"; then : 14477 eval $cacheid=yes 14478else 14479 eval $cacheid=no 14480fi 14481rm -f core conftest.err conftest.$ac_objext \ 14482 conftest$ac_exeext conftest.$ac_ext 14483fi 14484 14485 14486 CFLAGS="$xorg_testset_save_CFLAGS" 14487 14488 eval supported=\$$cacheid 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14490$as_echo "$supported" >&6; } 14491 if test "$supported" = "yes" ; then 14492 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14493 found="yes" 14494 fi 14495 fi 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511xorg_testset_save_CFLAGS="$CFLAGS" 14512 14513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14518 $as_echo_n "(cached) " >&6 14519else 14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14521/* end confdefs.h. */ 14522int i; 14523_ACEOF 14524if ac_fn_c_try_compile "$LINENO"; then : 14525 xorg_cv_cc_flag_unknown_warning_option=yes 14526else 14527 xorg_cv_cc_flag_unknown_warning_option=no 14528fi 14529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14530fi 14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14534 CFLAGS="$xorg_testset_save_CFLAGS" 14535fi 14536 14537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14540 fi 14541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14545 $as_echo_n "(cached) " >&6 14546else 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549int i; 14550_ACEOF 14551if ac_fn_c_try_compile "$LINENO"; then : 14552 xorg_cv_cc_flag_unused_command_line_argument=yes 14553else 14554 xorg_cv_cc_flag_unused_command_line_argument=no 14555fi 14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14557fi 14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14561 CFLAGS="$xorg_testset_save_CFLAGS" 14562fi 14563 14564found="no" 14565 14566 if test $found = "no" ; then 14567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14569 fi 14570 14571 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14573 fi 14574 14575 CFLAGS="$CFLAGS -Werror=missing-braces" 14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14578$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14579 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14580 if eval \${$cacheid+:} false; then : 14581 $as_echo_n "(cached) " >&6 14582else 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585int i; 14586int 14587main () 14588{ 14589 14590 ; 14591 return 0; 14592} 14593_ACEOF 14594if ac_fn_c_try_link "$LINENO"; then : 14595 eval $cacheid=yes 14596else 14597 eval $cacheid=no 14598fi 14599rm -f core conftest.err conftest.$ac_objext \ 14600 conftest$ac_exeext conftest.$ac_ext 14601fi 14602 14603 14604 CFLAGS="$xorg_testset_save_CFLAGS" 14605 14606 eval supported=\$$cacheid 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14608$as_echo "$supported" >&6; } 14609 if test "$supported" = "yes" ; then 14610 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14611 found="yes" 14612 fi 14613 fi 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629xorg_testset_save_CFLAGS="$CFLAGS" 14630 14631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14636 $as_echo_n "(cached) " >&6 14637else 14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14639/* end confdefs.h. */ 14640int i; 14641_ACEOF 14642if ac_fn_c_try_compile "$LINENO"; then : 14643 xorg_cv_cc_flag_unknown_warning_option=yes 14644else 14645 xorg_cv_cc_flag_unknown_warning_option=no 14646fi 14647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14648fi 14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14652 CFLAGS="$xorg_testset_save_CFLAGS" 14653fi 14654 14655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14658 fi 14659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14663 $as_echo_n "(cached) " >&6 14664else 14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14666/* end confdefs.h. */ 14667int i; 14668_ACEOF 14669if ac_fn_c_try_compile "$LINENO"; then : 14670 xorg_cv_cc_flag_unused_command_line_argument=yes 14671else 14672 xorg_cv_cc_flag_unused_command_line_argument=no 14673fi 14674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14675fi 14676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14679 CFLAGS="$xorg_testset_save_CFLAGS" 14680fi 14681 14682found="no" 14683 14684 if test $found = "no" ; then 14685 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14687 fi 14688 14689 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14691 fi 14692 14693 CFLAGS="$CFLAGS -Werror=sequence-point" 14694 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14696$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14697 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14698 if eval \${$cacheid+:} false; then : 14699 $as_echo_n "(cached) " >&6 14700else 14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14702/* end confdefs.h. */ 14703int i; 14704int 14705main () 14706{ 14707 14708 ; 14709 return 0; 14710} 14711_ACEOF 14712if ac_fn_c_try_link "$LINENO"; then : 14713 eval $cacheid=yes 14714else 14715 eval $cacheid=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext \ 14718 conftest$ac_exeext conftest.$ac_ext 14719fi 14720 14721 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723 14724 eval supported=\$$cacheid 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14726$as_echo "$supported" >&6; } 14727 if test "$supported" = "yes" ; then 14728 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14729 found="yes" 14730 fi 14731 fi 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747xorg_testset_save_CFLAGS="$CFLAGS" 14748 14749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14754 $as_echo_n "(cached) " >&6 14755else 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758int i; 14759_ACEOF 14760if ac_fn_c_try_compile "$LINENO"; then : 14761 xorg_cv_cc_flag_unknown_warning_option=yes 14762else 14763 xorg_cv_cc_flag_unknown_warning_option=no 14764fi 14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14766fi 14767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14770 CFLAGS="$xorg_testset_save_CFLAGS" 14771fi 14772 14773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14776 fi 14777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14781 $as_echo_n "(cached) " >&6 14782else 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785int i; 14786_ACEOF 14787if ac_fn_c_try_compile "$LINENO"; then : 14788 xorg_cv_cc_flag_unused_command_line_argument=yes 14789else 14790 xorg_cv_cc_flag_unused_command_line_argument=no 14791fi 14792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14793fi 14794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14797 CFLAGS="$xorg_testset_save_CFLAGS" 14798fi 14799 14800found="no" 14801 14802 if test $found = "no" ; then 14803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14805 fi 14806 14807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14809 fi 14810 14811 CFLAGS="$CFLAGS -Werror=return-type" 14812 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14814$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14815 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14816 if eval \${$cacheid+:} false; then : 14817 $as_echo_n "(cached) " >&6 14818else 14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14820/* end confdefs.h. */ 14821int i; 14822int 14823main () 14824{ 14825 14826 ; 14827 return 0; 14828} 14829_ACEOF 14830if ac_fn_c_try_link "$LINENO"; then : 14831 eval $cacheid=yes 14832else 14833 eval $cacheid=no 14834fi 14835rm -f core conftest.err conftest.$ac_objext \ 14836 conftest$ac_exeext conftest.$ac_ext 14837fi 14838 14839 14840 CFLAGS="$xorg_testset_save_CFLAGS" 14841 14842 eval supported=\$$cacheid 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14844$as_echo "$supported" >&6; } 14845 if test "$supported" = "yes" ; then 14846 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14847 found="yes" 14848 fi 14849 fi 14850 14851 if test $found = "no" ; then 14852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14854 fi 14855 14856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14858 fi 14859 14860 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14861 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14863$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14864 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14865 if eval \${$cacheid+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867else 14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14869/* end confdefs.h. */ 14870int i; 14871int 14872main () 14873{ 14874 14875 ; 14876 return 0; 14877} 14878_ACEOF 14879if ac_fn_c_try_link "$LINENO"; then : 14880 eval $cacheid=yes 14881else 14882 eval $cacheid=no 14883fi 14884rm -f core conftest.err conftest.$ac_objext \ 14885 conftest$ac_exeext conftest.$ac_ext 14886fi 14887 14888 14889 CFLAGS="$xorg_testset_save_CFLAGS" 14890 14891 eval supported=\$$cacheid 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14893$as_echo "$supported" >&6; } 14894 if test "$supported" = "yes" ; then 14895 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14896 found="yes" 14897 fi 14898 fi 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914xorg_testset_save_CFLAGS="$CFLAGS" 14915 14916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14921 $as_echo_n "(cached) " >&6 14922else 14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14924/* end confdefs.h. */ 14925int i; 14926_ACEOF 14927if ac_fn_c_try_compile "$LINENO"; then : 14928 xorg_cv_cc_flag_unknown_warning_option=yes 14929else 14930 xorg_cv_cc_flag_unknown_warning_option=no 14931fi 14932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14933fi 14934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14937 CFLAGS="$xorg_testset_save_CFLAGS" 14938fi 14939 14940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14943 fi 14944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14948 $as_echo_n "(cached) " >&6 14949else 14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14951/* end confdefs.h. */ 14952int i; 14953_ACEOF 14954if ac_fn_c_try_compile "$LINENO"; then : 14955 xorg_cv_cc_flag_unused_command_line_argument=yes 14956else 14957 xorg_cv_cc_flag_unused_command_line_argument=no 14958fi 14959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14960fi 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14964 CFLAGS="$xorg_testset_save_CFLAGS" 14965fi 14966 14967found="no" 14968 14969 if test $found = "no" ; then 14970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14972 fi 14973 14974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14976 fi 14977 14978 CFLAGS="$CFLAGS -Werror=trigraphs" 14979 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14981$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14982 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14983 if eval \${$cacheid+:} false; then : 14984 $as_echo_n "(cached) " >&6 14985else 14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14987/* end confdefs.h. */ 14988int i; 14989int 14990main () 14991{ 14992 14993 ; 14994 return 0; 14995} 14996_ACEOF 14997if ac_fn_c_try_link "$LINENO"; then : 14998 eval $cacheid=yes 14999else 15000 eval $cacheid=no 15001fi 15002rm -f core conftest.err conftest.$ac_objext \ 15003 conftest$ac_exeext conftest.$ac_ext 15004fi 15005 15006 15007 CFLAGS="$xorg_testset_save_CFLAGS" 15008 15009 eval supported=\$$cacheid 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15011$as_echo "$supported" >&6; } 15012 if test "$supported" = "yes" ; then 15013 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15014 found="yes" 15015 fi 15016 fi 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032xorg_testset_save_CFLAGS="$CFLAGS" 15033 15034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15039 $as_echo_n "(cached) " >&6 15040else 15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15042/* end confdefs.h. */ 15043int i; 15044_ACEOF 15045if ac_fn_c_try_compile "$LINENO"; then : 15046 xorg_cv_cc_flag_unknown_warning_option=yes 15047else 15048 xorg_cv_cc_flag_unknown_warning_option=no 15049fi 15050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15051fi 15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15055 CFLAGS="$xorg_testset_save_CFLAGS" 15056fi 15057 15058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15061 fi 15062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15066 $as_echo_n "(cached) " >&6 15067else 15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15069/* end confdefs.h. */ 15070int i; 15071_ACEOF 15072if ac_fn_c_try_compile "$LINENO"; then : 15073 xorg_cv_cc_flag_unused_command_line_argument=yes 15074else 15075 xorg_cv_cc_flag_unused_command_line_argument=no 15076fi 15077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15078fi 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15082 CFLAGS="$xorg_testset_save_CFLAGS" 15083fi 15084 15085found="no" 15086 15087 if test $found = "no" ; then 15088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15090 fi 15091 15092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15094 fi 15095 15096 CFLAGS="$CFLAGS -Werror=array-bounds" 15097 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15099$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15100 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15101 if eval \${$cacheid+:} false; then : 15102 $as_echo_n "(cached) " >&6 15103else 15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15105/* end confdefs.h. */ 15106int i; 15107int 15108main () 15109{ 15110 15111 ; 15112 return 0; 15113} 15114_ACEOF 15115if ac_fn_c_try_link "$LINENO"; then : 15116 eval $cacheid=yes 15117else 15118 eval $cacheid=no 15119fi 15120rm -f core conftest.err conftest.$ac_objext \ 15121 conftest$ac_exeext conftest.$ac_ext 15122fi 15123 15124 15125 CFLAGS="$xorg_testset_save_CFLAGS" 15126 15127 eval supported=\$$cacheid 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15129$as_echo "$supported" >&6; } 15130 if test "$supported" = "yes" ; then 15131 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15132 found="yes" 15133 fi 15134 fi 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150xorg_testset_save_CFLAGS="$CFLAGS" 15151 15152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15157 $as_echo_n "(cached) " >&6 15158else 15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15160/* end confdefs.h. */ 15161int i; 15162_ACEOF 15163if ac_fn_c_try_compile "$LINENO"; then : 15164 xorg_cv_cc_flag_unknown_warning_option=yes 15165else 15166 xorg_cv_cc_flag_unknown_warning_option=no 15167fi 15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15169fi 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15173 CFLAGS="$xorg_testset_save_CFLAGS" 15174fi 15175 15176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15179 fi 15180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15187/* end confdefs.h. */ 15188int i; 15189_ACEOF 15190if ac_fn_c_try_compile "$LINENO"; then : 15191 xorg_cv_cc_flag_unused_command_line_argument=yes 15192else 15193 xorg_cv_cc_flag_unused_command_line_argument=no 15194fi 15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15196fi 15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15200 CFLAGS="$xorg_testset_save_CFLAGS" 15201fi 15202 15203found="no" 15204 15205 if test $found = "no" ; then 15206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15208 fi 15209 15210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15212 fi 15213 15214 CFLAGS="$CFLAGS -Werror=write-strings" 15215 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15217$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15218 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15219 if eval \${$cacheid+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223/* end confdefs.h. */ 15224int i; 15225int 15226main () 15227{ 15228 15229 ; 15230 return 0; 15231} 15232_ACEOF 15233if ac_fn_c_try_link "$LINENO"; then : 15234 eval $cacheid=yes 15235else 15236 eval $cacheid=no 15237fi 15238rm -f core conftest.err conftest.$ac_objext \ 15239 conftest$ac_exeext conftest.$ac_ext 15240fi 15241 15242 15243 CFLAGS="$xorg_testset_save_CFLAGS" 15244 15245 eval supported=\$$cacheid 15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15247$as_echo "$supported" >&6; } 15248 if test "$supported" = "yes" ; then 15249 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15250 found="yes" 15251 fi 15252 fi 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268xorg_testset_save_CFLAGS="$CFLAGS" 15269 15270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15275 $as_echo_n "(cached) " >&6 15276else 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279int i; 15280_ACEOF 15281if ac_fn_c_try_compile "$LINENO"; then : 15282 xorg_cv_cc_flag_unknown_warning_option=yes 15283else 15284 xorg_cv_cc_flag_unknown_warning_option=no 15285fi 15286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15287fi 15288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15291 CFLAGS="$xorg_testset_save_CFLAGS" 15292fi 15293 15294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15297 fi 15298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15302 $as_echo_n "(cached) " >&6 15303else 15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15305/* end confdefs.h. */ 15306int i; 15307_ACEOF 15308if ac_fn_c_try_compile "$LINENO"; then : 15309 xorg_cv_cc_flag_unused_command_line_argument=yes 15310else 15311 xorg_cv_cc_flag_unused_command_line_argument=no 15312fi 15313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15314fi 15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15316$as_echo "$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_unknown_warning_option" = "xyes" ; then 15325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15326 fi 15327 15328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15330 fi 15331 15332 CFLAGS="$CFLAGS -Werror=address" 15333 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15335$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15336 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15337 if eval \${$cacheid+:} false; then : 15338 $as_echo_n "(cached) " >&6 15339else 15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15341/* end confdefs.h. */ 15342int i; 15343int 15344main () 15345{ 15346 15347 ; 15348 return 0; 15349} 15350_ACEOF 15351if ac_fn_c_try_link "$LINENO"; then : 15352 eval $cacheid=yes 15353else 15354 eval $cacheid=no 15355fi 15356rm -f core conftest.err conftest.$ac_objext \ 15357 conftest$ac_exeext conftest.$ac_ext 15358fi 15359 15360 15361 CFLAGS="$xorg_testset_save_CFLAGS" 15362 15363 eval supported=\$$cacheid 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15365$as_echo "$supported" >&6; } 15366 if test "$supported" = "yes" ; then 15367 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15368 found="yes" 15369 fi 15370 fi 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386xorg_testset_save_CFLAGS="$CFLAGS" 15387 15388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15393 $as_echo_n "(cached) " >&6 15394else 15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15396/* end confdefs.h. */ 15397int i; 15398_ACEOF 15399if ac_fn_c_try_compile "$LINENO"; then : 15400 xorg_cv_cc_flag_unknown_warning_option=yes 15401else 15402 xorg_cv_cc_flag_unknown_warning_option=no 15403fi 15404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15405fi 15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15409 CFLAGS="$xorg_testset_save_CFLAGS" 15410fi 15411 15412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15415 fi 15416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15420 $as_echo_n "(cached) " >&6 15421else 15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15423/* end confdefs.h. */ 15424int i; 15425_ACEOF 15426if ac_fn_c_try_compile "$LINENO"; then : 15427 xorg_cv_cc_flag_unused_command_line_argument=yes 15428else 15429 xorg_cv_cc_flag_unused_command_line_argument=no 15430fi 15431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15432fi 15433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15436 CFLAGS="$xorg_testset_save_CFLAGS" 15437fi 15438 15439found="no" 15440 15441 if test $found = "no" ; then 15442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15444 fi 15445 15446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15448 fi 15449 15450 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15451 15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15453$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15454 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15455 if eval \${$cacheid+:} false; then : 15456 $as_echo_n "(cached) " >&6 15457else 15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459/* end confdefs.h. */ 15460int i; 15461int 15462main () 15463{ 15464 15465 ; 15466 return 0; 15467} 15468_ACEOF 15469if ac_fn_c_try_link "$LINENO"; then : 15470 eval $cacheid=yes 15471else 15472 eval $cacheid=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext \ 15475 conftest$ac_exeext conftest.$ac_ext 15476fi 15477 15478 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480 15481 eval supported=\$$cacheid 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15483$as_echo "$supported" >&6; } 15484 if test "$supported" = "yes" ; then 15485 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15486 found="yes" 15487 fi 15488 fi 15489 15490 if test $found = "no" ; then 15491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15493 fi 15494 15495 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15497 fi 15498 15499 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15500 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15502$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15503 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15504 if eval \${$cacheid+:} false; then : 15505 $as_echo_n "(cached) " >&6 15506else 15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508/* end confdefs.h. */ 15509int i; 15510int 15511main () 15512{ 15513 15514 ; 15515 return 0; 15516} 15517_ACEOF 15518if ac_fn_c_try_link "$LINENO"; then : 15519 eval $cacheid=yes 15520else 15521 eval $cacheid=no 15522fi 15523rm -f core conftest.err conftest.$ac_objext \ 15524 conftest$ac_exeext conftest.$ac_ext 15525fi 15526 15527 15528 CFLAGS="$xorg_testset_save_CFLAGS" 15529 15530 eval supported=\$$cacheid 15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15532$as_echo "$supported" >&6; } 15533 if test "$supported" = "yes" ; then 15534 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15535 found="yes" 15536 fi 15537 fi 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553xorg_testset_save_CFLAGS="$CFLAGS" 15554 15555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15560 $as_echo_n "(cached) " >&6 15561else 15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15563/* end confdefs.h. */ 15564int i; 15565_ACEOF 15566if ac_fn_c_try_compile "$LINENO"; then : 15567 xorg_cv_cc_flag_unknown_warning_option=yes 15568else 15569 xorg_cv_cc_flag_unknown_warning_option=no 15570fi 15571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15572fi 15573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15576 CFLAGS="$xorg_testset_save_CFLAGS" 15577fi 15578 15579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15582 fi 15583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15587 $as_echo_n "(cached) " >&6 15588else 15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15590/* end confdefs.h. */ 15591int i; 15592_ACEOF 15593if ac_fn_c_try_compile "$LINENO"; then : 15594 xorg_cv_cc_flag_unused_command_line_argument=yes 15595else 15596 xorg_cv_cc_flag_unused_command_line_argument=no 15597fi 15598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15599fi 15600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15603 CFLAGS="$xorg_testset_save_CFLAGS" 15604fi 15605 15606found="no" 15607 15608 if test $found = "no" ; then 15609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15611 fi 15612 15613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15615 fi 15616 15617 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15618 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15620$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15621 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15622 if eval \${$cacheid+:} false; then : 15623 $as_echo_n "(cached) " >&6 15624else 15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15626/* end confdefs.h. */ 15627int i; 15628int 15629main () 15630{ 15631 15632 ; 15633 return 0; 15634} 15635_ACEOF 15636if ac_fn_c_try_link "$LINENO"; then : 15637 eval $cacheid=yes 15638else 15639 eval $cacheid=no 15640fi 15641rm -f core conftest.err conftest.$ac_objext \ 15642 conftest$ac_exeext conftest.$ac_ext 15643fi 15644 15645 15646 CFLAGS="$xorg_testset_save_CFLAGS" 15647 15648 eval supported=\$$cacheid 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15650$as_echo "$supported" >&6; } 15651 if test "$supported" = "yes" ; then 15652 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15653 found="yes" 15654 fi 15655 fi 15656 15657 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15658else 15659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 15660$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674xorg_testset_save_CFLAGS="$CFLAGS" 15675 15676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15681 $as_echo_n "(cached) " >&6 15682else 15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15684/* end confdefs.h. */ 15685int i; 15686_ACEOF 15687if ac_fn_c_try_compile "$LINENO"; then : 15688 xorg_cv_cc_flag_unknown_warning_option=yes 15689else 15690 xorg_cv_cc_flag_unknown_warning_option=no 15691fi 15692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15693fi 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15697 CFLAGS="$xorg_testset_save_CFLAGS" 15698fi 15699 15700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15703 fi 15704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15708 $as_echo_n "(cached) " >&6 15709else 15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15711/* end confdefs.h. */ 15712int i; 15713_ACEOF 15714if ac_fn_c_try_compile "$LINENO"; then : 15715 xorg_cv_cc_flag_unused_command_line_argument=yes 15716else 15717 xorg_cv_cc_flag_unused_command_line_argument=no 15718fi 15719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15720fi 15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15724 CFLAGS="$xorg_testset_save_CFLAGS" 15725fi 15726 15727found="no" 15728 15729 if test $found = "no" ; then 15730 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15732 fi 15733 15734 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15736 fi 15737 15738 CFLAGS="$CFLAGS -Wimplicit" 15739 15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15741$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15742 cacheid=xorg_cv_cc_flag__Wimplicit 15743 if eval \${$cacheid+:} false; then : 15744 $as_echo_n "(cached) " >&6 15745else 15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15747/* end confdefs.h. */ 15748int i; 15749int 15750main () 15751{ 15752 15753 ; 15754 return 0; 15755} 15756_ACEOF 15757if ac_fn_c_try_link "$LINENO"; then : 15758 eval $cacheid=yes 15759else 15760 eval $cacheid=no 15761fi 15762rm -f core conftest.err conftest.$ac_objext \ 15763 conftest$ac_exeext conftest.$ac_ext 15764fi 15765 15766 15767 CFLAGS="$xorg_testset_save_CFLAGS" 15768 15769 eval supported=\$$cacheid 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15771$as_echo "$supported" >&6; } 15772 if test "$supported" = "yes" ; then 15773 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15774 found="yes" 15775 fi 15776 fi 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792xorg_testset_save_CFLAGS="$CFLAGS" 15793 15794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15799 $as_echo_n "(cached) " >&6 15800else 15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15802/* end confdefs.h. */ 15803int i; 15804_ACEOF 15805if ac_fn_c_try_compile "$LINENO"; then : 15806 xorg_cv_cc_flag_unknown_warning_option=yes 15807else 15808 xorg_cv_cc_flag_unknown_warning_option=no 15809fi 15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15811fi 15812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15815 CFLAGS="$xorg_testset_save_CFLAGS" 15816fi 15817 15818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15821 fi 15822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15826 $as_echo_n "(cached) " >&6 15827else 15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15829/* end confdefs.h. */ 15830int i; 15831_ACEOF 15832if ac_fn_c_try_compile "$LINENO"; then : 15833 xorg_cv_cc_flag_unused_command_line_argument=yes 15834else 15835 xorg_cv_cc_flag_unused_command_line_argument=no 15836fi 15837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15838fi 15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15842 CFLAGS="$xorg_testset_save_CFLAGS" 15843fi 15844 15845found="no" 15846 15847 if test $found = "no" ; then 15848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15850 fi 15851 15852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15854 fi 15855 15856 CFLAGS="$CFLAGS -Wnonnull" 15857 15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15859$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15860 cacheid=xorg_cv_cc_flag__Wnonnull 15861 if eval \${$cacheid+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15865/* end confdefs.h. */ 15866int i; 15867int 15868main () 15869{ 15870 15871 ; 15872 return 0; 15873} 15874_ACEOF 15875if ac_fn_c_try_link "$LINENO"; then : 15876 eval $cacheid=yes 15877else 15878 eval $cacheid=no 15879fi 15880rm -f core conftest.err conftest.$ac_objext \ 15881 conftest$ac_exeext conftest.$ac_ext 15882fi 15883 15884 15885 CFLAGS="$xorg_testset_save_CFLAGS" 15886 15887 eval supported=\$$cacheid 15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15889$as_echo "$supported" >&6; } 15890 if test "$supported" = "yes" ; then 15891 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15917 $as_echo_n "(cached) " >&6 15918else 15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15920/* end confdefs.h. */ 15921int i; 15922_ACEOF 15923if ac_fn_c_try_compile "$LINENO"; then : 15924 xorg_cv_cc_flag_unknown_warning_option=yes 15925else 15926 xorg_cv_cc_flag_unknown_warning_option=no 15927fi 15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15929fi 15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15933 CFLAGS="$xorg_testset_save_CFLAGS" 15934fi 15935 15936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15939 fi 15940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15944 $as_echo_n "(cached) " >&6 15945else 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947/* end confdefs.h. */ 15948int i; 15949_ACEOF 15950if ac_fn_c_try_compile "$LINENO"; then : 15951 xorg_cv_cc_flag_unused_command_line_argument=yes 15952else 15953 xorg_cv_cc_flag_unused_command_line_argument=no 15954fi 15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15956fi 15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15960 CFLAGS="$xorg_testset_save_CFLAGS" 15961fi 15962 15963found="no" 15964 15965 if test $found = "no" ; then 15966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15968 fi 15969 15970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15972 fi 15973 15974 CFLAGS="$CFLAGS -Winit-self" 15975 15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15977$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15978 cacheid=xorg_cv_cc_flag__Winit_self 15979 if eval \${$cacheid+:} false; then : 15980 $as_echo_n "(cached) " >&6 15981else 15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983/* end confdefs.h. */ 15984int i; 15985int 15986main () 15987{ 15988 15989 ; 15990 return 0; 15991} 15992_ACEOF 15993if ac_fn_c_try_link "$LINENO"; then : 15994 eval $cacheid=yes 15995else 15996 eval $cacheid=no 15997fi 15998rm -f core conftest.err conftest.$ac_objext \ 15999 conftest$ac_exeext conftest.$ac_ext 16000fi 16001 16002 16003 CFLAGS="$xorg_testset_save_CFLAGS" 16004 16005 eval supported=\$$cacheid 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16007$as_echo "$supported" >&6; } 16008 if test "$supported" = "yes" ; then 16009 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16010 found="yes" 16011 fi 16012 fi 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028xorg_testset_save_CFLAGS="$CFLAGS" 16029 16030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16035 $as_echo_n "(cached) " >&6 16036else 16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16038/* end confdefs.h. */ 16039int i; 16040_ACEOF 16041if ac_fn_c_try_compile "$LINENO"; then : 16042 xorg_cv_cc_flag_unknown_warning_option=yes 16043else 16044 xorg_cv_cc_flag_unknown_warning_option=no 16045fi 16046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16047fi 16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16051 CFLAGS="$xorg_testset_save_CFLAGS" 16052fi 16053 16054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16057 fi 16058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16062 $as_echo_n "(cached) " >&6 16063else 16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16065/* end confdefs.h. */ 16066int i; 16067_ACEOF 16068if ac_fn_c_try_compile "$LINENO"; then : 16069 xorg_cv_cc_flag_unused_command_line_argument=yes 16070else 16071 xorg_cv_cc_flag_unused_command_line_argument=no 16072fi 16073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16074fi 16075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16078 CFLAGS="$xorg_testset_save_CFLAGS" 16079fi 16080 16081found="no" 16082 16083 if test $found = "no" ; then 16084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16086 fi 16087 16088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16090 fi 16091 16092 CFLAGS="$CFLAGS -Wmain" 16093 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16095$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16096 cacheid=xorg_cv_cc_flag__Wmain 16097 if eval \${$cacheid+:} false; then : 16098 $as_echo_n "(cached) " >&6 16099else 16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101/* end confdefs.h. */ 16102int i; 16103int 16104main () 16105{ 16106 16107 ; 16108 return 0; 16109} 16110_ACEOF 16111if ac_fn_c_try_link "$LINENO"; then : 16112 eval $cacheid=yes 16113else 16114 eval $cacheid=no 16115fi 16116rm -f core conftest.err conftest.$ac_objext \ 16117 conftest$ac_exeext conftest.$ac_ext 16118fi 16119 16120 16121 CFLAGS="$xorg_testset_save_CFLAGS" 16122 16123 eval supported=\$$cacheid 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16125$as_echo "$supported" >&6; } 16126 if test "$supported" = "yes" ; then 16127 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16128 found="yes" 16129 fi 16130 fi 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146xorg_testset_save_CFLAGS="$CFLAGS" 16147 16148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16153 $as_echo_n "(cached) " >&6 16154else 16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16156/* end confdefs.h. */ 16157int i; 16158_ACEOF 16159if ac_fn_c_try_compile "$LINENO"; then : 16160 xorg_cv_cc_flag_unknown_warning_option=yes 16161else 16162 xorg_cv_cc_flag_unknown_warning_option=no 16163fi 16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16165fi 16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16169 CFLAGS="$xorg_testset_save_CFLAGS" 16170fi 16171 16172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16175 fi 16176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16180 $as_echo_n "(cached) " >&6 16181else 16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16183/* end confdefs.h. */ 16184int i; 16185_ACEOF 16186if ac_fn_c_try_compile "$LINENO"; then : 16187 xorg_cv_cc_flag_unused_command_line_argument=yes 16188else 16189 xorg_cv_cc_flag_unused_command_line_argument=no 16190fi 16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16192fi 16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16196 CFLAGS="$xorg_testset_save_CFLAGS" 16197fi 16198 16199found="no" 16200 16201 if test $found = "no" ; then 16202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16204 fi 16205 16206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16208 fi 16209 16210 CFLAGS="$CFLAGS -Wmissing-braces" 16211 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16213$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16214 cacheid=xorg_cv_cc_flag__Wmissing_braces 16215 if eval \${$cacheid+:} false; then : 16216 $as_echo_n "(cached) " >&6 16217else 16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16219/* end confdefs.h. */ 16220int i; 16221int 16222main () 16223{ 16224 16225 ; 16226 return 0; 16227} 16228_ACEOF 16229if ac_fn_c_try_link "$LINENO"; then : 16230 eval $cacheid=yes 16231else 16232 eval $cacheid=no 16233fi 16234rm -f core conftest.err conftest.$ac_objext \ 16235 conftest$ac_exeext conftest.$ac_ext 16236fi 16237 16238 16239 CFLAGS="$xorg_testset_save_CFLAGS" 16240 16241 eval supported=\$$cacheid 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16243$as_echo "$supported" >&6; } 16244 if test "$supported" = "yes" ; then 16245 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16246 found="yes" 16247 fi 16248 fi 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264xorg_testset_save_CFLAGS="$CFLAGS" 16265 16266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16271 $as_echo_n "(cached) " >&6 16272else 16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16274/* end confdefs.h. */ 16275int i; 16276_ACEOF 16277if ac_fn_c_try_compile "$LINENO"; then : 16278 xorg_cv_cc_flag_unknown_warning_option=yes 16279else 16280 xorg_cv_cc_flag_unknown_warning_option=no 16281fi 16282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16283fi 16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16287 CFLAGS="$xorg_testset_save_CFLAGS" 16288fi 16289 16290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16293 fi 16294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16298 $as_echo_n "(cached) " >&6 16299else 16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16301/* end confdefs.h. */ 16302int i; 16303_ACEOF 16304if ac_fn_c_try_compile "$LINENO"; then : 16305 xorg_cv_cc_flag_unused_command_line_argument=yes 16306else 16307 xorg_cv_cc_flag_unused_command_line_argument=no 16308fi 16309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16310fi 16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16314 CFLAGS="$xorg_testset_save_CFLAGS" 16315fi 16316 16317found="no" 16318 16319 if test $found = "no" ; then 16320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16322 fi 16323 16324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16326 fi 16327 16328 CFLAGS="$CFLAGS -Wsequence-point" 16329 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16331$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16332 cacheid=xorg_cv_cc_flag__Wsequence_point 16333 if eval \${$cacheid+:} false; then : 16334 $as_echo_n "(cached) " >&6 16335else 16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16337/* end confdefs.h. */ 16338int i; 16339int 16340main () 16341{ 16342 16343 ; 16344 return 0; 16345} 16346_ACEOF 16347if ac_fn_c_try_link "$LINENO"; then : 16348 eval $cacheid=yes 16349else 16350 eval $cacheid=no 16351fi 16352rm -f core conftest.err conftest.$ac_objext \ 16353 conftest$ac_exeext conftest.$ac_ext 16354fi 16355 16356 16357 CFLAGS="$xorg_testset_save_CFLAGS" 16358 16359 eval supported=\$$cacheid 16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16361$as_echo "$supported" >&6; } 16362 if test "$supported" = "yes" ; then 16363 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16364 found="yes" 16365 fi 16366 fi 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382xorg_testset_save_CFLAGS="$CFLAGS" 16383 16384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16389 $as_echo_n "(cached) " >&6 16390else 16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16392/* end confdefs.h. */ 16393int i; 16394_ACEOF 16395if ac_fn_c_try_compile "$LINENO"; then : 16396 xorg_cv_cc_flag_unknown_warning_option=yes 16397else 16398 xorg_cv_cc_flag_unknown_warning_option=no 16399fi 16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16401fi 16402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16405 CFLAGS="$xorg_testset_save_CFLAGS" 16406fi 16407 16408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16411 fi 16412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16416 $as_echo_n "(cached) " >&6 16417else 16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16419/* end confdefs.h. */ 16420int i; 16421_ACEOF 16422if ac_fn_c_try_compile "$LINENO"; then : 16423 xorg_cv_cc_flag_unused_command_line_argument=yes 16424else 16425 xorg_cv_cc_flag_unused_command_line_argument=no 16426fi 16427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16428fi 16429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16432 CFLAGS="$xorg_testset_save_CFLAGS" 16433fi 16434 16435found="no" 16436 16437 if test $found = "no" ; then 16438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16440 fi 16441 16442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16444 fi 16445 16446 CFLAGS="$CFLAGS -Wreturn-type" 16447 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16449$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16450 cacheid=xorg_cv_cc_flag__Wreturn_type 16451 if eval \${$cacheid+:} false; then : 16452 $as_echo_n "(cached) " >&6 16453else 16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16455/* end confdefs.h. */ 16456int i; 16457int 16458main () 16459{ 16460 16461 ; 16462 return 0; 16463} 16464_ACEOF 16465if ac_fn_c_try_link "$LINENO"; then : 16466 eval $cacheid=yes 16467else 16468 eval $cacheid=no 16469fi 16470rm -f core conftest.err conftest.$ac_objext \ 16471 conftest$ac_exeext conftest.$ac_ext 16472fi 16473 16474 16475 CFLAGS="$xorg_testset_save_CFLAGS" 16476 16477 eval supported=\$$cacheid 16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16479$as_echo "$supported" >&6; } 16480 if test "$supported" = "yes" ; then 16481 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16482 found="yes" 16483 fi 16484 fi 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500xorg_testset_save_CFLAGS="$CFLAGS" 16501 16502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16507 $as_echo_n "(cached) " >&6 16508else 16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16510/* end confdefs.h. */ 16511int i; 16512_ACEOF 16513if ac_fn_c_try_compile "$LINENO"; then : 16514 xorg_cv_cc_flag_unknown_warning_option=yes 16515else 16516 xorg_cv_cc_flag_unknown_warning_option=no 16517fi 16518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16519fi 16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16523 CFLAGS="$xorg_testset_save_CFLAGS" 16524fi 16525 16526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16529 fi 16530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16534 $as_echo_n "(cached) " >&6 16535else 16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16537/* end confdefs.h. */ 16538int i; 16539_ACEOF 16540if ac_fn_c_try_compile "$LINENO"; then : 16541 xorg_cv_cc_flag_unused_command_line_argument=yes 16542else 16543 xorg_cv_cc_flag_unused_command_line_argument=no 16544fi 16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16546fi 16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16550 CFLAGS="$xorg_testset_save_CFLAGS" 16551fi 16552 16553found="no" 16554 16555 if test $found = "no" ; then 16556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16558 fi 16559 16560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16562 fi 16563 16564 CFLAGS="$CFLAGS -Wtrigraphs" 16565 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16567$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16568 cacheid=xorg_cv_cc_flag__Wtrigraphs 16569 if eval \${$cacheid+:} false; then : 16570 $as_echo_n "(cached) " >&6 16571else 16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16573/* end confdefs.h. */ 16574int i; 16575int 16576main () 16577{ 16578 16579 ; 16580 return 0; 16581} 16582_ACEOF 16583if ac_fn_c_try_link "$LINENO"; then : 16584 eval $cacheid=yes 16585else 16586 eval $cacheid=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext \ 16589 conftest$ac_exeext conftest.$ac_ext 16590fi 16591 16592 16593 CFLAGS="$xorg_testset_save_CFLAGS" 16594 16595 eval supported=\$$cacheid 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16597$as_echo "$supported" >&6; } 16598 if test "$supported" = "yes" ; then 16599 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16600 found="yes" 16601 fi 16602 fi 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618xorg_testset_save_CFLAGS="$CFLAGS" 16619 16620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16625 $as_echo_n "(cached) " >&6 16626else 16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16628/* end confdefs.h. */ 16629int i; 16630_ACEOF 16631if ac_fn_c_try_compile "$LINENO"; then : 16632 xorg_cv_cc_flag_unknown_warning_option=yes 16633else 16634 xorg_cv_cc_flag_unknown_warning_option=no 16635fi 16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16637fi 16638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16641 CFLAGS="$xorg_testset_save_CFLAGS" 16642fi 16643 16644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16647 fi 16648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16652 $as_echo_n "(cached) " >&6 16653else 16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16655/* end confdefs.h. */ 16656int i; 16657_ACEOF 16658if ac_fn_c_try_compile "$LINENO"; then : 16659 xorg_cv_cc_flag_unused_command_line_argument=yes 16660else 16661 xorg_cv_cc_flag_unused_command_line_argument=no 16662fi 16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16664fi 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16668 CFLAGS="$xorg_testset_save_CFLAGS" 16669fi 16670 16671found="no" 16672 16673 if test $found = "no" ; then 16674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16676 fi 16677 16678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16680 fi 16681 16682 CFLAGS="$CFLAGS -Warray-bounds" 16683 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16685$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16686 cacheid=xorg_cv_cc_flag__Warray_bounds 16687 if eval \${$cacheid+:} false; then : 16688 $as_echo_n "(cached) " >&6 16689else 16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692int i; 16693int 16694main () 16695{ 16696 16697 ; 16698 return 0; 16699} 16700_ACEOF 16701if ac_fn_c_try_link "$LINENO"; then : 16702 eval $cacheid=yes 16703else 16704 eval $cacheid=no 16705fi 16706rm -f core conftest.err conftest.$ac_objext \ 16707 conftest$ac_exeext conftest.$ac_ext 16708fi 16709 16710 16711 CFLAGS="$xorg_testset_save_CFLAGS" 16712 16713 eval supported=\$$cacheid 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16715$as_echo "$supported" >&6; } 16716 if test "$supported" = "yes" ; then 16717 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16718 found="yes" 16719 fi 16720 fi 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736xorg_testset_save_CFLAGS="$CFLAGS" 16737 16738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16743 $as_echo_n "(cached) " >&6 16744else 16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746/* end confdefs.h. */ 16747int i; 16748_ACEOF 16749if ac_fn_c_try_compile "$LINENO"; then : 16750 xorg_cv_cc_flag_unknown_warning_option=yes 16751else 16752 xorg_cv_cc_flag_unknown_warning_option=no 16753fi 16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16755fi 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16759 CFLAGS="$xorg_testset_save_CFLAGS" 16760fi 16761 16762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16765 fi 16766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16770 $as_echo_n "(cached) " >&6 16771else 16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16773/* end confdefs.h. */ 16774int i; 16775_ACEOF 16776if ac_fn_c_try_compile "$LINENO"; then : 16777 xorg_cv_cc_flag_unused_command_line_argument=yes 16778else 16779 xorg_cv_cc_flag_unused_command_line_argument=no 16780fi 16781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16782fi 16783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16786 CFLAGS="$xorg_testset_save_CFLAGS" 16787fi 16788 16789found="no" 16790 16791 if test $found = "no" ; then 16792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16794 fi 16795 16796 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16798 fi 16799 16800 CFLAGS="$CFLAGS -Wwrite-strings" 16801 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16803$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16804 cacheid=xorg_cv_cc_flag__Wwrite_strings 16805 if eval \${$cacheid+:} false; then : 16806 $as_echo_n "(cached) " >&6 16807else 16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16809/* end confdefs.h. */ 16810int i; 16811int 16812main () 16813{ 16814 16815 ; 16816 return 0; 16817} 16818_ACEOF 16819if ac_fn_c_try_link "$LINENO"; then : 16820 eval $cacheid=yes 16821else 16822 eval $cacheid=no 16823fi 16824rm -f core conftest.err conftest.$ac_objext \ 16825 conftest$ac_exeext conftest.$ac_ext 16826fi 16827 16828 16829 CFLAGS="$xorg_testset_save_CFLAGS" 16830 16831 eval supported=\$$cacheid 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16833$as_echo "$supported" >&6; } 16834 if test "$supported" = "yes" ; then 16835 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16836 found="yes" 16837 fi 16838 fi 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854xorg_testset_save_CFLAGS="$CFLAGS" 16855 16856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16861 $as_echo_n "(cached) " >&6 16862else 16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16864/* end confdefs.h. */ 16865int i; 16866_ACEOF 16867if ac_fn_c_try_compile "$LINENO"; then : 16868 xorg_cv_cc_flag_unknown_warning_option=yes 16869else 16870 xorg_cv_cc_flag_unknown_warning_option=no 16871fi 16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16873fi 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16877 CFLAGS="$xorg_testset_save_CFLAGS" 16878fi 16879 16880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16883 fi 16884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16888 $as_echo_n "(cached) " >&6 16889else 16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16891/* end confdefs.h. */ 16892int i; 16893_ACEOF 16894if ac_fn_c_try_compile "$LINENO"; then : 16895 xorg_cv_cc_flag_unused_command_line_argument=yes 16896else 16897 xorg_cv_cc_flag_unused_command_line_argument=no 16898fi 16899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16900fi 16901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16904 CFLAGS="$xorg_testset_save_CFLAGS" 16905fi 16906 16907found="no" 16908 16909 if test $found = "no" ; then 16910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16912 fi 16913 16914 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16916 fi 16917 16918 CFLAGS="$CFLAGS -Waddress" 16919 16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16921$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16922 cacheid=xorg_cv_cc_flag__Waddress 16923 if eval \${$cacheid+:} false; then : 16924 $as_echo_n "(cached) " >&6 16925else 16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16927/* end confdefs.h. */ 16928int i; 16929int 16930main () 16931{ 16932 16933 ; 16934 return 0; 16935} 16936_ACEOF 16937if ac_fn_c_try_link "$LINENO"; then : 16938 eval $cacheid=yes 16939else 16940 eval $cacheid=no 16941fi 16942rm -f core conftest.err conftest.$ac_objext \ 16943 conftest$ac_exeext conftest.$ac_ext 16944fi 16945 16946 16947 CFLAGS="$xorg_testset_save_CFLAGS" 16948 16949 eval supported=\$$cacheid 16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16951$as_echo "$supported" >&6; } 16952 if test "$supported" = "yes" ; then 16953 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16954 found="yes" 16955 fi 16956 fi 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972xorg_testset_save_CFLAGS="$CFLAGS" 16973 16974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16979 $as_echo_n "(cached) " >&6 16980else 16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16982/* end confdefs.h. */ 16983int i; 16984_ACEOF 16985if ac_fn_c_try_compile "$LINENO"; then : 16986 xorg_cv_cc_flag_unknown_warning_option=yes 16987else 16988 xorg_cv_cc_flag_unknown_warning_option=no 16989fi 16990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16991fi 16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16995 CFLAGS="$xorg_testset_save_CFLAGS" 16996fi 16997 16998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17006 $as_echo_n "(cached) " >&6 17007else 17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17009/* end confdefs.h. */ 17010int i; 17011_ACEOF 17012if ac_fn_c_try_compile "$LINENO"; then : 17013 xorg_cv_cc_flag_unused_command_line_argument=yes 17014else 17015 xorg_cv_cc_flag_unused_command_line_argument=no 17016fi 17017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17018fi 17019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17022 CFLAGS="$xorg_testset_save_CFLAGS" 17023fi 17024 17025found="no" 17026 17027 if test $found = "no" ; then 17028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17030 fi 17031 17032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17034 fi 17035 17036 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17037 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17039$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17040 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17041 if eval \${$cacheid+:} false; then : 17042 $as_echo_n "(cached) " >&6 17043else 17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17045/* end confdefs.h. */ 17046int i; 17047int 17048main () 17049{ 17050 17051 ; 17052 return 0; 17053} 17054_ACEOF 17055if ac_fn_c_try_link "$LINENO"; then : 17056 eval $cacheid=yes 17057else 17058 eval $cacheid=no 17059fi 17060rm -f core conftest.err conftest.$ac_objext \ 17061 conftest$ac_exeext conftest.$ac_ext 17062fi 17063 17064 17065 CFLAGS="$xorg_testset_save_CFLAGS" 17066 17067 eval supported=\$$cacheid 17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17069$as_echo "$supported" >&6; } 17070 if test "$supported" = "yes" ; then 17071 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17072 found="yes" 17073 fi 17074 fi 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090xorg_testset_save_CFLAGS="$CFLAGS" 17091 17092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17097 $as_echo_n "(cached) " >&6 17098else 17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17100/* end confdefs.h. */ 17101int i; 17102_ACEOF 17103if ac_fn_c_try_compile "$LINENO"; then : 17104 xorg_cv_cc_flag_unknown_warning_option=yes 17105else 17106 xorg_cv_cc_flag_unknown_warning_option=no 17107fi 17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17109fi 17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17113 CFLAGS="$xorg_testset_save_CFLAGS" 17114fi 17115 17116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17119 fi 17120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17124 $as_echo_n "(cached) " >&6 17125else 17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17127/* end confdefs.h. */ 17128int i; 17129_ACEOF 17130if ac_fn_c_try_compile "$LINENO"; then : 17131 xorg_cv_cc_flag_unused_command_line_argument=yes 17132else 17133 xorg_cv_cc_flag_unused_command_line_argument=no 17134fi 17135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17136fi 17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17140 CFLAGS="$xorg_testset_save_CFLAGS" 17141fi 17142 17143found="no" 17144 17145 if test $found = "no" ; then 17146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17148 fi 17149 17150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17152 fi 17153 17154 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17155 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17157$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17158 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17159 if eval \${$cacheid+:} false; then : 17160 $as_echo_n "(cached) " >&6 17161else 17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17163/* end confdefs.h. */ 17164int i; 17165int 17166main () 17167{ 17168 17169 ; 17170 return 0; 17171} 17172_ACEOF 17173if ac_fn_c_try_link "$LINENO"; then : 17174 eval $cacheid=yes 17175else 17176 eval $cacheid=no 17177fi 17178rm -f core conftest.err conftest.$ac_objext \ 17179 conftest$ac_exeext conftest.$ac_ext 17180fi 17181 17182 17183 CFLAGS="$xorg_testset_save_CFLAGS" 17184 17185 eval supported=\$$cacheid 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17187$as_echo "$supported" >&6; } 17188 if test "$supported" = "yes" ; then 17189 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17190 found="yes" 17191 fi 17192 fi 17193 17194 17195fi 17196 17197 17198 17199 17200 17201 17202 17203 CWARNFLAGS="$BASE_CFLAGS" 17204 if test "x$GCC" = xyes ; then 17205 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17206 fi 17207 17208 17209 17210 17211 17212 17213 17214 17215# Check whether --enable-strict-compilation was given. 17216if test "${enable_strict_compilation+set}" = set; then : 17217 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17218else 17219 STRICT_COMPILE=no 17220fi 17221 17222 17223 17224 17225 17226 17227STRICT_CFLAGS="" 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241xorg_testset_save_CFLAGS="$CFLAGS" 17242 17243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17248 $as_echo_n "(cached) " >&6 17249else 17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17251/* end confdefs.h. */ 17252int i; 17253_ACEOF 17254if ac_fn_c_try_compile "$LINENO"; then : 17255 xorg_cv_cc_flag_unknown_warning_option=yes 17256else 17257 xorg_cv_cc_flag_unknown_warning_option=no 17258fi 17259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17260fi 17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17264 CFLAGS="$xorg_testset_save_CFLAGS" 17265fi 17266 17267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17270 fi 17271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17275 $as_echo_n "(cached) " >&6 17276else 17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17278/* end confdefs.h. */ 17279int i; 17280_ACEOF 17281if ac_fn_c_try_compile "$LINENO"; then : 17282 xorg_cv_cc_flag_unused_command_line_argument=yes 17283else 17284 xorg_cv_cc_flag_unused_command_line_argument=no 17285fi 17286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17287fi 17288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17291 CFLAGS="$xorg_testset_save_CFLAGS" 17292fi 17293 17294found="no" 17295 17296 if test $found = "no" ; then 17297 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17299 fi 17300 17301 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17303 fi 17304 17305 CFLAGS="$CFLAGS -pedantic" 17306 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17308$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17309 cacheid=xorg_cv_cc_flag__pedantic 17310 if eval \${$cacheid+:} false; then : 17311 $as_echo_n "(cached) " >&6 17312else 17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17314/* end confdefs.h. */ 17315int i; 17316int 17317main () 17318{ 17319 17320 ; 17321 return 0; 17322} 17323_ACEOF 17324if ac_fn_c_try_link "$LINENO"; then : 17325 eval $cacheid=yes 17326else 17327 eval $cacheid=no 17328fi 17329rm -f core conftest.err conftest.$ac_objext \ 17330 conftest$ac_exeext conftest.$ac_ext 17331fi 17332 17333 17334 CFLAGS="$xorg_testset_save_CFLAGS" 17335 17336 eval supported=\$$cacheid 17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17338$as_echo "$supported" >&6; } 17339 if test "$supported" = "yes" ; then 17340 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17341 found="yes" 17342 fi 17343 fi 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359xorg_testset_save_CFLAGS="$CFLAGS" 17360 17361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17366 $as_echo_n "(cached) " >&6 17367else 17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17369/* end confdefs.h. */ 17370int i; 17371_ACEOF 17372if ac_fn_c_try_compile "$LINENO"; then : 17373 xorg_cv_cc_flag_unknown_warning_option=yes 17374else 17375 xorg_cv_cc_flag_unknown_warning_option=no 17376fi 17377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17378fi 17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17382 CFLAGS="$xorg_testset_save_CFLAGS" 17383fi 17384 17385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17388 fi 17389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17393 $as_echo_n "(cached) " >&6 17394else 17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396/* end confdefs.h. */ 17397int i; 17398_ACEOF 17399if ac_fn_c_try_compile "$LINENO"; then : 17400 xorg_cv_cc_flag_unused_command_line_argument=yes 17401else 17402 xorg_cv_cc_flag_unused_command_line_argument=no 17403fi 17404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17405fi 17406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17409 CFLAGS="$xorg_testset_save_CFLAGS" 17410fi 17411 17412found="no" 17413 17414 if test $found = "no" ; then 17415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17417 fi 17418 17419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17421 fi 17422 17423 CFLAGS="$CFLAGS -Werror" 17424 17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17426$as_echo_n "checking if $CC supports -Werror... " >&6; } 17427 cacheid=xorg_cv_cc_flag__Werror 17428 if eval \${$cacheid+:} false; then : 17429 $as_echo_n "(cached) " >&6 17430else 17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432/* end confdefs.h. */ 17433int i; 17434int 17435main () 17436{ 17437 17438 ; 17439 return 0; 17440} 17441_ACEOF 17442if ac_fn_c_try_link "$LINENO"; then : 17443 eval $cacheid=yes 17444else 17445 eval $cacheid=no 17446fi 17447rm -f core conftest.err conftest.$ac_objext \ 17448 conftest$ac_exeext conftest.$ac_ext 17449fi 17450 17451 17452 CFLAGS="$xorg_testset_save_CFLAGS" 17453 17454 eval supported=\$$cacheid 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17456$as_echo "$supported" >&6; } 17457 if test "$supported" = "yes" ; then 17458 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17459 found="yes" 17460 fi 17461 fi 17462 17463 if test $found = "no" ; then 17464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17466 fi 17467 17468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17470 fi 17471 17472 CFLAGS="$CFLAGS -errwarn" 17473 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17475$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17476 cacheid=xorg_cv_cc_flag__errwarn 17477 if eval \${$cacheid+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479else 17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17481/* end confdefs.h. */ 17482int i; 17483int 17484main () 17485{ 17486 17487 ; 17488 return 0; 17489} 17490_ACEOF 17491if ac_fn_c_try_link "$LINENO"; then : 17492 eval $cacheid=yes 17493else 17494 eval $cacheid=no 17495fi 17496rm -f core conftest.err conftest.$ac_objext \ 17497 conftest$ac_exeext conftest.$ac_ext 17498fi 17499 17500 17501 CFLAGS="$xorg_testset_save_CFLAGS" 17502 17503 eval supported=\$$cacheid 17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17505$as_echo "$supported" >&6; } 17506 if test "$supported" = "yes" ; then 17507 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17508 found="yes" 17509 fi 17510 fi 17511 17512 17513 17514# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17515# activate it with -Werror, so we add it here explicitly. 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529xorg_testset_save_CFLAGS="$CFLAGS" 17530 17531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17536 $as_echo_n "(cached) " >&6 17537else 17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17539/* end confdefs.h. */ 17540int i; 17541_ACEOF 17542if ac_fn_c_try_compile "$LINENO"; then : 17543 xorg_cv_cc_flag_unknown_warning_option=yes 17544else 17545 xorg_cv_cc_flag_unknown_warning_option=no 17546fi 17547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17548fi 17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17552 CFLAGS="$xorg_testset_save_CFLAGS" 17553fi 17554 17555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17558 fi 17559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17563 $as_echo_n "(cached) " >&6 17564else 17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17566/* end confdefs.h. */ 17567int i; 17568_ACEOF 17569if ac_fn_c_try_compile "$LINENO"; then : 17570 xorg_cv_cc_flag_unused_command_line_argument=yes 17571else 17572 xorg_cv_cc_flag_unused_command_line_argument=no 17573fi 17574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17575fi 17576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17579 CFLAGS="$xorg_testset_save_CFLAGS" 17580fi 17581 17582found="no" 17583 17584 if test $found = "no" ; then 17585 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17587 fi 17588 17589 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17591 fi 17592 17593 CFLAGS="$CFLAGS -Werror=attributes" 17594 17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17596$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17597 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17598 if eval \${$cacheid+:} false; then : 17599 $as_echo_n "(cached) " >&6 17600else 17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17602/* end confdefs.h. */ 17603int i; 17604int 17605main () 17606{ 17607 17608 ; 17609 return 0; 17610} 17611_ACEOF 17612if ac_fn_c_try_link "$LINENO"; then : 17613 eval $cacheid=yes 17614else 17615 eval $cacheid=no 17616fi 17617rm -f core conftest.err conftest.$ac_objext \ 17618 conftest$ac_exeext conftest.$ac_ext 17619fi 17620 17621 17622 CFLAGS="$xorg_testset_save_CFLAGS" 17623 17624 eval supported=\$$cacheid 17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17626$as_echo "$supported" >&6; } 17627 if test "$supported" = "yes" ; then 17628 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17629 found="yes" 17630 fi 17631 fi 17632 17633 17634 17635if test "x$STRICT_COMPILE" = "xyes"; then 17636 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17637 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17638fi 17639 17640 17641 17642 17643 17644 17645cat >>confdefs.h <<_ACEOF 17646#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17647_ACEOF 17648 17649 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17650 if test "x$PVM" = "x"; then 17651 PVM="0" 17652 fi 17653 17654cat >>confdefs.h <<_ACEOF 17655#define PACKAGE_VERSION_MINOR $PVM 17656_ACEOF 17657 17658 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17659 if test "x$PVP" = "x"; then 17660 PVP="0" 17661 fi 17662 17663cat >>confdefs.h <<_ACEOF 17664#define PACKAGE_VERSION_PATCHLEVEL $PVP 17665_ACEOF 17666 17667 17668 17669CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17670mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17671|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17672echo 'git directory not found: installing possibly empty changelog.' >&2)" 17673 17674 17675 17676 17677macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17678INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17679mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17680|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17681echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17682 17683 17684 17685 17686 17687 17688if test x$APP_MAN_SUFFIX = x ; then 17689 APP_MAN_SUFFIX=1 17690fi 17691if test x$APP_MAN_DIR = x ; then 17692 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17693fi 17694 17695if test x$LIB_MAN_SUFFIX = x ; then 17696 LIB_MAN_SUFFIX=3 17697fi 17698if test x$LIB_MAN_DIR = x ; then 17699 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17700fi 17701 17702if test x$FILE_MAN_SUFFIX = x ; then 17703 case $host_os in 17704 solaris*) FILE_MAN_SUFFIX=4 ;; 17705 *) FILE_MAN_SUFFIX=5 ;; 17706 esac 17707fi 17708if test x$FILE_MAN_DIR = x ; then 17709 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17710fi 17711 17712if test x$MISC_MAN_SUFFIX = x ; then 17713 case $host_os in 17714 solaris*) MISC_MAN_SUFFIX=5 ;; 17715 *) MISC_MAN_SUFFIX=7 ;; 17716 esac 17717fi 17718if test x$MISC_MAN_DIR = x ; then 17719 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17720fi 17721 17722if test x$DRIVER_MAN_SUFFIX = x ; then 17723 case $host_os in 17724 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17725 *) DRIVER_MAN_SUFFIX=4 ;; 17726 esac 17727fi 17728if test x$DRIVER_MAN_DIR = x ; then 17729 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17730fi 17731 17732if test x$ADMIN_MAN_SUFFIX = x ; then 17733 case $host_os in 17734 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17735 *) ADMIN_MAN_SUFFIX=8 ;; 17736 esac 17737fi 17738if test x$ADMIN_MAN_DIR = x ; then 17739 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17740fi 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756XORG_MAN_PAGE="X Version 11" 17757 17758MAN_SUBSTS="\ 17759 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17760 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17761 -e 's|__xservername__|Xorg|g' \ 17762 -e 's|__xconfigfile__|xorg.conf|g' \ 17763 -e 's|__projectroot__|\$(prefix)|g' \ 17764 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17765 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17766 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17767 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17768 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17769 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17770 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17771 17772 17773 17774# Check whether --enable-silent-rules was given. 17775if test "${enable_silent_rules+set}" = set; then : 17776 enableval=$enable_silent_rules; 17777fi 17778 17779case $enable_silent_rules in # ((( 17780 yes) AM_DEFAULT_VERBOSITY=0;; 17781 no) AM_DEFAULT_VERBOSITY=1;; 17782 *) AM_DEFAULT_VERBOSITY=0;; 17783esac 17784am_make=${MAKE-make} 17785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17786$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17787if ${am_cv_make_support_nested_variables+:} false; then : 17788 $as_echo_n "(cached) " >&6 17789else 17790 if $as_echo 'TRUE=$(BAR$(V)) 17791BAR0=false 17792BAR1=true 17793V=1 17794am__doit: 17795 @$(TRUE) 17796.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17797 am_cv_make_support_nested_variables=yes 17798else 17799 am_cv_make_support_nested_variables=no 17800fi 17801fi 17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17803$as_echo "$am_cv_make_support_nested_variables" >&6; } 17804if test $am_cv_make_support_nested_variables = yes; then 17805 AM_V='$(V)' 17806 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17807else 17808 AM_V=$AM_DEFAULT_VERBOSITY 17809 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17810fi 17811AM_BACKSLASH='\' 17812 17813 17814 17815# Check whether --enable-malloc0returnsnull was given. 17816if test "${enable_malloc0returnsnull+set}" = set; then : 17817 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17818else 17819 MALLOC_ZERO_RETURNS_NULL=auto 17820fi 17821 17822 17823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17824$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17825if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17826 if test "$cross_compiling" = yes; then : 17827 MALLOC_ZERO_RETURNS_NULL=yes 17828else 17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17830/* end confdefs.h. */ 17831 17832#include <stdlib.h> 17833 17834int 17835main () 17836{ 17837 17838 char *m0, *r0, *c0, *p; 17839 m0 = malloc(0); 17840 p = malloc(10); 17841 r0 = realloc(p,0); 17842 c0 = calloc(0,10); 17843 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17844 17845 ; 17846 return 0; 17847} 17848_ACEOF 17849if ac_fn_c_try_run "$LINENO"; then : 17850 MALLOC_ZERO_RETURNS_NULL=yes 17851else 17852 MALLOC_ZERO_RETURNS_NULL=no 17853fi 17854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17855 conftest.$ac_objext conftest.beam conftest.$ac_ext 17856fi 17857 17858fi 17859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17860$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17861 17862if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17863 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17864 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17865 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17866else 17867 MALLOC_ZERO_CFLAGS="" 17868 XMALLOC_ZERO_CFLAGS="" 17869 XTMALLOC_ZERO_CFLAGS="" 17870fi 17871 17872 17873 17874 17875 17876 17877 17878# Check whether --enable-specs was given. 17879if test "${enable_specs+set}" = set; then : 17880 enableval=$enable_specs; build_specs=$enableval 17881else 17882 build_specs=yes 17883fi 17884 17885 17886 if test x$build_specs = xyes; then 17887 ENABLE_SPECS_TRUE= 17888 ENABLE_SPECS_FALSE='#' 17889else 17890 ENABLE_SPECS_TRUE='#' 17891 ENABLE_SPECS_FALSE= 17892fi 17893 17894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17895$as_echo_n "checking whether to build functional specifications... " >&6; } 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17897$as_echo "$build_specs" >&6; } 17898 17899 17900 17901 17902 17903# Check whether --with-xmlto was given. 17904if test "${with_xmlto+set}" = set; then : 17905 withval=$with_xmlto; use_xmlto=$withval 17906else 17907 use_xmlto=auto 17908fi 17909 17910 17911 17912if test "x$use_xmlto" = x"auto"; then 17913 # Extract the first word of "xmlto", so it can be a program name with args. 17914set dummy xmlto; ac_word=$2 17915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17916$as_echo_n "checking for $ac_word... " >&6; } 17917if ${ac_cv_path_XMLTO+:} false; then : 17918 $as_echo_n "(cached) " >&6 17919else 17920 case $XMLTO in 17921 [\\/]* | ?:[\\/]*) 17922 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17923 ;; 17924 *) 17925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17926for as_dir in $PATH 17927do 17928 IFS=$as_save_IFS 17929 test -z "$as_dir" && as_dir=. 17930 for ac_exec_ext in '' $ac_executable_extensions; do 17931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17932 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17934 break 2 17935 fi 17936done 17937 done 17938IFS=$as_save_IFS 17939 17940 ;; 17941esac 17942fi 17943XMLTO=$ac_cv_path_XMLTO 17944if test -n "$XMLTO"; then 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17946$as_echo "$XMLTO" >&6; } 17947else 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17949$as_echo "no" >&6; } 17950fi 17951 17952 17953 if test "x$XMLTO" = "x"; then 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17955$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17956 have_xmlto=no 17957 else 17958 have_xmlto=yes 17959 fi 17960elif test "x$use_xmlto" = x"yes" ; then 17961 # Extract the first word of "xmlto", so it can be a program name with args. 17962set dummy xmlto; ac_word=$2 17963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17964$as_echo_n "checking for $ac_word... " >&6; } 17965if ${ac_cv_path_XMLTO+:} false; then : 17966 $as_echo_n "(cached) " >&6 17967else 17968 case $XMLTO in 17969 [\\/]* | ?:[\\/]*) 17970 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17971 ;; 17972 *) 17973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17974for as_dir in $PATH 17975do 17976 IFS=$as_save_IFS 17977 test -z "$as_dir" && as_dir=. 17978 for ac_exec_ext in '' $ac_executable_extensions; do 17979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17980 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17982 break 2 17983 fi 17984done 17985 done 17986IFS=$as_save_IFS 17987 17988 ;; 17989esac 17990fi 17991XMLTO=$ac_cv_path_XMLTO 17992if test -n "$XMLTO"; then 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17994$as_echo "$XMLTO" >&6; } 17995else 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17997$as_echo "no" >&6; } 17998fi 17999 18000 18001 if test "x$XMLTO" = "x"; then 18002 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18003 fi 18004 have_xmlto=yes 18005elif test "x$use_xmlto" = x"no" ; then 18006 if test "x$XMLTO" != "x"; then 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18008$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18009 fi 18010 have_xmlto=no 18011else 18012 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18013fi 18014 18015# Test for a minimum version of xmlto, if provided. 18016if test "$have_xmlto" = yes; then 18017 # scrape the xmlto version 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18019$as_echo_n "checking the xmlto version... " >&6; } 18020 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18022$as_echo "$xmlto_version" >&6; } 18023 as_arg_v1=$xmlto_version 18024as_arg_v2=0.0.20 18025awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18026case $? in #( 18027 1) : 18028 if test "x$use_xmlto" = xauto; then 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 18030$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 18031 have_xmlto=no 18032 else 18033 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 18034 fi ;; #( 18035 0) : 18036 ;; #( 18037 2) : 18038 ;; #( 18039 *) : 18040 ;; 18041esac 18042fi 18043 18044# Test for the ability of xmlto to generate a text target 18045have_xmlto_text=no 18046cat > conftest.xml << "EOF" 18047EOF 18048if test "$have_xmlto" = yes; then : 18049 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18050 have_xmlto_text=yes 18051else 18052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18053$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18054fi 18055fi 18056rm -f conftest.xml 18057 if test $have_xmlto_text = yes; then 18058 HAVE_XMLTO_TEXT_TRUE= 18059 HAVE_XMLTO_TEXT_FALSE='#' 18060else 18061 HAVE_XMLTO_TEXT_TRUE='#' 18062 HAVE_XMLTO_TEXT_FALSE= 18063fi 18064 18065 if test "$have_xmlto" = yes; then 18066 HAVE_XMLTO_TRUE= 18067 HAVE_XMLTO_FALSE='#' 18068else 18069 HAVE_XMLTO_TRUE='#' 18070 HAVE_XMLTO_FALSE= 18071fi 18072 18073 18074 18075 18076 18077 18078# Check whether --with-fop was given. 18079if test "${with_fop+set}" = set; then : 18080 withval=$with_fop; use_fop=$withval 18081else 18082 use_fop=auto 18083fi 18084 18085 18086 18087if test "x$use_fop" = x"auto"; then 18088 # Extract the first word of "fop", so it can be a program name with args. 18089set dummy fop; ac_word=$2 18090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18091$as_echo_n "checking for $ac_word... " >&6; } 18092if ${ac_cv_path_FOP+:} false; then : 18093 $as_echo_n "(cached) " >&6 18094else 18095 case $FOP in 18096 [\\/]* | ?:[\\/]*) 18097 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18098 ;; 18099 *) 18100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18101for as_dir in $PATH 18102do 18103 IFS=$as_save_IFS 18104 test -z "$as_dir" && as_dir=. 18105 for ac_exec_ext in '' $ac_executable_extensions; do 18106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18107 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18109 break 2 18110 fi 18111done 18112 done 18113IFS=$as_save_IFS 18114 18115 ;; 18116esac 18117fi 18118FOP=$ac_cv_path_FOP 18119if test -n "$FOP"; then 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18121$as_echo "$FOP" >&6; } 18122else 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18124$as_echo "no" >&6; } 18125fi 18126 18127 18128 if test "x$FOP" = "x"; then 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18130$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18131 have_fop=no 18132 else 18133 have_fop=yes 18134 fi 18135elif test "x$use_fop" = x"yes" ; then 18136 # Extract the first word of "fop", so it can be a program name with args. 18137set dummy fop; ac_word=$2 18138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18139$as_echo_n "checking for $ac_word... " >&6; } 18140if ${ac_cv_path_FOP+:} false; then : 18141 $as_echo_n "(cached) " >&6 18142else 18143 case $FOP in 18144 [\\/]* | ?:[\\/]*) 18145 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18146 ;; 18147 *) 18148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18149for as_dir in $PATH 18150do 18151 IFS=$as_save_IFS 18152 test -z "$as_dir" && as_dir=. 18153 for ac_exec_ext in '' $ac_executable_extensions; do 18154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18155 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18157 break 2 18158 fi 18159done 18160 done 18161IFS=$as_save_IFS 18162 18163 ;; 18164esac 18165fi 18166FOP=$ac_cv_path_FOP 18167if test -n "$FOP"; then 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18169$as_echo "$FOP" >&6; } 18170else 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18172$as_echo "no" >&6; } 18173fi 18174 18175 18176 if test "x$FOP" = "x"; then 18177 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18178 fi 18179 have_fop=yes 18180elif test "x$use_fop" = x"no" ; then 18181 if test "x$FOP" != "x"; then 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18183$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18184 fi 18185 have_fop=no 18186else 18187 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18188fi 18189 18190# Test for a minimum version of fop, if provided. 18191 18192 if test "$have_fop" = yes; then 18193 HAVE_FOP_TRUE= 18194 HAVE_FOP_FALSE='#' 18195else 18196 HAVE_FOP_TRUE='#' 18197 HAVE_FOP_FALSE= 18198fi 18199 18200 18201 18202 18203# Preserves the interface, should it be implemented later 18204 18205 18206 18207# Check whether --with-xsltproc was given. 18208if test "${with_xsltproc+set}" = set; then : 18209 withval=$with_xsltproc; use_xsltproc=$withval 18210else 18211 use_xsltproc=auto 18212fi 18213 18214 18215 18216if test "x$use_xsltproc" = x"auto"; then 18217 # Extract the first word of "xsltproc", so it can be a program name with args. 18218set dummy xsltproc; ac_word=$2 18219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18220$as_echo_n "checking for $ac_word... " >&6; } 18221if ${ac_cv_path_XSLTPROC+:} false; then : 18222 $as_echo_n "(cached) " >&6 18223else 18224 case $XSLTPROC in 18225 [\\/]* | ?:[\\/]*) 18226 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18227 ;; 18228 *) 18229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18230for as_dir in $PATH 18231do 18232 IFS=$as_save_IFS 18233 test -z "$as_dir" && as_dir=. 18234 for ac_exec_ext in '' $ac_executable_extensions; do 18235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18236 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18238 break 2 18239 fi 18240done 18241 done 18242IFS=$as_save_IFS 18243 18244 ;; 18245esac 18246fi 18247XSLTPROC=$ac_cv_path_XSLTPROC 18248if test -n "$XSLTPROC"; then 18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18250$as_echo "$XSLTPROC" >&6; } 18251else 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18253$as_echo "no" >&6; } 18254fi 18255 18256 18257 if test "x$XSLTPROC" = "x"; then 18258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18259$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18260 have_xsltproc=no 18261 else 18262 have_xsltproc=yes 18263 fi 18264elif test "x$use_xsltproc" = x"yes" ; then 18265 # Extract the first word of "xsltproc", so it can be a program name with args. 18266set dummy xsltproc; ac_word=$2 18267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18268$as_echo_n "checking for $ac_word... " >&6; } 18269if ${ac_cv_path_XSLTPROC+:} false; then : 18270 $as_echo_n "(cached) " >&6 18271else 18272 case $XSLTPROC in 18273 [\\/]* | ?:[\\/]*) 18274 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18275 ;; 18276 *) 18277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18278for as_dir in $PATH 18279do 18280 IFS=$as_save_IFS 18281 test -z "$as_dir" && as_dir=. 18282 for ac_exec_ext in '' $ac_executable_extensions; do 18283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18284 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18286 break 2 18287 fi 18288done 18289 done 18290IFS=$as_save_IFS 18291 18292 ;; 18293esac 18294fi 18295XSLTPROC=$ac_cv_path_XSLTPROC 18296if test -n "$XSLTPROC"; then 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18298$as_echo "$XSLTPROC" >&6; } 18299else 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18301$as_echo "no" >&6; } 18302fi 18303 18304 18305 if test "x$XSLTPROC" = "x"; then 18306 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18307 fi 18308 have_xsltproc=yes 18309elif test "x$use_xsltproc" = x"no" ; then 18310 if test "x$XSLTPROC" != "x"; then 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18312$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18313 fi 18314 have_xsltproc=no 18315else 18316 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18317fi 18318 18319 if test "$have_xsltproc" = yes; then 18320 HAVE_XSLTPROC_TRUE= 18321 HAVE_XSLTPROC_FALSE='#' 18322else 18323 HAVE_XSLTPROC_TRUE='#' 18324 HAVE_XSLTPROC_FALSE= 18325fi 18326 18327 18328 18329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.01" >&5 18330$as_echo_n "checking for X.Org SGML entities >= 1.01... " >&6; } 18331XORG_SGML_PATH= 18332if test -n "$PKG_CONFIG" && \ 18333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.01\""; } >&5 18334 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.01") 2>&5 18335 ac_status=$? 18336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18337 test $ac_status = 0; }; then 18338 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18339else 18340 : 18341 18342fi 18343 18344# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18345# the path and the name of the doc stylesheet 18346if test "x$XORG_SGML_PATH" != "x" ; then 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18348$as_echo "$XORG_SGML_PATH" >&6; } 18349 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18350 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18351else 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18353$as_echo "no" >&6; } 18354fi 18355 18356 18357 18358 18359 if test "x$XSL_STYLESHEET" != "x"; then 18360 HAVE_STYLESHEETS_TRUE= 18361 HAVE_STYLESHEETS_FALSE='#' 18362else 18363 HAVE_STYLESHEETS_TRUE='#' 18364 HAVE_STYLESHEETS_FALSE= 18365fi 18366 18367 18368 18369 18370for ac_prog in cpp 18371do 18372 # Extract the first word of "$ac_prog", so it can be a program name with args. 18373set dummy $ac_prog; ac_word=$2 18374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18375$as_echo_n "checking for $ac_word... " >&6; } 18376if ${ac_cv_path_RAWCPP+:} false; then : 18377 $as_echo_n "(cached) " >&6 18378else 18379 case $RAWCPP in 18380 [\\/]* | ?:[\\/]*) 18381 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 18382 ;; 18383 *) 18384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18385as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 18386for as_dir in $as_dummy 18387do 18388 IFS=$as_save_IFS 18389 test -z "$as_dir" && as_dir=. 18390 for ac_exec_ext in '' $ac_executable_extensions; do 18391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18392 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 18393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18394 break 2 18395 fi 18396done 18397 done 18398IFS=$as_save_IFS 18399 18400 ;; 18401esac 18402fi 18403RAWCPP=$ac_cv_path_RAWCPP 18404if test -n "$RAWCPP"; then 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 18406$as_echo "$RAWCPP" >&6; } 18407else 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18409$as_echo "no" >&6; } 18410fi 18411 18412 18413 test -n "$RAWCPP" && break 18414done 18415test -n "$RAWCPP" || RAWCPP="${CPP}" 18416 18417 18418# Check for flag to avoid builtin definitions - assumes unix is predefined, 18419# which is not the best choice for supporting other OS'es, but covers most 18420# of the ones we need for now. 18421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 18422$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 18423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18424/* end confdefs.h. */ 18425Does cpp redefine unix ? 18426_ACEOF 18427if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18429$as_echo "no" >&6; } 18430else 18431 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18432 RAWCPPFLAGS=-undef 18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18434$as_echo "yes" >&6; } 18435 # under Cygwin unix is still defined even with -undef 18436 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18437 RAWCPPFLAGS="-undef -ansi" 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 18439$as_echo "yes, with -ansi" >&6; } 18440 else 18441 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 18442 fi 18443fi 18444rm -f conftest.$ac_ext 18445 18446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 18447$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 18448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18449/* end confdefs.h. */ 18450Does cpp preserve "whitespace"? 18451_ACEOF 18452if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18454$as_echo "no" >&6; } 18455else 18456 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18457 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18459$as_echo "yes" >&6; } 18460 else 18461 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 18462 fi 18463fi 18464rm -f conftest.$ac_ext 18465 18466 18467 18468 18469# Preserves the interface, should it be implemented later 18470 18471 18472 18473# Check whether --with-perl was given. 18474if test "${with_perl+set}" = set; then : 18475 withval=$with_perl; use_perl=$withval 18476else 18477 use_perl=auto 18478fi 18479 18480 18481 18482if test "x$use_perl" = x"auto"; then 18483 # Extract the first word of "perl", so it can be a program name with args. 18484set dummy perl; ac_word=$2 18485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18486$as_echo_n "checking for $ac_word... " >&6; } 18487if ${ac_cv_path_PERL+:} false; then : 18488 $as_echo_n "(cached) " >&6 18489else 18490 case $PERL in 18491 [\\/]* | ?:[\\/]*) 18492 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18493 ;; 18494 *) 18495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18496for as_dir in $PATH 18497do 18498 IFS=$as_save_IFS 18499 test -z "$as_dir" && as_dir=. 18500 for ac_exec_ext in '' $ac_executable_extensions; do 18501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18502 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18504 break 2 18505 fi 18506done 18507 done 18508IFS=$as_save_IFS 18509 18510 ;; 18511esac 18512fi 18513PERL=$ac_cv_path_PERL 18514if test -n "$PERL"; then 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18516$as_echo "$PERL" >&6; } 18517else 18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18519$as_echo "no" >&6; } 18520fi 18521 18522 18523 if test "x$PERL" = "x"; then 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 18525$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 18526 have_perl=no 18527 else 18528 have_perl=yes 18529 fi 18530elif test "x$use_perl" = x"yes" ; then 18531 # Extract the first word of "perl", so it can be a program name with args. 18532set dummy perl; ac_word=$2 18533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18534$as_echo_n "checking for $ac_word... " >&6; } 18535if ${ac_cv_path_PERL+:} false; then : 18536 $as_echo_n "(cached) " >&6 18537else 18538 case $PERL in 18539 [\\/]* | ?:[\\/]*) 18540 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18541 ;; 18542 *) 18543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18544for as_dir in $PATH 18545do 18546 IFS=$as_save_IFS 18547 test -z "$as_dir" && as_dir=. 18548 for ac_exec_ext in '' $ac_executable_extensions; do 18549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18550 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18552 break 2 18553 fi 18554done 18555 done 18556IFS=$as_save_IFS 18557 18558 ;; 18559esac 18560fi 18561PERL=$ac_cv_path_PERL 18562if test -n "$PERL"; then 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18564$as_echo "$PERL" >&6; } 18565else 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18567$as_echo "no" >&6; } 18568fi 18569 18570 18571 if test "x$PERL" = "x"; then 18572 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 18573 fi 18574 have_perl=yes 18575elif test "x$use_perl" = x"no" ; then 18576 if test "x$PERL" != "x"; then 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 18578$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 18579 fi 18580 have_perl=no 18581else 18582 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 18583fi 18584 18585 if test "$have_perl" = yes; then 18586 HAVE_PERL_TRUE= 18587 HAVE_PERL_FALSE='#' 18588else 18589 HAVE_PERL_TRUE='#' 18590 HAVE_PERL_FALSE= 18591fi 18592 18593 18594 18595 18596# Checks for header files. 18597ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 18598if test "x$ac_cv_header_alloca_h" = xyes; then : 18599 18600$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h 18601 18602fi 18603 18604 18605 18606# Obtain compiler/linker options for depedencies 18607 18608pkg_failed=no 18609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 18610$as_echo_n "checking for XT... " >&6; } 18611 18612if test -n "$XT_CFLAGS"; then 18613 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 18614 elif test -n "$PKG_CONFIG"; then 18615 if test -n "$PKG_CONFIG" && \ 18616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 18617 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 18618 ac_status=$? 18619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18620 test $ac_status = 0; }; then 18621 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null` 18622else 18623 pkg_failed=yes 18624fi 18625 else 18626 pkg_failed=untried 18627fi 18628if test -n "$XT_LIBS"; then 18629 pkg_cv_XT_LIBS="$XT_LIBS" 18630 elif test -n "$PKG_CONFIG"; then 18631 if test -n "$PKG_CONFIG" && \ 18632 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 18633 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 18634 ac_status=$? 18635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18636 test $ac_status = 0; }; then 18637 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null` 18638else 18639 pkg_failed=yes 18640fi 18641 else 18642 pkg_failed=untried 18643fi 18644 18645 18646 18647if test $pkg_failed = yes; then 18648 18649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18650 _pkg_short_errors_supported=yes 18651else 18652 _pkg_short_errors_supported=no 18653fi 18654 if test $_pkg_short_errors_supported = yes; then 18655 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1` 18656 else 18657 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1` 18658 fi 18659 # Put the nasty error message in config.log where it belongs 18660 echo "$XT_PKG_ERRORS" >&5 18661 18662 as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met: 18663 18664$XT_PKG_ERRORS 18665 18666Consider adjusting the PKG_CONFIG_PATH environment variable if you 18667installed software in a non-standard prefix. 18668 18669Alternatively, you may set the environment variables XT_CFLAGS 18670and XT_LIBS to avoid the need to call pkg-config. 18671See the pkg-config man page for more details. 18672" "$LINENO" 5 18673elif test $pkg_failed = untried; then 18674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18676as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18677is in your PATH or set the PKG_CONFIG environment variable to the full 18678path to pkg-config. 18679 18680Alternatively, you may set the environment variables XT_CFLAGS 18681and XT_LIBS to avoid the need to call pkg-config. 18682See the pkg-config man page for more details. 18683 18684To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18685See \`config.log' for more details" "$LINENO" 5; } 18686else 18687 XT_CFLAGS=$pkg_cv_XT_CFLAGS 18688 XT_LIBS=$pkg_cv_XT_LIBS 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18690$as_echo "yes" >&6; } 18691 : 18692fi 18693 18694# Set-up variables to use build machine compiler when cross-compiling 18695if test x"$CC_FOR_BUILD" = x; then 18696 if test x"$cross_compiling" = xyes; then 18697 for ac_prog in gcc cc 18698do 18699 # Extract the first word of "$ac_prog", so it can be a program name with args. 18700set dummy $ac_prog; ac_word=$2 18701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18702$as_echo_n "checking for $ac_word... " >&6; } 18703if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 18704 $as_echo_n "(cached) " >&6 18705else 18706 if test -n "$CC_FOR_BUILD"; then 18707 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 18708else 18709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18710for as_dir in $PATH 18711do 18712 IFS=$as_save_IFS 18713 test -z "$as_dir" && as_dir=. 18714 for ac_exec_ext in '' $ac_executable_extensions; do 18715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18716 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 18717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18718 break 2 18719 fi 18720done 18721 done 18722IFS=$as_save_IFS 18723 18724fi 18725fi 18726CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 18727if test -n "$CC_FOR_BUILD"; then 18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 18729$as_echo "$CC_FOR_BUILD" >&6; } 18730else 18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18732$as_echo "no" >&6; } 18733fi 18734 18735 18736 test -n "$CC_FOR_BUILD" && break 18737done 18738 18739 else 18740 CC_FOR_BUILD="$CC" 18741 fi 18742fi 18743 18744CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 18745 18746LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} 18747 18748 18749# Map function checks to old Imake #defines 18750case $host_os in 18751 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 18752 darwin[789]*|darwin10*) ;; 18753 darwin*) 18754 _ac_xorg_macosx_version_min="" 18755 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 18756 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 18757 else 18758 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 18759 fi 18760 case $_ac_xorg_macosx_version_min in 18761 10.[0123456]|10.[0123456].*) ;; 18762 *) 18763 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 18764if test "x$ac_cv_func_poll" = xyes; then : 18765 18766$as_echo "#define USE_POLL 1" >>confdefs.h 18767 18768fi 18769 18770 ;; 18771 esac 18772 unset _ac_xorg_macosx_version_min 18773 ;; 18774 *) 18775 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 18776if test "x$ac_cv_func_poll" = xyes; then : 18777 18778$as_echo "#define USE_POLL 1" >>confdefs.h 18779 18780fi 18781 18782 ;; 18783esac 18784 18785# Link with winsock if mingw target 18786case $host_os in 18787 *mingw*) 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18789$as_echo_n "checking for main in -lws2_32... " >&6; } 18790if ${ac_cv_lib_ws2_32_main+:} false; then : 18791 $as_echo_n "(cached) " >&6 18792else 18793 ac_check_lib_save_LIBS=$LIBS 18794LIBS="-lws2_32 $LIBS" 18795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18796/* end confdefs.h. */ 18797 18798 18799int 18800main () 18801{ 18802return main (); 18803 ; 18804 return 0; 18805} 18806_ACEOF 18807if ac_fn_c_try_link "$LINENO"; then : 18808 ac_cv_lib_ws2_32_main=yes 18809else 18810 ac_cv_lib_ws2_32_main=no 18811fi 18812rm -f core conftest.err conftest.$ac_objext \ 18813 conftest$ac_exeext conftest.$ac_ext 18814LIBS=$ac_check_lib_save_LIBS 18815fi 18816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18817$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18818if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18819 cat >>confdefs.h <<_ACEOF 18820#define HAVE_LIBWS2_32 1 18821_ACEOF 18822 18823 LIBS="-lws2_32 $LIBS" 18824 18825fi 18826ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 18827 18828 ;; 18829 *) 18830 ;; 18831esac 18832 18833# Options 18834# Check whether --enable-xkb was given. 18835if test "${enable_xkb+set}" = set; then : 18836 enableval=$enable_xkb; XKB="$enableval" 18837else 18838 XKB="yes" 18839fi 18840 18841if test "x$XKB" = "xyes" ; then 18842 18843$as_echo "#define XKB 1" >>confdefs.h 18844 18845fi 18846 18847# --enable-unit-tests 18848 18849 18850 18851 18852 18853# Check for different types of support on different platforms 18854case $host_os in 18855 solaris*) 18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 18857$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 18858if ${ac_cv_lib_umem_umem_alloc+:} false; then : 18859 $as_echo_n "(cached) " >&6 18860else 18861 ac_check_lib_save_LIBS=$LIBS 18862LIBS="-lumem $LIBS" 18863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18864/* end confdefs.h. */ 18865 18866/* Override any GCC internal prototype to avoid an error. 18867 Use char because int might match the return type of a GCC 18868 builtin and then its argument prototype would still apply. */ 18869#ifdef __cplusplus 18870extern "C" 18871#endif 18872char umem_alloc (); 18873int 18874main () 18875{ 18876return umem_alloc (); 18877 ; 18878 return 0; 18879} 18880_ACEOF 18881if ac_fn_c_try_link "$LINENO"; then : 18882 ac_cv_lib_umem_umem_alloc=yes 18883else 18884 ac_cv_lib_umem_umem_alloc=no 18885fi 18886rm -f core conftest.err conftest.$ac_objext \ 18887 conftest$ac_exeext conftest.$ac_ext 18888LIBS=$ac_check_lib_save_LIBS 18889fi 18890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 18891$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 18892if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 18893 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 18894fi 18895 18896 ;; 18897 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 18898 # both directly and inverted, so should not be 0 or 255. 18899 malloc_debug_env='MALLOC_PERTURB_=15' 18900 ;; 18901 darwin*) 18902 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 18903 ;; 18904 *bsd*) 18905 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 18906 ;; 18907esac 18908 18909# User supplied flags override default flags 18910if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 18911 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 18912fi 18913 18914XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 18915 18916 18917 18918 18919 18920 18921 18922# Check whether --enable-unit-tests was given. 18923if test "${enable_unit_tests+set}" = set; then : 18924 enableval=$enable_unit_tests; enable_unit_tests=$enableval 18925else 18926 enable_unit_tests=auto 18927fi 18928 18929 18930 if test "x$enable_unit_tests" != xno; then 18931 ENABLE_UNIT_TESTS_TRUE= 18932 ENABLE_UNIT_TESTS_FALSE='#' 18933else 18934 ENABLE_UNIT_TESTS_TRUE='#' 18935 ENABLE_UNIT_TESTS_FALSE= 18936fi 18937 18938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 18939$as_echo_n "checking whether to build unit test cases... " >&6; } 18940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 18941$as_echo "$enable_unit_tests" >&6; } 18942 18943 18944 18945 18946 18947# Check whether --with-glib was given. 18948if test "${with_glib+set}" = set; then : 18949 withval=$with_glib; with_glib=$withval 18950else 18951 with_glib=auto 18952fi 18953 18954 18955 18956have_glib=no 18957# Do not probe GLib if user explicitly disabled unit testing 18958if test "x$enable_unit_tests" != x"no"; then 18959 # Do not probe GLib if user explicitly disabled it 18960 if test "x$with_glib" != x"no"; then 18961 18962pkg_failed=no 18963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 18964$as_echo_n "checking for GLIB... " >&6; } 18965 18966if test -n "$GLIB_CFLAGS"; then 18967 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 18968 elif test -n "$PKG_CONFIG"; then 18969 if test -n "$PKG_CONFIG" && \ 18970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 18971 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 18972 ac_status=$? 18973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18974 test $ac_status = 0; }; then 18975 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null` 18976else 18977 pkg_failed=yes 18978fi 18979 else 18980 pkg_failed=untried 18981fi 18982if test -n "$GLIB_LIBS"; then 18983 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 18984 elif test -n "$PKG_CONFIG"; then 18985 if test -n "$PKG_CONFIG" && \ 18986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 18987 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 18988 ac_status=$? 18989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18990 test $ac_status = 0; }; then 18991 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null` 18992else 18993 pkg_failed=yes 18994fi 18995 else 18996 pkg_failed=untried 18997fi 18998 18999 19000 19001if test $pkg_failed = yes; then 19002 19003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19004 _pkg_short_errors_supported=yes 19005else 19006 _pkg_short_errors_supported=no 19007fi 19008 if test $_pkg_short_errors_supported = yes; then 19009 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.16" 2>&1` 19010 else 19011 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.16" 2>&1` 19012 fi 19013 # Put the nasty error message in config.log where it belongs 19014 echo "$GLIB_PKG_ERRORS" >&5 19015 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19017$as_echo "no" >&6; } 19018 have_glib=no 19019elif test $pkg_failed = untried; then 19020 have_glib=no 19021else 19022 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19023 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19025$as_echo "yes" >&6; } 19026 have_glib=yes 19027fi 19028 fi 19029fi 19030 19031# Not having GLib when unit testing has been explicitly requested is an error 19032if test "x$enable_unit_tests" = x"yes"; then 19033 if test "x$have_glib" = x"no"; then 19034 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19035 fi 19036fi 19037 19038# Having unit testing disabled when GLib has been explicitly requested is an error 19039if test "x$enable_unit_tests" = x"no"; then 19040 if test "x$with_glib" = x"yes"; then 19041 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19042 fi 19043fi 19044 19045# Not having GLib when it has been explicitly requested is an error 19046if test "x$with_glib" = x"yes"; then 19047 if test "x$have_glib" = x"no"; then 19048 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 19049 fi 19050fi 19051 19052 if test "$have_glib" = yes; then 19053 HAVE_GLIB_TRUE= 19054 HAVE_GLIB_FALSE='#' 19055else 19056 HAVE_GLIB_TRUE='#' 19057 HAVE_GLIB_FALSE= 19058fi 19059 19060 19061 19062# Memory checking support 19063case $host_os in 19064 solaris*) 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19066$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19067if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19068 $as_echo_n "(cached) " >&6 19069else 19070 ac_check_lib_save_LIBS=$LIBS 19071LIBS="-lumem $LIBS" 19072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19073/* end confdefs.h. */ 19074 19075/* Override any GCC internal prototype to avoid an error. 19076 Use char because int might match the return type of a GCC 19077 builtin and then its argument prototype would still apply. */ 19078#ifdef __cplusplus 19079extern "C" 19080#endif 19081char umem_alloc (); 19082int 19083main () 19084{ 19085return umem_alloc (); 19086 ; 19087 return 0; 19088} 19089_ACEOF 19090if ac_fn_c_try_link "$LINENO"; then : 19091 ac_cv_lib_umem_umem_alloc=yes 19092else 19093 ac_cv_lib_umem_umem_alloc=no 19094fi 19095rm -f core conftest.err conftest.$ac_objext \ 19096 conftest$ac_exeext conftest.$ac_ext 19097LIBS=$ac_check_lib_save_LIBS 19098fi 19099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19100$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19101if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19102 MALLOC_DEBUG_ENV='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19103fi 19104 19105 ;; 19106 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19107 # both directly and inverted, so should not be 0 or 255. 19108 MALLOC_DEBUG_ENV='MALLOC_PERTURB_=15' 19109 ;; 19110 *bsd*|darwin*) 19111 MALLOC_DEBUG_ENV='MallocPreScribble=1 MallocScribble=1' 19112 ;; 19113esac 19114 19115 19116# Replaces XFileSearchPathDefault from Imake configs 19117XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S' 19118 19119 19120# Check whether --with-xfile-search-path was given. 19121if test "${with_xfile_search_path+set}" = set; then : 19122 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval" 19123fi 19124 19125 19126 19127 19128# Check whether --with-appdefaultdir was given. 19129if test "${with_appdefaultdir+set}" = set; then : 19130 withval=$with_appdefaultdir; appdefaultdir="$withval" 19131else 19132 appdefaultdir=${datadir}/X11/app-defaults 19133fi 19134 19135 19136 prefix_NONE= 19137 exec_prefix_NONE= 19138 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19139 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19140 eval ax_define_dir="\"$appdefaultdir\"" 19141 eval ax_define_dir="\"$ax_define_dir\"" 19142 appdefaultdir="$ax_define_dir" 19143 19144 19145cat >>confdefs.h <<_ACEOF 19146#define appdefaultdir "$ax_define_dir" 19147_ACEOF 19148 19149 test "$prefix_NONE" && prefix=NONE 19150 test "$exec_prefix_NONE" && exec_prefix=NONE 19151 19152 19153# Replacement for Imake ToolkitStringsABIOptions, controls string tables 19154# generated by util/string.list in StringDefs.h & Shell.h 19155case $host_os in 19156 solaris*) 19157 # Solaris uses -intelabi even on SPARC 19158 STRINGSABIOPTIONS="-intelabi -solarisabinames" 19159 ;; 19160 sco* | svr4*) 19161 case $host_cpu in 19162 i*86) STRINGSABIOPTIONS="-intelabi" ;; 19163 *) STRINGSABIOPTIONS="" ;; 19164 esac 19165 ;; 19166esac 19167 19168 19169ERRORDBDIR=${datadir}/X11 19170 19171 19172case $host_os in 19173 darwin*) 19174 OS_CFLAGS="-Wl,-flat_namespace" 19175 ;; 19176 *) 19177 OS_CFLAGS= 19178 ;; 19179esac 19180 19181XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS" 19182 19183ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile test/Makefile xt.pc" 19184 19185cat >confcache <<\_ACEOF 19186# This file is a shell script that caches the results of configure 19187# tests run on this system so they can be shared between configure 19188# scripts and configure runs, see configure's option --config-cache. 19189# It is not useful on other systems. If it contains results you don't 19190# want to keep, you may remove or edit it. 19191# 19192# config.status only pays attention to the cache file if you give it 19193# the --recheck option to rerun configure. 19194# 19195# `ac_cv_env_foo' variables (set or unset) will be overridden when 19196# loading this file, other *unset* `ac_cv_foo' will be assigned the 19197# following values. 19198 19199_ACEOF 19200 19201# The following way of writing the cache mishandles newlines in values, 19202# but we know of no workaround that is simple, portable, and efficient. 19203# So, we kill variables containing newlines. 19204# Ultrix sh set writes to stderr and can't be redirected directly, 19205# and sets the high bit in the cache file unless we assign to the vars. 19206( 19207 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19208 eval ac_val=\$$ac_var 19209 case $ac_val in #( 19210 *${as_nl}*) 19211 case $ac_var in #( 19212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19213$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19214 esac 19215 case $ac_var in #( 19216 _ | IFS | as_nl) ;; #( 19217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19218 *) { eval $ac_var=; unset $ac_var;} ;; 19219 esac ;; 19220 esac 19221 done 19222 19223 (set) 2>&1 | 19224 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19225 *${as_nl}ac_space=\ *) 19226 # `set' does not quote correctly, so add quotes: double-quote 19227 # substitution turns \\\\ into \\, and sed turns \\ into \. 19228 sed -n \ 19229 "s/'/'\\\\''/g; 19230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19231 ;; #( 19232 *) 19233 # `set' quotes correctly as required by POSIX, so do not add quotes. 19234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19235 ;; 19236 esac | 19237 sort 19238) | 19239 sed ' 19240 /^ac_cv_env_/b end 19241 t clear 19242 :clear 19243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19244 t end 19245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19246 :end' >>confcache 19247if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19248 if test -w "$cache_file"; then 19249 if test "x$cache_file" != "x/dev/null"; then 19250 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19251$as_echo "$as_me: updating cache $cache_file" >&6;} 19252 if test ! -f "$cache_file" || test -h "$cache_file"; then 19253 cat confcache >"$cache_file" 19254 else 19255 case $cache_file in #( 19256 */* | ?:*) 19257 mv -f confcache "$cache_file"$$ && 19258 mv -f "$cache_file"$$ "$cache_file" ;; #( 19259 *) 19260 mv -f confcache "$cache_file" ;; 19261 esac 19262 fi 19263 fi 19264 else 19265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19266$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19267 fi 19268fi 19269rm -f confcache 19270 19271test "x$prefix" = xNONE && prefix=$ac_default_prefix 19272# Let make expand exec_prefix. 19273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19274 19275DEFS=-DHAVE_CONFIG_H 19276 19277ac_libobjs= 19278ac_ltlibobjs= 19279U= 19280for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19281 # 1. Remove the extension, and $U if already installed. 19282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19283 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19285 # will be set to the directory where LIBOBJS objects are built. 19286 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19287 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19288done 19289LIBOBJS=$ac_libobjs 19290 19291LTLIBOBJS=$ac_ltlibobjs 19292 19293 19294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19295$as_echo_n "checking that generated files are newer than configure... " >&6; } 19296 if test -n "$am_sleep_pid"; then 19297 # Hide warnings about reused PIDs. 19298 wait $am_sleep_pid 2>/dev/null 19299 fi 19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19301$as_echo "done" >&6; } 19302 if test -n "$EXEEXT"; then 19303 am__EXEEXT_TRUE= 19304 am__EXEEXT_FALSE='#' 19305else 19306 am__EXEEXT_TRUE='#' 19307 am__EXEEXT_FALSE= 19308fi 19309 19310if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19311 as_fn_error $? "conditional \"AMDEP\" was never defined. 19312Usually this means the macro was only invoked conditionally." "$LINENO" 5 19313fi 19314if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19315 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19316Usually this means the macro was only invoked conditionally." "$LINENO" 5 19317fi 19318if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 19319 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 19320Usually this means the macro was only invoked conditionally." "$LINENO" 5 19321fi 19322if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19323 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19324Usually this means the macro was only invoked conditionally." "$LINENO" 5 19325fi 19326if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19327 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19328Usually this means the macro was only invoked conditionally." "$LINENO" 5 19329fi 19330if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19331 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19332Usually this means the macro was only invoked conditionally." "$LINENO" 5 19333fi 19334if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19335 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19336Usually this means the macro was only invoked conditionally." "$LINENO" 5 19337fi 19338if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19339 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19340Usually this means the macro was only invoked conditionally." "$LINENO" 5 19341fi 19342if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 19343 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 19344Usually this means the macro was only invoked conditionally." "$LINENO" 5 19345fi 19346if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 19347 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 19348Usually this means the macro was only invoked conditionally." "$LINENO" 5 19349fi 19350if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 19351 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 19352Usually this means the macro was only invoked conditionally." "$LINENO" 5 19353fi 19354 19355: "${CONFIG_STATUS=./config.status}" 19356ac_write_fail=0 19357ac_clean_files_save=$ac_clean_files 19358ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19359{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19360$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19361as_write_fail=0 19362cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19363#! $SHELL 19364# Generated by $as_me. 19365# Run this file to recreate the current configuration. 19366# Compiler output produced by configure, useful for debugging 19367# configure, is in config.log if it exists. 19368 19369debug=false 19370ac_cs_recheck=false 19371ac_cs_silent=false 19372 19373SHELL=\${CONFIG_SHELL-$SHELL} 19374export SHELL 19375_ASEOF 19376cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19377## -------------------- ## 19378## M4sh Initialization. ## 19379## -------------------- ## 19380 19381# Be more Bourne compatible 19382DUALCASE=1; export DUALCASE # for MKS sh 19383if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19384 emulate sh 19385 NULLCMD=: 19386 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19387 # is contrary to our usage. Disable this feature. 19388 alias -g '${1+"$@"}'='"$@"' 19389 setopt NO_GLOB_SUBST 19390else 19391 case `(set -o) 2>/dev/null` in #( 19392 *posix*) : 19393 set -o posix ;; #( 19394 *) : 19395 ;; 19396esac 19397fi 19398 19399 19400as_nl=' 19401' 19402export as_nl 19403# Printing a long string crashes Solaris 7 /usr/bin/printf. 19404as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19405as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19406as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19407# Prefer a ksh shell builtin over an external printf program on Solaris, 19408# but without wasting forks for bash or zsh. 19409if test -z "$BASH_VERSION$ZSH_VERSION" \ 19410 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19411 as_echo='print -r --' 19412 as_echo_n='print -rn --' 19413elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19414 as_echo='printf %s\n' 19415 as_echo_n='printf %s' 19416else 19417 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19418 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19419 as_echo_n='/usr/ucb/echo -n' 19420 else 19421 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19422 as_echo_n_body='eval 19423 arg=$1; 19424 case $arg in #( 19425 *"$as_nl"*) 19426 expr "X$arg" : "X\\(.*\\)$as_nl"; 19427 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19428 esac; 19429 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19430 ' 19431 export as_echo_n_body 19432 as_echo_n='sh -c $as_echo_n_body as_echo' 19433 fi 19434 export as_echo_body 19435 as_echo='sh -c $as_echo_body as_echo' 19436fi 19437 19438# The user is always right. 19439if test "${PATH_SEPARATOR+set}" != set; then 19440 PATH_SEPARATOR=: 19441 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19442 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19443 PATH_SEPARATOR=';' 19444 } 19445fi 19446 19447 19448# IFS 19449# We need space, tab and new line, in precisely that order. Quoting is 19450# there to prevent editors from complaining about space-tab. 19451# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19452# splitting by setting IFS to empty value.) 19453IFS=" "" $as_nl" 19454 19455# Find who we are. Look in the path if we contain no directory separator. 19456as_myself= 19457case $0 in #(( 19458 *[\\/]* ) as_myself=$0 ;; 19459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19460for as_dir in $PATH 19461do 19462 IFS=$as_save_IFS 19463 test -z "$as_dir" && as_dir=. 19464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19465 done 19466IFS=$as_save_IFS 19467 19468 ;; 19469esac 19470# We did not find ourselves, most probably we were run as `sh COMMAND' 19471# in which case we are not to be found in the path. 19472if test "x$as_myself" = x; then 19473 as_myself=$0 19474fi 19475if test ! -f "$as_myself"; then 19476 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19477 exit 1 19478fi 19479 19480# Unset variables that we do not need and which cause bugs (e.g. in 19481# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19482# suppresses any "Segmentation fault" message there. '((' could 19483# trigger a bug in pdksh 5.2.14. 19484for as_var in BASH_ENV ENV MAIL MAILPATH 19485do eval test x\${$as_var+set} = xset \ 19486 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19487done 19488PS1='$ ' 19489PS2='> ' 19490PS4='+ ' 19491 19492# NLS nuisances. 19493LC_ALL=C 19494export LC_ALL 19495LANGUAGE=C 19496export LANGUAGE 19497 19498# CDPATH. 19499(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19500 19501 19502# as_fn_error STATUS ERROR [LINENO LOG_FD] 19503# ---------------------------------------- 19504# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19505# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19506# script with STATUS, using 1 if that was 0. 19507as_fn_error () 19508{ 19509 as_status=$1; test $as_status -eq 0 && as_status=1 19510 if test "$4"; then 19511 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19512 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19513 fi 19514 $as_echo "$as_me: error: $2" >&2 19515 as_fn_exit $as_status 19516} # as_fn_error 19517 19518 19519# as_fn_set_status STATUS 19520# ----------------------- 19521# Set $? to STATUS, without forking. 19522as_fn_set_status () 19523{ 19524 return $1 19525} # as_fn_set_status 19526 19527# as_fn_exit STATUS 19528# ----------------- 19529# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19530as_fn_exit () 19531{ 19532 set +e 19533 as_fn_set_status $1 19534 exit $1 19535} # as_fn_exit 19536 19537# as_fn_unset VAR 19538# --------------- 19539# Portably unset VAR. 19540as_fn_unset () 19541{ 19542 { eval $1=; unset $1;} 19543} 19544as_unset=as_fn_unset 19545# as_fn_append VAR VALUE 19546# ---------------------- 19547# Append the text in VALUE to the end of the definition contained in VAR. Take 19548# advantage of any shell optimizations that allow amortized linear growth over 19549# repeated appends, instead of the typical quadratic growth present in naive 19550# implementations. 19551if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19552 eval 'as_fn_append () 19553 { 19554 eval $1+=\$2 19555 }' 19556else 19557 as_fn_append () 19558 { 19559 eval $1=\$$1\$2 19560 } 19561fi # as_fn_append 19562 19563# as_fn_arith ARG... 19564# ------------------ 19565# Perform arithmetic evaluation on the ARGs, and store the result in the 19566# global $as_val. Take advantage of shells that can avoid forks. The arguments 19567# must be portable across $(()) and expr. 19568if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19569 eval 'as_fn_arith () 19570 { 19571 as_val=$(( $* )) 19572 }' 19573else 19574 as_fn_arith () 19575 { 19576 as_val=`expr "$@" || test $? -eq 1` 19577 } 19578fi # as_fn_arith 19579 19580 19581if expr a : '\(a\)' >/dev/null 2>&1 && 19582 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19583 as_expr=expr 19584else 19585 as_expr=false 19586fi 19587 19588if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19589 as_basename=basename 19590else 19591 as_basename=false 19592fi 19593 19594if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19595 as_dirname=dirname 19596else 19597 as_dirname=false 19598fi 19599 19600as_me=`$as_basename -- "$0" || 19601$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19602 X"$0" : 'X\(//\)$' \| \ 19603 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19604$as_echo X/"$0" | 19605 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19606 s//\1/ 19607 q 19608 } 19609 /^X\/\(\/\/\)$/{ 19610 s//\1/ 19611 q 19612 } 19613 /^X\/\(\/\).*/{ 19614 s//\1/ 19615 q 19616 } 19617 s/.*/./; q'` 19618 19619# Avoid depending upon Character Ranges. 19620as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19621as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19622as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19623as_cr_digits='0123456789' 19624as_cr_alnum=$as_cr_Letters$as_cr_digits 19625 19626ECHO_C= ECHO_N= ECHO_T= 19627case `echo -n x` in #((((( 19628-n*) 19629 case `echo 'xy\c'` in 19630 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19631 xy) ECHO_C='\c';; 19632 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19633 ECHO_T=' ';; 19634 esac;; 19635*) 19636 ECHO_N='-n';; 19637esac 19638 19639rm -f conf$$ conf$$.exe conf$$.file 19640if test -d conf$$.dir; then 19641 rm -f conf$$.dir/conf$$.file 19642else 19643 rm -f conf$$.dir 19644 mkdir conf$$.dir 2>/dev/null 19645fi 19646if (echo >conf$$.file) 2>/dev/null; then 19647 if ln -s conf$$.file conf$$ 2>/dev/null; then 19648 as_ln_s='ln -s' 19649 # ... but there are two gotchas: 19650 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19651 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19652 # In both cases, we have to default to `cp -p'. 19653 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19654 as_ln_s='cp -p' 19655 elif ln conf$$.file conf$$ 2>/dev/null; then 19656 as_ln_s=ln 19657 else 19658 as_ln_s='cp -p' 19659 fi 19660else 19661 as_ln_s='cp -p' 19662fi 19663rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19664rmdir conf$$.dir 2>/dev/null 19665 19666 19667# as_fn_mkdir_p 19668# ------------- 19669# Create "$as_dir" as a directory, including parents if necessary. 19670as_fn_mkdir_p () 19671{ 19672 19673 case $as_dir in #( 19674 -*) as_dir=./$as_dir;; 19675 esac 19676 test -d "$as_dir" || eval $as_mkdir_p || { 19677 as_dirs= 19678 while :; do 19679 case $as_dir in #( 19680 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19681 *) as_qdir=$as_dir;; 19682 esac 19683 as_dirs="'$as_qdir' $as_dirs" 19684 as_dir=`$as_dirname -- "$as_dir" || 19685$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19686 X"$as_dir" : 'X\(//\)[^/]' \| \ 19687 X"$as_dir" : 'X\(//\)$' \| \ 19688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19689$as_echo X"$as_dir" | 19690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19691 s//\1/ 19692 q 19693 } 19694 /^X\(\/\/\)[^/].*/{ 19695 s//\1/ 19696 q 19697 } 19698 /^X\(\/\/\)$/{ 19699 s//\1/ 19700 q 19701 } 19702 /^X\(\/\).*/{ 19703 s//\1/ 19704 q 19705 } 19706 s/.*/./; q'` 19707 test -d "$as_dir" && break 19708 done 19709 test -z "$as_dirs" || eval "mkdir $as_dirs" 19710 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19711 19712 19713} # as_fn_mkdir_p 19714if mkdir -p . 2>/dev/null; then 19715 as_mkdir_p='mkdir -p "$as_dir"' 19716else 19717 test -d ./-p && rmdir ./-p 19718 as_mkdir_p=false 19719fi 19720 19721if test -x / >/dev/null 2>&1; then 19722 as_test_x='test -x' 19723else 19724 if ls -dL / >/dev/null 2>&1; then 19725 as_ls_L_option=L 19726 else 19727 as_ls_L_option= 19728 fi 19729 as_test_x=' 19730 eval sh -c '\'' 19731 if test -d "$1"; then 19732 test -d "$1/."; 19733 else 19734 case $1 in #( 19735 -*)set "./$1";; 19736 esac; 19737 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19738 ???[sx]*):;;*)false;;esac;fi 19739 '\'' sh 19740 ' 19741fi 19742as_executable_p=$as_test_x 19743 19744# Sed expression to map a string onto a valid CPP name. 19745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19746 19747# Sed expression to map a string onto a valid variable name. 19748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19749 19750 19751exec 6>&1 19752## ----------------------------------- ## 19753## Main body of $CONFIG_STATUS script. ## 19754## ----------------------------------- ## 19755_ASEOF 19756test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19757 19758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19759# Save the log message, to keep $0 and so on meaningful, and to 19760# report actual input values of CONFIG_FILES etc. instead of their 19761# values after options handling. 19762ac_log=" 19763This file was extended by libXt $as_me 1.1.4, which was 19764generated by GNU Autoconf 2.68. Invocation command line was 19765 19766 CONFIG_FILES = $CONFIG_FILES 19767 CONFIG_HEADERS = $CONFIG_HEADERS 19768 CONFIG_LINKS = $CONFIG_LINKS 19769 CONFIG_COMMANDS = $CONFIG_COMMANDS 19770 $ $0 $@ 19771 19772on `(hostname || uname -n) 2>/dev/null | sed 1q` 19773" 19774 19775_ACEOF 19776 19777case $ac_config_files in *" 19778"*) set x $ac_config_files; shift; ac_config_files=$*;; 19779esac 19780 19781case $ac_config_headers in *" 19782"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19783esac 19784 19785 19786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19787# Files that config.status was made for. 19788config_files="$ac_config_files" 19789config_headers="$ac_config_headers" 19790config_commands="$ac_config_commands" 19791 19792_ACEOF 19793 19794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19795ac_cs_usage="\ 19796\`$as_me' instantiates files and other configuration actions 19797from templates according to the current configuration. Unless the files 19798and actions are specified as TAGs, all are instantiated by default. 19799 19800Usage: $0 [OPTION]... [TAG]... 19801 19802 -h, --help print this help, then exit 19803 -V, --version print version number and configuration settings, then exit 19804 --config print configuration, then exit 19805 -q, --quiet, --silent 19806 do not print progress messages 19807 -d, --debug don't remove temporary files 19808 --recheck update $as_me by reconfiguring in the same conditions 19809 --file=FILE[:TEMPLATE] 19810 instantiate the configuration file FILE 19811 --header=FILE[:TEMPLATE] 19812 instantiate the configuration header FILE 19813 19814Configuration files: 19815$config_files 19816 19817Configuration headers: 19818$config_headers 19819 19820Configuration commands: 19821$config_commands 19822 19823Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19824 19825_ACEOF 19826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19827ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19828ac_cs_version="\\ 19829libXt config.status 1.1.4 19830configured by $0, generated by GNU Autoconf 2.68, 19831 with options \\"\$ac_cs_config\\" 19832 19833Copyright (C) 2010 Free Software Foundation, Inc. 19834This config.status script is free software; the Free Software Foundation 19835gives unlimited permission to copy, distribute and modify it." 19836 19837ac_pwd='$ac_pwd' 19838srcdir='$srcdir' 19839INSTALL='$INSTALL' 19840MKDIR_P='$MKDIR_P' 19841AWK='$AWK' 19842test -n "\$AWK" || AWK=awk 19843_ACEOF 19844 19845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19846# The default lists apply if the user does not specify any file. 19847ac_need_defaults=: 19848while test $# != 0 19849do 19850 case $1 in 19851 --*=?*) 19852 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19854 ac_shift=: 19855 ;; 19856 --*=) 19857 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19858 ac_optarg= 19859 ac_shift=: 19860 ;; 19861 *) 19862 ac_option=$1 19863 ac_optarg=$2 19864 ac_shift=shift 19865 ;; 19866 esac 19867 19868 case $ac_option in 19869 # Handling of the options. 19870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19871 ac_cs_recheck=: ;; 19872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19873 $as_echo "$ac_cs_version"; exit ;; 19874 --config | --confi | --conf | --con | --co | --c ) 19875 $as_echo "$ac_cs_config"; exit ;; 19876 --debug | --debu | --deb | --de | --d | -d ) 19877 debug=: ;; 19878 --file | --fil | --fi | --f ) 19879 $ac_shift 19880 case $ac_optarg in 19881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19882 '') as_fn_error $? "missing file argument" ;; 19883 esac 19884 as_fn_append CONFIG_FILES " '$ac_optarg'" 19885 ac_need_defaults=false;; 19886 --header | --heade | --head | --hea ) 19887 $ac_shift 19888 case $ac_optarg in 19889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19890 esac 19891 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19892 ac_need_defaults=false;; 19893 --he | --h) 19894 # Conflict between --help and --header 19895 as_fn_error $? "ambiguous option: \`$1' 19896Try \`$0 --help' for more information.";; 19897 --help | --hel | -h ) 19898 $as_echo "$ac_cs_usage"; exit ;; 19899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19900 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19901 ac_cs_silent=: ;; 19902 19903 # This is an error. 19904 -*) as_fn_error $? "unrecognized option: \`$1' 19905Try \`$0 --help' for more information." ;; 19906 19907 *) as_fn_append ac_config_targets " $1" 19908 ac_need_defaults=false ;; 19909 19910 esac 19911 shift 19912done 19913 19914ac_configure_extra_args= 19915 19916if $ac_cs_silent; then 19917 exec 6>/dev/null 19918 ac_configure_extra_args="$ac_configure_extra_args --silent" 19919fi 19920 19921_ACEOF 19922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19923if \$ac_cs_recheck; then 19924 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19925 shift 19926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19927 CONFIG_SHELL='$SHELL' 19928 export CONFIG_SHELL 19929 exec "\$@" 19930fi 19931 19932_ACEOF 19933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19934exec 5>>config.log 19935{ 19936 echo 19937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19938## Running $as_me. ## 19939_ASBOX 19940 $as_echo "$ac_log" 19941} >&5 19942 19943_ACEOF 19944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19945# 19946# INIT-COMMANDS 19947# 19948AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19949 19950 19951# The HP-UX ksh and POSIX shell print the target directory to stdout 19952# if CDPATH is set. 19953(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19954 19955sed_quote_subst='$sed_quote_subst' 19956double_quote_subst='$double_quote_subst' 19957delay_variable_subst='$delay_variable_subst' 19958macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19959macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19960enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19961enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19962pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19963enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19964SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19965ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19966PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19967host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19968host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19969host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19970build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19971build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19972build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19973SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19974Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19975GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19976EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19977FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19978LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19979NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19980LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19981max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19982ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19983exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19984lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19985lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19986lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19987lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19988lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19989reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19990reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19991OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19992deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19993file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19994file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19995want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19996DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19997sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19998AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19999AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20000archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20001STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20002RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20003old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20004old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20005old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20006lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20007CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20008CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20009compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20010GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20011lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20012lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20013lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20014lt_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"`' 20015nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20016lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20017objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20018MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20019lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20020lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20021lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20022lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20023lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20024need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20025MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20026DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20027NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20028LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20029OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20030OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20031libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20032shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20033extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20034archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20035enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20036export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20037whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20038compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20039old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20040old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20041archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20042archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20043module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20044module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20045with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20046allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20047no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20048hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20049hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20050hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20051hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20052hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20053hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20054hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20055inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20056link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20057always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20058export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20059exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20060include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20061prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20062postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20063file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20064variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20065need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20066need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20067version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20068runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20069shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20070shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20071libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20072library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20073soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20074install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20075postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20076postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20077finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20078finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20079hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20080sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20081sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20082hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20083enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20084enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20085enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20086old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20087striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20088 20089LTCC='$LTCC' 20090LTCFLAGS='$LTCFLAGS' 20091compiler='$compiler_DEFAULT' 20092 20093# A function that is used when there is no print builtin or printf. 20094func_fallback_echo () 20095{ 20096 eval 'cat <<_LTECHO_EOF 20097\$1 20098_LTECHO_EOF' 20099} 20100 20101# Quote evaled strings. 20102for var in SHELL \ 20103ECHO \ 20104PATH_SEPARATOR \ 20105SED \ 20106GREP \ 20107EGREP \ 20108FGREP \ 20109LD \ 20110NM \ 20111LN_S \ 20112lt_SP2NL \ 20113lt_NL2SP \ 20114reload_flag \ 20115OBJDUMP \ 20116deplibs_check_method \ 20117file_magic_cmd \ 20118file_magic_glob \ 20119want_nocaseglob \ 20120DLLTOOL \ 20121sharedlib_from_linklib_cmd \ 20122AR \ 20123AR_FLAGS \ 20124archiver_list_spec \ 20125STRIP \ 20126RANLIB \ 20127CC \ 20128CFLAGS \ 20129compiler \ 20130lt_cv_sys_global_symbol_pipe \ 20131lt_cv_sys_global_symbol_to_cdecl \ 20132lt_cv_sys_global_symbol_to_c_name_address \ 20133lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20134nm_file_list_spec \ 20135lt_prog_compiler_no_builtin_flag \ 20136lt_prog_compiler_pic \ 20137lt_prog_compiler_wl \ 20138lt_prog_compiler_static \ 20139lt_cv_prog_compiler_c_o \ 20140need_locks \ 20141MANIFEST_TOOL \ 20142DSYMUTIL \ 20143NMEDIT \ 20144LIPO \ 20145OTOOL \ 20146OTOOL64 \ 20147shrext_cmds \ 20148export_dynamic_flag_spec \ 20149whole_archive_flag_spec \ 20150compiler_needs_object \ 20151with_gnu_ld \ 20152allow_undefined_flag \ 20153no_undefined_flag \ 20154hardcode_libdir_flag_spec \ 20155hardcode_libdir_separator \ 20156exclude_expsyms \ 20157include_expsyms \ 20158file_list_spec \ 20159variables_saved_for_relink \ 20160libname_spec \ 20161library_names_spec \ 20162soname_spec \ 20163install_override_mode \ 20164finish_eval \ 20165old_striplib \ 20166striplib; do 20167 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20168 *[\\\\\\\`\\"\\\$]*) 20169 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20170 ;; 20171 *) 20172 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20173 ;; 20174 esac 20175done 20176 20177# Double-quote double-evaled strings. 20178for var in reload_cmds \ 20179old_postinstall_cmds \ 20180old_postuninstall_cmds \ 20181old_archive_cmds \ 20182extract_expsyms_cmds \ 20183old_archive_from_new_cmds \ 20184old_archive_from_expsyms_cmds \ 20185archive_cmds \ 20186archive_expsym_cmds \ 20187module_cmds \ 20188module_expsym_cmds \ 20189export_symbols_cmds \ 20190prelink_cmds \ 20191postlink_cmds \ 20192postinstall_cmds \ 20193postuninstall_cmds \ 20194finish_cmds \ 20195sys_lib_search_path_spec \ 20196sys_lib_dlsearch_path_spec; do 20197 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20198 *[\\\\\\\`\\"\\\$]*) 20199 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20200 ;; 20201 *) 20202 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20203 ;; 20204 esac 20205done 20206 20207ac_aux_dir='$ac_aux_dir' 20208xsi_shell='$xsi_shell' 20209lt_shell_append='$lt_shell_append' 20210 20211# See if we are running on zsh, and set the options which allow our 20212# commands through without removal of \ escapes INIT. 20213if test -n "\${ZSH_VERSION+set}" ; then 20214 setopt NO_GLOB_SUBST 20215fi 20216 20217 20218 PACKAGE='$PACKAGE' 20219 VERSION='$VERSION' 20220 TIMESTAMP='$TIMESTAMP' 20221 RM='$RM' 20222 ofile='$ofile' 20223 20224 20225 20226 20227_ACEOF 20228 20229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20230 20231# Handling of arguments. 20232for ac_config_target in $ac_config_targets 20233do 20234 case $ac_config_target in 20235 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20236 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20237 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20238 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20239 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20240 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 20241 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20242 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20243 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 20244 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20245 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;; 20246 20247 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20248 esac 20249done 20250 20251 20252# If the user did not use the arguments to specify the items to instantiate, 20253# then the envvar interface is used. Set only those that are not. 20254# We use the long form for the default assignment because of an extremely 20255# bizarre bug on SunOS 4.1.3. 20256if $ac_need_defaults; then 20257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20259 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20260fi 20261 20262# Have a temporary directory for convenience. Make it in the build tree 20263# simply because there is no reason against having it here, and in addition, 20264# creating and moving files from /tmp can sometimes cause problems. 20265# Hook for its removal unless debugging. 20266# Note that there is a small window in which the directory will not be cleaned: 20267# after its creation but before its name has been assigned to `$tmp'. 20268$debug || 20269{ 20270 tmp= ac_tmp= 20271 trap 'exit_status=$? 20272 : "${ac_tmp:=$tmp}" 20273 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20274' 0 20275 trap 'as_fn_exit 1' 1 2 13 15 20276} 20277# Create a (secure) tmp directory for tmp files. 20278 20279{ 20280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20281 test -d "$tmp" 20282} || 20283{ 20284 tmp=./conf$$-$RANDOM 20285 (umask 077 && mkdir "$tmp") 20286} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20287ac_tmp=$tmp 20288 20289# Set up the scripts for CONFIG_FILES section. 20290# No need to generate them if there are no CONFIG_FILES. 20291# This happens for instance with `./config.status config.h'. 20292if test -n "$CONFIG_FILES"; then 20293 20294 20295ac_cr=`echo X | tr X '\015'` 20296# On cygwin, bash can eat \r inside `` if the user requested igncr. 20297# But we know of no other shell where ac_cr would be empty at this 20298# point, so we can use a bashism as a fallback. 20299if test "x$ac_cr" = x; then 20300 eval ac_cr=\$\'\\r\' 20301fi 20302ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20303if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20304 ac_cs_awk_cr='\\r' 20305else 20306 ac_cs_awk_cr=$ac_cr 20307fi 20308 20309echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20310_ACEOF 20311 20312 20313{ 20314 echo "cat >conf$$subs.awk <<_ACEOF" && 20315 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20316 echo "_ACEOF" 20317} >conf$$subs.sh || 20318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20319ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20320ac_delim='%!_!# ' 20321for ac_last_try in false false false false false :; do 20322 . ./conf$$subs.sh || 20323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20324 20325 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20326 if test $ac_delim_n = $ac_delim_num; then 20327 break 20328 elif $ac_last_try; then 20329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20330 else 20331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20332 fi 20333done 20334rm -f conf$$subs.sh 20335 20336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20337cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20338_ACEOF 20339sed -n ' 20340h 20341s/^/S["/; s/!.*/"]=/ 20342p 20343g 20344s/^[^!]*!// 20345:repl 20346t repl 20347s/'"$ac_delim"'$// 20348t delim 20349:nl 20350h 20351s/\(.\{148\}\)..*/\1/ 20352t more1 20353s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20354p 20355n 20356b repl 20357:more1 20358s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20359p 20360g 20361s/.\{148\}// 20362t nl 20363:delim 20364h 20365s/\(.\{148\}\)..*/\1/ 20366t more2 20367s/["\\]/\\&/g; s/^/"/; s/$/"/ 20368p 20369b 20370:more2 20371s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20372p 20373g 20374s/.\{148\}// 20375t delim 20376' <conf$$subs.awk | sed ' 20377/^[^""]/{ 20378 N 20379 s/\n// 20380} 20381' >>$CONFIG_STATUS || ac_write_fail=1 20382rm -f conf$$subs.awk 20383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20384_ACAWK 20385cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20386 for (key in S) S_is_set[key] = 1 20387 FS = "" 20388 20389} 20390{ 20391 line = $ 0 20392 nfields = split(line, field, "@") 20393 substed = 0 20394 len = length(field[1]) 20395 for (i = 2; i < nfields; i++) { 20396 key = field[i] 20397 keylen = length(key) 20398 if (S_is_set[key]) { 20399 value = S[key] 20400 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20401 len += length(value) + length(field[++i]) 20402 substed = 1 20403 } else 20404 len += 1 + keylen 20405 } 20406 20407 print line 20408} 20409 20410_ACAWK 20411_ACEOF 20412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20413if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20414 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20415else 20416 cat 20417fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20418 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20419_ACEOF 20420 20421# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20422# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20423# trailing colons and then remove the whole line if VPATH becomes empty 20424# (actually we leave an empty line to preserve line numbers). 20425if test "x$srcdir" = x.; then 20426 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20427h 20428s/// 20429s/^/:/ 20430s/[ ]*$/:/ 20431s/:\$(srcdir):/:/g 20432s/:\${srcdir}:/:/g 20433s/:@srcdir@:/:/g 20434s/^:*// 20435s/:*$// 20436x 20437s/\(=[ ]*\).*/\1/ 20438G 20439s/\n// 20440s/^[^=]*=[ ]*$// 20441}' 20442fi 20443 20444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20445fi # test -n "$CONFIG_FILES" 20446 20447# Set up the scripts for CONFIG_HEADERS section. 20448# No need to generate them if there are no CONFIG_HEADERS. 20449# This happens for instance with `./config.status Makefile'. 20450if test -n "$CONFIG_HEADERS"; then 20451cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20452BEGIN { 20453_ACEOF 20454 20455# Transform confdefs.h into an awk script `defines.awk', embedded as 20456# here-document in config.status, that substitutes the proper values into 20457# config.h.in to produce config.h. 20458 20459# Create a delimiter string that does not exist in confdefs.h, to ease 20460# handling of long lines. 20461ac_delim='%!_!# ' 20462for ac_last_try in false false :; do 20463 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20464 if test -z "$ac_tt"; then 20465 break 20466 elif $ac_last_try; then 20467 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20468 else 20469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20470 fi 20471done 20472 20473# For the awk script, D is an array of macro values keyed by name, 20474# likewise P contains macro parameters if any. Preserve backslash 20475# newline sequences. 20476 20477ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20478sed -n ' 20479s/.\{148\}/&'"$ac_delim"'/g 20480t rset 20481:rset 20482s/^[ ]*#[ ]*define[ ][ ]*/ / 20483t def 20484d 20485:def 20486s/\\$// 20487t bsnl 20488s/["\\]/\\&/g 20489s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20490D["\1"]=" \3"/p 20491s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20492d 20493:bsnl 20494s/["\\]/\\&/g 20495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20496D["\1"]=" \3\\\\\\n"\\/p 20497t cont 20498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20499t cont 20500d 20501:cont 20502n 20503s/.\{148\}/&'"$ac_delim"'/g 20504t clear 20505:clear 20506s/\\$// 20507t bsnlc 20508s/["\\]/\\&/g; s/^/"/; s/$/"/p 20509d 20510:bsnlc 20511s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20512b cont 20513' <confdefs.h | sed ' 20514s/'"$ac_delim"'/"\\\ 20515"/g' >>$CONFIG_STATUS || ac_write_fail=1 20516 20517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20518 for (key in D) D_is_set[key] = 1 20519 FS = "" 20520} 20521/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20522 line = \$ 0 20523 split(line, arg, " ") 20524 if (arg[1] == "#") { 20525 defundef = arg[2] 20526 mac1 = arg[3] 20527 } else { 20528 defundef = substr(arg[1], 2) 20529 mac1 = arg[2] 20530 } 20531 split(mac1, mac2, "(") #) 20532 macro = mac2[1] 20533 prefix = substr(line, 1, index(line, defundef) - 1) 20534 if (D_is_set[macro]) { 20535 # Preserve the white space surrounding the "#". 20536 print prefix "define", macro P[macro] D[macro] 20537 next 20538 } else { 20539 # Replace #undef with comments. This is necessary, for example, 20540 # in the case of _POSIX_SOURCE, which is predefined and required 20541 # on some systems where configure will not decide to define it. 20542 if (defundef == "undef") { 20543 print "/*", prefix defundef, macro, "*/" 20544 next 20545 } 20546 } 20547} 20548{ print } 20549_ACAWK 20550_ACEOF 20551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20552 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20553fi # test -n "$CONFIG_HEADERS" 20554 20555 20556eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20557shift 20558for ac_tag 20559do 20560 case $ac_tag in 20561 :[FHLC]) ac_mode=$ac_tag; continue;; 20562 esac 20563 case $ac_mode$ac_tag in 20564 :[FHL]*:*);; 20565 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20566 :[FH]-) ac_tag=-:-;; 20567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20568 esac 20569 ac_save_IFS=$IFS 20570 IFS=: 20571 set x $ac_tag 20572 IFS=$ac_save_IFS 20573 shift 20574 ac_file=$1 20575 shift 20576 20577 case $ac_mode in 20578 :L) ac_source=$1;; 20579 :[FH]) 20580 ac_file_inputs= 20581 for ac_f 20582 do 20583 case $ac_f in 20584 -) ac_f="$ac_tmp/stdin";; 20585 *) # Look for the file first in the build tree, then in the source tree 20586 # (if the path is not absolute). The absolute path cannot be DOS-style, 20587 # because $ac_f cannot contain `:'. 20588 test -f "$ac_f" || 20589 case $ac_f in 20590 [\\/$]*) false;; 20591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20592 esac || 20593 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20594 esac 20595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20596 as_fn_append ac_file_inputs " '$ac_f'" 20597 done 20598 20599 # Let's still pretend it is `configure' which instantiates (i.e., don't 20600 # use $as_me), people would be surprised to read: 20601 # /* config.h. Generated by config.status. */ 20602 configure_input='Generated from '` 20603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20604 `' by configure.' 20605 if test x"$ac_file" != x-; then 20606 configure_input="$ac_file. $configure_input" 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20608$as_echo "$as_me: creating $ac_file" >&6;} 20609 fi 20610 # Neutralize special characters interpreted by sed in replacement strings. 20611 case $configure_input in #( 20612 *\&* | *\|* | *\\* ) 20613 ac_sed_conf_input=`$as_echo "$configure_input" | 20614 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20615 *) ac_sed_conf_input=$configure_input;; 20616 esac 20617 20618 case $ac_tag in 20619 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20621 esac 20622 ;; 20623 esac 20624 20625 ac_dir=`$as_dirname -- "$ac_file" || 20626$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20627 X"$ac_file" : 'X\(//\)[^/]' \| \ 20628 X"$ac_file" : 'X\(//\)$' \| \ 20629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20630$as_echo X"$ac_file" | 20631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20632 s//\1/ 20633 q 20634 } 20635 /^X\(\/\/\)[^/].*/{ 20636 s//\1/ 20637 q 20638 } 20639 /^X\(\/\/\)$/{ 20640 s//\1/ 20641 q 20642 } 20643 /^X\(\/\).*/{ 20644 s//\1/ 20645 q 20646 } 20647 s/.*/./; q'` 20648 as_dir="$ac_dir"; as_fn_mkdir_p 20649 ac_builddir=. 20650 20651case "$ac_dir" in 20652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20653*) 20654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20655 # A ".." for each directory in $ac_dir_suffix. 20656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20657 case $ac_top_builddir_sub in 20658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20660 esac ;; 20661esac 20662ac_abs_top_builddir=$ac_pwd 20663ac_abs_builddir=$ac_pwd$ac_dir_suffix 20664# for backward compatibility: 20665ac_top_builddir=$ac_top_build_prefix 20666 20667case $srcdir in 20668 .) # We are building in place. 20669 ac_srcdir=. 20670 ac_top_srcdir=$ac_top_builddir_sub 20671 ac_abs_top_srcdir=$ac_pwd ;; 20672 [\\/]* | ?:[\\/]* ) # Absolute name. 20673 ac_srcdir=$srcdir$ac_dir_suffix; 20674 ac_top_srcdir=$srcdir 20675 ac_abs_top_srcdir=$srcdir ;; 20676 *) # Relative name. 20677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20678 ac_top_srcdir=$ac_top_build_prefix$srcdir 20679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20680esac 20681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20682 20683 20684 case $ac_mode in 20685 :F) 20686 # 20687 # CONFIG_FILE 20688 # 20689 20690 case $INSTALL in 20691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20693 esac 20694 ac_MKDIR_P=$MKDIR_P 20695 case $MKDIR_P in 20696 [\\/$]* | ?:[\\/]* ) ;; 20697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20698 esac 20699_ACEOF 20700 20701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20702# If the template does not know about datarootdir, expand it. 20703# FIXME: This hack should be removed a few years after 2.60. 20704ac_datarootdir_hack=; ac_datarootdir_seen= 20705ac_sed_dataroot=' 20706/datarootdir/ { 20707 p 20708 q 20709} 20710/@datadir@/p 20711/@docdir@/p 20712/@infodir@/p 20713/@localedir@/p 20714/@mandir@/p' 20715case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20716*datarootdir*) ac_datarootdir_seen=yes;; 20717*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20719$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20720_ACEOF 20721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20722 ac_datarootdir_hack=' 20723 s&@datadir@&$datadir&g 20724 s&@docdir@&$docdir&g 20725 s&@infodir@&$infodir&g 20726 s&@localedir@&$localedir&g 20727 s&@mandir@&$mandir&g 20728 s&\\\${datarootdir}&$datarootdir&g' ;; 20729esac 20730_ACEOF 20731 20732# Neutralize VPATH when `$srcdir' = `.'. 20733# Shell code in configure.ac might set extrasub. 20734# FIXME: do we really want to maintain this feature? 20735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20736ac_sed_extra="$ac_vpsub 20737$extrasub 20738_ACEOF 20739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20740:t 20741/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20742s|@configure_input@|$ac_sed_conf_input|;t t 20743s&@top_builddir@&$ac_top_builddir_sub&;t t 20744s&@top_build_prefix@&$ac_top_build_prefix&;t t 20745s&@srcdir@&$ac_srcdir&;t t 20746s&@abs_srcdir@&$ac_abs_srcdir&;t t 20747s&@top_srcdir@&$ac_top_srcdir&;t t 20748s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20749s&@builddir@&$ac_builddir&;t t 20750s&@abs_builddir@&$ac_abs_builddir&;t t 20751s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20752s&@INSTALL@&$ac_INSTALL&;t t 20753s&@MKDIR_P@&$ac_MKDIR_P&;t t 20754$ac_datarootdir_hack 20755" 20756eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20758 20759test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20762 "$ac_tmp/out"`; test -z "$ac_out"; } && 20763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20764which seems to be undefined. Please make sure it is defined" >&5 20765$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20766which seems to be undefined. Please make sure it is defined" >&2;} 20767 20768 rm -f "$ac_tmp/stdin" 20769 case $ac_file in 20770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20772 esac \ 20773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20774 ;; 20775 :H) 20776 # 20777 # CONFIG_HEADER 20778 # 20779 if test x"$ac_file" != x-; then 20780 { 20781 $as_echo "/* $configure_input */" \ 20782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20783 } >"$ac_tmp/config.h" \ 20784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20785 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20787$as_echo "$as_me: $ac_file is unchanged" >&6;} 20788 else 20789 rm -f "$ac_file" 20790 mv "$ac_tmp/config.h" "$ac_file" \ 20791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20792 fi 20793 else 20794 $as_echo "/* $configure_input */" \ 20795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20796 || as_fn_error $? "could not create -" "$LINENO" 5 20797 fi 20798# Compute "$ac_file"'s index in $config_headers. 20799_am_arg="$ac_file" 20800_am_stamp_count=1 20801for _am_header in $config_headers :; do 20802 case $_am_header in 20803 $_am_arg | $_am_arg:* ) 20804 break ;; 20805 * ) 20806 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20807 esac 20808done 20809echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20810$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20811 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20812 X"$_am_arg" : 'X\(//\)$' \| \ 20813 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20814$as_echo X"$_am_arg" | 20815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20816 s//\1/ 20817 q 20818 } 20819 /^X\(\/\/\)[^/].*/{ 20820 s//\1/ 20821 q 20822 } 20823 /^X\(\/\/\)$/{ 20824 s//\1/ 20825 q 20826 } 20827 /^X\(\/\).*/{ 20828 s//\1/ 20829 q 20830 } 20831 s/.*/./; q'`/stamp-h$_am_stamp_count 20832 ;; 20833 20834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20835$as_echo "$as_me: executing $ac_file commands" >&6;} 20836 ;; 20837 esac 20838 20839 20840 case $ac_file$ac_mode in 20841 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20842 # Older Autoconf quotes --file arguments for eval, but not when files 20843 # are listed without --file. Let's play safe and only enable the eval 20844 # if we detect the quoting. 20845 case $CONFIG_FILES in 20846 *\'*) eval set x "$CONFIG_FILES" ;; 20847 *) set x $CONFIG_FILES ;; 20848 esac 20849 shift 20850 for mf 20851 do 20852 # Strip MF so we end up with the name of the file. 20853 mf=`echo "$mf" | sed -e 's/:.*$//'` 20854 # Check whether this is an Automake generated Makefile or not. 20855 # We used to match only the files named 'Makefile.in', but 20856 # some people rename them; so instead we look at the file content. 20857 # Grep'ing the first line is not enough: some people post-process 20858 # each Makefile.in and add a new line on top of each file to say so. 20859 # Grep'ing the whole file is not good either: AIX grep has a line 20860 # limit of 2048, but all sed's we know have understand at least 4000. 20861 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20862 dirpart=`$as_dirname -- "$mf" || 20863$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20864 X"$mf" : 'X\(//\)[^/]' \| \ 20865 X"$mf" : 'X\(//\)$' \| \ 20866 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20867$as_echo X"$mf" | 20868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20869 s//\1/ 20870 q 20871 } 20872 /^X\(\/\/\)[^/].*/{ 20873 s//\1/ 20874 q 20875 } 20876 /^X\(\/\/\)$/{ 20877 s//\1/ 20878 q 20879 } 20880 /^X\(\/\).*/{ 20881 s//\1/ 20882 q 20883 } 20884 s/.*/./; q'` 20885 else 20886 continue 20887 fi 20888 # Extract the definition of DEPDIR, am__include, and am__quote 20889 # from the Makefile without running 'make'. 20890 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20891 test -z "$DEPDIR" && continue 20892 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20893 test -z "$am__include" && continue 20894 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20895 # Find all dependency output files, they are included files with 20896 # $(DEPDIR) in their names. We invoke sed twice because it is the 20897 # simplest approach to changing $(DEPDIR) to its actual value in the 20898 # expansion. 20899 for file in `sed -n " 20900 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20901 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20902 # Make sure the directory exists. 20903 test -f "$dirpart/$file" && continue 20904 fdir=`$as_dirname -- "$file" || 20905$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20906 X"$file" : 'X\(//\)[^/]' \| \ 20907 X"$file" : 'X\(//\)$' \| \ 20908 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20909$as_echo X"$file" | 20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20911 s//\1/ 20912 q 20913 } 20914 /^X\(\/\/\)[^/].*/{ 20915 s//\1/ 20916 q 20917 } 20918 /^X\(\/\/\)$/{ 20919 s//\1/ 20920 q 20921 } 20922 /^X\(\/\).*/{ 20923 s//\1/ 20924 q 20925 } 20926 s/.*/./; q'` 20927 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20928 # echo "creating $dirpart/$file" 20929 echo '# dummy' > "$dirpart/$file" 20930 done 20931 done 20932} 20933 ;; 20934 "libtool":C) 20935 20936 # See if we are running on zsh, and set the options which allow our 20937 # commands through without removal of \ escapes. 20938 if test -n "${ZSH_VERSION+set}" ; then 20939 setopt NO_GLOB_SUBST 20940 fi 20941 20942 cfgfile="${ofile}T" 20943 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20944 $RM "$cfgfile" 20945 20946 cat <<_LT_EOF >> "$cfgfile" 20947#! $SHELL 20948 20949# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20950# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20951# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20952# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20953# 20954# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20955# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20956# Foundation, Inc. 20957# Written by Gordon Matzigkeit, 1996 20958# 20959# This file is part of GNU Libtool. 20960# 20961# GNU Libtool is free software; you can redistribute it and/or 20962# modify it under the terms of the GNU General Public License as 20963# published by the Free Software Foundation; either version 2 of 20964# the License, or (at your option) any later version. 20965# 20966# As a special exception to the GNU General Public License, 20967# if you distribute this file as part of a program or library that 20968# is built using GNU Libtool, you may include this file under the 20969# same distribution terms that you use for the rest of that program. 20970# 20971# GNU Libtool is distributed in the hope that it will be useful, 20972# but WITHOUT ANY WARRANTY; without even the implied warranty of 20973# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20974# GNU General Public License for more details. 20975# 20976# You should have received a copy of the GNU General Public License 20977# along with GNU Libtool; see the file COPYING. If not, a copy 20978# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20979# obtained by writing to the Free Software Foundation, Inc., 20980# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20981 20982 20983# The names of the tagged configurations supported by this script. 20984available_tags="" 20985 20986# ### BEGIN LIBTOOL CONFIG 20987 20988# Which release of libtool.m4 was used? 20989macro_version=$macro_version 20990macro_revision=$macro_revision 20991 20992# Whether or not to build shared libraries. 20993build_libtool_libs=$enable_shared 20994 20995# Whether or not to build static libraries. 20996build_old_libs=$enable_static 20997 20998# What type of objects to build. 20999pic_mode=$pic_mode 21000 21001# Whether or not to optimize for fast installation. 21002fast_install=$enable_fast_install 21003 21004# Shell to use when invoking shell scripts. 21005SHELL=$lt_SHELL 21006 21007# An echo program that protects backslashes. 21008ECHO=$lt_ECHO 21009 21010# The PATH separator for the build system. 21011PATH_SEPARATOR=$lt_PATH_SEPARATOR 21012 21013# The host system. 21014host_alias=$host_alias 21015host=$host 21016host_os=$host_os 21017 21018# The build system. 21019build_alias=$build_alias 21020build=$build 21021build_os=$build_os 21022 21023# A sed program that does not truncate output. 21024SED=$lt_SED 21025 21026# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21027Xsed="\$SED -e 1s/^X//" 21028 21029# A grep program that handles long lines. 21030GREP=$lt_GREP 21031 21032# An ERE matcher. 21033EGREP=$lt_EGREP 21034 21035# A literal string matcher. 21036FGREP=$lt_FGREP 21037 21038# A BSD- or MS-compatible name lister. 21039NM=$lt_NM 21040 21041# Whether we need soft or hard links. 21042LN_S=$lt_LN_S 21043 21044# What is the maximum length of a command? 21045max_cmd_len=$max_cmd_len 21046 21047# Object file suffix (normally "o"). 21048objext=$ac_objext 21049 21050# Executable file suffix (normally ""). 21051exeext=$exeext 21052 21053# whether the shell understands "unset". 21054lt_unset=$lt_unset 21055 21056# turn spaces into newlines. 21057SP2NL=$lt_lt_SP2NL 21058 21059# turn newlines into spaces. 21060NL2SP=$lt_lt_NL2SP 21061 21062# convert \$build file names to \$host format. 21063to_host_file_cmd=$lt_cv_to_host_file_cmd 21064 21065# convert \$build files to toolchain format. 21066to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21067 21068# An object symbol dumper. 21069OBJDUMP=$lt_OBJDUMP 21070 21071# Method to check whether dependent libraries are shared objects. 21072deplibs_check_method=$lt_deplibs_check_method 21073 21074# Command to use when deplibs_check_method = "file_magic". 21075file_magic_cmd=$lt_file_magic_cmd 21076 21077# How to find potential files when deplibs_check_method = "file_magic". 21078file_magic_glob=$lt_file_magic_glob 21079 21080# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21081want_nocaseglob=$lt_want_nocaseglob 21082 21083# DLL creation program. 21084DLLTOOL=$lt_DLLTOOL 21085 21086# Command to associate shared and link libraries. 21087sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21088 21089# The archiver. 21090AR=$lt_AR 21091 21092# Flags to create an archive. 21093AR_FLAGS=$lt_AR_FLAGS 21094 21095# How to feed a file listing to the archiver. 21096archiver_list_spec=$lt_archiver_list_spec 21097 21098# A symbol stripping program. 21099STRIP=$lt_STRIP 21100 21101# Commands used to install an old-style archive. 21102RANLIB=$lt_RANLIB 21103old_postinstall_cmds=$lt_old_postinstall_cmds 21104old_postuninstall_cmds=$lt_old_postuninstall_cmds 21105 21106# Whether to use a lock for old archive extraction. 21107lock_old_archive_extraction=$lock_old_archive_extraction 21108 21109# A C compiler. 21110LTCC=$lt_CC 21111 21112# LTCC compiler flags. 21113LTCFLAGS=$lt_CFLAGS 21114 21115# Take the output of nm and produce a listing of raw symbols and C names. 21116global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21117 21118# Transform the output of nm in a proper C declaration. 21119global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21120 21121# Transform the output of nm in a C name address pair. 21122global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21123 21124# Transform the output of nm in a C name address pair when lib prefix is needed. 21125global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21126 21127# Specify filename containing input files for \$NM. 21128nm_file_list_spec=$lt_nm_file_list_spec 21129 21130# The root where to search for dependent libraries,and in which our libraries should be installed. 21131lt_sysroot=$lt_sysroot 21132 21133# The name of the directory that contains temporary libtool files. 21134objdir=$objdir 21135 21136# Used to examine libraries when file_magic_cmd begins with "file". 21137MAGIC_CMD=$MAGIC_CMD 21138 21139# Must we lock files when doing compilation? 21140need_locks=$lt_need_locks 21141 21142# Manifest tool. 21143MANIFEST_TOOL=$lt_MANIFEST_TOOL 21144 21145# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21146DSYMUTIL=$lt_DSYMUTIL 21147 21148# Tool to change global to local symbols on Mac OS X. 21149NMEDIT=$lt_NMEDIT 21150 21151# Tool to manipulate fat objects and archives on Mac OS X. 21152LIPO=$lt_LIPO 21153 21154# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21155OTOOL=$lt_OTOOL 21156 21157# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21158OTOOL64=$lt_OTOOL64 21159 21160# Old archive suffix (normally "a"). 21161libext=$libext 21162 21163# Shared library suffix (normally ".so"). 21164shrext_cmds=$lt_shrext_cmds 21165 21166# The commands to extract the exported symbol list from a shared archive. 21167extract_expsyms_cmds=$lt_extract_expsyms_cmds 21168 21169# Variables whose values should be saved in libtool wrapper scripts and 21170# restored at link time. 21171variables_saved_for_relink=$lt_variables_saved_for_relink 21172 21173# Do we need the "lib" prefix for modules? 21174need_lib_prefix=$need_lib_prefix 21175 21176# Do we need a version for libraries? 21177need_version=$need_version 21178 21179# Library versioning type. 21180version_type=$version_type 21181 21182# Shared library runtime path variable. 21183runpath_var=$runpath_var 21184 21185# Shared library path variable. 21186shlibpath_var=$shlibpath_var 21187 21188# Is shlibpath searched before the hard-coded library search path? 21189shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21190 21191# Format of library name prefix. 21192libname_spec=$lt_libname_spec 21193 21194# List of archive names. First name is the real one, the rest are links. 21195# The last name is the one that the linker finds with -lNAME 21196library_names_spec=$lt_library_names_spec 21197 21198# The coded name of the library, if different from the real name. 21199soname_spec=$lt_soname_spec 21200 21201# Permission mode override for installation of shared libraries. 21202install_override_mode=$lt_install_override_mode 21203 21204# Command to use after installation of a shared archive. 21205postinstall_cmds=$lt_postinstall_cmds 21206 21207# Command to use after uninstallation of a shared archive. 21208postuninstall_cmds=$lt_postuninstall_cmds 21209 21210# Commands used to finish a libtool library installation in a directory. 21211finish_cmds=$lt_finish_cmds 21212 21213# As "finish_cmds", except a single script fragment to be evaled but 21214# not shown. 21215finish_eval=$lt_finish_eval 21216 21217# Whether we should hardcode library paths into libraries. 21218hardcode_into_libs=$hardcode_into_libs 21219 21220# Compile-time system search path for libraries. 21221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21222 21223# Run-time system search path for libraries. 21224sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21225 21226# Whether dlopen is supported. 21227dlopen_support=$enable_dlopen 21228 21229# Whether dlopen of programs is supported. 21230dlopen_self=$enable_dlopen_self 21231 21232# Whether dlopen of statically linked programs is supported. 21233dlopen_self_static=$enable_dlopen_self_static 21234 21235# Commands to strip libraries. 21236old_striplib=$lt_old_striplib 21237striplib=$lt_striplib 21238 21239 21240# The linker used to build libraries. 21241LD=$lt_LD 21242 21243# How to create reloadable object files. 21244reload_flag=$lt_reload_flag 21245reload_cmds=$lt_reload_cmds 21246 21247# Commands used to build an old-style archive. 21248old_archive_cmds=$lt_old_archive_cmds 21249 21250# A language specific compiler. 21251CC=$lt_compiler 21252 21253# Is the compiler the GNU compiler? 21254with_gcc=$GCC 21255 21256# Compiler flag to turn off builtin functions. 21257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21258 21259# Additional compiler flags for building library objects. 21260pic_flag=$lt_lt_prog_compiler_pic 21261 21262# How to pass a linker flag through the compiler. 21263wl=$lt_lt_prog_compiler_wl 21264 21265# Compiler flag to prevent dynamic linking. 21266link_static_flag=$lt_lt_prog_compiler_static 21267 21268# Does compiler simultaneously support -c and -o options? 21269compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21270 21271# Whether or not to add -lc for building shared libraries. 21272build_libtool_need_lc=$archive_cmds_need_lc 21273 21274# Whether or not to disallow shared libs when runtime libs are static. 21275allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21276 21277# Compiler flag to allow reflexive dlopens. 21278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21279 21280# Compiler flag to generate shared objects directly from archives. 21281whole_archive_flag_spec=$lt_whole_archive_flag_spec 21282 21283# Whether the compiler copes with passing no objects directly. 21284compiler_needs_object=$lt_compiler_needs_object 21285 21286# Create an old-style archive from a shared archive. 21287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21288 21289# Create a temporary old-style archive to link instead of a shared archive. 21290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21291 21292# Commands used to build a shared archive. 21293archive_cmds=$lt_archive_cmds 21294archive_expsym_cmds=$lt_archive_expsym_cmds 21295 21296# Commands used to build a loadable module if different from building 21297# a shared archive. 21298module_cmds=$lt_module_cmds 21299module_expsym_cmds=$lt_module_expsym_cmds 21300 21301# Whether we are building with GNU ld or not. 21302with_gnu_ld=$lt_with_gnu_ld 21303 21304# Flag that allows shared libraries with undefined symbols to be built. 21305allow_undefined_flag=$lt_allow_undefined_flag 21306 21307# Flag that enforces no undefined symbols. 21308no_undefined_flag=$lt_no_undefined_flag 21309 21310# Flag to hardcode \$libdir into a binary during linking. 21311# This must work even if \$libdir does not exist 21312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21313 21314# Whether we need a single "-rpath" flag with a separated argument. 21315hardcode_libdir_separator=$lt_hardcode_libdir_separator 21316 21317# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21318# DIR into the resulting binary. 21319hardcode_direct=$hardcode_direct 21320 21321# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21322# DIR into the resulting binary and the resulting library dependency is 21323# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21324# library is relocated. 21325hardcode_direct_absolute=$hardcode_direct_absolute 21326 21327# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21328# into the resulting binary. 21329hardcode_minus_L=$hardcode_minus_L 21330 21331# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21332# into the resulting binary. 21333hardcode_shlibpath_var=$hardcode_shlibpath_var 21334 21335# Set to "yes" if building a shared library automatically hardcodes DIR 21336# into the library and all subsequent libraries and executables linked 21337# against it. 21338hardcode_automatic=$hardcode_automatic 21339 21340# Set to yes if linker adds runtime paths of dependent libraries 21341# to runtime path list. 21342inherit_rpath=$inherit_rpath 21343 21344# Whether libtool must link a program against all its dependency libraries. 21345link_all_deplibs=$link_all_deplibs 21346 21347# Set to "yes" if exported symbols are required. 21348always_export_symbols=$always_export_symbols 21349 21350# The commands to list exported symbols. 21351export_symbols_cmds=$lt_export_symbols_cmds 21352 21353# Symbols that should not be listed in the preloaded symbols. 21354exclude_expsyms=$lt_exclude_expsyms 21355 21356# Symbols that must always be exported. 21357include_expsyms=$lt_include_expsyms 21358 21359# Commands necessary for linking programs (against libraries) with templates. 21360prelink_cmds=$lt_prelink_cmds 21361 21362# Commands necessary for finishing linking programs. 21363postlink_cmds=$lt_postlink_cmds 21364 21365# Specify filename containing input files. 21366file_list_spec=$lt_file_list_spec 21367 21368# How to hardcode a shared library path into an executable. 21369hardcode_action=$hardcode_action 21370 21371# ### END LIBTOOL CONFIG 21372 21373_LT_EOF 21374 21375 case $host_os in 21376 aix3*) 21377 cat <<\_LT_EOF >> "$cfgfile" 21378# AIX sometimes has problems with the GCC collect2 program. For some 21379# reason, if we set the COLLECT_NAMES environment variable, the problems 21380# vanish in a puff of smoke. 21381if test "X${COLLECT_NAMES+set}" != Xset; then 21382 COLLECT_NAMES= 21383 export COLLECT_NAMES 21384fi 21385_LT_EOF 21386 ;; 21387 esac 21388 21389 21390ltmain="$ac_aux_dir/ltmain.sh" 21391 21392 21393 # We use sed instead of cat because bash on DJGPP gets confused if 21394 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21395 # text mode, it properly converts lines to CR/LF. This bash problem 21396 # is reportedly fixed, but why not run on old versions too? 21397 sed '$q' "$ltmain" >> "$cfgfile" \ 21398 || (rm -f "$cfgfile"; exit 1) 21399 21400 if test x"$xsi_shell" = xyes; then 21401 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21402func_dirname ()\ 21403{\ 21404\ case ${1} in\ 21405\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21406\ * ) func_dirname_result="${3}" ;;\ 21407\ esac\ 21408} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21409 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21411test 0 -eq $? || _lt_function_replace_fail=: 21412 21413 21414 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21415func_basename ()\ 21416{\ 21417\ func_basename_result="${1##*/}"\ 21418} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21419 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21420 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21421test 0 -eq $? || _lt_function_replace_fail=: 21422 21423 21424 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21425func_dirname_and_basename ()\ 21426{\ 21427\ case ${1} in\ 21428\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21429\ * ) func_dirname_result="${3}" ;;\ 21430\ esac\ 21431\ func_basename_result="${1##*/}"\ 21432} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21433 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21435test 0 -eq $? || _lt_function_replace_fail=: 21436 21437 21438 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21439func_stripname ()\ 21440{\ 21441\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21442\ # positional parameters, so assign one to ordinary parameter first.\ 21443\ func_stripname_result=${3}\ 21444\ func_stripname_result=${func_stripname_result#"${1}"}\ 21445\ func_stripname_result=${func_stripname_result%"${2}"}\ 21446} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21447 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21449test 0 -eq $? || _lt_function_replace_fail=: 21450 21451 21452 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21453func_split_long_opt ()\ 21454{\ 21455\ func_split_long_opt_name=${1%%=*}\ 21456\ func_split_long_opt_arg=${1#*=}\ 21457} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21458 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21459 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21460test 0 -eq $? || _lt_function_replace_fail=: 21461 21462 21463 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21464func_split_short_opt ()\ 21465{\ 21466\ func_split_short_opt_arg=${1#??}\ 21467\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21468} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21469 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21471test 0 -eq $? || _lt_function_replace_fail=: 21472 21473 21474 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21475func_lo2o ()\ 21476{\ 21477\ case ${1} in\ 21478\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21479\ *) func_lo2o_result=${1} ;;\ 21480\ esac\ 21481} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21482 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21484test 0 -eq $? || _lt_function_replace_fail=: 21485 21486 21487 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21488func_xform ()\ 21489{\ 21490 func_xform_result=${1%.*}.lo\ 21491} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21492 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21493 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21494test 0 -eq $? || _lt_function_replace_fail=: 21495 21496 21497 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21498func_arith ()\ 21499{\ 21500 func_arith_result=$(( $* ))\ 21501} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21502 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21504test 0 -eq $? || _lt_function_replace_fail=: 21505 21506 21507 sed -e '/^func_len ()$/,/^} # func_len /c\ 21508func_len ()\ 21509{\ 21510 func_len_result=${#1}\ 21511} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21512 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21514test 0 -eq $? || _lt_function_replace_fail=: 21515 21516fi 21517 21518if test x"$lt_shell_append" = xyes; then 21519 sed -e '/^func_append ()$/,/^} # func_append /c\ 21520func_append ()\ 21521{\ 21522 eval "${1}+=\\${2}"\ 21523} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21524 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21526test 0 -eq $? || _lt_function_replace_fail=: 21527 21528 21529 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21530func_append_quoted ()\ 21531{\ 21532\ func_quote_for_eval "${2}"\ 21533\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21534} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21535 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21537test 0 -eq $? || _lt_function_replace_fail=: 21538 21539 21540 # Save a `func_append' function call where possible by direct use of '+=' 21541 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21542 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21544 test 0 -eq $? || _lt_function_replace_fail=: 21545else 21546 # Save a `func_append' function call even when '+=' is not available 21547 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21548 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21550 test 0 -eq $? || _lt_function_replace_fail=: 21551fi 21552 21553if test x"$_lt_function_replace_fail" = x":"; then 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21555$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21556fi 21557 21558 21559 mv -f "$cfgfile" "$ofile" || 21560 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21561 chmod +x "$ofile" 21562 21563 ;; 21564 21565 esac 21566done # for ac_tag 21567 21568 21569as_fn_exit 0 21570_ACEOF 21571ac_clean_files=$ac_clean_files_save 21572 21573test $ac_write_fail = 0 || 21574 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21575 21576 21577# configure is writing to config.log, and then calls config.status. 21578# config.status does its own redirection, appending to config.log. 21579# Unfortunately, on DOS this fails, as config.log is still kept open 21580# by configure, so config.status won't be able to write to it; its 21581# output is simply discarded. So we exec the FD to /dev/null, 21582# effectively closing config.log, so it can be properly (re)opened and 21583# appended to by config.status. When coming back to configure, we 21584# need to make the FD available again. 21585if test "$no_create" != yes; then 21586 ac_cs_success=: 21587 ac_config_status_args= 21588 test "$silent" = yes && 21589 ac_config_status_args="$ac_config_status_args --quiet" 21590 exec 5>/dev/null 21591 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21592 exec 5>>config.log 21593 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21594 # would make configure fail if this is the last instruction. 21595 $ac_cs_success || as_fn_exit 1 21596fi 21597if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21599$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21600fi 21601 21602