configure revision 9d0b5e55
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXmu 1.1.2. 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='libXmu' 633PACKAGE_TARNAME='libXmu' 634PACKAGE_VERSION='1.1.2' 635PACKAGE_STRING='libXmu 1.1.2' 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 680LINTLIBUU 681MAKE_LINT_LIB_FALSE 682MAKE_LINT_LIB_TRUE 683LINTLIB 684LINT_FALSE 685LINT_TRUE 686LINT_FLAGS 687LINT 688XMUU_LIBS 689XMUU_CFLAGS 690XMU_LIBS 691XMU_CFLAGS 692HAVE_STYLESHEETS_FALSE 693HAVE_STYLESHEETS_TRUE 694XSL_STYLESHEET 695STYLESHEET_SRCDIR 696XORG_SGML_PATH 697HAVE_XSLTPROC_FALSE 698HAVE_XSLTPROC_TRUE 699XSLTPROC 700HAVE_FOP_FALSE 701HAVE_FOP_TRUE 702FOP 703HAVE_XMLTO_FALSE 704HAVE_XMLTO_TRUE 705HAVE_XMLTO_TEXT_FALSE 706HAVE_XMLTO_TEXT_TRUE 707XMLTO 708ENABLE_DOCS_FALSE 709ENABLE_DOCS_TRUE 710MAN_SUBSTS 711XORG_MAN_PAGE 712ADMIN_MAN_DIR 713DRIVER_MAN_DIR 714MISC_MAN_DIR 715FILE_MAN_DIR 716LIB_MAN_DIR 717APP_MAN_DIR 718ADMIN_MAN_SUFFIX 719DRIVER_MAN_SUFFIX 720MISC_MAN_SUFFIX 721FILE_MAN_SUFFIX 722LIB_MAN_SUFFIX 723APP_MAN_SUFFIX 724INSTALL_CMD 725PKG_CONFIG 726CHANGELOG_CMD 727STRICT_CFLAGS 728CWARNFLAGS 729BASE_CFLAGS 730CPP 731OTOOL64 732OTOOL 733LIPO 734NMEDIT 735DSYMUTIL 736MANIFEST_TOOL 737RANLIB 738ac_ct_AR 739AR 740DLLTOOL 741OBJDUMP 742LN_S 743NM 744ac_ct_DUMPBIN 745DUMPBIN 746LD 747FGREP 748EGREP 749GREP 750SED 751am__fastdepCC_FALSE 752am__fastdepCC_TRUE 753CCDEPMODE 754am__nodep 755AMDEPBACKSLASH 756AMDEP_FALSE 757AMDEP_TRUE 758am__quote 759am__include 760DEPDIR 761OBJEXT 762EXEEXT 763ac_ct_CC 764CPPFLAGS 765LDFLAGS 766CFLAGS 767CC 768host_os 769host_vendor 770host_cpu 771host 772build_os 773build_vendor 774build_cpu 775build 776LIBTOOL 777AM_BACKSLASH 778AM_DEFAULT_VERBOSITY 779AM_DEFAULT_V 780AM_V 781am__untar 782am__tar 783AMTAR 784am__leading_dot 785SET_MAKE 786AWK 787mkdir_p 788MKDIR_P 789INSTALL_STRIP_PROGRAM 790STRIP 791install_sh 792MAKEINFO 793AUTOHEADER 794AUTOMAKE 795AUTOCONF 796ACLOCAL 797VERSION 798PACKAGE 799CYGPATH_W 800am__isrc 801INSTALL_DATA 802INSTALL_SCRIPT 803INSTALL_PROGRAM 804target_alias 805host_alias 806build_alias 807LIBS 808ECHO_T 809ECHO_N 810ECHO_C 811DEFS 812mandir 813localedir 814libdir 815psdir 816pdfdir 817dvidir 818htmldir 819infodir 820docdir 821oldincludedir 822includedir 823localstatedir 824sharedstatedir 825sysconfdir 826datadir 827datarootdir 828libexecdir 829sbindir 830bindir 831program_transform_name 832prefix 833exec_prefix 834PACKAGE_URL 835PACKAGE_BUGREPORT 836PACKAGE_STRING 837PACKAGE_VERSION 838PACKAGE_TARNAME 839PACKAGE_NAME 840PATH_SEPARATOR 841SHELL' 842ac_subst_files='' 843ac_user_opts=' 844enable_option_checking 845enable_silent_rules 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850enable_dependency_tracking 851with_gnu_ld 852with_sysroot 853enable_libtool_lock 854enable_selective_werror 855enable_strict_compilation 856enable_docs 857with_xmlto 858with_fop 859with_xsltproc 860enable_unix_transport 861enable_tcp_transport 862enable_ipv6 863enable_local_transport 864with_lint 865enable_lint_library 866' 867 ac_precious_vars='build_alias 868host_alias 869target_alias 870CC 871CFLAGS 872LDFLAGS 873LIBS 874CPPFLAGS 875CPP 876PKG_CONFIG 877XMLTO 878FOP 879XSLTPROC 880XMU_CFLAGS 881XMU_LIBS 882XMUU_CFLAGS 883XMUU_LIBS 884LINT 885LINT_FLAGS' 886 887 888# Initialize some variables set by options. 889ac_init_help= 890ac_init_version=false 891ac_unrecognized_opts= 892ac_unrecognized_sep= 893# The variables have the same names as the options, with 894# dashes changed to underlines. 895cache_file=/dev/null 896exec_prefix=NONE 897no_create= 898no_recursion= 899prefix=NONE 900program_prefix=NONE 901program_suffix=NONE 902program_transform_name=s,x,x, 903silent= 904site= 905srcdir= 906verbose= 907x_includes=NONE 908x_libraries=NONE 909 910# Installation directory options. 911# These are left unexpanded so users can "make install exec_prefix=/foo" 912# and all the variables that are supposed to be based on exec_prefix 913# by default will actually change. 914# Use braces instead of parens because sh, perl, etc. also accept them. 915# (The list follows the same order as the GNU Coding Standards.) 916bindir='${exec_prefix}/bin' 917sbindir='${exec_prefix}/sbin' 918libexecdir='${exec_prefix}/libexec' 919datarootdir='${prefix}/share' 920datadir='${datarootdir}' 921sysconfdir='${prefix}/etc' 922sharedstatedir='${prefix}/com' 923localstatedir='${prefix}/var' 924includedir='${prefix}/include' 925oldincludedir='/usr/include' 926docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 927infodir='${datarootdir}/info' 928htmldir='${docdir}' 929dvidir='${docdir}' 930pdfdir='${docdir}' 931psdir='${docdir}' 932libdir='${exec_prefix}/lib' 933localedir='${datarootdir}/locale' 934mandir='${datarootdir}/man' 935 936ac_prev= 937ac_dashdash= 938for ac_option 939do 940 # If the previous option needs an argument, assign it. 941 if test -n "$ac_prev"; then 942 eval $ac_prev=\$ac_option 943 ac_prev= 944 continue 945 fi 946 947 case $ac_option in 948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 949 *=) ac_optarg= ;; 950 *) ac_optarg=yes ;; 951 esac 952 953 # Accept the important Cygnus configure options, so we can diagnose typos. 954 955 case $ac_dashdash$ac_option in 956 --) 957 ac_dashdash=yes ;; 958 959 -bindir | --bindir | --bindi | --bind | --bin | --bi) 960 ac_prev=bindir ;; 961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 962 bindir=$ac_optarg ;; 963 964 -build | --build | --buil | --bui | --bu) 965 ac_prev=build_alias ;; 966 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 967 build_alias=$ac_optarg ;; 968 969 -cache-file | --cache-file | --cache-fil | --cache-fi \ 970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 971 ac_prev=cache_file ;; 972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 974 cache_file=$ac_optarg ;; 975 976 --config-cache | -C) 977 cache_file=config.cache ;; 978 979 -datadir | --datadir | --datadi | --datad) 980 ac_prev=datadir ;; 981 -datadir=* | --datadir=* | --datadi=* | --datad=*) 982 datadir=$ac_optarg ;; 983 984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 985 | --dataroo | --dataro | --datar) 986 ac_prev=datarootdir ;; 987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 989 datarootdir=$ac_optarg ;; 990 991 -disable-* | --disable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error $? "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=no ;; 1006 1007 -docdir | --docdir | --docdi | --doc | --do) 1008 ac_prev=docdir ;; 1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1010 docdir=$ac_optarg ;; 1011 1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1013 ac_prev=dvidir ;; 1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1015 dvidir=$ac_optarg ;; 1016 1017 -enable-* | --enable-*) 1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1019 # Reject names that are not valid shell variable names. 1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1021 as_fn_error $? "invalid feature name: $ac_useropt" 1022 ac_useropt_orig=$ac_useropt 1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1024 case $ac_user_opts in 1025 *" 1026"enable_$ac_useropt" 1027"*) ;; 1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1029 ac_unrecognized_sep=', ';; 1030 esac 1031 eval enable_$ac_useropt=\$ac_optarg ;; 1032 1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1035 | --exec | --exe | --ex) 1036 ac_prev=exec_prefix ;; 1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1039 | --exec=* | --exe=* | --ex=*) 1040 exec_prefix=$ac_optarg ;; 1041 1042 -gas | --gas | --ga | --g) 1043 # Obsolete; use --with-gas. 1044 with_gas=yes ;; 1045 1046 -help | --help | --hel | --he | -h) 1047 ac_init_help=long ;; 1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1049 ac_init_help=recursive ;; 1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1051 ac_init_help=short ;; 1052 1053 -host | --host | --hos | --ho) 1054 ac_prev=host_alias ;; 1055 -host=* | --host=* | --hos=* | --ho=*) 1056 host_alias=$ac_optarg ;; 1057 1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1059 ac_prev=htmldir ;; 1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1061 | --ht=*) 1062 htmldir=$ac_optarg ;; 1063 1064 -includedir | --includedir | --includedi | --included | --include \ 1065 | --includ | --inclu | --incl | --inc) 1066 ac_prev=includedir ;; 1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1068 | --includ=* | --inclu=* | --incl=* | --inc=*) 1069 includedir=$ac_optarg ;; 1070 1071 -infodir | --infodir | --infodi | --infod | --info | --inf) 1072 ac_prev=infodir ;; 1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1074 infodir=$ac_optarg ;; 1075 1076 -libdir | --libdir | --libdi | --libd) 1077 ac_prev=libdir ;; 1078 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1079 libdir=$ac_optarg ;; 1080 1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1082 | --libexe | --libex | --libe) 1083 ac_prev=libexecdir ;; 1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1085 | --libexe=* | --libex=* | --libe=*) 1086 libexecdir=$ac_optarg ;; 1087 1088 -localedir | --localedir | --localedi | --localed | --locale) 1089 ac_prev=localedir ;; 1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1091 localedir=$ac_optarg ;; 1092 1093 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1094 | --localstate | --localstat | --localsta | --localst | --locals) 1095 ac_prev=localstatedir ;; 1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1098 localstatedir=$ac_optarg ;; 1099 1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1101 ac_prev=mandir ;; 1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1103 mandir=$ac_optarg ;; 1104 1105 -nfp | --nfp | --nf) 1106 # Obsolete; use --without-fp. 1107 with_fp=no ;; 1108 1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1110 | --no-cr | --no-c | -n) 1111 no_create=yes ;; 1112 1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1115 no_recursion=yes ;; 1116 1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1119 | --oldin | --oldi | --old | --ol | --o) 1120 ac_prev=oldincludedir ;; 1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1124 oldincludedir=$ac_optarg ;; 1125 1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1127 ac_prev=prefix ;; 1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1129 prefix=$ac_optarg ;; 1130 1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1132 | --program-pre | --program-pr | --program-p) 1133 ac_prev=program_prefix ;; 1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1136 program_prefix=$ac_optarg ;; 1137 1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1139 | --program-suf | --program-su | --program-s) 1140 ac_prev=program_suffix ;; 1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1143 program_suffix=$ac_optarg ;; 1144 1145 -program-transform-name | --program-transform-name \ 1146 | --program-transform-nam | --program-transform-na \ 1147 | --program-transform-n | --program-transform- \ 1148 | --program-transform | --program-transfor \ 1149 | --program-transfo | --program-transf \ 1150 | --program-trans | --program-tran \ 1151 | --progr-tra | --program-tr | --program-t) 1152 ac_prev=program_transform_name ;; 1153 -program-transform-name=* | --program-transform-name=* \ 1154 | --program-transform-nam=* | --program-transform-na=* \ 1155 | --program-transform-n=* | --program-transform-=* \ 1156 | --program-transform=* | --program-transfor=* \ 1157 | --program-transfo=* | --program-transf=* \ 1158 | --program-trans=* | --program-tran=* \ 1159 | --progr-tra=* | --program-tr=* | --program-t=*) 1160 program_transform_name=$ac_optarg ;; 1161 1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1163 ac_prev=pdfdir ;; 1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1165 pdfdir=$ac_optarg ;; 1166 1167 -psdir | --psdir | --psdi | --psd | --ps) 1168 ac_prev=psdir ;; 1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1170 psdir=$ac_optarg ;; 1171 1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1173 | -silent | --silent | --silen | --sile | --sil) 1174 silent=yes ;; 1175 1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1177 ac_prev=sbindir ;; 1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1179 | --sbi=* | --sb=*) 1180 sbindir=$ac_optarg ;; 1181 1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1184 | --sharedst | --shareds | --shared | --share | --shar \ 1185 | --sha | --sh) 1186 ac_prev=sharedstatedir ;; 1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1190 | --sha=* | --sh=*) 1191 sharedstatedir=$ac_optarg ;; 1192 1193 -site | --site | --sit) 1194 ac_prev=site ;; 1195 -site=* | --site=* | --sit=*) 1196 site=$ac_optarg ;; 1197 1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1199 ac_prev=srcdir ;; 1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1201 srcdir=$ac_optarg ;; 1202 1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1204 | --syscon | --sysco | --sysc | --sys | --sy) 1205 ac_prev=sysconfdir ;; 1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1208 sysconfdir=$ac_optarg ;; 1209 1210 -target | --target | --targe | --targ | --tar | --ta | --t) 1211 ac_prev=target_alias ;; 1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1213 target_alias=$ac_optarg ;; 1214 1215 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1216 verbose=yes ;; 1217 1218 -version | --version | --versio | --versi | --vers | -V) 1219 ac_init_version=: ;; 1220 1221 -with-* | --with-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error $? "invalid package name: $ac_useropt" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230"with_$ac_useropt" 1231"*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval with_$ac_useropt=\$ac_optarg ;; 1236 1237 -without-* | --without-*) 1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1239 # Reject names that are not valid shell variable names. 1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1241 as_fn_error $? "invalid package name: $ac_useropt" 1242 ac_useropt_orig=$ac_useropt 1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1244 case $ac_user_opts in 1245 *" 1246"with_$ac_useropt" 1247"*) ;; 1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1249 ac_unrecognized_sep=', ';; 1250 esac 1251 eval with_$ac_useropt=no ;; 1252 1253 --x) 1254 # Obsolete; use --with-x. 1255 with_x=yes ;; 1256 1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1258 | --x-incl | --x-inc | --x-in | --x-i) 1259 ac_prev=x_includes ;; 1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1262 x_includes=$ac_optarg ;; 1263 1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1266 ac_prev=x_libraries ;; 1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1269 x_libraries=$ac_optarg ;; 1270 1271 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1272Try \`$0 --help' for more information" 1273 ;; 1274 1275 *=*) 1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1277 # Reject names that are not valid shell variable names. 1278 case $ac_envvar in #( 1279 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1280 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1281 esac 1282 eval $ac_envvar=\$ac_optarg 1283 export $ac_envvar ;; 1284 1285 *) 1286 # FIXME: should be removed in autoconf 3.0. 1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1291 ;; 1292 1293 esac 1294done 1295 1296if test -n "$ac_prev"; then 1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1298 as_fn_error $? "missing argument to $ac_option" 1299fi 1300 1301if test -n "$ac_unrecognized_opts"; then 1302 case $enable_option_checking in 1303 no) ;; 1304 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1306 esac 1307fi 1308 1309# Check all directory arguments for consistency. 1310for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1311 datadir sysconfdir sharedstatedir localstatedir includedir \ 1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1313 libdir localedir mandir 1314do 1315 eval ac_val=\$$ac_var 1316 # Remove trailing slashes. 1317 case $ac_val in 1318 */ ) 1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1320 eval $ac_var=\$ac_val;; 1321 esac 1322 # Be sure to have absolute directory names. 1323 case $ac_val in 1324 [\\/$]* | ?:[\\/]* ) continue;; 1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1326 esac 1327 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1328done 1329 1330# There might be people who depend on the old broken behavior: `$host' 1331# used to hold the argument of --host etc. 1332# FIXME: To remove some day. 1333build=$build_alias 1334host=$host_alias 1335target=$target_alias 1336 1337# FIXME: To remove some day. 1338if test "x$host_alias" != x; then 1339 if test "x$build_alias" = x; then 1340 cross_compiling=maybe 1341 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1342 If a cross compiler is detected then cross compile mode will be used" >&2 1343 elif test "x$build_alias" != "x$host_alias"; then 1344 cross_compiling=yes 1345 fi 1346fi 1347 1348ac_tool_prefix= 1349test -n "$host_alias" && ac_tool_prefix=$host_alias- 1350 1351test "$silent" = yes && exec 6>/dev/null 1352 1353 1354ac_pwd=`pwd` && test -n "$ac_pwd" && 1355ac_ls_di=`ls -di .` && 1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1357 as_fn_error $? "working directory cannot be determined" 1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1359 as_fn_error $? "pwd does not report name of working directory" 1360 1361 1362# Find the source files, if location was not specified. 1363if test -z "$srcdir"; then 1364 ac_srcdir_defaulted=yes 1365 # Try the directory containing this script, then the parent directory. 1366 ac_confdir=`$as_dirname -- "$as_myself" || 1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1368 X"$as_myself" : 'X\(//\)[^/]' \| \ 1369 X"$as_myself" : 'X\(//\)$' \| \ 1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1371$as_echo X"$as_myself" | 1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\/\)[^/].*/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)$/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\).*/{ 1385 s//\1/ 1386 q 1387 } 1388 s/.*/./; q'` 1389 srcdir=$ac_confdir 1390 if test ! -r "$srcdir/$ac_unique_file"; then 1391 srcdir=.. 1392 fi 1393else 1394 ac_srcdir_defaulted=no 1395fi 1396if test ! -r "$srcdir/$ac_unique_file"; then 1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1399fi 1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1401ac_abs_confdir=`( 1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1403 pwd)` 1404# When building in place, set srcdir=. 1405if test "$ac_abs_confdir" = "$ac_pwd"; then 1406 srcdir=. 1407fi 1408# Remove unnecessary trailing slashes from srcdir. 1409# Double slashes in file names in object file debugging info 1410# mess up M-x gdb in Emacs. 1411case $srcdir in 1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1413esac 1414for ac_var in $ac_precious_vars; do 1415 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1416 eval ac_env_${ac_var}_value=\$${ac_var} 1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1419done 1420 1421# 1422# Report the --help message. 1423# 1424if test "$ac_init_help" = "long"; then 1425 # Omit some internal or obsolete options to make the list less imposing. 1426 # This message is too long to be a string in the A/UX 3.1 sh. 1427 cat <<_ACEOF 1428\`configure' configures libXmu 1.1.2 to adapt to many kinds of systems. 1429 1430Usage: $0 [OPTION]... [VAR=VALUE]... 1431 1432To assign environment variables (e.g., CC, CFLAGS...), specify them as 1433VAR=VALUE. See below for descriptions of some of the useful variables. 1434 1435Defaults for the options are specified in brackets. 1436 1437Configuration: 1438 -h, --help display this help and exit 1439 --help=short display options specific to this package 1440 --help=recursive display the short help of all the included packages 1441 -V, --version display version information and exit 1442 -q, --quiet, --silent do not print \`checking ...' messages 1443 --cache-file=FILE cache test results in FILE [disabled] 1444 -C, --config-cache alias for \`--cache-file=config.cache' 1445 -n, --no-create do not create output files 1446 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1447 1448Installation directories: 1449 --prefix=PREFIX install architecture-independent files in PREFIX 1450 [$ac_default_prefix] 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1452 [PREFIX] 1453 1454By default, \`make install' will install all the files in 1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1456an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1457for instance \`--prefix=\$HOME'. 1458 1459For better control, use the options below. 1460 1461Fine tuning of the installation directories: 1462 --bindir=DIR user executables [EPREFIX/bin] 1463 --sbindir=DIR system admin executables [EPREFIX/sbin] 1464 --libexecdir=DIR program executables [EPREFIX/libexec] 1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1468 --libdir=DIR object code libraries [EPREFIX/lib] 1469 --includedir=DIR C header files [PREFIX/include] 1470 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1473 --infodir=DIR info documentation [DATAROOTDIR/info] 1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1475 --mandir=DIR man documentation [DATAROOTDIR/man] 1476 --docdir=DIR documentation root [DATAROOTDIR/doc/libXmu] 1477 --htmldir=DIR html documentation [DOCDIR] 1478 --dvidir=DIR dvi documentation [DOCDIR] 1479 --pdfdir=DIR pdf documentation [DOCDIR] 1480 --psdir=DIR ps documentation [DOCDIR] 1481_ACEOF 1482 1483 cat <<\_ACEOF 1484 1485Program names: 1486 --program-prefix=PREFIX prepend PREFIX to installed program names 1487 --program-suffix=SUFFIX append SUFFIX to installed program names 1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1489 1490System types: 1491 --build=BUILD configure for building on BUILD [guessed] 1492 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1493_ACEOF 1494fi 1495 1496if test -n "$ac_init_help"; then 1497 case $ac_init_help in 1498 short | recursive ) echo "Configuration of libXmu 1.1.2:";; 1499 esac 1500 cat <<\_ACEOF 1501 1502Optional Features: 1503 --disable-option-checking ignore unrecognized --enable/--with options 1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1506 --enable-silent-rules less verbose build output (undo: "make V=1") 1507 --disable-silent-rules verbose build output (undo: "make V=0") 1508 --enable-shared[=PKGS] build shared libraries [default=yes] 1509 --enable-static[=PKGS] build static libraries [default=yes] 1510 --enable-fast-install[=PKGS] 1511 optimize for fast installation [default=yes] 1512 --enable-dependency-tracking 1513 do not reject slow dependency extractors 1514 --disable-dependency-tracking 1515 speeds up one-time build 1516 --disable-libtool-lock avoid locking (might break parallel builds) 1517 --disable-selective-werror 1518 Turn off selective compiler errors. (default: 1519 enabled) 1520 --enable-strict-compilation 1521 Enable all warnings from compiler and make them 1522 errors (default: disabled) 1523 --enable-docs Enable building the documentation (default: yes) 1524 --enable-unix-transport Enable UNIX domain socket transport 1525 --enable-tcp-transport Enable TCP socket transport 1526 --enable-ipv6 Enable IPv6 support 1527 --enable-local-transport 1528 Enable os-specific local transport 1529 --enable-lint-library Create lint library (default: disabled) 1530 1531Optional Packages: 1532 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1533 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1534 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1535 both] 1536 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1537 --with-sysroot=DIR Search for dependent libraries within DIR 1538 (or the compiler's sysroot if not specified). 1539 --with-xmlto Use xmlto to regenerate documentation (default: 1540 auto) 1541 --with-fop Use fop to regenerate documentation (default: auto) 1542 --with-xsltproc Use xsltproc for the transformation of XML documents 1543 (default: auto) 1544 --with-lint Use a lint-style source code checker (default: 1545 disabled) 1546 1547Some influential environment variables: 1548 CC C compiler command 1549 CFLAGS C compiler flags 1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1551 nonstandard directory <lib dir> 1552 LIBS libraries to pass to the linker, e.g. -l<library> 1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1554 you have headers in a nonstandard directory <include dir> 1555 CPP C preprocessor 1556 PKG_CONFIG path to pkg-config utility 1557 XMLTO Path to xmlto command 1558 FOP Path to fop command 1559 XSLTPROC Path to xsltproc command 1560 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config 1561 XMU_LIBS linker flags for XMU, overriding pkg-config 1562 XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config 1563 XMUU_LIBS linker flags for XMUU, overriding pkg-config 1564 LINT Path to a lint-style command 1565 LINT_FLAGS Flags for the lint-style command 1566 1567Use these variables to override the choices made by `configure' or to help 1568it to find libraries and programs with nonstandard names/locations. 1569 1570Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1571_ACEOF 1572ac_status=$? 1573fi 1574 1575if test "$ac_init_help" = "recursive"; then 1576 # If there are subdirs, report their specific --help. 1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1578 test -d "$ac_dir" || 1579 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1580 continue 1581 ac_builddir=. 1582 1583case "$ac_dir" in 1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585*) 1586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1587 # A ".." for each directory in $ac_dir_suffix. 1588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1589 case $ac_top_builddir_sub in 1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1592 esac ;; 1593esac 1594ac_abs_top_builddir=$ac_pwd 1595ac_abs_builddir=$ac_pwd$ac_dir_suffix 1596# for backward compatibility: 1597ac_top_builddir=$ac_top_build_prefix 1598 1599case $srcdir in 1600 .) # We are building in place. 1601 ac_srcdir=. 1602 ac_top_srcdir=$ac_top_builddir_sub 1603 ac_abs_top_srcdir=$ac_pwd ;; 1604 [\\/]* | ?:[\\/]* ) # Absolute name. 1605 ac_srcdir=$srcdir$ac_dir_suffix; 1606 ac_top_srcdir=$srcdir 1607 ac_abs_top_srcdir=$srcdir ;; 1608 *) # Relative name. 1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1610 ac_top_srcdir=$ac_top_build_prefix$srcdir 1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1612esac 1613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1614 1615 cd "$ac_dir" || { ac_status=$?; continue; } 1616 # Check for guested configure. 1617 if test -f "$ac_srcdir/configure.gnu"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1620 elif test -f "$ac_srcdir/configure"; then 1621 echo && 1622 $SHELL "$ac_srcdir/configure" --help=recursive 1623 else 1624 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1625 fi || ac_status=$? 1626 cd "$ac_pwd" || { ac_status=$?; break; } 1627 done 1628fi 1629 1630test -n "$ac_init_help" && exit $ac_status 1631if $ac_init_version; then 1632 cat <<\_ACEOF 1633libXmu configure 1.1.2 1634generated by GNU Autoconf 2.68 1635 1636Copyright (C) 2010 Free Software Foundation, Inc. 1637This configure script is free software; the Free Software Foundation 1638gives unlimited permission to copy, distribute and modify it. 1639_ACEOF 1640 exit 1641fi 1642 1643## ------------------------ ## 1644## Autoconf initialization. ## 1645## ------------------------ ## 1646 1647# ac_fn_c_try_compile LINENO 1648# -------------------------- 1649# Try to compile conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_c_try_compile () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext 1654 if { { ac_try="$ac_compile" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_compile") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest.$ac_objext; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_compile 1684 1685# ac_fn_c_try_link LINENO 1686# ----------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_link () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 rm -f conftest.$ac_objext conftest$ac_exeext 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { 1708 test -z "$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 } && test -s conftest$ac_exeext && { 1711 test "$cross_compiling" = yes || 1712 $as_test_x conftest$ac_exeext 1713 }; then : 1714 ac_retval=0 1715else 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720fi 1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1723 # interfere with the next link command; also delete a directory that is 1724 # left behind by Apple's compiler. We do this before executing the actions. 1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_link 1730 1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1732# ------------------------------------------------------- 1733# Tests whether HEADER exists and can be compiled using the include files in 1734# INCLUDES, setting the cache variable VAR accordingly. 1735ac_fn_c_check_header_compile () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745$4 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_compile "$LINENO"; then : 1749 eval "$3=yes" 1750else 1751 eval "$3=no" 1752fi 1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754fi 1755eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757$as_echo "$ac_res" >&6; } 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 1760} # ac_fn_c_check_header_compile 1761 1762# ac_fn_c_try_cpp LINENO 1763# ---------------------- 1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1765ac_fn_c_try_cpp () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 if { { ac_try="$ac_cpp conftest.$ac_ext" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1776 ac_status=$? 1777 if test -s conftest.err; then 1778 grep -v '^ *+' conftest.err >conftest.er1 1779 cat conftest.er1 >&5 1780 mv -f conftest.er1 conftest.err 1781 fi 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; } > conftest.i && { 1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1785 test ! -s conftest.err 1786 }; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: failed program was:" >&5 1790sed 's/^/| /' conftest.$ac_ext >&5 1791 1792 ac_retval=1 1793fi 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_cpp 1798 1799# ac_fn_c_try_run LINENO 1800# ---------------------- 1801# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1802# that executables *can* be run. 1803ac_fn_c_try_run () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 if { { ac_try="$ac_link" 1807case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_link") 2>&5 1814 ac_status=$? 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1817 { { case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_try") 2>&5 1824 ac_status=$? 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; }; }; then : 1827 ac_retval=0 1828else 1829 $as_echo "$as_me: program exited with status $ac_status" >&5 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=$ac_status 1834fi 1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 as_fn_set_status $ac_retval 1838 1839} # ac_fn_c_try_run 1840 1841# ac_fn_c_check_func LINENO FUNC VAR 1842# ---------------------------------- 1843# Tests whether FUNC exists, setting the cache variable VAR accordingly 1844ac_fn_c_check_func () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1848$as_echo_n "checking for $2... " >&6; } 1849if eval \${$3+:} false; then : 1850 $as_echo_n "(cached) " >&6 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1856#define $2 innocuous_$2 1857 1858/* System header to define __stub macros and hopefully few prototypes, 1859 which can conflict with char $2 (); below. 1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1861 <limits.h> exists even on freestanding compilers. */ 1862 1863#ifdef __STDC__ 1864# include <limits.h> 1865#else 1866# include <assert.h> 1867#endif 1868 1869#undef $2 1870 1871/* Override any GCC internal prototype to avoid an error. 1872 Use char because int might match the return type of a GCC 1873 builtin and then its argument prototype would still apply. */ 1874#ifdef __cplusplus 1875extern "C" 1876#endif 1877char $2 (); 1878/* The GNU C library defines this for functions which it implements 1879 to always fail with ENOSYS. Some functions are actually named 1880 something starting with __ and the normal name is an alias. */ 1881#if defined __stub_$2 || defined __stub___$2 1882choke me 1883#endif 1884 1885int 1886main () 1887{ 1888return $2 (); 1889 ; 1890 return 0; 1891} 1892_ACEOF 1893if ac_fn_c_try_link "$LINENO"; then : 1894 eval "$3=yes" 1895else 1896 eval "$3=no" 1897fi 1898rm -f core conftest.err conftest.$ac_objext \ 1899 conftest$ac_exeext conftest.$ac_ext 1900fi 1901eval ac_res=\$$3 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903$as_echo "$ac_res" >&6; } 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 1906} # ac_fn_c_check_func 1907 1908# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1909# --------------------------------------------- 1910# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1911# accordingly. 1912ac_fn_c_check_decl () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 as_decl_name=`echo $2|sed 's/ *(.*//'` 1916 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1918$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1919if eval \${$3+:} false; then : 1920 $as_echo_n "(cached) " >&6 1921else 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925int 1926main () 1927{ 1928#ifndef $as_decl_name 1929#ifdef __cplusplus 1930 (void) $as_decl_use; 1931#else 1932 (void) $as_decl_name; 1933#endif 1934#endif 1935 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940if ac_fn_c_try_compile "$LINENO"; then : 1941 eval "$3=yes" 1942else 1943 eval "$3=no" 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946fi 1947eval ac_res=\$$3 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1949$as_echo "$ac_res" >&6; } 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 1952} # ac_fn_c_check_decl 1953 1954# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1955# ---------------------------------------------------- 1956# Tries to find if the field MEMBER exists in type AGGR, after including 1957# INCLUDES, setting cache variable VAR accordingly. 1958ac_fn_c_check_member () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1962$as_echo_n "checking for $2.$3... " >&6; } 1963if eval \${$4+:} false; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968$5 1969int 1970main () 1971{ 1972static $2 ac_aggr; 1973if (ac_aggr.$3) 1974return 0; 1975 ; 1976 return 0; 1977} 1978_ACEOF 1979if ac_fn_c_try_compile "$LINENO"; then : 1980 eval "$4=yes" 1981else 1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1983/* end confdefs.h. */ 1984$5 1985int 1986main () 1987{ 1988static $2 ac_aggr; 1989if (sizeof ac_aggr.$3) 1990return 0; 1991 ; 1992 return 0; 1993} 1994_ACEOF 1995if ac_fn_c_try_compile "$LINENO"; then : 1996 eval "$4=yes" 1997else 1998 eval "$4=no" 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001fi 2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2003fi 2004eval ac_res=\$$4 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006$as_echo "$ac_res" >&6; } 2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2008 2009} # ac_fn_c_check_member 2010 2011# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2012# ------------------------------------------- 2013# Tests whether TYPE exists after having included INCLUDES, setting cache 2014# variable VAR accordingly. 2015ac_fn_c_check_type () 2016{ 2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2019$as_echo_n "checking for $2... " >&6; } 2020if eval \${$3+:} false; then : 2021 $as_echo_n "(cached) " >&6 2022else 2023 eval "$3=no" 2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2025/* end confdefs.h. */ 2026$4 2027int 2028main () 2029{ 2030if (sizeof ($2)) 2031 return 0; 2032 ; 2033 return 0; 2034} 2035_ACEOF 2036if ac_fn_c_try_compile "$LINENO"; then : 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040int 2041main () 2042{ 2043if (sizeof (($2))) 2044 return 0; 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO"; then : 2050 2051else 2052 eval "$3=yes" 2053fi 2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057fi 2058eval ac_res=\$$3 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2060$as_echo "$ac_res" >&6; } 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 2063} # ac_fn_c_check_type 2064cat >config.log <<_ACEOF 2065This file contains any messages produced by compilers while 2066running configure, to aid debugging if configure makes a mistake. 2067 2068It was created by libXmu $as_me 1.1.2, which was 2069generated by GNU Autoconf 2.68. Invocation command line was 2070 2071 $ $0 $@ 2072 2073_ACEOF 2074exec 5>>config.log 2075{ 2076cat <<_ASUNAME 2077## --------- ## 2078## Platform. ## 2079## --------- ## 2080 2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2082uname -m = `(uname -m) 2>/dev/null || echo unknown` 2083uname -r = `(uname -r) 2>/dev/null || echo unknown` 2084uname -s = `(uname -s) 2>/dev/null || echo unknown` 2085uname -v = `(uname -v) 2>/dev/null || echo unknown` 2086 2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2088/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2089 2090/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2091/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2093/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2094/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2095/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2096/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2097 2098_ASUNAME 2099 2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2101for as_dir in $PATH 2102do 2103 IFS=$as_save_IFS 2104 test -z "$as_dir" && as_dir=. 2105 $as_echo "PATH: $as_dir" 2106 done 2107IFS=$as_save_IFS 2108 2109} >&5 2110 2111cat >&5 <<_ACEOF 2112 2113 2114## ----------- ## 2115## Core tests. ## 2116## ----------- ## 2117 2118_ACEOF 2119 2120 2121# Keep a trace of the command line. 2122# Strip out --no-create and --no-recursion so they do not pile up. 2123# Strip out --silent because we don't want to record it for future runs. 2124# Also quote any args containing shell meta-characters. 2125# Make two passes to allow for proper duplicate-argument suppression. 2126ac_configure_args= 2127ac_configure_args0= 2128ac_configure_args1= 2129ac_must_keep_next=false 2130for ac_pass in 1 2 2131do 2132 for ac_arg 2133 do 2134 case $ac_arg in 2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2137 | -silent | --silent | --silen | --sile | --sil) 2138 continue ;; 2139 *\'*) 2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2141 esac 2142 case $ac_pass in 2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2144 2) 2145 as_fn_append ac_configure_args1 " '$ac_arg'" 2146 if test $ac_must_keep_next = true; then 2147 ac_must_keep_next=false # Got value, back to normal. 2148 else 2149 case $ac_arg in 2150 *=* | --config-cache | -C | -disable-* | --disable-* \ 2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2153 | -with-* | --with-* | -without-* | --without-* | --x) 2154 case "$ac_configure_args0 " in 2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2156 esac 2157 ;; 2158 -* ) ac_must_keep_next=true ;; 2159 esac 2160 fi 2161 as_fn_append ac_configure_args " '$ac_arg'" 2162 ;; 2163 esac 2164 done 2165done 2166{ ac_configure_args0=; unset ac_configure_args0;} 2167{ ac_configure_args1=; unset ac_configure_args1;} 2168 2169# When interrupted or exit'd, cleanup temporary files, and complete 2170# config.log. We remove comments because anyway the quotes in there 2171# would cause problems or look ugly. 2172# WARNING: Use '\'' to represent an apostrophe within the trap. 2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2174trap 'exit_status=$? 2175 # Save into config.log some information that might help in debugging. 2176 { 2177 echo 2178 2179 $as_echo "## ---------------- ## 2180## Cache variables. ## 2181## ---------------- ##" 2182 echo 2183 # The following way of writing the cache mishandles newlines in values, 2184( 2185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2186 eval ac_val=\$$ac_var 2187 case $ac_val in #( 2188 *${as_nl}*) 2189 case $ac_var in #( 2190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2191$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2192 esac 2193 case $ac_var in #( 2194 _ | IFS | as_nl) ;; #( 2195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2196 *) { eval $ac_var=; unset $ac_var;} ;; 2197 esac ;; 2198 esac 2199 done 2200 (set) 2>&1 | 2201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2202 *${as_nl}ac_space=\ *) 2203 sed -n \ 2204 "s/'\''/'\''\\\\'\'''\''/g; 2205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2206 ;; #( 2207 *) 2208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2209 ;; 2210 esac | 2211 sort 2212) 2213 echo 2214 2215 $as_echo "## ----------------- ## 2216## Output variables. ## 2217## ----------------- ##" 2218 echo 2219 for ac_var in $ac_subst_vars 2220 do 2221 eval ac_val=\$$ac_var 2222 case $ac_val in 2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2224 esac 2225 $as_echo "$ac_var='\''$ac_val'\''" 2226 done | sort 2227 echo 2228 2229 if test -n "$ac_subst_files"; then 2230 $as_echo "## ------------------- ## 2231## File substitutions. ## 2232## ------------------- ##" 2233 echo 2234 for ac_var in $ac_subst_files 2235 do 2236 eval ac_val=\$$ac_var 2237 case $ac_val in 2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2239 esac 2240 $as_echo "$ac_var='\''$ac_val'\''" 2241 done | sort 2242 echo 2243 fi 2244 2245 if test -s confdefs.h; then 2246 $as_echo "## ----------- ## 2247## confdefs.h. ## 2248## ----------- ##" 2249 echo 2250 cat confdefs.h 2251 echo 2252 fi 2253 test "$ac_signal" != 0 && 2254 $as_echo "$as_me: caught signal $ac_signal" 2255 $as_echo "$as_me: exit $exit_status" 2256 } >&5 2257 rm -f core *.core core.conftest.* && 2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2259 exit $exit_status 2260' 0 2261for ac_signal in 1 2 13 15; do 2262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2263done 2264ac_signal=0 2265 2266# confdefs.h avoids OS command line length limits that DEFS can exceed. 2267rm -f -r conftest* confdefs.h 2268 2269$as_echo "/* confdefs.h */" > confdefs.h 2270 2271# Predefined preprocessor variables. 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_NAME "$PACKAGE_NAME" 2275_ACEOF 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2279_ACEOF 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_VERSION "$PACKAGE_VERSION" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_STRING "$PACKAGE_STRING" 2287_ACEOF 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_URL "$PACKAGE_URL" 2295_ACEOF 2296 2297 2298# Let the site file select an alternate cache file if it wants to. 2299# Prefer an explicitly selected file to automatically selected ones. 2300ac_site_file1=NONE 2301ac_site_file2=NONE 2302if test -n "$CONFIG_SITE"; then 2303 # We do not want a PATH search for config.site. 2304 case $CONFIG_SITE in #(( 2305 -*) ac_site_file1=./$CONFIG_SITE;; 2306 */*) ac_site_file1=$CONFIG_SITE;; 2307 *) ac_site_file1=./$CONFIG_SITE;; 2308 esac 2309elif test "x$prefix" != xNONE; then 2310 ac_site_file1=$prefix/share/config.site 2311 ac_site_file2=$prefix/etc/config.site 2312else 2313 ac_site_file1=$ac_default_prefix/share/config.site 2314 ac_site_file2=$ac_default_prefix/etc/config.site 2315fi 2316for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2317do 2318 test "x$ac_site_file" = xNONE && continue 2319 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2321$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2322 sed 's/^/| /' "$ac_site_file" >&5 2323 . "$ac_site_file" \ 2324 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2326as_fn_error $? "failed to load site script $ac_site_file 2327See \`config.log' for more details" "$LINENO" 5; } 2328 fi 2329done 2330 2331if test -r "$cache_file"; then 2332 # Some versions of bash will fail to source /dev/null (special files 2333 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2336$as_echo "$as_me: loading cache $cache_file" >&6;} 2337 case $cache_file in 2338 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2339 *) . "./$cache_file";; 2340 esac 2341 fi 2342else 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2344$as_echo "$as_me: creating cache $cache_file" >&6;} 2345 >$cache_file 2346fi 2347 2348# Check that the precious variables saved in the cache have kept the same 2349# value. 2350ac_cache_corrupted=false 2351for ac_var in $ac_precious_vars; do 2352 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2353 eval ac_new_set=\$ac_env_${ac_var}_set 2354 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2355 eval ac_new_val=\$ac_env_${ac_var}_value 2356 case $ac_old_set,$ac_new_set in 2357 set,) 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2359$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2360 ac_cache_corrupted=: ;; 2361 ,set) 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2363$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2364 ac_cache_corrupted=: ;; 2365 ,);; 2366 *) 2367 if test "x$ac_old_val" != "x$ac_new_val"; then 2368 # differences in whitespace do not lead to failure. 2369 ac_old_val_w=`echo x $ac_old_val` 2370 ac_new_val_w=`echo x $ac_new_val` 2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2373$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2374 ac_cache_corrupted=: 2375 else 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2377$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2378 eval $ac_var=\$ac_old_val 2379 fi 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2381$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2383$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2384 fi;; 2385 esac 2386 # Pass precious variables to config.status. 2387 if test "$ac_new_set" = set; then 2388 case $ac_new_val in 2389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2390 *) ac_arg=$ac_var=$ac_new_val ;; 2391 esac 2392 case " $ac_configure_args " in 2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2394 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2395 esac 2396 fi 2397done 2398if $ac_cache_corrupted; then 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2402$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2403 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2404fi 2405## -------------------- ## 2406## Main body of script. ## 2407## -------------------- ## 2408 2409ac_ext=c 2410ac_cpp='$CPP $CPPFLAGS' 2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2413ac_compiler_gnu=$ac_cv_c_compiler_gnu 2414 2415 2416 2417ac_config_headers="$ac_config_headers config.h" 2418 2419 2420# Initialize Automake 2421am__api_version='1.14' 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='libXmu' 2936 VERSION='1.1.2' 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# POSIX will say in a future version that running "rm -f" with no argument 2988# is OK; and we want to be able to make that assumption in our Makefile 2989# recipes. So use an aggressive probe to check that the usage we want is 2990# actually supported "in the wild" to an acceptable degree. 2991# See automake bug#10828. 2992# To make any issue more visible, cause the running configure to be aborted 2993# by default if the 'rm' program in use doesn't match our expectations; the 2994# user can still override this though. 2995if rm -f && rm -fr && rm -rf; then : OK; else 2996 cat >&2 <<'END' 2997Oops! 2998 2999Your 'rm' program seems unable to run without file operands specified 3000on the command line, even when the '-f' option is present. This is contrary 3001to the behaviour of most rm programs out there, and not conforming with 3002the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3003 3004Please tell bug-automake@gnu.org about your system, including the value 3005of your $PATH and any error possibly output before this message. This 3006can help us improve future automake versions. 3007 3008END 3009 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3010 echo 'Configuration will proceed anyway, since you have set the' >&2 3011 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3012 echo >&2 3013 else 3014 cat >&2 <<'END' 3015Aborting the configuration process, to ensure you take notice of the issue. 3016 3017You can download and install GNU coreutils to get an 'rm' implementation 3018that behaves properly: <http://www.gnu.org/software/coreutils/>. 3019 3020If you want to complete the configuration process using your problematic 3021'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3022to "yes", and re-run configure. 3023 3024END 3025 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3026 fi 3027fi 3028 3029# Initialize libtool 3030case `pwd` in 3031 *\ * | *\ *) 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3033$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3034esac 3035 3036 3037 3038macro_version='2.4.2' 3039macro_revision='1.3337' 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053ltmain="$ac_aux_dir/ltmain.sh" 3054 3055# Make sure we can run config.sub. 3056$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3057 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3058 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3060$as_echo_n "checking build system type... " >&6; } 3061if ${ac_cv_build+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 ac_build_alias=$build_alias 3065test "x$ac_build_alias" = x && 3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3067test "x$ac_build_alias" = x && 3068 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3069ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3070 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3071 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3074$as_echo "$ac_cv_build" >&6; } 3075case $ac_cv_build in 3076*-*-*) ;; 3077*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3078esac 3079build=$ac_cv_build 3080ac_save_IFS=$IFS; IFS='-' 3081set x $ac_cv_build 3082shift 3083build_cpu=$1 3084build_vendor=$2 3085shift; shift 3086# Remember, the first character of IFS is used to create $*, 3087# except with old shells: 3088build_os=$* 3089IFS=$ac_save_IFS 3090case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3091 3092 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3094$as_echo_n "checking host system type... " >&6; } 3095if ${ac_cv_host+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if test "x$host_alias" = x; then 3099 ac_cv_host=$ac_cv_build 3100else 3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3103fi 3104 3105fi 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3107$as_echo "$ac_cv_host" >&6; } 3108case $ac_cv_host in 3109*-*-*) ;; 3110*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3111esac 3112host=$ac_cv_host 3113ac_save_IFS=$IFS; IFS='-' 3114set x $ac_cv_host 3115shift 3116host_cpu=$1 3117host_vendor=$2 3118shift; shift 3119# Remember, the first character of IFS is used to create $*, 3120# except with old shells: 3121host_os=$* 3122IFS=$ac_save_IFS 3123case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3124 3125 3126# Backslashify metacharacters that are still active within 3127# double-quoted strings. 3128sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3129 3130# Same as above, but do not quote variable references. 3131double_quote_subst='s/\(["`\\]\)/\\\1/g' 3132 3133# Sed substitution to delay expansion of an escaped shell variable in a 3134# double_quote_subst'ed string. 3135delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3136 3137# Sed substitution to delay expansion of an escaped single quote. 3138delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3139 3140# Sed substitution to avoid accidental globbing in evaled expressions 3141no_glob_subst='s/\*/\\\*/g' 3142 3143ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3144ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3146 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3148$as_echo_n "checking how to print strings... " >&6; } 3149# Test print first, because it will be a builtin if present. 3150if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3151 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3152 ECHO='print -r --' 3153elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3154 ECHO='printf %s\n' 3155else 3156 # Use this function as a fallback that always works. 3157 func_fallback_echo () 3158 { 3159 eval 'cat <<_LTECHO_EOF 3160$1 3161_LTECHO_EOF' 3162 } 3163 ECHO='func_fallback_echo' 3164fi 3165 3166# func_echo_all arg... 3167# Invoke $ECHO with all args, space-separated. 3168func_echo_all () 3169{ 3170 $ECHO "" 3171} 3172 3173case "$ECHO" in 3174 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3175$as_echo "printf" >&6; } ;; 3176 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3177$as_echo "print -r" >&6; } ;; 3178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3179$as_echo "cat" >&6; } ;; 3180esac 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195DEPDIR="${am__leading_dot}deps" 3196 3197ac_config_commands="$ac_config_commands depfiles" 3198 3199 3200am_make=${MAKE-make} 3201cat > confinc << 'END' 3202am__doit: 3203 @echo this is the am__doit target 3204.PHONY: am__doit 3205END 3206# If we don't find an include directive, just comment out the code. 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3208$as_echo_n "checking for style of include used by $am_make... " >&6; } 3209am__include="#" 3210am__quote= 3211_am_result=none 3212# First try GNU make style include. 3213echo "include confinc" > confmf 3214# Ignore all kinds of additional output from 'make'. 3215case `$am_make -s -f confmf 2> /dev/null` in #( 3216*the\ am__doit\ target*) 3217 am__include=include 3218 am__quote= 3219 _am_result=GNU 3220 ;; 3221esac 3222# Now try BSD make style include. 3223if test "$am__include" = "#"; then 3224 echo '.include "confinc"' > confmf 3225 case `$am_make -s -f confmf 2> /dev/null` in #( 3226 *the\ am__doit\ target*) 3227 am__include=.include 3228 am__quote="\"" 3229 _am_result=BSD 3230 ;; 3231 esac 3232fi 3233 3234 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3236$as_echo "$_am_result" >&6; } 3237rm -f confinc confmf 3238 3239# Check whether --enable-dependency-tracking was given. 3240if test "${enable_dependency_tracking+set}" = set; then : 3241 enableval=$enable_dependency_tracking; 3242fi 3243 3244if test "x$enable_dependency_tracking" != xno; then 3245 am_depcomp="$ac_aux_dir/depcomp" 3246 AMDEPBACKSLASH='\' 3247 am__nodep='_no' 3248fi 3249 if test "x$enable_dependency_tracking" != xno; then 3250 AMDEP_TRUE= 3251 AMDEP_FALSE='#' 3252else 3253 AMDEP_TRUE='#' 3254 AMDEP_FALSE= 3255fi 3256 3257 3258ac_ext=c 3259ac_cpp='$CPP $CPPFLAGS' 3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3262ac_compiler_gnu=$ac_cv_c_compiler_gnu 3263if test -n "$ac_tool_prefix"; then 3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3265set dummy ${ac_tool_prefix}gcc; ac_word=$2 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267$as_echo_n "checking for $ac_word... " >&6; } 3268if ${ac_cv_prog_CC+:} false; then : 3269 $as_echo_n "(cached) " >&6 3270else 3271 if test -n "$CC"; then 3272 ac_cv_prog_CC="$CC" # Let the user override the test. 3273else 3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275for as_dir in $PATH 3276do 3277 IFS=$as_save_IFS 3278 test -z "$as_dir" && as_dir=. 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3281 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285done 3286 done 3287IFS=$as_save_IFS 3288 3289fi 3290fi 3291CC=$ac_cv_prog_CC 3292if test -n "$CC"; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3294$as_echo "$CC" >&6; } 3295else 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297$as_echo "no" >&6; } 3298fi 3299 3300 3301fi 3302if test -z "$ac_cv_prog_CC"; then 3303 ac_ct_CC=$CC 3304 # Extract the first word of "gcc", so it can be a program name with args. 3305set dummy gcc; ac_word=$2 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3307$as_echo_n "checking for $ac_word... " >&6; } 3308if ${ac_cv_prog_ac_ct_CC+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 if test -n "$ac_ct_CC"; then 3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3313else 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3321 ac_cv_prog_ac_ct_CC="gcc" 3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3323 break 2 3324 fi 3325done 3326 done 3327IFS=$as_save_IFS 3328 3329fi 3330fi 3331ac_ct_CC=$ac_cv_prog_ac_ct_CC 3332if test -n "$ac_ct_CC"; then 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3334$as_echo "$ac_ct_CC" >&6; } 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338fi 3339 3340 if test "x$ac_ct_CC" = x; then 3341 CC="" 3342 else 3343 case $cross_compiling:$ac_tool_warned in 3344yes:) 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3347ac_tool_warned=yes ;; 3348esac 3349 CC=$ac_ct_CC 3350 fi 3351else 3352 CC="$ac_cv_prog_CC" 3353fi 3354 3355if test -z "$CC"; then 3356 if test -n "$ac_tool_prefix"; then 3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3358set dummy ${ac_tool_prefix}cc; ac_word=$2 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360$as_echo_n "checking for $ac_word... " >&6; } 3361if ${ac_cv_prog_CC+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 if test -n "$CC"; then 3365 ac_cv_prog_CC="$CC" # Let the user override the test. 3366else 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 ac_cv_prog_CC="${ac_tool_prefix}cc" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382fi 3383fi 3384CC=$ac_cv_prog_CC 3385if test -n "$CC"; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3387$as_echo "$CC" >&6; } 3388else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390$as_echo "no" >&6; } 3391fi 3392 3393 3394 fi 3395fi 3396if test -z "$CC"; then 3397 # Extract the first word of "cc", so it can be a program name with args. 3398set dummy cc; ac_word=$2 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3400$as_echo_n "checking for $ac_word... " >&6; } 3401if ${ac_cv_prog_CC+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 if test -n "$CC"; then 3405 ac_cv_prog_CC="$CC" # Let the user override the test. 3406else 3407 ac_prog_rejected=no 3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3409for as_dir in $PATH 3410do 3411 IFS=$as_save_IFS 3412 test -z "$as_dir" && as_dir=. 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3416 ac_prog_rejected=yes 3417 continue 3418 fi 3419 ac_cv_prog_CC="cc" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423done 3424 done 3425IFS=$as_save_IFS 3426 3427if test $ac_prog_rejected = yes; then 3428 # We found a bogon in the path, so make sure we never use it. 3429 set dummy $ac_cv_prog_CC 3430 shift 3431 if test $# != 0; then 3432 # We chose a different compiler from the bogus one. 3433 # However, it has the same basename, so the bogon will be chosen 3434 # first if we set CC to just the basename; use the full file name. 3435 shift 3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3437 fi 3438fi 3439fi 3440fi 3441CC=$ac_cv_prog_CC 3442if test -n "$CC"; then 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3444$as_echo "$CC" >&6; } 3445else 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3447$as_echo "no" >&6; } 3448fi 3449 3450 3451fi 3452if test -z "$CC"; then 3453 if test -n "$ac_tool_prefix"; then 3454 for ac_prog in cl.exe 3455 do 3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3457set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3459$as_echo_n "checking for $ac_word... " >&6; } 3460if ${ac_cv_prog_CC+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 if test -n "$CC"; then 3464 ac_cv_prog_CC="$CC" # Let the user override the test. 3465else 3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3467for as_dir in $PATH 3468do 3469 IFS=$as_save_IFS 3470 test -z "$as_dir" && as_dir=. 3471 for ac_exec_ext in '' $ac_executable_extensions; do 3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477done 3478 done 3479IFS=$as_save_IFS 3480 3481fi 3482fi 3483CC=$ac_cv_prog_CC 3484if test -n "$CC"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3486$as_echo "$CC" >&6; } 3487else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489$as_echo "no" >&6; } 3490fi 3491 3492 3493 test -n "$CC" && break 3494 done 3495fi 3496if test -z "$CC"; then 3497 ac_ct_CC=$CC 3498 for ac_prog in cl.exe 3499do 3500 # Extract the first word of "$ac_prog", so it can be a program name with args. 3501set dummy $ac_prog; ac_word=$2 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3503$as_echo_n "checking for $ac_word... " >&6; } 3504if ${ac_cv_prog_ac_ct_CC+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 if test -n "$ac_ct_CC"; then 3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3509else 3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511for as_dir in $PATH 3512do 3513 IFS=$as_save_IFS 3514 test -z "$as_dir" && as_dir=. 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3517 ac_cv_prog_ac_ct_CC="$ac_prog" 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521done 3522 done 3523IFS=$as_save_IFS 3524 3525fi 3526fi 3527ac_ct_CC=$ac_cv_prog_ac_ct_CC 3528if test -n "$ac_ct_CC"; then 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3530$as_echo "$ac_ct_CC" >&6; } 3531else 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533$as_echo "no" >&6; } 3534fi 3535 3536 3537 test -n "$ac_ct_CC" && break 3538done 3539 3540 if test "x$ac_ct_CC" = x; then 3541 CC="" 3542 else 3543 case $cross_compiling:$ac_tool_warned in 3544yes:) 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3547ac_tool_warned=yes ;; 3548esac 3549 CC=$ac_ct_CC 3550 fi 3551fi 3552 3553fi 3554 3555 3556test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558as_fn_error $? "no acceptable C compiler found in \$PATH 3559See \`config.log' for more details" "$LINENO" 5; } 3560 3561# Provide some information about the compiler. 3562$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3563set X $ac_compile 3564ac_compiler=$2 3565for ac_option in --version -v -V -qversion; do 3566 { { ac_try="$ac_compiler $ac_option >&5" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3574 ac_status=$? 3575 if test -s conftest.err; then 3576 sed '10a\ 3577... rest of stderr output deleted ... 3578 10q' conftest.err >conftest.er1 3579 cat conftest.er1 >&5 3580 fi 3581 rm -f conftest.er1 conftest.err 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; } 3584done 3585 3586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597ac_clean_files_save=$ac_clean_files 3598ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3599# Try to create an executable without -o first, disregard a.out. 3600# It will help us diagnose broken compilers, and finding out an intuition 3601# of exeext. 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3603$as_echo_n "checking whether the C compiler works... " >&6; } 3604ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3605 3606# The possible output files: 3607ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3608 3609ac_rmfiles= 3610for ac_file in $ac_files 3611do 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3614 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3615 esac 3616done 3617rm -f $ac_rmfiles 3618 3619if { { ac_try="$ac_link_default" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625$as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_link_default") 2>&5 3627 ac_status=$? 3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3629 test $ac_status = 0; }; then : 3630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3631# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3632# in a Makefile. We should not override ac_cv_exeext if it was cached, 3633# so that the user can short-circuit this test for compilers unknown to 3634# Autoconf. 3635for ac_file in $ac_files '' 3636do 3637 test -f "$ac_file" || continue 3638 case $ac_file in 3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3640 ;; 3641 [ab].out ) 3642 # We found the default executable, but exeext='' is most 3643 # certainly right. 3644 break;; 3645 *.* ) 3646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3647 then :; else 3648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3649 fi 3650 # We set ac_cv_exeext here because the later test for it is not 3651 # safe: cross compilers may not add the suffix if given an `-o' 3652 # argument, so we may need to know it at that point already. 3653 # Even if this section looks crufty: it has the advantage of 3654 # actually working. 3655 break;; 3656 * ) 3657 break;; 3658 esac 3659done 3660test "$ac_cv_exeext" = no && ac_cv_exeext= 3661 3662else 3663 ac_file='' 3664fi 3665if test -z "$ac_file"; then : 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667$as_echo "no" >&6; } 3668$as_echo "$as_me: failed program was:" >&5 3669sed 's/^/| /' conftest.$ac_ext >&5 3670 3671{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3673as_fn_error 77 "C compiler cannot create executables 3674See \`config.log' for more details" "$LINENO" 5; } 3675else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3677$as_echo "yes" >&6; } 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3680$as_echo_n "checking for C compiler default output file name... " >&6; } 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3682$as_echo "$ac_file" >&6; } 3683ac_exeext=$ac_cv_exeext 3684 3685rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3686ac_clean_files=$ac_clean_files_save 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3688$as_echo_n "checking for suffix of executables... " >&6; } 3689if { { ac_try="$ac_link" 3690case "(($ac_try" in 3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3692 *) ac_try_echo=$ac_try;; 3693esac 3694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3695$as_echo "$ac_try_echo"; } >&5 3696 (eval "$ac_link") 2>&5 3697 ac_status=$? 3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3699 test $ac_status = 0; }; then : 3700 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3701# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3702# work properly (i.e., refer to `conftest.exe'), while it won't with 3703# `rm'. 3704for ac_file in conftest.exe conftest conftest.*; do 3705 test -f "$ac_file" || continue 3706 case $ac_file in 3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3709 break;; 3710 * ) break;; 3711 esac 3712done 3713else 3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3716as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3717See \`config.log' for more details" "$LINENO" 5; } 3718fi 3719rm -f conftest conftest$ac_cv_exeext 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3721$as_echo "$ac_cv_exeext" >&6; } 3722 3723rm -f conftest.$ac_ext 3724EXEEXT=$ac_cv_exeext 3725ac_exeext=$EXEEXT 3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727/* end confdefs.h. */ 3728#include <stdio.h> 3729int 3730main () 3731{ 3732FILE *f = fopen ("conftest.out", "w"); 3733 return ferror (f) || fclose (f) != 0; 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739ac_clean_files="$ac_clean_files conftest.out" 3740# Check that the compiler produces executables we can run. If not, either 3741# the compiler is broken, or we cross compile. 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3743$as_echo_n "checking whether we are cross compiling... " >&6; } 3744if test "$cross_compiling" != yes; then 3745 { { ac_try="$ac_link" 3746case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749esac 3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3751$as_echo "$ac_try_echo"; } >&5 3752 (eval "$ac_link") 2>&5 3753 ac_status=$? 3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3755 test $ac_status = 0; } 3756 if { ac_try='./conftest$ac_cv_exeext' 3757 { { case "(($ac_try" in 3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 *) ac_try_echo=$ac_try;; 3760esac 3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762$as_echo "$ac_try_echo"; } >&5 3763 (eval "$ac_try") 2>&5 3764 ac_status=$? 3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 test $ac_status = 0; }; }; then 3767 cross_compiling=no 3768 else 3769 if test "$cross_compiling" = maybe; then 3770 cross_compiling=yes 3771 else 3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3774as_fn_error $? "cannot run C compiled programs. 3775If you meant to cross compile, use \`--host'. 3776See \`config.log' for more details" "$LINENO" 5; } 3777 fi 3778 fi 3779fi 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3781$as_echo "$cross_compiling" >&6; } 3782 3783rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3784ac_clean_files=$ac_clean_files_save 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3786$as_echo_n "checking for suffix of object files... " >&6; } 3787if ${ac_cv_objext+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791/* end confdefs.h. */ 3792 3793int 3794main () 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801rm -f conftest.o conftest.obj 3802if { { ac_try="$ac_compile" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808$as_echo "$ac_try_echo"; } >&5 3809 (eval "$ac_compile") 2>&5 3810 ac_status=$? 3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3812 test $ac_status = 0; }; then : 3813 for ac_file in conftest.o conftest.obj conftest.*; do 3814 test -f "$ac_file" || continue; 3815 case $ac_file in 3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3818 break;; 3819 esac 3820done 3821else 3822 $as_echo "$as_me: failed program was:" >&5 3823sed 's/^/| /' conftest.$ac_ext >&5 3824 3825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "cannot compute suffix of object files: cannot compile 3828See \`config.log' for more details" "$LINENO" 5; } 3829fi 3830rm -f conftest.$ac_cv_objext conftest.$ac_ext 3831fi 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3833$as_echo "$ac_cv_objext" >&6; } 3834OBJEXT=$ac_cv_objext 3835ac_objext=$OBJEXT 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3837$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3838if ${ac_cv_c_compiler_gnu+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843 3844int 3845main () 3846{ 3847#ifndef __GNUC__ 3848 choke me 3849#endif 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855if ac_fn_c_try_compile "$LINENO"; then : 3856 ac_compiler_gnu=yes 3857else 3858 ac_compiler_gnu=no 3859fi 3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3861ac_cv_c_compiler_gnu=$ac_compiler_gnu 3862 3863fi 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3865$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3866if test $ac_compiler_gnu = yes; then 3867 GCC=yes 3868else 3869 GCC= 3870fi 3871ac_test_CFLAGS=${CFLAGS+set} 3872ac_save_CFLAGS=$CFLAGS 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3874$as_echo_n "checking whether $CC accepts -g... " >&6; } 3875if ${ac_cv_prog_cc_g+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 ac_save_c_werror_flag=$ac_c_werror_flag 3879 ac_c_werror_flag=yes 3880 ac_cv_prog_cc_g=no 3881 CFLAGS="-g" 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883/* end confdefs.h. */ 3884 3885int 3886main () 3887{ 3888 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893if ac_fn_c_try_compile "$LINENO"; then : 3894 ac_cv_prog_cc_g=yes 3895else 3896 CFLAGS="" 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO"; then : 3909 3910else 3911 ac_c_werror_flag=$ac_save_c_werror_flag 3912 CFLAGS="-g" 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916int 3917main () 3918{ 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924if ac_fn_c_try_compile "$LINENO"; then : 3925 ac_cv_prog_cc_g=yes 3926fi 3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3928fi 3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3930fi 3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3932 ac_c_werror_flag=$ac_save_c_werror_flag 3933fi 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3935$as_echo "$ac_cv_prog_cc_g" >&6; } 3936if test "$ac_test_CFLAGS" = set; then 3937 CFLAGS=$ac_save_CFLAGS 3938elif test $ac_cv_prog_cc_g = yes; then 3939 if test "$GCC" = yes; then 3940 CFLAGS="-g -O2" 3941 else 3942 CFLAGS="-g" 3943 fi 3944else 3945 if test "$GCC" = yes; then 3946 CFLAGS="-O2" 3947 else 3948 CFLAGS= 3949 fi 3950fi 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3952$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3953if ${ac_cv_prog_cc_c89+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 ac_cv_prog_cc_c89=no 3957ac_save_CC=$CC 3958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959/* end confdefs.h. */ 3960#include <stdarg.h> 3961#include <stdio.h> 3962#include <sys/types.h> 3963#include <sys/stat.h> 3964/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3965struct buf { int x; }; 3966FILE * (*rcsopen) (struct buf *, struct stat *, int); 3967static char *e (p, i) 3968 char **p; 3969 int i; 3970{ 3971 return p[i]; 3972} 3973static char *f (char * (*g) (char **, int), char **p, ...) 3974{ 3975 char *s; 3976 va_list v; 3977 va_start (v,p); 3978 s = g (p, va_arg (v,int)); 3979 va_end (v); 3980 return s; 3981} 3982 3983/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3984 function prototypes and stuff, but not '\xHH' hex character constants. 3985 These don't provoke an error unfortunately, instead are silently treated 3986 as 'x'. The following induces an error, until -std is added to get 3987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3988 array size at least. It's necessary to write '\x00'==0 to get something 3989 that's true only with -std. */ 3990int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3991 3992/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3993 inside strings and character constants. */ 3994#define FOO(x) 'x' 3995int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3996 3997int test (int i, double x); 3998struct s1 {int (*f) (int a);}; 3999struct s2 {int (*f) (double a);}; 4000int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4001int argc; 4002char **argv; 4003int 4004main () 4005{ 4006return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4013do 4014 CC="$ac_save_CC $ac_arg" 4015 if ac_fn_c_try_compile "$LINENO"; then : 4016 ac_cv_prog_cc_c89=$ac_arg 4017fi 4018rm -f core conftest.err conftest.$ac_objext 4019 test "x$ac_cv_prog_cc_c89" != "xno" && break 4020done 4021rm -f conftest.$ac_ext 4022CC=$ac_save_CC 4023 4024fi 4025# AC_CACHE_VAL 4026case "x$ac_cv_prog_cc_c89" in 4027 x) 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4029$as_echo "none needed" >&6; } ;; 4030 xno) 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4032$as_echo "unsupported" >&6; } ;; 4033 *) 4034 CC="$CC $ac_cv_prog_cc_c89" 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4036$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4037esac 4038if test "x$ac_cv_prog_cc_c89" != xno; then : 4039 4040fi 4041 4042ac_ext=c 4043ac_cpp='$CPP $CPPFLAGS' 4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4046ac_compiler_gnu=$ac_cv_c_compiler_gnu 4047 4048ac_ext=c 4049ac_cpp='$CPP $CPPFLAGS' 4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4052ac_compiler_gnu=$ac_cv_c_compiler_gnu 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4054$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4055if ${am_cv_prog_cc_c_o+:} false; then : 4056 $as_echo_n "(cached) " >&6 4057else 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060 4061int 4062main () 4063{ 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069 # Make sure it works both with $CC and with simple cc. 4070 # Following AC_PROG_CC_C_O, we do the test twice because some 4071 # compilers refuse to overwrite an existing .o file with -o, 4072 # though they will create one. 4073 am_cv_prog_cc_c_o=yes 4074 for am_i in 1 2; do 4075 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4076 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4077 ac_status=$? 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); } \ 4080 && test -f conftest2.$ac_objext; then 4081 : OK 4082 else 4083 am_cv_prog_cc_c_o=no 4084 break 4085 fi 4086 done 4087 rm -f core conftest* 4088 unset am_i 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4091$as_echo "$am_cv_prog_cc_c_o" >&6; } 4092if test "$am_cv_prog_cc_c_o" != yes; then 4093 # Losing compiler, so override with the script. 4094 # FIXME: It is wrong to rewrite CC. 4095 # But if we don't then we get into trouble of one sort or another. 4096 # A longer-term fix would be to have automake use am__CC in this case, 4097 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4098 CC="$am_aux_dir/compile $CC" 4099fi 4100ac_ext=c 4101ac_cpp='$CPP $CPPFLAGS' 4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4104ac_compiler_gnu=$ac_cv_c_compiler_gnu 4105 4106 4107depcc="$CC" am_compiler_list= 4108 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4110$as_echo_n "checking dependency style of $depcc... " >&6; } 4111if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113else 4114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4115 # We make a subdir and do the tests there. Otherwise we can end up 4116 # making bogus files that we don't know about and never remove. For 4117 # instance it was reported that on HP-UX the gcc test will end up 4118 # making a dummy file named 'D' -- because '-MD' means "put the output 4119 # in D". 4120 rm -rf conftest.dir 4121 mkdir conftest.dir 4122 # Copy depcomp to subdir because otherwise we won't find it if we're 4123 # using a relative directory. 4124 cp "$am_depcomp" conftest.dir 4125 cd conftest.dir 4126 # We will build objects and dependencies in a subdirectory because 4127 # it helps to detect inapplicable dependency modes. For instance 4128 # both Tru64's cc and ICC support -MD to output dependencies as a 4129 # side effect of compilation, but ICC will put the dependencies in 4130 # the current directory while Tru64 will put them in the object 4131 # directory. 4132 mkdir sub 4133 4134 am_cv_CC_dependencies_compiler_type=none 4135 if test "$am_compiler_list" = ""; then 4136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4137 fi 4138 am__universal=false 4139 case " $depcc " in #( 4140 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4141 esac 4142 4143 for depmode in $am_compiler_list; do 4144 # Setup a source with many dependencies, because some compilers 4145 # like to wrap large dependency lists on column 80 (with \), and 4146 # we should not choose a depcomp mode which is confused by this. 4147 # 4148 # We need to recreate these files for each test, as the compiler may 4149 # overwrite some of them when testing with obscure command lines. 4150 # This happens at least with the AIX C compiler. 4151 : > sub/conftest.c 4152 for i in 1 2 3 4 5 6; do 4153 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4154 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4155 # Solaris 10 /bin/sh. 4156 echo '/* dummy */' > sub/conftst$i.h 4157 done 4158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4159 4160 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4161 # mode. It turns out that the SunPro C++ compiler does not properly 4162 # handle '-M -o', and we need to detect this. Also, some Intel 4163 # versions had trouble with output in subdirs. 4164 am__obj=sub/conftest.${OBJEXT-o} 4165 am__minus_obj="-o $am__obj" 4166 case $depmode in 4167 gcc) 4168 # This depmode causes a compiler race in universal mode. 4169 test "$am__universal" = false || continue 4170 ;; 4171 nosideeffect) 4172 # After this tag, mechanisms are not by side-effect, so they'll 4173 # only be used when explicitly requested. 4174 if test "x$enable_dependency_tracking" = xyes; then 4175 continue 4176 else 4177 break 4178 fi 4179 ;; 4180 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4181 # This compiler won't grok '-c -o', but also, the minuso test has 4182 # not run yet. These depmodes are late enough in the game, and 4183 # so weak that their functioning should not be impacted. 4184 am__obj=conftest.${OBJEXT-o} 4185 am__minus_obj= 4186 ;; 4187 none) break ;; 4188 esac 4189 if depmode=$depmode \ 4190 source=sub/conftest.c object=$am__obj \ 4191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4193 >/dev/null 2>conftest.err && 4194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4198 # icc doesn't choke on unknown options, it will just issue warnings 4199 # or remarks (even with -Werror). So we grep stderr for any message 4200 # that says an option was ignored or not supported. 4201 # When given -MP, icc 7.0 and 7.1 complain thusly: 4202 # icc: Command line warning: ignoring option '-M'; no argument required 4203 # The diagnosis changed in icc 8.0: 4204 # icc: Command line remark: option '-MP' not supported 4205 if (grep 'ignoring option' conftest.err || 4206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4207 am_cv_CC_dependencies_compiler_type=$depmode 4208 break 4209 fi 4210 fi 4211 done 4212 4213 cd .. 4214 rm -rf conftest.dir 4215else 4216 am_cv_CC_dependencies_compiler_type=none 4217fi 4218 4219fi 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4221$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4223 4224 if 4225 test "x$enable_dependency_tracking" != xno \ 4226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4227 am__fastdepCC_TRUE= 4228 am__fastdepCC_FALSE='#' 4229else 4230 am__fastdepCC_TRUE='#' 4231 am__fastdepCC_FALSE= 4232fi 4233 4234 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4236$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4237if ${ac_cv_path_SED+:} false; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4241 for ac_i in 1 2 3 4 5 6 7; do 4242 ac_script="$ac_script$as_nl$ac_script" 4243 done 4244 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4245 { ac_script=; unset ac_script;} 4246 if test -z "$SED"; then 4247 ac_path_SED_found=false 4248 # Loop through the user's path and test for each of PROGNAME-LIST 4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4250for as_dir in $PATH 4251do 4252 IFS=$as_save_IFS 4253 test -z "$as_dir" && as_dir=. 4254 for ac_prog in sed gsed; do 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4257 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4258# Check for GNU ac_path_SED and select it if it is found. 4259 # Check for GNU $ac_path_SED 4260case `"$ac_path_SED" --version 2>&1` in 4261*GNU*) 4262 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4263*) 4264 ac_count=0 4265 $as_echo_n 0123456789 >"conftest.in" 4266 while : 4267 do 4268 cat "conftest.in" "conftest.in" >"conftest.tmp" 4269 mv "conftest.tmp" "conftest.in" 4270 cp "conftest.in" "conftest.nl" 4271 $as_echo '' >> "conftest.nl" 4272 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4274 as_fn_arith $ac_count + 1 && ac_count=$as_val 4275 if test $ac_count -gt ${ac_path_SED_max-0}; then 4276 # Best one so far, save it but keep looking for a better one 4277 ac_cv_path_SED="$ac_path_SED" 4278 ac_path_SED_max=$ac_count 4279 fi 4280 # 10*(2^10) chars as input seems more than enough 4281 test $ac_count -gt 10 && break 4282 done 4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4284esac 4285 4286 $ac_path_SED_found && break 3 4287 done 4288 done 4289 done 4290IFS=$as_save_IFS 4291 if test -z "$ac_cv_path_SED"; then 4292 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4293 fi 4294else 4295 ac_cv_path_SED=$SED 4296fi 4297 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4300$as_echo "$ac_cv_path_SED" >&6; } 4301 SED="$ac_cv_path_SED" 4302 rm -f conftest.sed 4303 4304test -z "$SED" && SED=sed 4305Xsed="$SED -e 1s/^X//" 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4318$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4319if ${ac_cv_path_GREP+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 if test -z "$GREP"; then 4323 ac_path_GREP_found=false 4324 # Loop through the user's path and test for each of PROGNAME-LIST 4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_prog in grep ggrep; do 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4333 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4334# Check for GNU ac_path_GREP and select it if it is found. 4335 # Check for GNU $ac_path_GREP 4336case `"$ac_path_GREP" --version 2>&1` in 4337*GNU*) 4338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4339*) 4340 ac_count=0 4341 $as_echo_n 0123456789 >"conftest.in" 4342 while : 4343 do 4344 cat "conftest.in" "conftest.in" >"conftest.tmp" 4345 mv "conftest.tmp" "conftest.in" 4346 cp "conftest.in" "conftest.nl" 4347 $as_echo 'GREP' >> "conftest.nl" 4348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4350 as_fn_arith $ac_count + 1 && ac_count=$as_val 4351 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4352 # Best one so far, save it but keep looking for a better one 4353 ac_cv_path_GREP="$ac_path_GREP" 4354 ac_path_GREP_max=$ac_count 4355 fi 4356 # 10*(2^10) chars as input seems more than enough 4357 test $ac_count -gt 10 && break 4358 done 4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4360esac 4361 4362 $ac_path_GREP_found && break 3 4363 done 4364 done 4365 done 4366IFS=$as_save_IFS 4367 if test -z "$ac_cv_path_GREP"; then 4368 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4369 fi 4370else 4371 ac_cv_path_GREP=$GREP 4372fi 4373 4374fi 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4376$as_echo "$ac_cv_path_GREP" >&6; } 4377 GREP="$ac_cv_path_GREP" 4378 4379 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4381$as_echo_n "checking for egrep... " >&6; } 4382if ${ac_cv_path_EGREP+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4386 then ac_cv_path_EGREP="$GREP -E" 4387 else 4388 if test -z "$EGREP"; then 4389 ac_path_EGREP_found=false 4390 # Loop through the user's path and test for each of PROGNAME-LIST 4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4393do 4394 IFS=$as_save_IFS 4395 test -z "$as_dir" && as_dir=. 4396 for ac_prog in egrep; do 4397 for ac_exec_ext in '' $ac_executable_extensions; do 4398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4400# Check for GNU ac_path_EGREP and select it if it is found. 4401 # Check for GNU $ac_path_EGREP 4402case `"$ac_path_EGREP" --version 2>&1` in 4403*GNU*) 4404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4405*) 4406 ac_count=0 4407 $as_echo_n 0123456789 >"conftest.in" 4408 while : 4409 do 4410 cat "conftest.in" "conftest.in" >"conftest.tmp" 4411 mv "conftest.tmp" "conftest.in" 4412 cp "conftest.in" "conftest.nl" 4413 $as_echo 'EGREP' >> "conftest.nl" 4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4416 as_fn_arith $ac_count + 1 && ac_count=$as_val 4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4418 # Best one so far, save it but keep looking for a better one 4419 ac_cv_path_EGREP="$ac_path_EGREP" 4420 ac_path_EGREP_max=$ac_count 4421 fi 4422 # 10*(2^10) chars as input seems more than enough 4423 test $ac_count -gt 10 && break 4424 done 4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4426esac 4427 4428 $ac_path_EGREP_found && break 3 4429 done 4430 done 4431 done 4432IFS=$as_save_IFS 4433 if test -z "$ac_cv_path_EGREP"; then 4434 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4435 fi 4436else 4437 ac_cv_path_EGREP=$EGREP 4438fi 4439 4440 fi 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4443$as_echo "$ac_cv_path_EGREP" >&6; } 4444 EGREP="$ac_cv_path_EGREP" 4445 4446 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4448$as_echo_n "checking for fgrep... " >&6; } 4449if ${ac_cv_path_FGREP+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4453 then ac_cv_path_FGREP="$GREP -F" 4454 else 4455 if test -z "$FGREP"; then 4456 ac_path_FGREP_found=false 4457 # Loop through the user's path and test for each of PROGNAME-LIST 4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4460do 4461 IFS=$as_save_IFS 4462 test -z "$as_dir" && as_dir=. 4463 for ac_prog in fgrep; do 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4466 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4467# Check for GNU ac_path_FGREP and select it if it is found. 4468 # Check for GNU $ac_path_FGREP 4469case `"$ac_path_FGREP" --version 2>&1` in 4470*GNU*) 4471 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4472*) 4473 ac_count=0 4474 $as_echo_n 0123456789 >"conftest.in" 4475 while : 4476 do 4477 cat "conftest.in" "conftest.in" >"conftest.tmp" 4478 mv "conftest.tmp" "conftest.in" 4479 cp "conftest.in" "conftest.nl" 4480 $as_echo 'FGREP' >> "conftest.nl" 4481 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4483 as_fn_arith $ac_count + 1 && ac_count=$as_val 4484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4485 # Best one so far, save it but keep looking for a better one 4486 ac_cv_path_FGREP="$ac_path_FGREP" 4487 ac_path_FGREP_max=$ac_count 4488 fi 4489 # 10*(2^10) chars as input seems more than enough 4490 test $ac_count -gt 10 && break 4491 done 4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4493esac 4494 4495 $ac_path_FGREP_found && break 3 4496 done 4497 done 4498 done 4499IFS=$as_save_IFS 4500 if test -z "$ac_cv_path_FGREP"; then 4501 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4502 fi 4503else 4504 ac_cv_path_FGREP=$FGREP 4505fi 4506 4507 fi 4508fi 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4510$as_echo "$ac_cv_path_FGREP" >&6; } 4511 FGREP="$ac_cv_path_FGREP" 4512 4513 4514test -z "$GREP" && GREP=grep 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534# Check whether --with-gnu-ld was given. 4535if test "${with_gnu_ld+set}" = set; then : 4536 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4537else 4538 with_gnu_ld=no 4539fi 4540 4541ac_prog=ld 4542if test "$GCC" = yes; then 4543 # Check if gcc -print-prog-name=ld gives a path. 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4545$as_echo_n "checking for ld used by $CC... " >&6; } 4546 case $host in 4547 *-*-mingw*) 4548 # gcc leaves a trailing carriage return which upsets mingw 4549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4550 *) 4551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4552 esac 4553 case $ac_prog in 4554 # Accept absolute paths. 4555 [\\/]* | ?:[\\/]*) 4556 re_direlt='/[^/][^/]*/\.\./' 4557 # Canonicalize the pathname of ld 4558 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4559 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4560 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4561 done 4562 test -z "$LD" && LD="$ac_prog" 4563 ;; 4564 "") 4565 # If it fails, then pretend we aren't using GCC. 4566 ac_prog=ld 4567 ;; 4568 *) 4569 # If it is relative, then search for the first ld in PATH. 4570 with_gnu_ld=unknown 4571 ;; 4572 esac 4573elif test "$with_gnu_ld" = yes; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4575$as_echo_n "checking for GNU ld... " >&6; } 4576else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4578$as_echo_n "checking for non-GNU ld... " >&6; } 4579fi 4580if ${lt_cv_path_LD+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 if test -z "$LD"; then 4584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4585 for ac_dir in $PATH; do 4586 IFS="$lt_save_ifs" 4587 test -z "$ac_dir" && ac_dir=. 4588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4589 lt_cv_path_LD="$ac_dir/$ac_prog" 4590 # Check to see if the program is GNU ld. I'd rather use --version, 4591 # but apparently some variants of GNU ld only accept -v. 4592 # Break only if it was the GNU/non-GNU ld that we prefer. 4593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4594 *GNU* | *'with BFD'*) 4595 test "$with_gnu_ld" != no && break 4596 ;; 4597 *) 4598 test "$with_gnu_ld" != yes && break 4599 ;; 4600 esac 4601 fi 4602 done 4603 IFS="$lt_save_ifs" 4604else 4605 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4606fi 4607fi 4608 4609LD="$lt_cv_path_LD" 4610if test -n "$LD"; then 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4612$as_echo "$LD" >&6; } 4613else 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615$as_echo "no" >&6; } 4616fi 4617test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4619$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4620if ${lt_cv_prog_gnu_ld+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4624case `$LD -v 2>&1 </dev/null` in 4625*GNU* | *'with BFD'*) 4626 lt_cv_prog_gnu_ld=yes 4627 ;; 4628*) 4629 lt_cv_prog_gnu_ld=no 4630 ;; 4631esac 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4634$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4635with_gnu_ld=$lt_cv_prog_gnu_ld 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4646$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4647if ${lt_cv_path_NM+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 if test -n "$NM"; then 4651 # Let the user override the test. 4652 lt_cv_path_NM="$NM" 4653else 4654 lt_nm_to_check="${ac_tool_prefix}nm" 4655 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4656 lt_nm_to_check="$lt_nm_to_check nm" 4657 fi 4658 for lt_tmp_nm in $lt_nm_to_check; do 4659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4660 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4661 IFS="$lt_save_ifs" 4662 test -z "$ac_dir" && ac_dir=. 4663 tmp_nm="$ac_dir/$lt_tmp_nm" 4664 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4665 # Check to see if the nm accepts a BSD-compat flag. 4666 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4667 # nm: unknown option "B" ignored 4668 # Tru64's nm complains that /dev/null is an invalid object file 4669 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4670 */dev/null* | *'Invalid file or object type'*) 4671 lt_cv_path_NM="$tmp_nm -B" 4672 break 4673 ;; 4674 *) 4675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4676 */dev/null*) 4677 lt_cv_path_NM="$tmp_nm -p" 4678 break 4679 ;; 4680 *) 4681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4682 continue # so that we can try to find one that supports BSD flags 4683 ;; 4684 esac 4685 ;; 4686 esac 4687 fi 4688 done 4689 IFS="$lt_save_ifs" 4690 done 4691 : ${lt_cv_path_NM=no} 4692fi 4693fi 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4695$as_echo "$lt_cv_path_NM" >&6; } 4696if test "$lt_cv_path_NM" != "no"; then 4697 NM="$lt_cv_path_NM" 4698else 4699 # Didn't find any BSD compatible name lister, look for dumpbin. 4700 if test -n "$DUMPBIN"; then : 4701 # Let the user override the test. 4702 else 4703 if test -n "$ac_tool_prefix"; then 4704 for ac_prog in dumpbin "link -dump" 4705 do 4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4707set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4709$as_echo_n "checking for $ac_word... " >&6; } 4710if ${ac_cv_prog_DUMPBIN+:} false; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 if test -n "$DUMPBIN"; then 4714 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4715else 4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4717for as_dir in $PATH 4718do 4719 IFS=$as_save_IFS 4720 test -z "$as_dir" && as_dir=. 4721 for ac_exec_ext in '' $ac_executable_extensions; do 4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4723 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4725 break 2 4726 fi 4727done 4728 done 4729IFS=$as_save_IFS 4730 4731fi 4732fi 4733DUMPBIN=$ac_cv_prog_DUMPBIN 4734if test -n "$DUMPBIN"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4736$as_echo "$DUMPBIN" >&6; } 4737else 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4739$as_echo "no" >&6; } 4740fi 4741 4742 4743 test -n "$DUMPBIN" && break 4744 done 4745fi 4746if test -z "$DUMPBIN"; then 4747 ac_ct_DUMPBIN=$DUMPBIN 4748 for ac_prog in dumpbin "link -dump" 4749do 4750 # Extract the first word of "$ac_prog", so it can be a program name with args. 4751set dummy $ac_prog; ac_word=$2 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4753$as_echo_n "checking for $ac_word... " >&6; } 4754if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 if test -n "$ac_ct_DUMPBIN"; then 4758 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4759else 4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4761for as_dir in $PATH 4762do 4763 IFS=$as_save_IFS 4764 test -z "$as_dir" && as_dir=. 4765 for ac_exec_ext in '' $ac_executable_extensions; do 4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4767 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4769 break 2 4770 fi 4771done 4772 done 4773IFS=$as_save_IFS 4774 4775fi 4776fi 4777ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4778if test -n "$ac_ct_DUMPBIN"; then 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4780$as_echo "$ac_ct_DUMPBIN" >&6; } 4781else 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4783$as_echo "no" >&6; } 4784fi 4785 4786 4787 test -n "$ac_ct_DUMPBIN" && break 4788done 4789 4790 if test "x$ac_ct_DUMPBIN" = x; then 4791 DUMPBIN=":" 4792 else 4793 case $cross_compiling:$ac_tool_warned in 4794yes:) 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4797ac_tool_warned=yes ;; 4798esac 4799 DUMPBIN=$ac_ct_DUMPBIN 4800 fi 4801fi 4802 4803 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4804 *COFF*) 4805 DUMPBIN="$DUMPBIN -symbols" 4806 ;; 4807 *) 4808 DUMPBIN=: 4809 ;; 4810 esac 4811 fi 4812 4813 if test "$DUMPBIN" != ":"; then 4814 NM="$DUMPBIN" 4815 fi 4816fi 4817test -z "$NM" && NM=nm 4818 4819 4820 4821 4822 4823 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4825$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4826if ${lt_cv_nm_interface+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 lt_cv_nm_interface="BSD nm" 4830 echo "int some_variable = 0;" > conftest.$ac_ext 4831 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4832 (eval "$ac_compile" 2>conftest.err) 4833 cat conftest.err >&5 4834 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4836 cat conftest.err >&5 4837 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4838 cat conftest.out >&5 4839 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4840 lt_cv_nm_interface="MS dumpbin" 4841 fi 4842 rm -f conftest* 4843fi 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4845$as_echo "$lt_cv_nm_interface" >&6; } 4846 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4848$as_echo_n "checking whether ln -s works... " >&6; } 4849LN_S=$as_ln_s 4850if test "$LN_S" = "ln -s"; then 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4852$as_echo "yes" >&6; } 4853else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4855$as_echo "no, using $LN_S" >&6; } 4856fi 4857 4858# find the maximum length of command line arguments 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4860$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4861if ${lt_cv_sys_max_cmd_len+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 i=0 4865 teststring="ABCD" 4866 4867 case $build_os in 4868 msdosdjgpp*) 4869 # On DJGPP, this test can blow up pretty badly due to problems in libc 4870 # (any single argument exceeding 2000 bytes causes a buffer overrun 4871 # during glob expansion). Even if it were fixed, the result of this 4872 # check would be larger than it should be. 4873 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4874 ;; 4875 4876 gnu*) 4877 # Under GNU Hurd, this test is not required because there is 4878 # no limit to the length of command line arguments. 4879 # Libtool will interpret -1 as no limit whatsoever 4880 lt_cv_sys_max_cmd_len=-1; 4881 ;; 4882 4883 cygwin* | mingw* | cegcc*) 4884 # On Win9x/ME, this test blows up -- it succeeds, but takes 4885 # about 5 minutes as the teststring grows exponentially. 4886 # Worse, since 9x/ME are not pre-emptively multitasking, 4887 # you end up with a "frozen" computer, even though with patience 4888 # the test eventually succeeds (with a max line length of 256k). 4889 # Instead, let's just punt: use the minimum linelength reported by 4890 # all of the supported platforms: 8192 (on NT/2K/XP). 4891 lt_cv_sys_max_cmd_len=8192; 4892 ;; 4893 4894 mint*) 4895 # On MiNT this can take a long time and run out of memory. 4896 lt_cv_sys_max_cmd_len=8192; 4897 ;; 4898 4899 amigaos*) 4900 # On AmigaOS with pdksh, this test takes hours, literally. 4901 # So we just punt and use a minimum line length of 8192. 4902 lt_cv_sys_max_cmd_len=8192; 4903 ;; 4904 4905 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4906 # This has been around since 386BSD, at least. Likely further. 4907 if test -x /sbin/sysctl; then 4908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4909 elif test -x /usr/sbin/sysctl; then 4910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4911 else 4912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4913 fi 4914 # And add a safety zone 4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4917 ;; 4918 4919 interix*) 4920 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4921 lt_cv_sys_max_cmd_len=196608 4922 ;; 4923 4924 os2*) 4925 # The test takes a long time on OS/2. 4926 lt_cv_sys_max_cmd_len=8192 4927 ;; 4928 4929 osf*) 4930 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4931 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4932 # nice to cause kernel panics so lets avoid the loop below. 4933 # First set a reasonable default. 4934 lt_cv_sys_max_cmd_len=16384 4935 # 4936 if test -x /sbin/sysconfig; then 4937 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4938 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4939 esac 4940 fi 4941 ;; 4942 sco3.2v5*) 4943 lt_cv_sys_max_cmd_len=102400 4944 ;; 4945 sysv5* | sco5v6* | sysv4.2uw2*) 4946 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4947 if test -n "$kargmax"; then 4948 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4949 else 4950 lt_cv_sys_max_cmd_len=32768 4951 fi 4952 ;; 4953 *) 4954 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4955 if test -n "$lt_cv_sys_max_cmd_len"; then 4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4958 else 4959 # Make teststring a little bigger before we do anything with it. 4960 # a 1K string should be a reasonable start. 4961 for i in 1 2 3 4 5 6 7 8 ; do 4962 teststring=$teststring$teststring 4963 done 4964 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4965 # If test is not a shell built-in, we'll probably end up computing a 4966 # maximum length that is only half of the actual maximum length, but 4967 # we can't tell. 4968 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4969 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4970 test $i != 17 # 1/2 MB should be enough 4971 do 4972 i=`expr $i + 1` 4973 teststring=$teststring$teststring 4974 done 4975 # Only check the string length outside the loop. 4976 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4977 teststring= 4978 # Add a significant safety factor because C++ compilers can tack on 4979 # massive amounts of additional arguments before passing them to the 4980 # linker. It appears as though 1/2 is a usable value. 4981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4982 fi 4983 ;; 4984 esac 4985 4986fi 4987 4988if test -n $lt_cv_sys_max_cmd_len ; then 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4990$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4991else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4993$as_echo "none" >&6; } 4994fi 4995max_cmd_len=$lt_cv_sys_max_cmd_len 4996 4997 4998 4999 5000 5001 5002: ${CP="cp -f"} 5003: ${MV="mv -f"} 5004: ${RM="rm -f"} 5005 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5007$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5008# Try some XSI features 5009xsi_shell=no 5010( _lt_dummy="a/b/c" 5011 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5012 = c,a/b,b/c, \ 5013 && eval 'test $(( 1 + 1 )) -eq 2 \ 5014 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5015 && xsi_shell=yes 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5017$as_echo "$xsi_shell" >&6; } 5018 5019 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5021$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5022lt_shell_append=no 5023( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5024 >/dev/null 2>&1 \ 5025 && lt_shell_append=yes 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5027$as_echo "$lt_shell_append" >&6; } 5028 5029 5030if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5031 lt_unset=unset 5032else 5033 lt_unset=false 5034fi 5035 5036 5037 5038 5039 5040# test EBCDIC or ASCII 5041case `echo X|tr X '\101'` in 5042 A) # ASCII based system 5043 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5044 lt_SP2NL='tr \040 \012' 5045 lt_NL2SP='tr \015\012 \040\040' 5046 ;; 5047 *) # EBCDIC based system 5048 lt_SP2NL='tr \100 \n' 5049 lt_NL2SP='tr \r\n \100\100' 5050 ;; 5051esac 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5062$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5063if ${lt_cv_to_host_file_cmd+:} false; then : 5064 $as_echo_n "(cached) " >&6 5065else 5066 case $host in 5067 *-*-mingw* ) 5068 case $build in 5069 *-*-mingw* ) # actually msys 5070 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5071 ;; 5072 *-*-cygwin* ) 5073 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5074 ;; 5075 * ) # otherwise, assume *nix 5076 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5077 ;; 5078 esac 5079 ;; 5080 *-*-cygwin* ) 5081 case $build in 5082 *-*-mingw* ) # actually msys 5083 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5084 ;; 5085 *-*-cygwin* ) 5086 lt_cv_to_host_file_cmd=func_convert_file_noop 5087 ;; 5088 * ) # otherwise, assume *nix 5089 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5090 ;; 5091 esac 5092 ;; 5093 * ) # unhandled hosts (and "normal" native builds) 5094 lt_cv_to_host_file_cmd=func_convert_file_noop 5095 ;; 5096esac 5097 5098fi 5099 5100to_host_file_cmd=$lt_cv_to_host_file_cmd 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5102$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5103 5104 5105 5106 5107 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5109$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5110if ${lt_cv_to_tool_file_cmd+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 #assume ordinary cross tools, or native build. 5114lt_cv_to_tool_file_cmd=func_convert_file_noop 5115case $host in 5116 *-*-mingw* ) 5117 case $build in 5118 *-*-mingw* ) # actually msys 5119 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5120 ;; 5121 esac 5122 ;; 5123esac 5124 5125fi 5126 5127to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5129$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5130 5131 5132 5133 5134 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5136$as_echo_n "checking for $LD option to reload object files... " >&6; } 5137if ${lt_cv_ld_reload_flag+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 lt_cv_ld_reload_flag='-r' 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5143$as_echo "$lt_cv_ld_reload_flag" >&6; } 5144reload_flag=$lt_cv_ld_reload_flag 5145case $reload_flag in 5146"" | " "*) ;; 5147*) reload_flag=" $reload_flag" ;; 5148esac 5149reload_cmds='$LD$reload_flag -o $output$reload_objs' 5150case $host_os in 5151 cygwin* | mingw* | pw32* | cegcc*) 5152 if test "$GCC" != yes; then 5153 reload_cmds=false 5154 fi 5155 ;; 5156 darwin*) 5157 if test "$GCC" = yes; then 5158 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5159 else 5160 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5161 fi 5162 ;; 5163esac 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173if test -n "$ac_tool_prefix"; then 5174 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5175set dummy ${ac_tool_prefix}objdump; ac_word=$2 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5177$as_echo_n "checking for $ac_word... " >&6; } 5178if ${ac_cv_prog_OBJDUMP+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 if test -n "$OBJDUMP"; then 5182 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5183else 5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5185for as_dir in $PATH 5186do 5187 IFS=$as_save_IFS 5188 test -z "$as_dir" && as_dir=. 5189 for ac_exec_ext in '' $ac_executable_extensions; do 5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5191 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5193 break 2 5194 fi 5195done 5196 done 5197IFS=$as_save_IFS 5198 5199fi 5200fi 5201OBJDUMP=$ac_cv_prog_OBJDUMP 5202if test -n "$OBJDUMP"; then 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5204$as_echo "$OBJDUMP" >&6; } 5205else 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5207$as_echo "no" >&6; } 5208fi 5209 5210 5211fi 5212if test -z "$ac_cv_prog_OBJDUMP"; then 5213 ac_ct_OBJDUMP=$OBJDUMP 5214 # Extract the first word of "objdump", so it can be a program name with args. 5215set dummy objdump; ac_word=$2 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5217$as_echo_n "checking for $ac_word... " >&6; } 5218if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 if test -n "$ac_ct_OBJDUMP"; then 5222 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236 done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5242if test -n "$ac_ct_OBJDUMP"; then 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5244$as_echo "$ac_ct_OBJDUMP" >&6; } 5245else 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5247$as_echo "no" >&6; } 5248fi 5249 5250 if test "x$ac_ct_OBJDUMP" = x; then 5251 OBJDUMP="false" 5252 else 5253 case $cross_compiling:$ac_tool_warned in 5254yes:) 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5257ac_tool_warned=yes ;; 5258esac 5259 OBJDUMP=$ac_ct_OBJDUMP 5260 fi 5261else 5262 OBJDUMP="$ac_cv_prog_OBJDUMP" 5263fi 5264 5265test -z "$OBJDUMP" && OBJDUMP=objdump 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5276$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5277if ${lt_cv_deplibs_check_method+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 lt_cv_file_magic_cmd='$MAGIC_CMD' 5281lt_cv_file_magic_test_file= 5282lt_cv_deplibs_check_method='unknown' 5283# Need to set the preceding variable on all platforms that support 5284# interlibrary dependencies. 5285# 'none' -- dependencies not supported. 5286# `unknown' -- same as none, but documents that we really don't know. 5287# 'pass_all' -- all dependencies passed with no checks. 5288# 'test_compile' -- check by making test program. 5289# 'file_magic [[regex]]' -- check by looking for files in library path 5290# which responds to the $file_magic_cmd with a given extended regex. 5291# If you have `file' or equivalent on your system and you're not sure 5292# whether `pass_all' will *always* work, you probably want this one. 5293 5294case $host_os in 5295aix[4-9]*) 5296 lt_cv_deplibs_check_method=pass_all 5297 ;; 5298 5299beos*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 5303bsdi[45]*) 5304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5305 lt_cv_file_magic_cmd='/usr/bin/file -L' 5306 lt_cv_file_magic_test_file=/shlib/libc.so 5307 ;; 5308 5309cygwin*) 5310 # func_win32_libid is a shell function defined in ltmain.sh 5311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5312 lt_cv_file_magic_cmd='func_win32_libid' 5313 ;; 5314 5315mingw* | pw32*) 5316 # Base MSYS/MinGW do not provide the 'file' command needed by 5317 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5318 # unless we find 'file', for example because we are cross-compiling. 5319 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5320 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5322 lt_cv_file_magic_cmd='func_win32_libid' 5323 else 5324 # Keep this pattern in sync with the one in func_win32_libid. 5325 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5326 lt_cv_file_magic_cmd='$OBJDUMP -f' 5327 fi 5328 ;; 5329 5330cegcc*) 5331 # use the weaker test based on 'objdump'. See mingw*. 5332 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5333 lt_cv_file_magic_cmd='$OBJDUMP -f' 5334 ;; 5335 5336darwin* | rhapsody*) 5337 lt_cv_deplibs_check_method=pass_all 5338 ;; 5339 5340freebsd* | dragonfly*) 5341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5342 case $host_cpu in 5343 i*86 ) 5344 # Not sure whether the presence of OpenBSD here was a mistake. 5345 # Let's accept both of them until this is cleared up. 5346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5347 lt_cv_file_magic_cmd=/usr/bin/file 5348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5349 ;; 5350 esac 5351 else 5352 lt_cv_deplibs_check_method=pass_all 5353 fi 5354 ;; 5355 5356gnu*) 5357 lt_cv_deplibs_check_method=pass_all 5358 ;; 5359 5360haiku*) 5361 lt_cv_deplibs_check_method=pass_all 5362 ;; 5363 5364hpux10.20* | hpux11*) 5365 lt_cv_file_magic_cmd=/usr/bin/file 5366 case $host_cpu in 5367 ia64*) 5368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5369 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5370 ;; 5371 hppa*64*) 5372 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]' 5373 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5374 ;; 5375 *) 5376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5377 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5378 ;; 5379 esac 5380 ;; 5381 5382interix[3-9]*) 5383 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5385 ;; 5386 5387irix5* | irix6* | nonstopux*) 5388 case $LD in 5389 *-32|*"-32 ") libmagic=32-bit;; 5390 *-n32|*"-n32 ") libmagic=N32;; 5391 *-64|*"-64 ") libmagic=64-bit;; 5392 *) libmagic=never-match;; 5393 esac 5394 lt_cv_deplibs_check_method=pass_all 5395 ;; 5396 5397# This must be glibc/ELF. 5398linux* | k*bsd*-gnu | kopensolaris*-gnu) 5399 lt_cv_deplibs_check_method=pass_all 5400 ;; 5401 5402netbsd*) 5403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5405 else 5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5407 fi 5408 ;; 5409 5410newos6*) 5411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5412 lt_cv_file_magic_cmd=/usr/bin/file 5413 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5414 ;; 5415 5416*nto* | *qnx*) 5417 lt_cv_deplibs_check_method=pass_all 5418 ;; 5419 5420openbsd*) 5421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5423 else 5424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5425 fi 5426 ;; 5427 5428osf3* | osf4* | osf5*) 5429 lt_cv_deplibs_check_method=pass_all 5430 ;; 5431 5432rdos*) 5433 lt_cv_deplibs_check_method=pass_all 5434 ;; 5435 5436solaris*) 5437 lt_cv_deplibs_check_method=pass_all 5438 ;; 5439 5440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5441 lt_cv_deplibs_check_method=pass_all 5442 ;; 5443 5444sysv4 | sysv4.3*) 5445 case $host_vendor in 5446 motorola) 5447 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]' 5448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5449 ;; 5450 ncr) 5451 lt_cv_deplibs_check_method=pass_all 5452 ;; 5453 sequent) 5454 lt_cv_file_magic_cmd='/bin/file' 5455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5456 ;; 5457 sni) 5458 lt_cv_file_magic_cmd='/bin/file' 5459 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5460 lt_cv_file_magic_test_file=/lib/libc.so 5461 ;; 5462 siemens) 5463 lt_cv_deplibs_check_method=pass_all 5464 ;; 5465 pc) 5466 lt_cv_deplibs_check_method=pass_all 5467 ;; 5468 esac 5469 ;; 5470 5471tpf*) 5472 lt_cv_deplibs_check_method=pass_all 5473 ;; 5474esac 5475 5476fi 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5478$as_echo "$lt_cv_deplibs_check_method" >&6; } 5479 5480file_magic_glob= 5481want_nocaseglob=no 5482if test "$build" = "$host"; then 5483 case $host_os in 5484 mingw* | pw32*) 5485 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5486 want_nocaseglob=yes 5487 else 5488 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5489 fi 5490 ;; 5491 esac 5492fi 5493 5494file_magic_cmd=$lt_cv_file_magic_cmd 5495deplibs_check_method=$lt_cv_deplibs_check_method 5496test -z "$deplibs_check_method" && deplibs_check_method=unknown 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519if test -n "$ac_tool_prefix"; then 5520 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5521set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5523$as_echo_n "checking for $ac_word... " >&6; } 5524if ${ac_cv_prog_DLLTOOL+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 if test -n "$DLLTOOL"; then 5528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5529else 5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5531for as_dir in $PATH 5532do 5533 IFS=$as_save_IFS 5534 test -z "$as_dir" && as_dir=. 5535 for ac_exec_ext in '' $ac_executable_extensions; do 5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5537 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5539 break 2 5540 fi 5541done 5542 done 5543IFS=$as_save_IFS 5544 5545fi 5546fi 5547DLLTOOL=$ac_cv_prog_DLLTOOL 5548if test -n "$DLLTOOL"; then 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5550$as_echo "$DLLTOOL" >&6; } 5551else 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5553$as_echo "no" >&6; } 5554fi 5555 5556 5557fi 5558if test -z "$ac_cv_prog_DLLTOOL"; then 5559 ac_ct_DLLTOOL=$DLLTOOL 5560 # Extract the first word of "dlltool", so it can be a program name with args. 5561set dummy dlltool; ac_word=$2 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5563$as_echo_n "checking for $ac_word... " >&6; } 5564if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 if test -n "$ac_ct_DLLTOOL"; then 5568 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5569else 5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571for as_dir in $PATH 5572do 5573 IFS=$as_save_IFS 5574 test -z "$as_dir" && as_dir=. 5575 for ac_exec_ext in '' $ac_executable_extensions; do 5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5577 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5579 break 2 5580 fi 5581done 5582 done 5583IFS=$as_save_IFS 5584 5585fi 5586fi 5587ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5588if test -n "$ac_ct_DLLTOOL"; then 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5590$as_echo "$ac_ct_DLLTOOL" >&6; } 5591else 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5593$as_echo "no" >&6; } 5594fi 5595 5596 if test "x$ac_ct_DLLTOOL" = x; then 5597 DLLTOOL="false" 5598 else 5599 case $cross_compiling:$ac_tool_warned in 5600yes:) 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5603ac_tool_warned=yes ;; 5604esac 5605 DLLTOOL=$ac_ct_DLLTOOL 5606 fi 5607else 5608 DLLTOOL="$ac_cv_prog_DLLTOOL" 5609fi 5610 5611test -z "$DLLTOOL" && DLLTOOL=dlltool 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5623$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5624if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 lt_cv_sharedlib_from_linklib_cmd='unknown' 5628 5629case $host_os in 5630cygwin* | mingw* | pw32* | cegcc*) 5631 # two different shell functions defined in ltmain.sh 5632 # decide which to use based on capabilities of $DLLTOOL 5633 case `$DLLTOOL --help 2>&1` in 5634 *--identify-strict*) 5635 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5636 ;; 5637 *) 5638 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5639 ;; 5640 esac 5641 ;; 5642*) 5643 # fallback: assume linklib IS sharedlib 5644 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5645 ;; 5646esac 5647 5648fi 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5650$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5651sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5652test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5653 5654 5655 5656 5657 5658 5659 5660 5661if test -n "$ac_tool_prefix"; then 5662 for ac_prog in ar 5663 do 5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5665set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5667$as_echo_n "checking for $ac_word... " >&6; } 5668if ${ac_cv_prog_AR+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 if test -n "$AR"; then 5672 ac_cv_prog_AR="$AR" # Let the user override the test. 5673else 5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5675for as_dir in $PATH 5676do 5677 IFS=$as_save_IFS 5678 test -z "$as_dir" && as_dir=. 5679 for ac_exec_ext in '' $ac_executable_extensions; do 5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5681 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5683 break 2 5684 fi 5685done 5686 done 5687IFS=$as_save_IFS 5688 5689fi 5690fi 5691AR=$ac_cv_prog_AR 5692if test -n "$AR"; then 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5694$as_echo "$AR" >&6; } 5695else 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697$as_echo "no" >&6; } 5698fi 5699 5700 5701 test -n "$AR" && break 5702 done 5703fi 5704if test -z "$AR"; then 5705 ac_ct_AR=$AR 5706 for ac_prog in ar 5707do 5708 # Extract the first word of "$ac_prog", so it can be a program name with args. 5709set dummy $ac_prog; ac_word=$2 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5711$as_echo_n "checking for $ac_word... " >&6; } 5712if ${ac_cv_prog_ac_ct_AR+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 if test -n "$ac_ct_AR"; then 5716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5717else 5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5719for as_dir in $PATH 5720do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5725 ac_cv_prog_ac_ct_AR="$ac_prog" 5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729done 5730 done 5731IFS=$as_save_IFS 5732 5733fi 5734fi 5735ac_ct_AR=$ac_cv_prog_ac_ct_AR 5736if test -n "$ac_ct_AR"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5738$as_echo "$ac_ct_AR" >&6; } 5739else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741$as_echo "no" >&6; } 5742fi 5743 5744 5745 test -n "$ac_ct_AR" && break 5746done 5747 5748 if test "x$ac_ct_AR" = x; then 5749 AR="false" 5750 else 5751 case $cross_compiling:$ac_tool_warned in 5752yes:) 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5755ac_tool_warned=yes ;; 5756esac 5757 AR=$ac_ct_AR 5758 fi 5759fi 5760 5761: ${AR=ar} 5762: ${AR_FLAGS=cru} 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5775$as_echo_n "checking for archiver @FILE support... " >&6; } 5776if ${lt_cv_ar_at_file+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 lt_cv_ar_at_file=no 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782 5783int 5784main () 5785{ 5786 5787 ; 5788 return 0; 5789} 5790_ACEOF 5791if ac_fn_c_try_compile "$LINENO"; then : 5792 echo conftest.$ac_objext > conftest.lst 5793 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5795 (eval $lt_ar_try) 2>&5 5796 ac_status=$? 5797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5798 test $ac_status = 0; } 5799 if test "$ac_status" -eq 0; then 5800 # Ensure the archiver fails upon bogus file names. 5801 rm -f conftest.$ac_objext libconftest.a 5802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5803 (eval $lt_ar_try) 2>&5 5804 ac_status=$? 5805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5806 test $ac_status = 0; } 5807 if test "$ac_status" -ne 0; then 5808 lt_cv_ar_at_file=@ 5809 fi 5810 fi 5811 rm -f conftest.* libconftest.a 5812 5813fi 5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5815 5816fi 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5818$as_echo "$lt_cv_ar_at_file" >&6; } 5819 5820if test "x$lt_cv_ar_at_file" = xno; then 5821 archiver_list_spec= 5822else 5823 archiver_list_spec=$lt_cv_ar_at_file 5824fi 5825 5826 5827 5828 5829 5830 5831 5832if test -n "$ac_tool_prefix"; then 5833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5834set dummy ${ac_tool_prefix}strip; ac_word=$2 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5836$as_echo_n "checking for $ac_word... " >&6; } 5837if ${ac_cv_prog_STRIP+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 if test -n "$STRIP"; then 5841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5842else 5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5844for as_dir in $PATH 5845do 5846 IFS=$as_save_IFS 5847 test -z "$as_dir" && as_dir=. 5848 for ac_exec_ext in '' $ac_executable_extensions; do 5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5850 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5852 break 2 5853 fi 5854done 5855 done 5856IFS=$as_save_IFS 5857 5858fi 5859fi 5860STRIP=$ac_cv_prog_STRIP 5861if test -n "$STRIP"; then 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5863$as_echo "$STRIP" >&6; } 5864else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5866$as_echo "no" >&6; } 5867fi 5868 5869 5870fi 5871if test -z "$ac_cv_prog_STRIP"; then 5872 ac_ct_STRIP=$STRIP 5873 # Extract the first word of "strip", so it can be a program name with args. 5874set dummy strip; ac_word=$2 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5876$as_echo_n "checking for $ac_word... " >&6; } 5877if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 if test -n "$ac_ct_STRIP"; then 5881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5882else 5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5890 ac_cv_prog_ac_ct_STRIP="strip" 5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894done 5895 done 5896IFS=$as_save_IFS 5897 5898fi 5899fi 5900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5901if test -n "$ac_ct_STRIP"; then 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5903$as_echo "$ac_ct_STRIP" >&6; } 5904else 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5906$as_echo "no" >&6; } 5907fi 5908 5909 if test "x$ac_ct_STRIP" = x; then 5910 STRIP=":" 5911 else 5912 case $cross_compiling:$ac_tool_warned in 5913yes:) 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5916ac_tool_warned=yes ;; 5917esac 5918 STRIP=$ac_ct_STRIP 5919 fi 5920else 5921 STRIP="$ac_cv_prog_STRIP" 5922fi 5923 5924test -z "$STRIP" && STRIP=: 5925 5926 5927 5928 5929 5930 5931if test -n "$ac_tool_prefix"; then 5932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5933set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5935$as_echo_n "checking for $ac_word... " >&6; } 5936if ${ac_cv_prog_RANLIB+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 if test -n "$RANLIB"; then 5940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5941else 5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_exec_ext in '' $ac_executable_extensions; do 5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954 done 5955IFS=$as_save_IFS 5956 5957fi 5958fi 5959RANLIB=$ac_cv_prog_RANLIB 5960if test -n "$RANLIB"; then 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5962$as_echo "$RANLIB" >&6; } 5963else 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5965$as_echo "no" >&6; } 5966fi 5967 5968 5969fi 5970if test -z "$ac_cv_prog_RANLIB"; then 5971 ac_ct_RANLIB=$RANLIB 5972 # Extract the first word of "ranlib", so it can be a program name with args. 5973set dummy ranlib; ac_word=$2 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5975$as_echo_n "checking for $ac_word... " >&6; } 5976if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5977 $as_echo_n "(cached) " >&6 5978else 5979 if test -n "$ac_ct_RANLIB"; then 5980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5981else 5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5983for as_dir in $PATH 5984do 5985 IFS=$as_save_IFS 5986 test -z "$as_dir" && as_dir=. 5987 for ac_exec_ext in '' $ac_executable_extensions; do 5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5989 ac_cv_prog_ac_ct_RANLIB="ranlib" 5990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5991 break 2 5992 fi 5993done 5994 done 5995IFS=$as_save_IFS 5996 5997fi 5998fi 5999ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6000if test -n "$ac_ct_RANLIB"; then 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6002$as_echo "$ac_ct_RANLIB" >&6; } 6003else 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6005$as_echo "no" >&6; } 6006fi 6007 6008 if test "x$ac_ct_RANLIB" = x; then 6009 RANLIB=":" 6010 else 6011 case $cross_compiling:$ac_tool_warned in 6012yes:) 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6015ac_tool_warned=yes ;; 6016esac 6017 RANLIB=$ac_ct_RANLIB 6018 fi 6019else 6020 RANLIB="$ac_cv_prog_RANLIB" 6021fi 6022 6023test -z "$RANLIB" && RANLIB=: 6024 6025 6026 6027 6028 6029 6030# Determine commands to create old-style static archives. 6031old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6032old_postinstall_cmds='chmod 644 $oldlib' 6033old_postuninstall_cmds= 6034 6035if test -n "$RANLIB"; then 6036 case $host_os in 6037 openbsd*) 6038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6039 ;; 6040 *) 6041 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6042 ;; 6043 esac 6044 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6045fi 6046 6047case $host_os in 6048 darwin*) 6049 lock_old_archive_extraction=yes ;; 6050 *) 6051 lock_old_archive_extraction=no ;; 6052esac 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092# If no C compiler was specified, use CC. 6093LTCC=${LTCC-"$CC"} 6094 6095# If no C compiler flags were specified, use CFLAGS. 6096LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6097 6098# Allow CC to be a program name with arguments. 6099compiler=$CC 6100 6101 6102# Check for command to grab the raw symbol name followed by C symbol from nm. 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6104$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6105if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6106 $as_echo_n "(cached) " >&6 6107else 6108 6109# These are sane defaults that work on at least a few old systems. 6110# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6111 6112# Character class describing NM global symbol codes. 6113symcode='[BCDEGRST]' 6114 6115# Regexp to match symbols that can be accessed directly from C. 6116sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6117 6118# Define system-specific variables. 6119case $host_os in 6120aix*) 6121 symcode='[BCDT]' 6122 ;; 6123cygwin* | mingw* | pw32* | cegcc*) 6124 symcode='[ABCDGISTW]' 6125 ;; 6126hpux*) 6127 if test "$host_cpu" = ia64; then 6128 symcode='[ABCDEGRST]' 6129 fi 6130 ;; 6131irix* | nonstopux*) 6132 symcode='[BCDEGRST]' 6133 ;; 6134osf*) 6135 symcode='[BCDEGQRST]' 6136 ;; 6137solaris*) 6138 symcode='[BDRT]' 6139 ;; 6140sco3.2v5*) 6141 symcode='[DT]' 6142 ;; 6143sysv4.2uw2*) 6144 symcode='[DT]' 6145 ;; 6146sysv5* | sco5v6* | unixware* | OpenUNIX*) 6147 symcode='[ABDT]' 6148 ;; 6149sysv4) 6150 symcode='[DFNSTU]' 6151 ;; 6152esac 6153 6154# If we're using GNU nm, then use its standard symbol codes. 6155case `$NM -V 2>&1` in 6156*GNU* | *'with BFD'*) 6157 symcode='[ABCDGIRSTW]' ;; 6158esac 6159 6160# Transform an extracted symbol line into a proper C declaration. 6161# Some systems (esp. on ia64) link data and code symbols differently, 6162# so use this general approach. 6163lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6164 6165# Transform an extracted symbol line into symbol name and symbol address 6166lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6167lt_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'" 6168 6169# Handle CRLF in mingw tool chain 6170opt_cr= 6171case $build_os in 6172mingw*) 6173 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6174 ;; 6175esac 6176 6177# Try without a prefix underscore, then with it. 6178for ac_symprfx in "" "_"; do 6179 6180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6181 symxfrm="\\1 $ac_symprfx\\2 \\2" 6182 6183 # Write the raw and C identifiers. 6184 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6185 # Fake it for dumpbin and say T for any non-static function 6186 # and D for any global variable. 6187 # Also find C++ and __fastcall symbols from MSVC++, 6188 # which start with @ or ?. 6189 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6190" {last_section=section; section=\$ 3};"\ 6191" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6192" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6193" \$ 0!~/External *\|/{next};"\ 6194" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6195" {if(hide[section]) next};"\ 6196" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6197" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6198" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6199" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6200" ' prfx=^$ac_symprfx" 6201 else 6202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6203 fi 6204 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6205 6206 # Check to see that the pipe works correctly. 6207 pipe_works=no 6208 6209 rm -f conftest* 6210 cat > conftest.$ac_ext <<_LT_EOF 6211#ifdef __cplusplus 6212extern "C" { 6213#endif 6214char nm_test_var; 6215void nm_test_func(void); 6216void nm_test_func(void){} 6217#ifdef __cplusplus 6218} 6219#endif 6220int main(){nm_test_var='a';nm_test_func();return(0);} 6221_LT_EOF 6222 6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6224 (eval $ac_compile) 2>&5 6225 ac_status=$? 6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6227 test $ac_status = 0; }; then 6228 # Now try to grab the symbols. 6229 nlist=conftest.nm 6230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6231 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6232 ac_status=$? 6233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6234 test $ac_status = 0; } && test -s "$nlist"; then 6235 # Try sorting and uniquifying the output. 6236 if sort "$nlist" | uniq > "$nlist"T; then 6237 mv -f "$nlist"T "$nlist" 6238 else 6239 rm -f "$nlist"T 6240 fi 6241 6242 # Make sure that we snagged all the symbols we need. 6243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6245 cat <<_LT_EOF > conftest.$ac_ext 6246/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6247#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6248/* DATA imports from DLLs on WIN32 con't be const, because runtime 6249 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6250# define LT_DLSYM_CONST 6251#elif defined(__osf__) 6252/* This system does not cope well with relocations in const data. */ 6253# define LT_DLSYM_CONST 6254#else 6255# define LT_DLSYM_CONST const 6256#endif 6257 6258#ifdef __cplusplus 6259extern "C" { 6260#endif 6261 6262_LT_EOF 6263 # Now generate the symbol file. 6264 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6265 6266 cat <<_LT_EOF >> conftest.$ac_ext 6267 6268/* The mapping between symbol names and symbols. */ 6269LT_DLSYM_CONST struct { 6270 const char *name; 6271 void *address; 6272} 6273lt__PROGRAM__LTX_preloaded_symbols[] = 6274{ 6275 { "@PROGRAM@", (void *) 0 }, 6276_LT_EOF 6277 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6278 cat <<\_LT_EOF >> conftest.$ac_ext 6279 {0, (void *) 0} 6280}; 6281 6282/* This works around a problem in FreeBSD linker */ 6283#ifdef FREEBSD_WORKAROUND 6284static const void *lt_preloaded_setup() { 6285 return lt__PROGRAM__LTX_preloaded_symbols; 6286} 6287#endif 6288 6289#ifdef __cplusplus 6290} 6291#endif 6292_LT_EOF 6293 # Now try linking the two files. 6294 mv conftest.$ac_objext conftstm.$ac_objext 6295 lt_globsym_save_LIBS=$LIBS 6296 lt_globsym_save_CFLAGS=$CFLAGS 6297 LIBS="conftstm.$ac_objext" 6298 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6300 (eval $ac_link) 2>&5 6301 ac_status=$? 6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6303 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6304 pipe_works=yes 6305 fi 6306 LIBS=$lt_globsym_save_LIBS 6307 CFLAGS=$lt_globsym_save_CFLAGS 6308 else 6309 echo "cannot find nm_test_func in $nlist" >&5 6310 fi 6311 else 6312 echo "cannot find nm_test_var in $nlist" >&5 6313 fi 6314 else 6315 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6316 fi 6317 else 6318 echo "$progname: failed program was:" >&5 6319 cat conftest.$ac_ext >&5 6320 fi 6321 rm -rf conftest* conftst* 6322 6323 # Do not use the global_symbol_pipe unless it works. 6324 if test "$pipe_works" = yes; then 6325 break 6326 else 6327 lt_cv_sys_global_symbol_pipe= 6328 fi 6329done 6330 6331fi 6332 6333if test -z "$lt_cv_sys_global_symbol_pipe"; then 6334 lt_cv_sys_global_symbol_to_cdecl= 6335fi 6336if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6338$as_echo "failed" >&6; } 6339else 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6341$as_echo "ok" >&6; } 6342fi 6343 6344# Response file support. 6345if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6346 nm_file_list_spec='@' 6347elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6348 nm_file_list_spec='@' 6349fi 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6378$as_echo_n "checking for sysroot... " >&6; } 6379 6380# Check whether --with-sysroot was given. 6381if test "${with_sysroot+set}" = set; then : 6382 withval=$with_sysroot; 6383else 6384 with_sysroot=no 6385fi 6386 6387 6388lt_sysroot= 6389case ${with_sysroot} in #( 6390 yes) 6391 if test "$GCC" = yes; then 6392 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6393 fi 6394 ;; #( 6395 /*) 6396 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6397 ;; #( 6398 no|'') 6399 ;; #( 6400 *) 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6402$as_echo "${with_sysroot}" >&6; } 6403 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6404 ;; 6405esac 6406 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6408$as_echo "${lt_sysroot:-no}" >&6; } 6409 6410 6411 6412 6413 6414# Check whether --enable-libtool-lock was given. 6415if test "${enable_libtool_lock+set}" = set; then : 6416 enableval=$enable_libtool_lock; 6417fi 6418 6419test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6420 6421# Some flags need to be propagated to the compiler or linker for good 6422# libtool support. 6423case $host in 6424ia64-*-hpux*) 6425 # Find out which ABI we are using. 6426 echo 'int i;' > conftest.$ac_ext 6427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6428 (eval $ac_compile) 2>&5 6429 ac_status=$? 6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6431 test $ac_status = 0; }; then 6432 case `/usr/bin/file conftest.$ac_objext` in 6433 *ELF-32*) 6434 HPUX_IA64_MODE="32" 6435 ;; 6436 *ELF-64*) 6437 HPUX_IA64_MODE="64" 6438 ;; 6439 esac 6440 fi 6441 rm -rf conftest* 6442 ;; 6443*-*-irix6*) 6444 # Find out which ABI we are using. 6445 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6447 (eval $ac_compile) 2>&5 6448 ac_status=$? 6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6450 test $ac_status = 0; }; then 6451 if test "$lt_cv_prog_gnu_ld" = yes; then 6452 case `/usr/bin/file conftest.$ac_objext` in 6453 *32-bit*) 6454 LD="${LD-ld} -melf32bsmip" 6455 ;; 6456 *N32*) 6457 LD="${LD-ld} -melf32bmipn32" 6458 ;; 6459 *64-bit*) 6460 LD="${LD-ld} -melf64bmip" 6461 ;; 6462 esac 6463 else 6464 case `/usr/bin/file conftest.$ac_objext` in 6465 *32-bit*) 6466 LD="${LD-ld} -32" 6467 ;; 6468 *N32*) 6469 LD="${LD-ld} -n32" 6470 ;; 6471 *64-bit*) 6472 LD="${LD-ld} -64" 6473 ;; 6474 esac 6475 fi 6476 fi 6477 rm -rf conftest* 6478 ;; 6479 6480x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6481s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6482 # Find out which ABI we are using. 6483 echo 'int i;' > conftest.$ac_ext 6484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6485 (eval $ac_compile) 2>&5 6486 ac_status=$? 6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6488 test $ac_status = 0; }; then 6489 case `/usr/bin/file conftest.o` in 6490 *32-bit*) 6491 case $host in 6492 x86_64-*kfreebsd*-gnu) 6493 LD="${LD-ld} -m elf_i386_fbsd" 6494 ;; 6495 x86_64-*linux*) 6496 LD="${LD-ld} -m elf_i386" 6497 ;; 6498 ppc64-*linux*|powerpc64-*linux*) 6499 LD="${LD-ld} -m elf32ppclinux" 6500 ;; 6501 s390x-*linux*) 6502 LD="${LD-ld} -m elf_s390" 6503 ;; 6504 sparc64-*linux*) 6505 LD="${LD-ld} -m elf32_sparc" 6506 ;; 6507 esac 6508 ;; 6509 *64-bit*) 6510 case $host in 6511 x86_64-*kfreebsd*-gnu) 6512 LD="${LD-ld} -m elf_x86_64_fbsd" 6513 ;; 6514 x86_64-*linux*) 6515 LD="${LD-ld} -m elf_x86_64" 6516 ;; 6517 ppc*-*linux*|powerpc*-*linux*) 6518 LD="${LD-ld} -m elf64ppc" 6519 ;; 6520 s390*-*linux*|s390*-*tpf*) 6521 LD="${LD-ld} -m elf64_s390" 6522 ;; 6523 sparc*-*linux*) 6524 LD="${LD-ld} -m elf64_sparc" 6525 ;; 6526 esac 6527 ;; 6528 esac 6529 fi 6530 rm -rf conftest* 6531 ;; 6532 6533*-*-sco3.2v5*) 6534 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6535 SAVE_CFLAGS="$CFLAGS" 6536 CFLAGS="$CFLAGS -belf" 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6538$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6539if ${lt_cv_cc_needs_belf+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 ac_ext=c 6543ac_cpp='$CPP $CPPFLAGS' 6544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6546ac_compiler_gnu=$ac_cv_c_compiler_gnu 6547 6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6549/* end confdefs.h. */ 6550 6551int 6552main () 6553{ 6554 6555 ; 6556 return 0; 6557} 6558_ACEOF 6559if ac_fn_c_try_link "$LINENO"; then : 6560 lt_cv_cc_needs_belf=yes 6561else 6562 lt_cv_cc_needs_belf=no 6563fi 6564rm -f core conftest.err conftest.$ac_objext \ 6565 conftest$ac_exeext conftest.$ac_ext 6566 ac_ext=c 6567ac_cpp='$CPP $CPPFLAGS' 6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6570ac_compiler_gnu=$ac_cv_c_compiler_gnu 6571 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6574$as_echo "$lt_cv_cc_needs_belf" >&6; } 6575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6577 CFLAGS="$SAVE_CFLAGS" 6578 fi 6579 ;; 6580*-*solaris*) 6581 # Find out which ABI we are using. 6582 echo 'int i;' > conftest.$ac_ext 6583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6584 (eval $ac_compile) 2>&5 6585 ac_status=$? 6586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6587 test $ac_status = 0; }; then 6588 case `/usr/bin/file conftest.o` in 6589 *64-bit*) 6590 case $lt_cv_prog_gnu_ld in 6591 yes*) 6592 case $host in 6593 i?86-*-solaris*) 6594 LD="${LD-ld} -m elf_x86_64" 6595 ;; 6596 sparc*-*-solaris*) 6597 LD="${LD-ld} -m elf64_sparc" 6598 ;; 6599 esac 6600 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6601 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6602 LD="${LD-ld}_sol2" 6603 fi 6604 ;; 6605 *) 6606 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6607 LD="${LD-ld} -64" 6608 fi 6609 ;; 6610 esac 6611 ;; 6612 esac 6613 fi 6614 rm -rf conftest* 6615 ;; 6616esac 6617 6618need_locks="$enable_libtool_lock" 6619 6620if test -n "$ac_tool_prefix"; then 6621 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6622set dummy ${ac_tool_prefix}mt; ac_word=$2 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6624$as_echo_n "checking for $ac_word... " >&6; } 6625if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6626 $as_echo_n "(cached) " >&6 6627else 6628 if test -n "$MANIFEST_TOOL"; then 6629 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6630else 6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632for as_dir in $PATH 6633do 6634 IFS=$as_save_IFS 6635 test -z "$as_dir" && as_dir=. 6636 for ac_exec_ext in '' $ac_executable_extensions; do 6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6638 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6640 break 2 6641 fi 6642done 6643 done 6644IFS=$as_save_IFS 6645 6646fi 6647fi 6648MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6649if test -n "$MANIFEST_TOOL"; then 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6651$as_echo "$MANIFEST_TOOL" >&6; } 6652else 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6654$as_echo "no" >&6; } 6655fi 6656 6657 6658fi 6659if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6660 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6661 # Extract the first word of "mt", so it can be a program name with args. 6662set dummy mt; ac_word=$2 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6664$as_echo_n "checking for $ac_word... " >&6; } 6665if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 if test -n "$ac_ct_MANIFEST_TOOL"; then 6669 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6670else 6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6672for as_dir in $PATH 6673do 6674 IFS=$as_save_IFS 6675 test -z "$as_dir" && as_dir=. 6676 for ac_exec_ext in '' $ac_executable_extensions; do 6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6678 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6680 break 2 6681 fi 6682done 6683 done 6684IFS=$as_save_IFS 6685 6686fi 6687fi 6688ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6689if test -n "$ac_ct_MANIFEST_TOOL"; then 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6691$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6692else 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6694$as_echo "no" >&6; } 6695fi 6696 6697 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6698 MANIFEST_TOOL=":" 6699 else 6700 case $cross_compiling:$ac_tool_warned in 6701yes:) 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6704ac_tool_warned=yes ;; 6705esac 6706 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6707 fi 6708else 6709 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6710fi 6711 6712test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6714$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6715if ${lt_cv_path_mainfest_tool+:} false; then : 6716 $as_echo_n "(cached) " >&6 6717else 6718 lt_cv_path_mainfest_tool=no 6719 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6720 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6721 cat conftest.err >&5 6722 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6723 lt_cv_path_mainfest_tool=yes 6724 fi 6725 rm -f conftest* 6726fi 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6728$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6729if test "x$lt_cv_path_mainfest_tool" != xyes; then 6730 MANIFEST_TOOL=: 6731fi 6732 6733 6734 6735 6736 6737 6738 case $host_os in 6739 rhapsody* | darwin*) 6740 if test -n "$ac_tool_prefix"; then 6741 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6742set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744$as_echo_n "checking for $ac_word... " >&6; } 6745if ${ac_cv_prog_DSYMUTIL+:} false; then : 6746 $as_echo_n "(cached) " >&6 6747else 6748 if test -n "$DSYMUTIL"; then 6749 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6750else 6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6752for as_dir in $PATH 6753do 6754 IFS=$as_save_IFS 6755 test -z "$as_dir" && as_dir=. 6756 for ac_exec_ext in '' $ac_executable_extensions; do 6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6758 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6760 break 2 6761 fi 6762done 6763 done 6764IFS=$as_save_IFS 6765 6766fi 6767fi 6768DSYMUTIL=$ac_cv_prog_DSYMUTIL 6769if test -n "$DSYMUTIL"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6771$as_echo "$DSYMUTIL" >&6; } 6772else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774$as_echo "no" >&6; } 6775fi 6776 6777 6778fi 6779if test -z "$ac_cv_prog_DSYMUTIL"; then 6780 ac_ct_DSYMUTIL=$DSYMUTIL 6781 # Extract the first word of "dsymutil", so it can be a program name with args. 6782set dummy dsymutil; ac_word=$2 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6784$as_echo_n "checking for $ac_word... " >&6; } 6785if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 if test -n "$ac_ct_DSYMUTIL"; then 6789 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 test -z "$as_dir" && as_dir=. 6796 for ac_exec_ext in '' $ac_executable_extensions; do 6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6798 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6800 break 2 6801 fi 6802done 6803 done 6804IFS=$as_save_IFS 6805 6806fi 6807fi 6808ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6809if test -n "$ac_ct_DSYMUTIL"; then 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6811$as_echo "$ac_ct_DSYMUTIL" >&6; } 6812else 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6814$as_echo "no" >&6; } 6815fi 6816 6817 if test "x$ac_ct_DSYMUTIL" = x; then 6818 DSYMUTIL=":" 6819 else 6820 case $cross_compiling:$ac_tool_warned in 6821yes:) 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6824ac_tool_warned=yes ;; 6825esac 6826 DSYMUTIL=$ac_ct_DSYMUTIL 6827 fi 6828else 6829 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6830fi 6831 6832 if test -n "$ac_tool_prefix"; then 6833 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6834set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6836$as_echo_n "checking for $ac_word... " >&6; } 6837if ${ac_cv_prog_NMEDIT+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 if test -n "$NMEDIT"; then 6841 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6842else 6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6844for as_dir in $PATH 6845do 6846 IFS=$as_save_IFS 6847 test -z "$as_dir" && as_dir=. 6848 for ac_exec_ext in '' $ac_executable_extensions; do 6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6850 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6852 break 2 6853 fi 6854done 6855 done 6856IFS=$as_save_IFS 6857 6858fi 6859fi 6860NMEDIT=$ac_cv_prog_NMEDIT 6861if test -n "$NMEDIT"; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6863$as_echo "$NMEDIT" >&6; } 6864else 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6866$as_echo "no" >&6; } 6867fi 6868 6869 6870fi 6871if test -z "$ac_cv_prog_NMEDIT"; then 6872 ac_ct_NMEDIT=$NMEDIT 6873 # Extract the first word of "nmedit", so it can be a program name with args. 6874set dummy nmedit; ac_word=$2 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6876$as_echo_n "checking for $ac_word... " >&6; } 6877if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 if test -n "$ac_ct_NMEDIT"; then 6881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6882else 6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884for as_dir in $PATH 6885do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6890 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894done 6895 done 6896IFS=$as_save_IFS 6897 6898fi 6899fi 6900ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6901if test -n "$ac_ct_NMEDIT"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6903$as_echo "$ac_ct_NMEDIT" >&6; } 6904else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906$as_echo "no" >&6; } 6907fi 6908 6909 if test "x$ac_ct_NMEDIT" = x; then 6910 NMEDIT=":" 6911 else 6912 case $cross_compiling:$ac_tool_warned in 6913yes:) 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6916ac_tool_warned=yes ;; 6917esac 6918 NMEDIT=$ac_ct_NMEDIT 6919 fi 6920else 6921 NMEDIT="$ac_cv_prog_NMEDIT" 6922fi 6923 6924 if test -n "$ac_tool_prefix"; then 6925 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6926set dummy ${ac_tool_prefix}lipo; ac_word=$2 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6928$as_echo_n "checking for $ac_word... " >&6; } 6929if ${ac_cv_prog_LIPO+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931else 6932 if test -n "$LIPO"; then 6933 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6934else 6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6936for as_dir in $PATH 6937do 6938 IFS=$as_save_IFS 6939 test -z "$as_dir" && as_dir=. 6940 for ac_exec_ext in '' $ac_executable_extensions; do 6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6942 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6944 break 2 6945 fi 6946done 6947 done 6948IFS=$as_save_IFS 6949 6950fi 6951fi 6952LIPO=$ac_cv_prog_LIPO 6953if test -n "$LIPO"; then 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6955$as_echo "$LIPO" >&6; } 6956else 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6958$as_echo "no" >&6; } 6959fi 6960 6961 6962fi 6963if test -z "$ac_cv_prog_LIPO"; then 6964 ac_ct_LIPO=$LIPO 6965 # Extract the first word of "lipo", so it can be a program name with args. 6966set dummy lipo; ac_word=$2 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968$as_echo_n "checking for $ac_word... " >&6; } 6969if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 if test -n "$ac_ct_LIPO"; then 6973 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6974else 6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976for as_dir in $PATH 6977do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6982 ac_cv_prog_ac_ct_LIPO="lipo" 6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986done 6987 done 6988IFS=$as_save_IFS 6989 6990fi 6991fi 6992ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6993if test -n "$ac_ct_LIPO"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6995$as_echo "$ac_ct_LIPO" >&6; } 6996else 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6998$as_echo "no" >&6; } 6999fi 7000 7001 if test "x$ac_ct_LIPO" = x; then 7002 LIPO=":" 7003 else 7004 case $cross_compiling:$ac_tool_warned in 7005yes:) 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7008ac_tool_warned=yes ;; 7009esac 7010 LIPO=$ac_ct_LIPO 7011 fi 7012else 7013 LIPO="$ac_cv_prog_LIPO" 7014fi 7015 7016 if test -n "$ac_tool_prefix"; then 7017 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7018set dummy ${ac_tool_prefix}otool; ac_word=$2 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020$as_echo_n "checking for $ac_word... " >&6; } 7021if ${ac_cv_prog_OTOOL+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 if test -n "$OTOOL"; then 7025 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7026else 7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028for as_dir in $PATH 7029do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7034 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038done 7039 done 7040IFS=$as_save_IFS 7041 7042fi 7043fi 7044OTOOL=$ac_cv_prog_OTOOL 7045if test -n "$OTOOL"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7047$as_echo "$OTOOL" >&6; } 7048else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050$as_echo "no" >&6; } 7051fi 7052 7053 7054fi 7055if test -z "$ac_cv_prog_OTOOL"; then 7056 ac_ct_OTOOL=$OTOOL 7057 # Extract the first word of "otool", so it can be a program name with args. 7058set dummy otool; ac_word=$2 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7060$as_echo_n "checking for $ac_word... " >&6; } 7061if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 if test -n "$ac_ct_OTOOL"; then 7065 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7066else 7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7068for as_dir in $PATH 7069do 7070 IFS=$as_save_IFS 7071 test -z "$as_dir" && as_dir=. 7072 for ac_exec_ext in '' $ac_executable_extensions; do 7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7074 ac_cv_prog_ac_ct_OTOOL="otool" 7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7076 break 2 7077 fi 7078done 7079 done 7080IFS=$as_save_IFS 7081 7082fi 7083fi 7084ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7085if test -n "$ac_ct_OTOOL"; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7087$as_echo "$ac_ct_OTOOL" >&6; } 7088else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7090$as_echo "no" >&6; } 7091fi 7092 7093 if test "x$ac_ct_OTOOL" = x; then 7094 OTOOL=":" 7095 else 7096 case $cross_compiling:$ac_tool_warned in 7097yes:) 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7100ac_tool_warned=yes ;; 7101esac 7102 OTOOL=$ac_ct_OTOOL 7103 fi 7104else 7105 OTOOL="$ac_cv_prog_OTOOL" 7106fi 7107 7108 if test -n "$ac_tool_prefix"; then 7109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7110set dummy ${ac_tool_prefix}otool64; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_OTOOL64+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$OTOOL64"; then 7117 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7126 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136OTOOL64=$ac_cv_prog_OTOOL64 7137if test -n "$OTOOL64"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7139$as_echo "$OTOOL64" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 7146fi 7147if test -z "$ac_cv_prog_OTOOL64"; then 7148 ac_ct_OTOOL64=$OTOOL64 7149 # Extract the first word of "otool64", so it can be a program name with args. 7150set dummy otool64; ac_word=$2 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152$as_echo_n "checking for $ac_word... " >&6; } 7153if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 if test -n "$ac_ct_OTOOL64"; then 7157 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7158else 7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7160for as_dir in $PATH 7161do 7162 IFS=$as_save_IFS 7163 test -z "$as_dir" && as_dir=. 7164 for ac_exec_ext in '' $ac_executable_extensions; do 7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7166 ac_cv_prog_ac_ct_OTOOL64="otool64" 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7168 break 2 7169 fi 7170done 7171 done 7172IFS=$as_save_IFS 7173 7174fi 7175fi 7176ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7177if test -n "$ac_ct_OTOOL64"; then 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7179$as_echo "$ac_ct_OTOOL64" >&6; } 7180else 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7182$as_echo "no" >&6; } 7183fi 7184 7185 if test "x$ac_ct_OTOOL64" = x; then 7186 OTOOL64=":" 7187 else 7188 case $cross_compiling:$ac_tool_warned in 7189yes:) 7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7192ac_tool_warned=yes ;; 7193esac 7194 OTOOL64=$ac_ct_OTOOL64 7195 fi 7196else 7197 OTOOL64="$ac_cv_prog_OTOOL64" 7198fi 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7227$as_echo_n "checking for -single_module linker flag... " >&6; } 7228if ${lt_cv_apple_cc_single_mod+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 lt_cv_apple_cc_single_mod=no 7232 if test -z "${LT_MULTI_MODULE}"; then 7233 # By default we will add the -single_module flag. You can override 7234 # by either setting the environment variable LT_MULTI_MODULE 7235 # non-empty at configure time, or by adding -multi_module to the 7236 # link flags. 7237 rm -rf libconftest.dylib* 7238 echo "int foo(void){return 1;}" > conftest.c 7239 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7240-dynamiclib -Wl,-single_module conftest.c" >&5 7241 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7242 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7243 _lt_result=$? 7244 # If there is a non-empty error log, and "single_module" 7245 # appears in it, assume the flag caused a linker warning 7246 if test -s conftest.err && $GREP single_module conftest.err; then 7247 cat conftest.err >&5 7248 # Otherwise, if the output was created with a 0 exit code from 7249 # the compiler, it worked. 7250 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7251 lt_cv_apple_cc_single_mod=yes 7252 else 7253 cat conftest.err >&5 7254 fi 7255 rm -rf libconftest.dylib* 7256 rm -f conftest.* 7257 fi 7258fi 7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7260$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7261 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7263$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7264if ${lt_cv_ld_exported_symbols_list+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 lt_cv_ld_exported_symbols_list=no 7268 save_LDFLAGS=$LDFLAGS 7269 echo "_main" > conftest.sym 7270 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273 7274int 7275main () 7276{ 7277 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_c_try_link "$LINENO"; then : 7283 lt_cv_ld_exported_symbols_list=yes 7284else 7285 lt_cv_ld_exported_symbols_list=no 7286fi 7287rm -f core conftest.err conftest.$ac_objext \ 7288 conftest$ac_exeext conftest.$ac_ext 7289 LDFLAGS="$save_LDFLAGS" 7290 7291fi 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7293$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7294 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7296$as_echo_n "checking for -force_load linker flag... " >&6; } 7297if ${lt_cv_ld_force_load+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 lt_cv_ld_force_load=no 7301 cat > conftest.c << _LT_EOF 7302int forced_loaded() { return 2;} 7303_LT_EOF 7304 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7305 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7306 echo "$AR cru libconftest.a conftest.o" >&5 7307 $AR cru libconftest.a conftest.o 2>&5 7308 echo "$RANLIB libconftest.a" >&5 7309 $RANLIB libconftest.a 2>&5 7310 cat > conftest.c << _LT_EOF 7311int main() { return 0;} 7312_LT_EOF 7313 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7314 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7315 _lt_result=$? 7316 if test -s conftest.err && $GREP force_load conftest.err; then 7317 cat conftest.err >&5 7318 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7319 lt_cv_ld_force_load=yes 7320 else 7321 cat conftest.err >&5 7322 fi 7323 rm -f conftest.err libconftest.a conftest conftest.c 7324 rm -rf conftest.dSYM 7325 7326fi 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7328$as_echo "$lt_cv_ld_force_load" >&6; } 7329 case $host_os in 7330 rhapsody* | darwin1.[012]) 7331 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7332 darwin1.*) 7333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7334 darwin*) # darwin 5.x on 7335 # if running on 10.5 or later, the deployment target defaults 7336 # to the OS version, if on x86, and 10.4, the deployment 7337 # target defaults to 10.4. Don't you love it? 7338 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7339 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7340 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7341 10.[012]*) 7342 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7343 10.*) 7344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7345 esac 7346 ;; 7347 esac 7348 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7349 _lt_dar_single_mod='$single_module' 7350 fi 7351 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7352 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7353 else 7354 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7355 fi 7356 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7357 _lt_dsymutil='~$DSYMUTIL $lib || :' 7358 else 7359 _lt_dsymutil= 7360 fi 7361 ;; 7362 esac 7363 7364ac_ext=c 7365ac_cpp='$CPP $CPPFLAGS' 7366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7368ac_compiler_gnu=$ac_cv_c_compiler_gnu 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7370$as_echo_n "checking how to run the C preprocessor... " >&6; } 7371# On Suns, sometimes $CPP names a directory. 7372if test -n "$CPP" && test -d "$CPP"; then 7373 CPP= 7374fi 7375if test -z "$CPP"; then 7376 if ${ac_cv_prog_CPP+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378else 7379 # Double quotes because CPP needs to be expanded 7380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7381 do 7382 ac_preproc_ok=false 7383for ac_c_preproc_warn_flag in '' yes 7384do 7385 # Use a header file that comes with gcc, so configuring glibc 7386 # with a fresh cross-compiler works. 7387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7388 # <limits.h> exists even on freestanding compilers. 7389 # On the NeXT, cc -E runs the code through the compiler's parser, 7390 # not just through cpp. "Syntax error" is here to catch this case. 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393#ifdef __STDC__ 7394# include <limits.h> 7395#else 7396# include <assert.h> 7397#endif 7398 Syntax error 7399_ACEOF 7400if ac_fn_c_try_cpp "$LINENO"; then : 7401 7402else 7403 # Broken: fails on valid input. 7404continue 7405fi 7406rm -f conftest.err conftest.i conftest.$ac_ext 7407 7408 # OK, works on sane cases. Now check whether nonexistent headers 7409 # can be detected and how. 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411/* end confdefs.h. */ 7412#include <ac_nonexistent.h> 7413_ACEOF 7414if ac_fn_c_try_cpp "$LINENO"; then : 7415 # Broken: success on invalid input. 7416continue 7417else 7418 # Passes both tests. 7419ac_preproc_ok=: 7420break 7421fi 7422rm -f conftest.err conftest.i conftest.$ac_ext 7423 7424done 7425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7426rm -f conftest.i conftest.err conftest.$ac_ext 7427if $ac_preproc_ok; then : 7428 break 7429fi 7430 7431 done 7432 ac_cv_prog_CPP=$CPP 7433 7434fi 7435 CPP=$ac_cv_prog_CPP 7436else 7437 ac_cv_prog_CPP=$CPP 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7440$as_echo "$CPP" >&6; } 7441ac_preproc_ok=false 7442for ac_c_preproc_warn_flag in '' yes 7443do 7444 # Use a header file that comes with gcc, so configuring glibc 7445 # with a fresh cross-compiler works. 7446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7447 # <limits.h> exists even on freestanding compilers. 7448 # On the NeXT, cc -E runs the code through the compiler's parser, 7449 # not just through cpp. "Syntax error" is here to catch this case. 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452#ifdef __STDC__ 7453# include <limits.h> 7454#else 7455# include <assert.h> 7456#endif 7457 Syntax error 7458_ACEOF 7459if ac_fn_c_try_cpp "$LINENO"; then : 7460 7461else 7462 # Broken: fails on valid input. 7463continue 7464fi 7465rm -f conftest.err conftest.i conftest.$ac_ext 7466 7467 # OK, works on sane cases. Now check whether nonexistent headers 7468 # can be detected and how. 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470/* end confdefs.h. */ 7471#include <ac_nonexistent.h> 7472_ACEOF 7473if ac_fn_c_try_cpp "$LINENO"; then : 7474 # Broken: success on invalid input. 7475continue 7476else 7477 # Passes both tests. 7478ac_preproc_ok=: 7479break 7480fi 7481rm -f conftest.err conftest.i conftest.$ac_ext 7482 7483done 7484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7485rm -f conftest.i conftest.err conftest.$ac_ext 7486if $ac_preproc_ok; then : 7487 7488else 7489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7491as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7492See \`config.log' for more details" "$LINENO" 5; } 7493fi 7494 7495ac_ext=c 7496ac_cpp='$CPP $CPPFLAGS' 7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7499ac_compiler_gnu=$ac_cv_c_compiler_gnu 7500 7501 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7503$as_echo_n "checking for ANSI C header files... " >&6; } 7504if ${ac_cv_header_stdc+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509#include <stdlib.h> 7510#include <stdarg.h> 7511#include <string.h> 7512#include <float.h> 7513 7514int 7515main () 7516{ 7517 7518 ; 7519 return 0; 7520} 7521_ACEOF 7522if ac_fn_c_try_compile "$LINENO"; then : 7523 ac_cv_header_stdc=yes 7524else 7525 ac_cv_header_stdc=no 7526fi 7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7528 7529if test $ac_cv_header_stdc = yes; then 7530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533#include <string.h> 7534 7535_ACEOF 7536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7537 $EGREP "memchr" >/dev/null 2>&1; then : 7538 7539else 7540 ac_cv_header_stdc=no 7541fi 7542rm -f conftest* 7543 7544fi 7545 7546if test $ac_cv_header_stdc = yes; then 7547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550#include <stdlib.h> 7551 7552_ACEOF 7553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7554 $EGREP "free" >/dev/null 2>&1; then : 7555 7556else 7557 ac_cv_header_stdc=no 7558fi 7559rm -f conftest* 7560 7561fi 7562 7563if test $ac_cv_header_stdc = yes; then 7564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7565 if test "$cross_compiling" = yes; then : 7566 : 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570#include <ctype.h> 7571#include <stdlib.h> 7572#if ((' ' & 0x0FF) == 0x020) 7573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7575#else 7576# define ISLOWER(c) \ 7577 (('a' <= (c) && (c) <= 'i') \ 7578 || ('j' <= (c) && (c) <= 'r') \ 7579 || ('s' <= (c) && (c) <= 'z')) 7580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7581#endif 7582 7583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7584int 7585main () 7586{ 7587 int i; 7588 for (i = 0; i < 256; i++) 7589 if (XOR (islower (i), ISLOWER (i)) 7590 || toupper (i) != TOUPPER (i)) 7591 return 2; 7592 return 0; 7593} 7594_ACEOF 7595if ac_fn_c_try_run "$LINENO"; then : 7596 7597else 7598 ac_cv_header_stdc=no 7599fi 7600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7601 conftest.$ac_objext conftest.beam conftest.$ac_ext 7602fi 7603 7604fi 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7607$as_echo "$ac_cv_header_stdc" >&6; } 7608if test $ac_cv_header_stdc = yes; then 7609 7610$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7611 7612fi 7613 7614# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7616 inttypes.h stdint.h unistd.h 7617do : 7618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7620" 7621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7622 cat >>confdefs.h <<_ACEOF 7623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7624_ACEOF 7625 7626fi 7627 7628done 7629 7630 7631for ac_header in dlfcn.h 7632do : 7633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7634" 7635if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7636 cat >>confdefs.h <<_ACEOF 7637#define HAVE_DLFCN_H 1 7638_ACEOF 7639 7640fi 7641 7642done 7643 7644 7645 7646 7647 7648# Set options 7649 7650 7651 7652 enable_dlopen=no 7653 7654 7655 enable_win32_dll=no 7656 7657 7658 # Check whether --enable-shared was given. 7659if test "${enable_shared+set}" = set; then : 7660 enableval=$enable_shared; p=${PACKAGE-default} 7661 case $enableval in 7662 yes) enable_shared=yes ;; 7663 no) enable_shared=no ;; 7664 *) 7665 enable_shared=no 7666 # Look at the argument we got. We use all the common list separators. 7667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7668 for pkg in $enableval; do 7669 IFS="$lt_save_ifs" 7670 if test "X$pkg" = "X$p"; then 7671 enable_shared=yes 7672 fi 7673 done 7674 IFS="$lt_save_ifs" 7675 ;; 7676 esac 7677else 7678 enable_shared=yes 7679fi 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 # Check whether --enable-static was given. 7690if test "${enable_static+set}" = set; then : 7691 enableval=$enable_static; p=${PACKAGE-default} 7692 case $enableval in 7693 yes) enable_static=yes ;; 7694 no) enable_static=no ;; 7695 *) 7696 enable_static=no 7697 # Look at the argument we got. We use all the common list separators. 7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7699 for pkg in $enableval; do 7700 IFS="$lt_save_ifs" 7701 if test "X$pkg" = "X$p"; then 7702 enable_static=yes 7703 fi 7704 done 7705 IFS="$lt_save_ifs" 7706 ;; 7707 esac 7708else 7709 enable_static=yes 7710fi 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721# Check whether --with-pic was given. 7722if test "${with_pic+set}" = set; then : 7723 withval=$with_pic; lt_p=${PACKAGE-default} 7724 case $withval in 7725 yes|no) pic_mode=$withval ;; 7726 *) 7727 pic_mode=default 7728 # Look at the argument we got. We use all the common list separators. 7729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7730 for lt_pkg in $withval; do 7731 IFS="$lt_save_ifs" 7732 if test "X$lt_pkg" = "X$lt_p"; then 7733 pic_mode=yes 7734 fi 7735 done 7736 IFS="$lt_save_ifs" 7737 ;; 7738 esac 7739else 7740 pic_mode=default 7741fi 7742 7743 7744test -z "$pic_mode" && pic_mode=default 7745 7746 7747 7748 7749 7750 7751 7752 # Check whether --enable-fast-install was given. 7753if test "${enable_fast_install+set}" = set; then : 7754 enableval=$enable_fast_install; p=${PACKAGE-default} 7755 case $enableval in 7756 yes) enable_fast_install=yes ;; 7757 no) enable_fast_install=no ;; 7758 *) 7759 enable_fast_install=no 7760 # Look at the argument we got. We use all the common list separators. 7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7762 for pkg in $enableval; do 7763 IFS="$lt_save_ifs" 7764 if test "X$pkg" = "X$p"; then 7765 enable_fast_install=yes 7766 fi 7767 done 7768 IFS="$lt_save_ifs" 7769 ;; 7770 esac 7771else 7772 enable_fast_install=yes 7773fi 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785# This can be used to rebuild libtool when needed 7786LIBTOOL_DEPS="$ltmain" 7787 7788# Always use our own libtool. 7789LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820test -z "$LN_S" && LN_S="ln -s" 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835if test -n "${ZSH_VERSION+set}" ; then 7836 setopt NO_GLOB_SUBST 7837fi 7838 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7840$as_echo_n "checking for objdir... " >&6; } 7841if ${lt_cv_objdir+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 rm -f .libs 2>/dev/null 7845mkdir .libs 2>/dev/null 7846if test -d .libs; then 7847 lt_cv_objdir=.libs 7848else 7849 # MS-DOS does not allow filenames that begin with a dot. 7850 lt_cv_objdir=_libs 7851fi 7852rmdir .libs 2>/dev/null 7853fi 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7855$as_echo "$lt_cv_objdir" >&6; } 7856objdir=$lt_cv_objdir 7857 7858 7859 7860 7861 7862cat >>confdefs.h <<_ACEOF 7863#define LT_OBJDIR "$lt_cv_objdir/" 7864_ACEOF 7865 7866 7867 7868 7869case $host_os in 7870aix3*) 7871 # AIX sometimes has problems with the GCC collect2 program. For some 7872 # reason, if we set the COLLECT_NAMES environment variable, the problems 7873 # vanish in a puff of smoke. 7874 if test "X${COLLECT_NAMES+set}" != Xset; then 7875 COLLECT_NAMES= 7876 export COLLECT_NAMES 7877 fi 7878 ;; 7879esac 7880 7881# Global variables: 7882ofile=libtool 7883can_build_shared=yes 7884 7885# All known linkers require a `.a' archive for static linking (except MSVC, 7886# which needs '.lib'). 7887libext=a 7888 7889with_gnu_ld="$lt_cv_prog_gnu_ld" 7890 7891old_CC="$CC" 7892old_CFLAGS="$CFLAGS" 7893 7894# Set sane defaults for various variables 7895test -z "$CC" && CC=cc 7896test -z "$LTCC" && LTCC=$CC 7897test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7898test -z "$LD" && LD=ld 7899test -z "$ac_objext" && ac_objext=o 7900 7901for cc_temp in $compiler""; do 7902 case $cc_temp in 7903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7905 \-*) ;; 7906 *) break;; 7907 esac 7908done 7909cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7910 7911 7912# Only perform the check for file, if the check method requires it 7913test -z "$MAGIC_CMD" && MAGIC_CMD=file 7914case $deplibs_check_method in 7915file_magic*) 7916 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7918$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7919if ${lt_cv_path_MAGIC_CMD+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 case $MAGIC_CMD in 7923[\\/*] | ?:[\\/]*) 7924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7925 ;; 7926*) 7927 lt_save_MAGIC_CMD="$MAGIC_CMD" 7928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7930 for ac_dir in $ac_dummy; do 7931 IFS="$lt_save_ifs" 7932 test -z "$ac_dir" && ac_dir=. 7933 if test -f $ac_dir/${ac_tool_prefix}file; then 7934 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7935 if test -n "$file_magic_test_file"; then 7936 case $deplibs_check_method in 7937 "file_magic "*) 7938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7941 $EGREP "$file_magic_regex" > /dev/null; then 7942 : 7943 else 7944 cat <<_LT_EOF 1>&2 7945 7946*** Warning: the command libtool uses to detect shared libraries, 7947*** $file_magic_cmd, produces output that libtool cannot recognize. 7948*** The result is that libtool may fail to recognize shared libraries 7949*** as such. This will affect the creation of libtool libraries that 7950*** depend on shared libraries, but programs linked with such libtool 7951*** libraries will work regardless of this problem. Nevertheless, you 7952*** may want to report the problem to your system manager and/or to 7953*** bug-libtool@gnu.org 7954 7955_LT_EOF 7956 fi ;; 7957 esac 7958 fi 7959 break 7960 fi 7961 done 7962 IFS="$lt_save_ifs" 7963 MAGIC_CMD="$lt_save_MAGIC_CMD" 7964 ;; 7965esac 7966fi 7967 7968MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7969if test -n "$MAGIC_CMD"; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7971$as_echo "$MAGIC_CMD" >&6; } 7972else 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7974$as_echo "no" >&6; } 7975fi 7976 7977 7978 7979 7980 7981if test -z "$lt_cv_path_MAGIC_CMD"; then 7982 if test -n "$ac_tool_prefix"; then 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7984$as_echo_n "checking for file... " >&6; } 7985if ${lt_cv_path_MAGIC_CMD+:} false; then : 7986 $as_echo_n "(cached) " >&6 7987else 7988 case $MAGIC_CMD in 7989[\\/*] | ?:[\\/]*) 7990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7991 ;; 7992*) 7993 lt_save_MAGIC_CMD="$MAGIC_CMD" 7994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7996 for ac_dir in $ac_dummy; do 7997 IFS="$lt_save_ifs" 7998 test -z "$ac_dir" && ac_dir=. 7999 if test -f $ac_dir/file; then 8000 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8001 if test -n "$file_magic_test_file"; then 8002 case $deplibs_check_method in 8003 "file_magic "*) 8004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8007 $EGREP "$file_magic_regex" > /dev/null; then 8008 : 8009 else 8010 cat <<_LT_EOF 1>&2 8011 8012*** Warning: the command libtool uses to detect shared libraries, 8013*** $file_magic_cmd, produces output that libtool cannot recognize. 8014*** The result is that libtool may fail to recognize shared libraries 8015*** as such. This will affect the creation of libtool libraries that 8016*** depend on shared libraries, but programs linked with such libtool 8017*** libraries will work regardless of this problem. Nevertheless, you 8018*** may want to report the problem to your system manager and/or to 8019*** bug-libtool@gnu.org 8020 8021_LT_EOF 8022 fi ;; 8023 esac 8024 fi 8025 break 8026 fi 8027 done 8028 IFS="$lt_save_ifs" 8029 MAGIC_CMD="$lt_save_MAGIC_CMD" 8030 ;; 8031esac 8032fi 8033 8034MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8035if test -n "$MAGIC_CMD"; then 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8037$as_echo "$MAGIC_CMD" >&6; } 8038else 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8040$as_echo "no" >&6; } 8041fi 8042 8043 8044 else 8045 MAGIC_CMD=: 8046 fi 8047fi 8048 8049 fi 8050 ;; 8051esac 8052 8053# Use C for the default configuration in the libtool script 8054 8055lt_save_CC="$CC" 8056ac_ext=c 8057ac_cpp='$CPP $CPPFLAGS' 8058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8060ac_compiler_gnu=$ac_cv_c_compiler_gnu 8061 8062 8063# Source file extension for C test sources. 8064ac_ext=c 8065 8066# Object file extension for compiled C test sources. 8067objext=o 8068objext=$objext 8069 8070# Code to be used in simple compile tests 8071lt_simple_compile_test_code="int some_variable = 0;" 8072 8073# Code to be used in simple link tests 8074lt_simple_link_test_code='int main(){return(0);}' 8075 8076 8077 8078 8079 8080 8081 8082# If no C compiler was specified, use CC. 8083LTCC=${LTCC-"$CC"} 8084 8085# If no C compiler flags were specified, use CFLAGS. 8086LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8087 8088# Allow CC to be a program name with arguments. 8089compiler=$CC 8090 8091# Save the default compiler, since it gets overwritten when the other 8092# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8093compiler_DEFAULT=$CC 8094 8095# save warnings/boilerplate of simple test code 8096ac_outfile=conftest.$ac_objext 8097echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8098eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8099_lt_compiler_boilerplate=`cat conftest.err` 8100$RM conftest* 8101 8102ac_outfile=conftest.$ac_objext 8103echo "$lt_simple_link_test_code" >conftest.$ac_ext 8104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8105_lt_linker_boilerplate=`cat conftest.err` 8106$RM -r conftest* 8107 8108 8109if test -n "$compiler"; then 8110 8111lt_prog_compiler_no_builtin_flag= 8112 8113if test "$GCC" = yes; then 8114 case $cc_basename in 8115 nvcc*) 8116 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8117 *) 8118 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8119 esac 8120 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8122$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8123if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125else 8126 lt_cv_prog_compiler_rtti_exceptions=no 8127 ac_outfile=conftest.$ac_objext 8128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8129 lt_compiler_flag="-fno-rtti -fno-exceptions" 8130 # Insert the option either (1) after the last *FLAGS variable, or 8131 # (2) before a word containing "conftest.", or (3) at the end. 8132 # Note that $ac_compile itself does not contain backslashes and begins 8133 # with a dollar sign (not a hyphen), so the echo should work correctly. 8134 # The option is referenced via a variable to avoid confusing sed. 8135 lt_compile=`echo "$ac_compile" | $SED \ 8136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8138 -e 's:$: $lt_compiler_flag:'` 8139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8140 (eval "$lt_compile" 2>conftest.err) 8141 ac_status=$? 8142 cat conftest.err >&5 8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8144 if (exit $ac_status) && test -s "$ac_outfile"; then 8145 # The compiler can only warn and ignore the option if not recognized 8146 # So say no if there are warnings other than the usual output. 8147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8150 lt_cv_prog_compiler_rtti_exceptions=yes 8151 fi 8152 fi 8153 $RM conftest* 8154 8155fi 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8157$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8158 8159if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8161else 8162 : 8163fi 8164 8165fi 8166 8167 8168 8169 8170 8171 8172 lt_prog_compiler_wl= 8173lt_prog_compiler_pic= 8174lt_prog_compiler_static= 8175 8176 8177 if test "$GCC" = yes; then 8178 lt_prog_compiler_wl='-Wl,' 8179 lt_prog_compiler_static='-static' 8180 8181 case $host_os in 8182 aix*) 8183 # All AIX code is PIC. 8184 if test "$host_cpu" = ia64; then 8185 # AIX 5 now supports IA64 processor 8186 lt_prog_compiler_static='-Bstatic' 8187 fi 8188 ;; 8189 8190 amigaos*) 8191 case $host_cpu in 8192 powerpc) 8193 # see comment about AmigaOS4 .so support 8194 lt_prog_compiler_pic='-fPIC' 8195 ;; 8196 m68k) 8197 # FIXME: we need at least 68020 code to build shared libraries, but 8198 # adding the `-m68020' flag to GCC prevents building anything better, 8199 # like `-m68040'. 8200 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8201 ;; 8202 esac 8203 ;; 8204 8205 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8206 # PIC is the default for these OSes. 8207 ;; 8208 8209 mingw* | cygwin* | pw32* | os2* | cegcc*) 8210 # This hack is so that the source file can tell whether it is being 8211 # built for inclusion in a dll (and should export symbols for example). 8212 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8213 # (--disable-auto-import) libraries 8214 lt_prog_compiler_pic='-DDLL_EXPORT' 8215 ;; 8216 8217 darwin* | rhapsody*) 8218 # PIC is the default on this platform 8219 # Common symbols not allowed in MH_DYLIB files 8220 lt_prog_compiler_pic='-fno-common' 8221 ;; 8222 8223 haiku*) 8224 # PIC is the default for Haiku. 8225 # The "-static" flag exists, but is broken. 8226 lt_prog_compiler_static= 8227 ;; 8228 8229 hpux*) 8230 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8231 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8232 # sets the default TLS model and affects inlining. 8233 case $host_cpu in 8234 hppa*64*) 8235 # +Z the default 8236 ;; 8237 *) 8238 lt_prog_compiler_pic='-fPIC' 8239 ;; 8240 esac 8241 ;; 8242 8243 interix[3-9]*) 8244 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8245 # Instead, we relocate shared libraries at runtime. 8246 ;; 8247 8248 msdosdjgpp*) 8249 # Just because we use GCC doesn't mean we suddenly get shared libraries 8250 # on systems that don't support them. 8251 lt_prog_compiler_can_build_shared=no 8252 enable_shared=no 8253 ;; 8254 8255 *nto* | *qnx*) 8256 # QNX uses GNU C++, but need to define -shared option too, otherwise 8257 # it will coredump. 8258 lt_prog_compiler_pic='-fPIC -shared' 8259 ;; 8260 8261 sysv4*MP*) 8262 if test -d /usr/nec; then 8263 lt_prog_compiler_pic=-Kconform_pic 8264 fi 8265 ;; 8266 8267 *) 8268 lt_prog_compiler_pic='-fPIC' 8269 ;; 8270 esac 8271 8272 case $cc_basename in 8273 nvcc*) # Cuda Compiler Driver 2.2 8274 lt_prog_compiler_wl='-Xlinker ' 8275 if test -n "$lt_prog_compiler_pic"; then 8276 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8277 fi 8278 ;; 8279 esac 8280 else 8281 # PORTME Check for flag to pass linker flags through the system compiler. 8282 case $host_os in 8283 aix*) 8284 lt_prog_compiler_wl='-Wl,' 8285 if test "$host_cpu" = ia64; then 8286 # AIX 5 now supports IA64 processor 8287 lt_prog_compiler_static='-Bstatic' 8288 else 8289 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8290 fi 8291 ;; 8292 8293 mingw* | cygwin* | pw32* | os2* | cegcc*) 8294 # This hack is so that the source file can tell whether it is being 8295 # built for inclusion in a dll (and should export symbols for example). 8296 lt_prog_compiler_pic='-DDLL_EXPORT' 8297 ;; 8298 8299 hpux9* | hpux10* | hpux11*) 8300 lt_prog_compiler_wl='-Wl,' 8301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8302 # not for PA HP-UX. 8303 case $host_cpu in 8304 hppa*64*|ia64*) 8305 # +Z the default 8306 ;; 8307 *) 8308 lt_prog_compiler_pic='+Z' 8309 ;; 8310 esac 8311 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8312 lt_prog_compiler_static='${wl}-a ${wl}archive' 8313 ;; 8314 8315 irix5* | irix6* | nonstopux*) 8316 lt_prog_compiler_wl='-Wl,' 8317 # PIC (with -KPIC) is the default. 8318 lt_prog_compiler_static='-non_shared' 8319 ;; 8320 8321 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8322 case $cc_basename in 8323 # old Intel for x86_64 which still supported -KPIC. 8324 ecc*) 8325 lt_prog_compiler_wl='-Wl,' 8326 lt_prog_compiler_pic='-KPIC' 8327 lt_prog_compiler_static='-static' 8328 ;; 8329 # icc used to be incompatible with GCC. 8330 # ICC 10 doesn't accept -KPIC any more. 8331 icc* | ifort*) 8332 lt_prog_compiler_wl='-Wl,' 8333 lt_prog_compiler_pic='-fPIC' 8334 lt_prog_compiler_static='-static' 8335 ;; 8336 # Lahey Fortran 8.1. 8337 lf95*) 8338 lt_prog_compiler_wl='-Wl,' 8339 lt_prog_compiler_pic='--shared' 8340 lt_prog_compiler_static='--static' 8341 ;; 8342 nagfor*) 8343 # NAG Fortran compiler 8344 lt_prog_compiler_wl='-Wl,-Wl,,' 8345 lt_prog_compiler_pic='-PIC' 8346 lt_prog_compiler_static='-Bstatic' 8347 ;; 8348 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8349 # Portland Group compilers (*not* the Pentium gcc compiler, 8350 # which looks to be a dead project) 8351 lt_prog_compiler_wl='-Wl,' 8352 lt_prog_compiler_pic='-fpic' 8353 lt_prog_compiler_static='-Bstatic' 8354 ;; 8355 ccc*) 8356 lt_prog_compiler_wl='-Wl,' 8357 # All Alpha code is PIC. 8358 lt_prog_compiler_static='-non_shared' 8359 ;; 8360 xl* | bgxl* | bgf* | mpixl*) 8361 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8362 lt_prog_compiler_wl='-Wl,' 8363 lt_prog_compiler_pic='-qpic' 8364 lt_prog_compiler_static='-qstaticlink' 8365 ;; 8366 *) 8367 case `$CC -V 2>&1 | sed 5q` in 8368 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8369 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8370 lt_prog_compiler_pic='-KPIC' 8371 lt_prog_compiler_static='-Bstatic' 8372 lt_prog_compiler_wl='' 8373 ;; 8374 *Sun\ F* | *Sun*Fortran*) 8375 lt_prog_compiler_pic='-KPIC' 8376 lt_prog_compiler_static='-Bstatic' 8377 lt_prog_compiler_wl='-Qoption ld ' 8378 ;; 8379 *Sun\ C*) 8380 # Sun C 5.9 8381 lt_prog_compiler_pic='-KPIC' 8382 lt_prog_compiler_static='-Bstatic' 8383 lt_prog_compiler_wl='-Wl,' 8384 ;; 8385 *Intel*\ [CF]*Compiler*) 8386 lt_prog_compiler_wl='-Wl,' 8387 lt_prog_compiler_pic='-fPIC' 8388 lt_prog_compiler_static='-static' 8389 ;; 8390 *Portland\ Group*) 8391 lt_prog_compiler_wl='-Wl,' 8392 lt_prog_compiler_pic='-fpic' 8393 lt_prog_compiler_static='-Bstatic' 8394 ;; 8395 esac 8396 ;; 8397 esac 8398 ;; 8399 8400 newsos6) 8401 lt_prog_compiler_pic='-KPIC' 8402 lt_prog_compiler_static='-Bstatic' 8403 ;; 8404 8405 *nto* | *qnx*) 8406 # QNX uses GNU C++, but need to define -shared option too, otherwise 8407 # it will coredump. 8408 lt_prog_compiler_pic='-fPIC -shared' 8409 ;; 8410 8411 osf3* | osf4* | osf5*) 8412 lt_prog_compiler_wl='-Wl,' 8413 # All OSF/1 code is PIC. 8414 lt_prog_compiler_static='-non_shared' 8415 ;; 8416 8417 rdos*) 8418 lt_prog_compiler_static='-non_shared' 8419 ;; 8420 8421 solaris*) 8422 lt_prog_compiler_pic='-KPIC' 8423 lt_prog_compiler_static='-Bstatic' 8424 case $cc_basename in 8425 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8426 lt_prog_compiler_wl='-Qoption ld ';; 8427 *) 8428 lt_prog_compiler_wl='-Wl,';; 8429 esac 8430 ;; 8431 8432 sunos4*) 8433 lt_prog_compiler_wl='-Qoption ld ' 8434 lt_prog_compiler_pic='-PIC' 8435 lt_prog_compiler_static='-Bstatic' 8436 ;; 8437 8438 sysv4 | sysv4.2uw2* | sysv4.3*) 8439 lt_prog_compiler_wl='-Wl,' 8440 lt_prog_compiler_pic='-KPIC' 8441 lt_prog_compiler_static='-Bstatic' 8442 ;; 8443 8444 sysv4*MP*) 8445 if test -d /usr/nec ;then 8446 lt_prog_compiler_pic='-Kconform_pic' 8447 lt_prog_compiler_static='-Bstatic' 8448 fi 8449 ;; 8450 8451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8452 lt_prog_compiler_wl='-Wl,' 8453 lt_prog_compiler_pic='-KPIC' 8454 lt_prog_compiler_static='-Bstatic' 8455 ;; 8456 8457 unicos*) 8458 lt_prog_compiler_wl='-Wl,' 8459 lt_prog_compiler_can_build_shared=no 8460 ;; 8461 8462 uts4*) 8463 lt_prog_compiler_pic='-pic' 8464 lt_prog_compiler_static='-Bstatic' 8465 ;; 8466 8467 *) 8468 lt_prog_compiler_can_build_shared=no 8469 ;; 8470 esac 8471 fi 8472 8473case $host_os in 8474 # For platforms which do not support PIC, -DPIC is meaningless: 8475 *djgpp*) 8476 lt_prog_compiler_pic= 8477 ;; 8478 *) 8479 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8480 ;; 8481esac 8482 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8484$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8485if ${lt_cv_prog_compiler_pic+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8489fi 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8491$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8492lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8493 8494# 8495# Check to make sure the PIC flag actually works. 8496# 8497if test -n "$lt_prog_compiler_pic"; then 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8499$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8500if ${lt_cv_prog_compiler_pic_works+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 lt_cv_prog_compiler_pic_works=no 8504 ac_outfile=conftest.$ac_objext 8505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8507 # Insert the option either (1) after the last *FLAGS variable, or 8508 # (2) before a word containing "conftest.", or (3) at the end. 8509 # Note that $ac_compile itself does not contain backslashes and begins 8510 # with a dollar sign (not a hyphen), so the echo should work correctly. 8511 # The option is referenced via a variable to avoid confusing sed. 8512 lt_compile=`echo "$ac_compile" | $SED \ 8513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8515 -e 's:$: $lt_compiler_flag:'` 8516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8517 (eval "$lt_compile" 2>conftest.err) 8518 ac_status=$? 8519 cat conftest.err >&5 8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8521 if (exit $ac_status) && test -s "$ac_outfile"; then 8522 # The compiler can only warn and ignore the option if not recognized 8523 # So say no if there are warnings other than the usual output. 8524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8527 lt_cv_prog_compiler_pic_works=yes 8528 fi 8529 fi 8530 $RM conftest* 8531 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8534$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8535 8536if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8537 case $lt_prog_compiler_pic in 8538 "" | " "*) ;; 8539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8540 esac 8541else 8542 lt_prog_compiler_pic= 8543 lt_prog_compiler_can_build_shared=no 8544fi 8545 8546fi 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558# 8559# Check to make sure the static flag actually works. 8560# 8561wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8563$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8564if ${lt_cv_prog_compiler_static_works+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 lt_cv_prog_compiler_static_works=no 8568 save_LDFLAGS="$LDFLAGS" 8569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8570 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8572 # The linker can only warn and ignore the option if not recognized 8573 # So say no if there are warnings 8574 if test -s conftest.err; then 8575 # Append any errors to the config.log. 8576 cat conftest.err 1>&5 8577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8579 if diff conftest.exp conftest.er2 >/dev/null; then 8580 lt_cv_prog_compiler_static_works=yes 8581 fi 8582 else 8583 lt_cv_prog_compiler_static_works=yes 8584 fi 8585 fi 8586 $RM -r conftest* 8587 LDFLAGS="$save_LDFLAGS" 8588 8589fi 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8591$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8592 8593if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8594 : 8595else 8596 lt_prog_compiler_static= 8597fi 8598 8599 8600 8601 8602 8603 8604 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8606$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8607if ${lt_cv_prog_compiler_c_o+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 lt_cv_prog_compiler_c_o=no 8611 $RM -r conftest 2>/dev/null 8612 mkdir conftest 8613 cd conftest 8614 mkdir out 8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8616 8617 lt_compiler_flag="-o out/conftest2.$ac_objext" 8618 # Insert the option either (1) after the last *FLAGS variable, or 8619 # (2) before a word containing "conftest.", or (3) at the end. 8620 # Note that $ac_compile itself does not contain backslashes and begins 8621 # with a dollar sign (not a hyphen), so the echo should work correctly. 8622 lt_compile=`echo "$ac_compile" | $SED \ 8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8625 -e 's:$: $lt_compiler_flag:'` 8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8627 (eval "$lt_compile" 2>out/conftest.err) 8628 ac_status=$? 8629 cat out/conftest.err >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8631 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8632 then 8633 # The compiler can only warn and ignore the option if not recognized 8634 # So say no if there are warnings 8635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8638 lt_cv_prog_compiler_c_o=yes 8639 fi 8640 fi 8641 chmod u+w . 2>&5 8642 $RM conftest* 8643 # SGI C++ compiler will create directory out/ii_files/ for 8644 # template instantiation 8645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8646 $RM out/* && rmdir out 8647 cd .. 8648 $RM -r conftest 8649 $RM conftest* 8650 8651fi 8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8653$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8654 8655 8656 8657 8658 8659 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8662if ${lt_cv_prog_compiler_c_o+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 lt_cv_prog_compiler_c_o=no 8666 $RM -r conftest 2>/dev/null 8667 mkdir conftest 8668 cd conftest 8669 mkdir out 8670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8671 8672 lt_compiler_flag="-o out/conftest2.$ac_objext" 8673 # Insert the option either (1) after the last *FLAGS variable, or 8674 # (2) before a word containing "conftest.", or (3) at the end. 8675 # Note that $ac_compile itself does not contain backslashes and begins 8676 # with a dollar sign (not a hyphen), so the echo should work correctly. 8677 lt_compile=`echo "$ac_compile" | $SED \ 8678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8680 -e 's:$: $lt_compiler_flag:'` 8681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8682 (eval "$lt_compile" 2>out/conftest.err) 8683 ac_status=$? 8684 cat out/conftest.err >&5 8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8686 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8687 then 8688 # The compiler can only warn and ignore the option if not recognized 8689 # So say no if there are warnings 8690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8693 lt_cv_prog_compiler_c_o=yes 8694 fi 8695 fi 8696 chmod u+w . 2>&5 8697 $RM conftest* 8698 # SGI C++ compiler will create directory out/ii_files/ for 8699 # template instantiation 8700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8701 $RM out/* && rmdir out 8702 cd .. 8703 $RM -r conftest 8704 $RM conftest* 8705 8706fi 8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8708$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8709 8710 8711 8712 8713hard_links="nottested" 8714if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8715 # do not overwrite the value of need_locks provided by the user 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8717$as_echo_n "checking if we can lock with hard links... " >&6; } 8718 hard_links=yes 8719 $RM conftest* 8720 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8721 touch conftest.a 8722 ln conftest.a conftest.b 2>&5 || hard_links=no 8723 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8725$as_echo "$hard_links" >&6; } 8726 if test "$hard_links" = no; then 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8728$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8729 need_locks=warn 8730 fi 8731else 8732 need_locks=no 8733fi 8734 8735 8736 8737 8738 8739 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8742 8743 runpath_var= 8744 allow_undefined_flag= 8745 always_export_symbols=no 8746 archive_cmds= 8747 archive_expsym_cmds= 8748 compiler_needs_object=no 8749 enable_shared_with_static_runtimes=no 8750 export_dynamic_flag_spec= 8751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8752 hardcode_automatic=no 8753 hardcode_direct=no 8754 hardcode_direct_absolute=no 8755 hardcode_libdir_flag_spec= 8756 hardcode_libdir_separator= 8757 hardcode_minus_L=no 8758 hardcode_shlibpath_var=unsupported 8759 inherit_rpath=no 8760 link_all_deplibs=unknown 8761 module_cmds= 8762 module_expsym_cmds= 8763 old_archive_from_new_cmds= 8764 old_archive_from_expsyms_cmds= 8765 thread_safe_flag_spec= 8766 whole_archive_flag_spec= 8767 # include_expsyms should be a list of space-separated symbols to be *always* 8768 # included in the symbol list 8769 include_expsyms= 8770 # exclude_expsyms can be an extended regexp of symbols to exclude 8771 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8773 # as well as any symbol that contains `d'. 8774 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8776 # platforms (ab)use it in PIC code, but their linkers get confused if 8777 # the symbol is explicitly referenced. Since portable code cannot 8778 # rely on this symbol name, it's probably fine to never include it in 8779 # preloaded symbol tables. 8780 # Exclude shared library initialization/finalization symbols. 8781 extract_expsyms_cmds= 8782 8783 case $host_os in 8784 cygwin* | mingw* | pw32* | cegcc*) 8785 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8786 # When not using gcc, we currently assume that we are using 8787 # Microsoft Visual C++. 8788 if test "$GCC" != yes; then 8789 with_gnu_ld=no 8790 fi 8791 ;; 8792 interix*) 8793 # we just hope/assume this is gcc and not c89 (= MSVC++) 8794 with_gnu_ld=yes 8795 ;; 8796 openbsd*) 8797 with_gnu_ld=no 8798 ;; 8799 esac 8800 8801 ld_shlibs=yes 8802 8803 # On some targets, GNU ld is compatible enough with the native linker 8804 # that we're better off using the native interface for both. 8805 lt_use_gnu_ld_interface=no 8806 if test "$with_gnu_ld" = yes; then 8807 case $host_os in 8808 aix*) 8809 # The AIX port of GNU ld has always aspired to compatibility 8810 # with the native linker. However, as the warning in the GNU ld 8811 # block says, versions before 2.19.5* couldn't really create working 8812 # shared libraries, regardless of the interface used. 8813 case `$LD -v 2>&1` in 8814 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8815 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8816 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8817 *) 8818 lt_use_gnu_ld_interface=yes 8819 ;; 8820 esac 8821 ;; 8822 *) 8823 lt_use_gnu_ld_interface=yes 8824 ;; 8825 esac 8826 fi 8827 8828 if test "$lt_use_gnu_ld_interface" = yes; then 8829 # If archive_cmds runs LD, not CC, wlarc should be empty 8830 wlarc='${wl}' 8831 8832 # Set some defaults for GNU ld with shared library support. These 8833 # are reset later if shared libraries are not supported. Putting them 8834 # here allows them to be overridden if necessary. 8835 runpath_var=LD_RUN_PATH 8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8837 export_dynamic_flag_spec='${wl}--export-dynamic' 8838 # ancient GNU ld didn't support --whole-archive et. al. 8839 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8841 else 8842 whole_archive_flag_spec= 8843 fi 8844 supports_anon_versioning=no 8845 case `$LD -v 2>&1` in 8846 *GNU\ gold*) supports_anon_versioning=yes ;; 8847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8850 *\ 2.11.*) ;; # other 2.11 versions 8851 *) supports_anon_versioning=yes ;; 8852 esac 8853 8854 # See if GNU ld supports shared libraries. 8855 case $host_os in 8856 aix[3-9]*) 8857 # On AIX/PPC, the GNU linker is very broken 8858 if test "$host_cpu" != ia64; then 8859 ld_shlibs=no 8860 cat <<_LT_EOF 1>&2 8861 8862*** Warning: the GNU linker, at least up to release 2.19, is reported 8863*** to be unable to reliably create shared libraries on AIX. 8864*** Therefore, libtool is disabling shared libraries support. If you 8865*** really care for shared libraries, you may want to install binutils 8866*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8867*** You will then need to restart the configuration process. 8868 8869_LT_EOF 8870 fi 8871 ;; 8872 8873 amigaos*) 8874 case $host_cpu in 8875 powerpc) 8876 # see comment about AmigaOS4 .so support 8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8878 archive_expsym_cmds='' 8879 ;; 8880 m68k) 8881 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)' 8882 hardcode_libdir_flag_spec='-L$libdir' 8883 hardcode_minus_L=yes 8884 ;; 8885 esac 8886 ;; 8887 8888 beos*) 8889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8890 allow_undefined_flag=unsupported 8891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8892 # support --undefined. This deserves some investigation. FIXME 8893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8894 else 8895 ld_shlibs=no 8896 fi 8897 ;; 8898 8899 cygwin* | mingw* | pw32* | cegcc*) 8900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8901 # as there is no search path for DLLs. 8902 hardcode_libdir_flag_spec='-L$libdir' 8903 export_dynamic_flag_spec='${wl}--export-all-symbols' 8904 allow_undefined_flag=unsupported 8905 always_export_symbols=no 8906 enable_shared_with_static_runtimes=yes 8907 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' 8908 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8909 8910 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8912 # If the export-symbols file already is a .def file (1st line 8913 # is EXPORTS), use it as is; otherwise, prepend... 8914 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8915 cp $export_symbols $output_objdir/$soname.def; 8916 else 8917 echo EXPORTS > $output_objdir/$soname.def; 8918 cat $export_symbols >> $output_objdir/$soname.def; 8919 fi~ 8920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8921 else 8922 ld_shlibs=no 8923 fi 8924 ;; 8925 8926 haiku*) 8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8928 link_all_deplibs=yes 8929 ;; 8930 8931 interix[3-9]*) 8932 hardcode_direct=no 8933 hardcode_shlibpath_var=no 8934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8935 export_dynamic_flag_spec='${wl}-E' 8936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8937 # Instead, shared libraries are loaded at an image base (0x10000000 by 8938 # default) and relocated if they conflict, which is a slow very memory 8939 # consuming and fragmenting process. To avoid this, we pick a random, 8940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8941 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8943 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' 8944 ;; 8945 8946 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8947 tmp_diet=no 8948 if test "$host_os" = linux-dietlibc; then 8949 case $cc_basename in 8950 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8951 esac 8952 fi 8953 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8954 && test "$tmp_diet" = no 8955 then 8956 tmp_addflag=' $pic_flag' 8957 tmp_sharedflag='-shared' 8958 case $cc_basename,$host_cpu in 8959 pgcc*) # Portland Group C compiler 8960 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' 8961 tmp_addflag=' $pic_flag' 8962 ;; 8963 pgf77* | pgf90* | pgf95* | pgfortran*) 8964 # Portland Group f77 and f90 compilers 8965 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' 8966 tmp_addflag=' $pic_flag -Mnomain' ;; 8967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8968 tmp_addflag=' -i_dynamic' ;; 8969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8970 tmp_addflag=' -i_dynamic -nofor_main' ;; 8971 ifc* | ifort*) # Intel Fortran compiler 8972 tmp_addflag=' -nofor_main' ;; 8973 lf95*) # Lahey Fortran 8.1 8974 whole_archive_flag_spec= 8975 tmp_sharedflag='--shared' ;; 8976 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8977 tmp_sharedflag='-qmkshrobj' 8978 tmp_addflag= ;; 8979 nvcc*) # Cuda Compiler Driver 2.2 8980 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' 8981 compiler_needs_object=yes 8982 ;; 8983 esac 8984 case `$CC -V 2>&1 | sed 5q` in 8985 *Sun\ C*) # Sun C 5.9 8986 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' 8987 compiler_needs_object=yes 8988 tmp_sharedflag='-G' ;; 8989 *Sun\ F*) # Sun Fortran 8.3 8990 tmp_sharedflag='-G' ;; 8991 esac 8992 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8993 8994 if test "x$supports_anon_versioning" = xyes; then 8995 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8996 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8997 echo "local: *; };" >> $output_objdir/$libname.ver~ 8998 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8999 fi 9000 9001 case $cc_basename in 9002 xlf* | bgf* | bgxlf* | mpixlf*) 9003 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9004 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9006 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9007 if test "x$supports_anon_versioning" = xyes; then 9008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9010 echo "local: *; };" >> $output_objdir/$libname.ver~ 9011 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9012 fi 9013 ;; 9014 esac 9015 else 9016 ld_shlibs=no 9017 fi 9018 ;; 9019 9020 netbsd*) 9021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9022 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9023 wlarc= 9024 else 9025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9027 fi 9028 ;; 9029 9030 solaris*) 9031 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9032 ld_shlibs=no 9033 cat <<_LT_EOF 1>&2 9034 9035*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9036*** create shared libraries on Solaris systems. Therefore, libtool 9037*** is disabling shared libraries support. We urge you to upgrade GNU 9038*** binutils to release 2.9.1 or newer. Another option is to modify 9039*** your PATH or compiler configuration so that the native linker is 9040*** used, and then restart. 9041 9042_LT_EOF 9043 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9046 else 9047 ld_shlibs=no 9048 fi 9049 ;; 9050 9051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9052 case `$LD -v 2>&1` in 9053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9054 ld_shlibs=no 9055 cat <<_LT_EOF 1>&2 9056 9057*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9058*** reliably create shared libraries on SCO systems. Therefore, libtool 9059*** is disabling shared libraries support. We urge you to upgrade GNU 9060*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9061*** your PATH or compiler configuration so that the native linker is 9062*** used, and then restart. 9063 9064_LT_EOF 9065 ;; 9066 *) 9067 # For security reasons, it is highly recommended that you always 9068 # use absolute paths for naming shared libraries, and exclude the 9069 # DT_RUNPATH tag from executables and libraries. But doing so 9070 # requires that you compile everything twice, which is a pain. 9071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9075 else 9076 ld_shlibs=no 9077 fi 9078 ;; 9079 esac 9080 ;; 9081 9082 sunos4*) 9083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9084 wlarc= 9085 hardcode_direct=yes 9086 hardcode_shlibpath_var=no 9087 ;; 9088 9089 *) 9090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9093 else 9094 ld_shlibs=no 9095 fi 9096 ;; 9097 esac 9098 9099 if test "$ld_shlibs" = no; then 9100 runpath_var= 9101 hardcode_libdir_flag_spec= 9102 export_dynamic_flag_spec= 9103 whole_archive_flag_spec= 9104 fi 9105 else 9106 # PORTME fill in a description of your system's linker (not GNU ld) 9107 case $host_os in 9108 aix3*) 9109 allow_undefined_flag=unsupported 9110 always_export_symbols=yes 9111 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' 9112 # Note: this linker hardcodes the directories in LIBPATH if there 9113 # are no directories specified by -L. 9114 hardcode_minus_L=yes 9115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9116 # Neither direct hardcoding nor static linking is supported with a 9117 # broken collect2. 9118 hardcode_direct=unsupported 9119 fi 9120 ;; 9121 9122 aix[4-9]*) 9123 if test "$host_cpu" = ia64; then 9124 # On IA64, the linker does run time linking by default, so we don't 9125 # have to do anything special. 9126 aix_use_runtimelinking=no 9127 exp_sym_flag='-Bexport' 9128 no_entry_flag="" 9129 else 9130 # If we're using GNU nm, then we don't want the "-C" option. 9131 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9132 # Also, AIX nm treats weak defined symbols like other global 9133 # defined symbols, whereas GNU nm marks them as "W". 9134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9135 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' 9136 else 9137 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' 9138 fi 9139 aix_use_runtimelinking=no 9140 9141 # Test if we are trying to use run time linking or normal 9142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9143 # need to do runtime linking. 9144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9145 for ld_flag in $LDFLAGS; do 9146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9147 aix_use_runtimelinking=yes 9148 break 9149 fi 9150 done 9151 ;; 9152 esac 9153 9154 exp_sym_flag='-bexport' 9155 no_entry_flag='-bnoentry' 9156 fi 9157 9158 # When large executables or shared objects are built, AIX ld can 9159 # have problems creating the table of contents. If linking a library 9160 # or program results in "error TOC overflow" add -mminimal-toc to 9161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9163 9164 archive_cmds='' 9165 hardcode_direct=yes 9166 hardcode_direct_absolute=yes 9167 hardcode_libdir_separator=':' 9168 link_all_deplibs=yes 9169 file_list_spec='${wl}-f,' 9170 9171 if test "$GCC" = yes; then 9172 case $host_os in aix4.[012]|aix4.[012].*) 9173 # We only want to do this on AIX 4.2 and lower, the check 9174 # below for broken collect2 doesn't work under 4.3+ 9175 collect2name=`${CC} -print-prog-name=collect2` 9176 if test -f "$collect2name" && 9177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9178 then 9179 # We have reworked collect2 9180 : 9181 else 9182 # We have old collect2 9183 hardcode_direct=unsupported 9184 # It fails to find uninstalled libraries when the uninstalled 9185 # path is not listed in the libpath. Setting hardcode_minus_L 9186 # to unsupported forces relinking 9187 hardcode_minus_L=yes 9188 hardcode_libdir_flag_spec='-L$libdir' 9189 hardcode_libdir_separator= 9190 fi 9191 ;; 9192 esac 9193 shared_flag='-shared' 9194 if test "$aix_use_runtimelinking" = yes; then 9195 shared_flag="$shared_flag "'${wl}-G' 9196 fi 9197 else 9198 # not using gcc 9199 if test "$host_cpu" = ia64; then 9200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9201 # chokes on -Wl,-G. The following line is correct: 9202 shared_flag='-G' 9203 else 9204 if test "$aix_use_runtimelinking" = yes; then 9205 shared_flag='${wl}-G' 9206 else 9207 shared_flag='${wl}-bM:SRE' 9208 fi 9209 fi 9210 fi 9211 9212 export_dynamic_flag_spec='${wl}-bexpall' 9213 # It seems that -bexpall does not export symbols beginning with 9214 # underscore (_), so it is better to generate a list of symbols to export. 9215 always_export_symbols=yes 9216 if test "$aix_use_runtimelinking" = yes; then 9217 # Warning - without using the other runtime loading flags (-brtl), 9218 # -berok will link without error, but may produce a broken library. 9219 allow_undefined_flag='-berok' 9220 # Determine the default libpath from the value encoded in an 9221 # empty executable. 9222 if test "${lt_cv_aix_libpath+set}" = set; then 9223 aix_libpath=$lt_cv_aix_libpath 9224else 9225 if ${lt_cv_aix_libpath_+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227else 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229/* end confdefs.h. */ 9230 9231int 9232main () 9233{ 9234 9235 ; 9236 return 0; 9237} 9238_ACEOF 9239if ac_fn_c_try_link "$LINENO"; then : 9240 9241 lt_aix_libpath_sed=' 9242 /Import File Strings/,/^$/ { 9243 /^0/ { 9244 s/^0 *\([^ ]*\) *$/\1/ 9245 p 9246 } 9247 }' 9248 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9249 # Check for a 64-bit object if we didn't find anything. 9250 if test -z "$lt_cv_aix_libpath_"; then 9251 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9252 fi 9253fi 9254rm -f core conftest.err conftest.$ac_objext \ 9255 conftest$ac_exeext conftest.$ac_ext 9256 if test -z "$lt_cv_aix_libpath_"; then 9257 lt_cv_aix_libpath_="/usr/lib:/lib" 9258 fi 9259 9260fi 9261 9262 aix_libpath=$lt_cv_aix_libpath_ 9263fi 9264 9265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9266 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" 9267 else 9268 if test "$host_cpu" = ia64; then 9269 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9270 allow_undefined_flag="-z nodefs" 9271 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" 9272 else 9273 # Determine the default libpath from the value encoded in an 9274 # empty executable. 9275 if test "${lt_cv_aix_libpath+set}" = set; then 9276 aix_libpath=$lt_cv_aix_libpath 9277else 9278 if ${lt_cv_aix_libpath_+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282/* end confdefs.h. */ 9283 9284int 9285main () 9286{ 9287 9288 ; 9289 return 0; 9290} 9291_ACEOF 9292if ac_fn_c_try_link "$LINENO"; then : 9293 9294 lt_aix_libpath_sed=' 9295 /Import File Strings/,/^$/ { 9296 /^0/ { 9297 s/^0 *\([^ ]*\) *$/\1/ 9298 p 9299 } 9300 }' 9301 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9302 # Check for a 64-bit object if we didn't find anything. 9303 if test -z "$lt_cv_aix_libpath_"; then 9304 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9305 fi 9306fi 9307rm -f core conftest.err conftest.$ac_objext \ 9308 conftest$ac_exeext conftest.$ac_ext 9309 if test -z "$lt_cv_aix_libpath_"; then 9310 lt_cv_aix_libpath_="/usr/lib:/lib" 9311 fi 9312 9313fi 9314 9315 aix_libpath=$lt_cv_aix_libpath_ 9316fi 9317 9318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9319 # Warning - without using the other run time loading flags, 9320 # -berok will link without error, but may produce a broken library. 9321 no_undefined_flag=' ${wl}-bernotok' 9322 allow_undefined_flag=' ${wl}-berok' 9323 if test "$with_gnu_ld" = yes; then 9324 # We only use this code for GNU lds that support --whole-archive. 9325 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9326 else 9327 # Exported symbols can be pulled into shared objects from archives 9328 whole_archive_flag_spec='$convenience' 9329 fi 9330 archive_cmds_need_lc=yes 9331 # This is similar to how AIX traditionally builds its shared libraries. 9332 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' 9333 fi 9334 fi 9335 ;; 9336 9337 amigaos*) 9338 case $host_cpu in 9339 powerpc) 9340 # see comment about AmigaOS4 .so support 9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9342 archive_expsym_cmds='' 9343 ;; 9344 m68k) 9345 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)' 9346 hardcode_libdir_flag_spec='-L$libdir' 9347 hardcode_minus_L=yes 9348 ;; 9349 esac 9350 ;; 9351 9352 bsdi[45]*) 9353 export_dynamic_flag_spec=-rdynamic 9354 ;; 9355 9356 cygwin* | mingw* | pw32* | cegcc*) 9357 # When not using gcc, we currently assume that we are using 9358 # Microsoft Visual C++. 9359 # hardcode_libdir_flag_spec is actually meaningless, as there is 9360 # no search path for DLLs. 9361 case $cc_basename in 9362 cl*) 9363 # Native MSVC 9364 hardcode_libdir_flag_spec=' ' 9365 allow_undefined_flag=unsupported 9366 always_export_symbols=yes 9367 file_list_spec='@' 9368 # Tell ltmain to make .lib files, not .a files. 9369 libext=lib 9370 # Tell ltmain to make .dll files, not .so files. 9371 shrext_cmds=".dll" 9372 # FIXME: Setting linknames here is a bad hack. 9373 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9375 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9376 else 9377 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9378 fi~ 9379 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9380 linknames=' 9381 # The linker will not automatically build a static lib if we build a DLL. 9382 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9383 enable_shared_with_static_runtimes=yes 9384 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9386 # Don't use ranlib 9387 old_postinstall_cmds='chmod 644 $oldlib' 9388 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9389 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9390 case $lt_outputfile in 9391 *.exe|*.EXE) ;; 9392 *) 9393 lt_outputfile="$lt_outputfile.exe" 9394 lt_tool_outputfile="$lt_tool_outputfile.exe" 9395 ;; 9396 esac~ 9397 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9398 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9399 $RM "$lt_outputfile.manifest"; 9400 fi' 9401 ;; 9402 *) 9403 # Assume MSVC wrapper 9404 hardcode_libdir_flag_spec=' ' 9405 allow_undefined_flag=unsupported 9406 # Tell ltmain to make .lib files, not .a files. 9407 libext=lib 9408 # Tell ltmain to make .dll files, not .so files. 9409 shrext_cmds=".dll" 9410 # FIXME: Setting linknames here is a bad hack. 9411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9412 # The linker will automatically build a .lib file if we build a DLL. 9413 old_archive_from_new_cmds='true' 9414 # FIXME: Should let the user specify the lib program. 9415 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9416 enable_shared_with_static_runtimes=yes 9417 ;; 9418 esac 9419 ;; 9420 9421 darwin* | rhapsody*) 9422 9423 9424 archive_cmds_need_lc=no 9425 hardcode_direct=no 9426 hardcode_automatic=yes 9427 hardcode_shlibpath_var=unsupported 9428 if test "$lt_cv_ld_force_load" = "yes"; then 9429 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\"`' 9430 9431 else 9432 whole_archive_flag_spec='' 9433 fi 9434 link_all_deplibs=yes 9435 allow_undefined_flag="$_lt_dar_allow_undefined" 9436 case $cc_basename in 9437 ifort*) _lt_dar_can_shared=yes ;; 9438 *) _lt_dar_can_shared=$GCC ;; 9439 esac 9440 if test "$_lt_dar_can_shared" = "yes"; then 9441 output_verbose_link_cmd=func_echo_all 9442 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9443 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9444 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}" 9445 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}" 9446 9447 else 9448 ld_shlibs=no 9449 fi 9450 9451 ;; 9452 9453 dgux*) 9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9455 hardcode_libdir_flag_spec='-L$libdir' 9456 hardcode_shlibpath_var=no 9457 ;; 9458 9459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9460 # support. Future versions do this automatically, but an explicit c++rt0.o 9461 # does not break anything, and helps significantly (at the cost of a little 9462 # extra space). 9463 freebsd2.2*) 9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9465 hardcode_libdir_flag_spec='-R$libdir' 9466 hardcode_direct=yes 9467 hardcode_shlibpath_var=no 9468 ;; 9469 9470 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9471 freebsd2.*) 9472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9473 hardcode_direct=yes 9474 hardcode_minus_L=yes 9475 hardcode_shlibpath_var=no 9476 ;; 9477 9478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9479 freebsd* | dragonfly*) 9480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9481 hardcode_libdir_flag_spec='-R$libdir' 9482 hardcode_direct=yes 9483 hardcode_shlibpath_var=no 9484 ;; 9485 9486 hpux9*) 9487 if test "$GCC" = yes; then 9488 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' 9489 else 9490 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' 9491 fi 9492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9493 hardcode_libdir_separator=: 9494 hardcode_direct=yes 9495 9496 # hardcode_minus_L: Not really in the search PATH, 9497 # but as the default location of the library. 9498 hardcode_minus_L=yes 9499 export_dynamic_flag_spec='${wl}-E' 9500 ;; 9501 9502 hpux10*) 9503 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9504 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9505 else 9506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9507 fi 9508 if test "$with_gnu_ld" = no; then 9509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9510 hardcode_libdir_separator=: 9511 hardcode_direct=yes 9512 hardcode_direct_absolute=yes 9513 export_dynamic_flag_spec='${wl}-E' 9514 # hardcode_minus_L: Not really in the search PATH, 9515 # but as the default location of the library. 9516 hardcode_minus_L=yes 9517 fi 9518 ;; 9519 9520 hpux11*) 9521 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9522 case $host_cpu in 9523 hppa*64*) 9524 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9525 ;; 9526 ia64*) 9527 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9528 ;; 9529 *) 9530 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9531 ;; 9532 esac 9533 else 9534 case $host_cpu in 9535 hppa*64*) 9536 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9537 ;; 9538 ia64*) 9539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9540 ;; 9541 *) 9542 9543 # Older versions of the 11.00 compiler do not understand -b yet 9544 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9546$as_echo_n "checking if $CC understands -b... " >&6; } 9547if ${lt_cv_prog_compiler__b+:} false; then : 9548 $as_echo_n "(cached) " >&6 9549else 9550 lt_cv_prog_compiler__b=no 9551 save_LDFLAGS="$LDFLAGS" 9552 LDFLAGS="$LDFLAGS -b" 9553 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9555 # The linker can only warn and ignore the option if not recognized 9556 # So say no if there are warnings 9557 if test -s conftest.err; then 9558 # Append any errors to the config.log. 9559 cat conftest.err 1>&5 9560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9562 if diff conftest.exp conftest.er2 >/dev/null; then 9563 lt_cv_prog_compiler__b=yes 9564 fi 9565 else 9566 lt_cv_prog_compiler__b=yes 9567 fi 9568 fi 9569 $RM -r conftest* 9570 LDFLAGS="$save_LDFLAGS" 9571 9572fi 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9574$as_echo "$lt_cv_prog_compiler__b" >&6; } 9575 9576if test x"$lt_cv_prog_compiler__b" = xyes; then 9577 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9578else 9579 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9580fi 9581 9582 ;; 9583 esac 9584 fi 9585 if test "$with_gnu_ld" = no; then 9586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9587 hardcode_libdir_separator=: 9588 9589 case $host_cpu in 9590 hppa*64*|ia64*) 9591 hardcode_direct=no 9592 hardcode_shlibpath_var=no 9593 ;; 9594 *) 9595 hardcode_direct=yes 9596 hardcode_direct_absolute=yes 9597 export_dynamic_flag_spec='${wl}-E' 9598 9599 # hardcode_minus_L: Not really in the search PATH, 9600 # but as the default location of the library. 9601 hardcode_minus_L=yes 9602 ;; 9603 esac 9604 fi 9605 ;; 9606 9607 irix5* | irix6* | nonstopux*) 9608 if test "$GCC" = yes; then 9609 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' 9610 # Try to use the -exported_symbol ld option, if it does not 9611 # work, assume that -exports_file does not work either and 9612 # implicitly export all symbols. 9613 # This should be the same for all languages, so no per-tag cache variable. 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9615$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9616if ${lt_cv_irix_exported_symbol+:} false; then : 9617 $as_echo_n "(cached) " >&6 9618else 9619 save_LDFLAGS="$LDFLAGS" 9620 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9622/* end confdefs.h. */ 9623int foo (void) { return 0; } 9624_ACEOF 9625if ac_fn_c_try_link "$LINENO"; then : 9626 lt_cv_irix_exported_symbol=yes 9627else 9628 lt_cv_irix_exported_symbol=no 9629fi 9630rm -f core conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext conftest.$ac_ext 9632 LDFLAGS="$save_LDFLAGS" 9633fi 9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9635$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9636 if test "$lt_cv_irix_exported_symbol" = yes; then 9637 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' 9638 fi 9639 else 9640 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' 9641 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' 9642 fi 9643 archive_cmds_need_lc='no' 9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9645 hardcode_libdir_separator=: 9646 inherit_rpath=yes 9647 link_all_deplibs=yes 9648 ;; 9649 9650 netbsd*) 9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9653 else 9654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9655 fi 9656 hardcode_libdir_flag_spec='-R$libdir' 9657 hardcode_direct=yes 9658 hardcode_shlibpath_var=no 9659 ;; 9660 9661 newsos6) 9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9663 hardcode_direct=yes 9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9665 hardcode_libdir_separator=: 9666 hardcode_shlibpath_var=no 9667 ;; 9668 9669 *nto* | *qnx*) 9670 ;; 9671 9672 openbsd*) 9673 if test -f /usr/libexec/ld.so; then 9674 hardcode_direct=yes 9675 hardcode_shlibpath_var=no 9676 hardcode_direct_absolute=yes 9677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9681 export_dynamic_flag_spec='${wl}-E' 9682 else 9683 case $host_os in 9684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9686 hardcode_libdir_flag_spec='-R$libdir' 9687 ;; 9688 *) 9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9691 ;; 9692 esac 9693 fi 9694 else 9695 ld_shlibs=no 9696 fi 9697 ;; 9698 9699 os2*) 9700 hardcode_libdir_flag_spec='-L$libdir' 9701 hardcode_minus_L=yes 9702 allow_undefined_flag=unsupported 9703 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' 9704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9705 ;; 9706 9707 osf3*) 9708 if test "$GCC" = yes; then 9709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9710 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' 9711 else 9712 allow_undefined_flag=' -expect_unresolved \*' 9713 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' 9714 fi 9715 archive_cmds_need_lc='no' 9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9717 hardcode_libdir_separator=: 9718 ;; 9719 9720 osf4* | osf5*) # as osf3* with the addition of -msym flag 9721 if test "$GCC" = yes; then 9722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9723 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' 9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9725 else 9726 allow_undefined_flag=' -expect_unresolved \*' 9727 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' 9728 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~ 9729 $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' 9730 9731 # Both c and cxx compiler support -rpath directly 9732 hardcode_libdir_flag_spec='-rpath $libdir' 9733 fi 9734 archive_cmds_need_lc='no' 9735 hardcode_libdir_separator=: 9736 ;; 9737 9738 solaris*) 9739 no_undefined_flag=' -z defs' 9740 if test "$GCC" = yes; then 9741 wlarc='${wl}' 9742 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9744 $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' 9745 else 9746 case `$CC -V 2>&1` in 9747 *"Compilers 5.0"*) 9748 wlarc='' 9749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9752 ;; 9753 *) 9754 wlarc='${wl}' 9755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9758 ;; 9759 esac 9760 fi 9761 hardcode_libdir_flag_spec='-R$libdir' 9762 hardcode_shlibpath_var=no 9763 case $host_os in 9764 solaris2.[0-5] | solaris2.[0-5].*) ;; 9765 *) 9766 # The compiler driver will combine and reorder linker options, 9767 # but understands `-z linker_flag'. GCC discards it without `$wl', 9768 # but is careful enough not to reorder. 9769 # Supported since Solaris 2.6 (maybe 2.5.1?) 9770 if test "$GCC" = yes; then 9771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9772 else 9773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9774 fi 9775 ;; 9776 esac 9777 link_all_deplibs=yes 9778 ;; 9779 9780 sunos4*) 9781 if test "x$host_vendor" = xsequent; then 9782 # Use $CC to link under sequent, because it throws in some extra .o 9783 # files that make .init and .fini sections work. 9784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9785 else 9786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9787 fi 9788 hardcode_libdir_flag_spec='-L$libdir' 9789 hardcode_direct=yes 9790 hardcode_minus_L=yes 9791 hardcode_shlibpath_var=no 9792 ;; 9793 9794 sysv4) 9795 case $host_vendor in 9796 sni) 9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_direct=yes # is this really true??? 9799 ;; 9800 siemens) 9801 ## LD is ld it makes a PLAMLIB 9802 ## CC just makes a GrossModule. 9803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9804 reload_cmds='$CC -r -o $output$reload_objs' 9805 hardcode_direct=no 9806 ;; 9807 motorola) 9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9810 ;; 9811 esac 9812 runpath_var='LD_RUN_PATH' 9813 hardcode_shlibpath_var=no 9814 ;; 9815 9816 sysv4.3*) 9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9818 hardcode_shlibpath_var=no 9819 export_dynamic_flag_spec='-Bexport' 9820 ;; 9821 9822 sysv4*MP*) 9823 if test -d /usr/nec; then 9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9825 hardcode_shlibpath_var=no 9826 runpath_var=LD_RUN_PATH 9827 hardcode_runpath_var=yes 9828 ld_shlibs=yes 9829 fi 9830 ;; 9831 9832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9833 no_undefined_flag='${wl}-z,text' 9834 archive_cmds_need_lc=no 9835 hardcode_shlibpath_var=no 9836 runpath_var='LD_RUN_PATH' 9837 9838 if test "$GCC" = yes; then 9839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 else 9842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9844 fi 9845 ;; 9846 9847 sysv5* | sco3.2v5* | sco5v6*) 9848 # Note: We can NOT use -z defs as we might desire, because we do not 9849 # link with -lc, and that would cause any symbols used from libc to 9850 # always be unresolved, which means just about no library would 9851 # ever link correctly. If we're not using GNU ld we use -z text 9852 # though, which does catch some bad symbols but isn't as heavy-handed 9853 # as -z defs. 9854 no_undefined_flag='${wl}-z,text' 9855 allow_undefined_flag='${wl}-z,nodefs' 9856 archive_cmds_need_lc=no 9857 hardcode_shlibpath_var=no 9858 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9859 hardcode_libdir_separator=':' 9860 link_all_deplibs=yes 9861 export_dynamic_flag_spec='${wl}-Bexport' 9862 runpath_var='LD_RUN_PATH' 9863 9864 if test "$GCC" = yes; then 9865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9867 else 9868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9870 fi 9871 ;; 9872 9873 uts4*) 9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9875 hardcode_libdir_flag_spec='-L$libdir' 9876 hardcode_shlibpath_var=no 9877 ;; 9878 9879 *) 9880 ld_shlibs=no 9881 ;; 9882 esac 9883 9884 if test x$host_vendor = xsni; then 9885 case $host in 9886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9887 export_dynamic_flag_spec='${wl}-Blargedynsym' 9888 ;; 9889 esac 9890 fi 9891 fi 9892 9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9894$as_echo "$ld_shlibs" >&6; } 9895test "$ld_shlibs" = no && can_build_shared=no 9896 9897with_gnu_ld=$with_gnu_ld 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913# 9914# Do we need to explicitly link libc? 9915# 9916case "x$archive_cmds_need_lc" in 9917x|xyes) 9918 # Assume -lc should be added 9919 archive_cmds_need_lc=yes 9920 9921 if test "$enable_shared" = yes && test "$GCC" = yes; then 9922 case $archive_cmds in 9923 *'~'*) 9924 # FIXME: we may have to deal with multi-command sequences. 9925 ;; 9926 '$CC '*) 9927 # Test whether the compiler implicitly links with -lc since on some 9928 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9929 # to ld, don't add -lc before -lgcc. 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9931$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9932if ${lt_cv_archive_cmds_need_lc+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 $RM conftest* 9936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9937 9938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9939 (eval $ac_compile) 2>&5 9940 ac_status=$? 9941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9942 test $ac_status = 0; } 2>conftest.err; then 9943 soname=conftest 9944 lib=conftest 9945 libobjs=conftest.$ac_objext 9946 deplibs= 9947 wl=$lt_prog_compiler_wl 9948 pic_flag=$lt_prog_compiler_pic 9949 compiler_flags=-v 9950 linker_flags=-v 9951 verstring= 9952 output_objdir=. 9953 libname=conftest 9954 lt_save_allow_undefined_flag=$allow_undefined_flag 9955 allow_undefined_flag= 9956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9957 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9958 ac_status=$? 9959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9960 test $ac_status = 0; } 9961 then 9962 lt_cv_archive_cmds_need_lc=no 9963 else 9964 lt_cv_archive_cmds_need_lc=yes 9965 fi 9966 allow_undefined_flag=$lt_save_allow_undefined_flag 9967 else 9968 cat conftest.err 1>&5 9969 fi 9970 $RM conftest* 9971 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9974$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9975 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9976 ;; 9977 esac 9978 fi 9979 ;; 9980esac 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 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10134$as_echo_n "checking dynamic linker characteristics... " >&6; } 10135 10136if test "$GCC" = yes; then 10137 case $host_os in 10138 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10139 *) lt_awk_arg="/^libraries:/" ;; 10140 esac 10141 case $host_os in 10142 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10143 *) lt_sed_strip_eq="s,=/,/,g" ;; 10144 esac 10145 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10146 case $lt_search_path_spec in 10147 *\;*) 10148 # if the path contains ";" then we assume it to be the separator 10149 # otherwise default to the standard path separator (i.e. ":") - it is 10150 # assumed that no part of a normal pathname contains ";" but that should 10151 # okay in the real world where ";" in dirpaths is itself problematic. 10152 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10153 ;; 10154 *) 10155 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10156 ;; 10157 esac 10158 # Ok, now we have the path, separated by spaces, we can step through it 10159 # and add multilib dir if necessary. 10160 lt_tmp_lt_search_path_spec= 10161 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10162 for lt_sys_path in $lt_search_path_spec; do 10163 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10164 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10165 else 10166 test -d "$lt_sys_path" && \ 10167 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10168 fi 10169 done 10170 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10171BEGIN {RS=" "; FS="/|\n";} { 10172 lt_foo=""; 10173 lt_count=0; 10174 for (lt_i = NF; lt_i > 0; lt_i--) { 10175 if ($lt_i != "" && $lt_i != ".") { 10176 if ($lt_i == "..") { 10177 lt_count++; 10178 } else { 10179 if (lt_count == 0) { 10180 lt_foo="/" $lt_i lt_foo; 10181 } else { 10182 lt_count--; 10183 } 10184 } 10185 } 10186 } 10187 if (lt_foo != "") { lt_freq[lt_foo]++; } 10188 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10189}'` 10190 # AWK program above erroneously prepends '/' to C:/dos/paths 10191 # for these hosts. 10192 case $host_os in 10193 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10194 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10195 esac 10196 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10197else 10198 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10199fi 10200library_names_spec= 10201libname_spec='lib$name' 10202soname_spec= 10203shrext_cmds=".so" 10204postinstall_cmds= 10205postuninstall_cmds= 10206finish_cmds= 10207finish_eval= 10208shlibpath_var= 10209shlibpath_overrides_runpath=unknown 10210version_type=none 10211dynamic_linker="$host_os ld.so" 10212sys_lib_dlsearch_path_spec="/lib /usr/lib" 10213need_lib_prefix=unknown 10214hardcode_into_libs=no 10215 10216# when you set need_version to no, make sure it does not cause -set_version 10217# flags to be left without arguments 10218need_version=unknown 10219 10220case $host_os in 10221aix3*) 10222 version_type=linux # correct to gnu/linux during the next big refactor 10223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10224 shlibpath_var=LIBPATH 10225 10226 # AIX 3 has no versioning support, so we append a major version to the name. 10227 soname_spec='${libname}${release}${shared_ext}$major' 10228 ;; 10229 10230aix[4-9]*) 10231 version_type=linux # correct to gnu/linux during the next big refactor 10232 need_lib_prefix=no 10233 need_version=no 10234 hardcode_into_libs=yes 10235 if test "$host_cpu" = ia64; then 10236 # AIX 5 supports IA64 10237 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10238 shlibpath_var=LD_LIBRARY_PATH 10239 else 10240 # With GCC up to 2.95.x, collect2 would create an import file 10241 # for dependence libraries. The import file would start with 10242 # the line `#! .'. This would cause the generated library to 10243 # depend on `.', always an invalid library. This was fixed in 10244 # development snapshots of GCC prior to 3.0. 10245 case $host_os in 10246 aix4 | aix4.[01] | aix4.[01].*) 10247 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10248 echo ' yes ' 10249 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10250 : 10251 else 10252 can_build_shared=no 10253 fi 10254 ;; 10255 esac 10256 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10257 # soname into executable. Probably we can add versioning support to 10258 # collect2, so additional links can be useful in future. 10259 if test "$aix_use_runtimelinking" = yes; then 10260 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10261 # instead of lib<name>.a to let people know that these are not 10262 # typical AIX shared libraries. 10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10264 else 10265 # We preserve .a as extension for shared libraries through AIX4.2 10266 # and later when we are not doing run time linking. 10267 library_names_spec='${libname}${release}.a $libname.a' 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 fi 10270 shlibpath_var=LIBPATH 10271 fi 10272 ;; 10273 10274amigaos*) 10275 case $host_cpu in 10276 powerpc) 10277 # Since July 2007 AmigaOS4 officially supports .so libraries. 10278 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10280 ;; 10281 m68k) 10282 library_names_spec='$libname.ixlibrary $libname.a' 10283 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10284 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' 10285 ;; 10286 esac 10287 ;; 10288 10289beos*) 10290 library_names_spec='${libname}${shared_ext}' 10291 dynamic_linker="$host_os ld.so" 10292 shlibpath_var=LIBRARY_PATH 10293 ;; 10294 10295bsdi[45]*) 10296 version_type=linux # correct to gnu/linux during the next big refactor 10297 need_version=no 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10299 soname_spec='${libname}${release}${shared_ext}$major' 10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10301 shlibpath_var=LD_LIBRARY_PATH 10302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10304 # the default ld.so.conf also contains /usr/contrib/lib and 10305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10306 # libtool to hard-code these into programs 10307 ;; 10308 10309cygwin* | mingw* | pw32* | cegcc*) 10310 version_type=windows 10311 shrext_cmds=".dll" 10312 need_version=no 10313 need_lib_prefix=no 10314 10315 case $GCC,$cc_basename in 10316 yes,*) 10317 # gcc 10318 library_names_spec='$libname.dll.a' 10319 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10320 postinstall_cmds='base_file=`basename \${file}`~ 10321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10322 dldir=$destdir/`dirname \$dlpath`~ 10323 test -d \$dldir || mkdir -p \$dldir~ 10324 $install_prog $dir/$dlname \$dldir/$dlname~ 10325 chmod a+x \$dldir/$dlname~ 10326 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10327 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10328 fi' 10329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10330 dlpath=$dir/\$dldll~ 10331 $RM \$dlpath' 10332 shlibpath_overrides_runpath=yes 10333 10334 case $host_os in 10335 cygwin*) 10336 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10337 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10338 10339 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10340 ;; 10341 mingw* | cegcc*) 10342 # MinGW DLLs use traditional 'lib' prefix 10343 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10344 ;; 10345 pw32*) 10346 # pw32 DLLs use 'pw' prefix rather than 'lib' 10347 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10348 ;; 10349 esac 10350 dynamic_linker='Win32 ld.exe' 10351 ;; 10352 10353 *,cl*) 10354 # Native MSVC 10355 libname_spec='$name' 10356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10357 library_names_spec='${libname}.dll.lib' 10358 10359 case $build_os in 10360 mingw*) 10361 sys_lib_search_path_spec= 10362 lt_save_ifs=$IFS 10363 IFS=';' 10364 for lt_path in $LIB 10365 do 10366 IFS=$lt_save_ifs 10367 # Let DOS variable expansion print the short 8.3 style file name. 10368 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10369 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10370 done 10371 IFS=$lt_save_ifs 10372 # Convert to MSYS style. 10373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10374 ;; 10375 cygwin*) 10376 # Convert to unix form, then to dos form, then back to unix form 10377 # but this time dos style (no spaces!) so that the unix form looks 10378 # like /cygdrive/c/PROGRA~1:/cygdr... 10379 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10380 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10381 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10382 ;; 10383 *) 10384 sys_lib_search_path_spec="$LIB" 10385 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10386 # It is most probably a Windows format PATH. 10387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10388 else 10389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10390 fi 10391 # FIXME: find the short name or the path components, as spaces are 10392 # common. (e.g. "Program Files" -> "PROGRA~1") 10393 ;; 10394 esac 10395 10396 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10397 postinstall_cmds='base_file=`basename \${file}`~ 10398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10399 dldir=$destdir/`dirname \$dlpath`~ 10400 test -d \$dldir || mkdir -p \$dldir~ 10401 $install_prog $dir/$dlname \$dldir/$dlname' 10402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10403 dlpath=$dir/\$dldll~ 10404 $RM \$dlpath' 10405 shlibpath_overrides_runpath=yes 10406 dynamic_linker='Win32 link.exe' 10407 ;; 10408 10409 *) 10410 # Assume MSVC wrapper 10411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10412 dynamic_linker='Win32 ld.exe' 10413 ;; 10414 esac 10415 # FIXME: first we should search . and the directory the executable is in 10416 shlibpath_var=PATH 10417 ;; 10418 10419darwin* | rhapsody*) 10420 dynamic_linker="$host_os dyld" 10421 version_type=darwin 10422 need_lib_prefix=no 10423 need_version=no 10424 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10425 soname_spec='${libname}${release}${major}$shared_ext' 10426 shlibpath_overrides_runpath=yes 10427 shlibpath_var=DYLD_LIBRARY_PATH 10428 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10429 10430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10432 ;; 10433 10434dgux*) 10435 version_type=linux # correct to gnu/linux during the next big refactor 10436 need_lib_prefix=no 10437 need_version=no 10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10439 soname_spec='${libname}${release}${shared_ext}$major' 10440 shlibpath_var=LD_LIBRARY_PATH 10441 ;; 10442 10443freebsd* | dragonfly*) 10444 # DragonFly does not have aout. When/if they implement a new 10445 # versioning mechanism, adjust this. 10446 if test -x /usr/bin/objformat; then 10447 objformat=`/usr/bin/objformat` 10448 else 10449 case $host_os in 10450 freebsd[23].*) objformat=aout ;; 10451 *) objformat=elf ;; 10452 esac 10453 fi 10454 version_type=freebsd-$objformat 10455 case $version_type in 10456 freebsd-elf*) 10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10458 need_version=no 10459 need_lib_prefix=no 10460 ;; 10461 freebsd-*) 10462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10463 need_version=yes 10464 ;; 10465 esac 10466 shlibpath_var=LD_LIBRARY_PATH 10467 case $host_os in 10468 freebsd2.*) 10469 shlibpath_overrides_runpath=yes 10470 ;; 10471 freebsd3.[01]* | freebsdelf3.[01]*) 10472 shlibpath_overrides_runpath=yes 10473 hardcode_into_libs=yes 10474 ;; 10475 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10476 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10477 shlibpath_overrides_runpath=no 10478 hardcode_into_libs=yes 10479 ;; 10480 *) # from 4.6 on, and DragonFly 10481 shlibpath_overrides_runpath=yes 10482 hardcode_into_libs=yes 10483 ;; 10484 esac 10485 ;; 10486 10487gnu*) 10488 version_type=linux # correct to gnu/linux during the next big refactor 10489 need_lib_prefix=no 10490 need_version=no 10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10492 soname_spec='${libname}${release}${shared_ext}$major' 10493 shlibpath_var=LD_LIBRARY_PATH 10494 shlibpath_overrides_runpath=no 10495 hardcode_into_libs=yes 10496 ;; 10497 10498haiku*) 10499 version_type=linux # correct to gnu/linux during the next big refactor 10500 need_lib_prefix=no 10501 need_version=no 10502 dynamic_linker="$host_os runtime_loader" 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10504 soname_spec='${libname}${release}${shared_ext}$major' 10505 shlibpath_var=LIBRARY_PATH 10506 shlibpath_overrides_runpath=yes 10507 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10508 hardcode_into_libs=yes 10509 ;; 10510 10511hpux9* | hpux10* | hpux11*) 10512 # Give a soname corresponding to the major version so that dld.sl refuses to 10513 # link against other versions. 10514 version_type=sunos 10515 need_lib_prefix=no 10516 need_version=no 10517 case $host_cpu in 10518 ia64*) 10519 shrext_cmds='.so' 10520 hardcode_into_libs=yes 10521 dynamic_linker="$host_os dld.so" 10522 shlibpath_var=LD_LIBRARY_PATH 10523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10525 soname_spec='${libname}${release}${shared_ext}$major' 10526 if test "X$HPUX_IA64_MODE" = X32; then 10527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10528 else 10529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10530 fi 10531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10532 ;; 10533 hppa*64*) 10534 shrext_cmds='.sl' 10535 hardcode_into_libs=yes 10536 dynamic_linker="$host_os dld.sl" 10537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10540 soname_spec='${libname}${release}${shared_ext}$major' 10541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10543 ;; 10544 *) 10545 shrext_cmds='.sl' 10546 dynamic_linker="$host_os dld.sl" 10547 shlibpath_var=SHLIB_PATH 10548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10550 soname_spec='${libname}${release}${shared_ext}$major' 10551 ;; 10552 esac 10553 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10554 postinstall_cmds='chmod 555 $lib' 10555 # or fails outright, so override atomically: 10556 install_override_mode=555 10557 ;; 10558 10559interix[3-9]*) 10560 version_type=linux # correct to gnu/linux during the next big refactor 10561 need_lib_prefix=no 10562 need_version=no 10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10564 soname_spec='${libname}${release}${shared_ext}$major' 10565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10566 shlibpath_var=LD_LIBRARY_PATH 10567 shlibpath_overrides_runpath=no 10568 hardcode_into_libs=yes 10569 ;; 10570 10571irix5* | irix6* | nonstopux*) 10572 case $host_os in 10573 nonstopux*) version_type=nonstopux ;; 10574 *) 10575 if test "$lt_cv_prog_gnu_ld" = yes; then 10576 version_type=linux # correct to gnu/linux during the next big refactor 10577 else 10578 version_type=irix 10579 fi ;; 10580 esac 10581 need_lib_prefix=no 10582 need_version=no 10583 soname_spec='${libname}${release}${shared_ext}$major' 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10585 case $host_os in 10586 irix5* | nonstopux*) 10587 libsuff= shlibsuff= 10588 ;; 10589 *) 10590 case $LD in # libtool.m4 will add one of these switches to LD 10591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10592 libsuff= shlibsuff= libmagic=32-bit;; 10593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10594 libsuff=32 shlibsuff=N32 libmagic=N32;; 10595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10596 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10597 *) libsuff= shlibsuff= libmagic=never-match;; 10598 esac 10599 ;; 10600 esac 10601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10602 shlibpath_overrides_runpath=no 10603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10605 hardcode_into_libs=yes 10606 ;; 10607 10608# No shared lib support for Linux oldld, aout, or coff. 10609linux*oldld* | linux*aout* | linux*coff*) 10610 dynamic_linker=no 10611 ;; 10612 10613# This must be glibc/ELF. 10614linux* | k*bsd*-gnu | kopensolaris*-gnu) 10615 version_type=linux # correct to gnu/linux during the next big refactor 10616 need_lib_prefix=no 10617 need_version=no 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10621 shlibpath_var=LD_LIBRARY_PATH 10622 shlibpath_overrides_runpath=no 10623 10624 # Some binutils ld are patched to set DT_RUNPATH 10625 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 lt_cv_shlibpath_overrides_runpath=no 10629 save_LDFLAGS=$LDFLAGS 10630 save_libdir=$libdir 10631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635 10636int 10637main () 10638{ 10639 10640 ; 10641 return 0; 10642} 10643_ACEOF 10644if ac_fn_c_try_link "$LINENO"; then : 10645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10646 lt_cv_shlibpath_overrides_runpath=yes 10647fi 10648fi 10649rm -f core conftest.err conftest.$ac_objext \ 10650 conftest$ac_exeext conftest.$ac_ext 10651 LDFLAGS=$save_LDFLAGS 10652 libdir=$save_libdir 10653 10654fi 10655 10656 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10657 10658 # This implies no fast_install, which is unacceptable. 10659 # Some rework will be needed to allow for fast_install 10660 # before this can be enabled. 10661 hardcode_into_libs=yes 10662 10663 # Append ld.so.conf contents to the search path 10664 if test -f /etc/ld.so.conf; then 10665 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' ' '` 10666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10667 fi 10668 10669 # We used to test for /lib/ld.so.1 and disable shared libraries on 10670 # powerpc, because MkLinux only supported shared libraries with the 10671 # GNU dynamic linker. Since this was broken with cross compilers, 10672 # most powerpc-linux boxes support dynamic linking these days and 10673 # people can always --disable-shared, the test was removed, and we 10674 # assume the GNU/Linux dynamic linker is in use. 10675 dynamic_linker='GNU/Linux ld.so' 10676 ;; 10677 10678netbsd*) 10679 version_type=sunos 10680 need_lib_prefix=no 10681 need_version=no 10682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10685 dynamic_linker='NetBSD (a.out) ld.so' 10686 else 10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10688 soname_spec='${libname}${release}${shared_ext}$major' 10689 dynamic_linker='NetBSD ld.elf_so' 10690 fi 10691 shlibpath_var=LD_LIBRARY_PATH 10692 shlibpath_overrides_runpath=yes 10693 hardcode_into_libs=yes 10694 ;; 10695 10696newsos6) 10697 version_type=linux # correct to gnu/linux during the next big refactor 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10699 shlibpath_var=LD_LIBRARY_PATH 10700 shlibpath_overrides_runpath=yes 10701 ;; 10702 10703*nto* | *qnx*) 10704 version_type=qnx 10705 need_lib_prefix=no 10706 need_version=no 10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10708 soname_spec='${libname}${release}${shared_ext}$major' 10709 shlibpath_var=LD_LIBRARY_PATH 10710 shlibpath_overrides_runpath=no 10711 hardcode_into_libs=yes 10712 dynamic_linker='ldqnx.so' 10713 ;; 10714 10715openbsd*) 10716 version_type=sunos 10717 sys_lib_dlsearch_path_spec="/usr/lib" 10718 need_lib_prefix=no 10719 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10720 case $host_os in 10721 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10722 *) need_version=no ;; 10723 esac 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10726 shlibpath_var=LD_LIBRARY_PATH 10727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10728 case $host_os in 10729 openbsd2.[89] | openbsd2.[89].*) 10730 shlibpath_overrides_runpath=no 10731 ;; 10732 *) 10733 shlibpath_overrides_runpath=yes 10734 ;; 10735 esac 10736 else 10737 shlibpath_overrides_runpath=yes 10738 fi 10739 ;; 10740 10741os2*) 10742 libname_spec='$name' 10743 shrext_cmds=".dll" 10744 need_lib_prefix=no 10745 library_names_spec='$libname${shared_ext} $libname.a' 10746 dynamic_linker='OS/2 ld.exe' 10747 shlibpath_var=LIBPATH 10748 ;; 10749 10750osf3* | osf4* | osf5*) 10751 version_type=osf 10752 need_lib_prefix=no 10753 need_version=no 10754 soname_spec='${libname}${release}${shared_ext}$major' 10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10756 shlibpath_var=LD_LIBRARY_PATH 10757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10758 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10759 ;; 10760 10761rdos*) 10762 dynamic_linker=no 10763 ;; 10764 10765solaris*) 10766 version_type=linux # correct to gnu/linux during the next big refactor 10767 need_lib_prefix=no 10768 need_version=no 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10770 soname_spec='${libname}${release}${shared_ext}$major' 10771 shlibpath_var=LD_LIBRARY_PATH 10772 shlibpath_overrides_runpath=yes 10773 hardcode_into_libs=yes 10774 # ldd complains unless libraries are executable 10775 postinstall_cmds='chmod +x $lib' 10776 ;; 10777 10778sunos4*) 10779 version_type=sunos 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10781 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10782 shlibpath_var=LD_LIBRARY_PATH 10783 shlibpath_overrides_runpath=yes 10784 if test "$with_gnu_ld" = yes; then 10785 need_lib_prefix=no 10786 fi 10787 need_version=yes 10788 ;; 10789 10790sysv4 | sysv4.3*) 10791 version_type=linux # correct to gnu/linux during the next big refactor 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10793 soname_spec='${libname}${release}${shared_ext}$major' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 case $host_vendor in 10796 sni) 10797 shlibpath_overrides_runpath=no 10798 need_lib_prefix=no 10799 runpath_var=LD_RUN_PATH 10800 ;; 10801 siemens) 10802 need_lib_prefix=no 10803 ;; 10804 motorola) 10805 need_lib_prefix=no 10806 need_version=no 10807 shlibpath_overrides_runpath=no 10808 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10809 ;; 10810 esac 10811 ;; 10812 10813sysv4*MP*) 10814 if test -d /usr/nec ;then 10815 version_type=linux # correct to gnu/linux during the next big refactor 10816 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10817 soname_spec='$libname${shared_ext}.$major' 10818 shlibpath_var=LD_LIBRARY_PATH 10819 fi 10820 ;; 10821 10822sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10823 version_type=freebsd-elf 10824 need_lib_prefix=no 10825 need_version=no 10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10827 soname_spec='${libname}${release}${shared_ext}$major' 10828 shlibpath_var=LD_LIBRARY_PATH 10829 shlibpath_overrides_runpath=yes 10830 hardcode_into_libs=yes 10831 if test "$with_gnu_ld" = yes; then 10832 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10833 else 10834 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10835 case $host_os in 10836 sco3.2v5*) 10837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10838 ;; 10839 esac 10840 fi 10841 sys_lib_dlsearch_path_spec='/usr/lib' 10842 ;; 10843 10844tpf*) 10845 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10846 version_type=linux # correct to gnu/linux during the next big refactor 10847 need_lib_prefix=no 10848 need_version=no 10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 shlibpath_overrides_runpath=no 10852 hardcode_into_libs=yes 10853 ;; 10854 10855uts4*) 10856 version_type=linux # correct to gnu/linux during the next big refactor 10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10858 soname_spec='${libname}${release}${shared_ext}$major' 10859 shlibpath_var=LD_LIBRARY_PATH 10860 ;; 10861 10862*) 10863 dynamic_linker=no 10864 ;; 10865esac 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10867$as_echo "$dynamic_linker" >&6; } 10868test "$dynamic_linker" = no && can_build_shared=no 10869 10870variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10871if test "$GCC" = yes; then 10872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10873fi 10874 10875if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10876 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10877fi 10878if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10879 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10880fi 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10974$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10975hardcode_action= 10976if test -n "$hardcode_libdir_flag_spec" || 10977 test -n "$runpath_var" || 10978 test "X$hardcode_automatic" = "Xyes" ; then 10979 10980 # We can hardcode non-existent directories. 10981 if test "$hardcode_direct" != no && 10982 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10983 # have to relink, otherwise we might link with an installed library 10984 # when we should be linking with a yet-to-be-installed one 10985 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10986 test "$hardcode_minus_L" != no; then 10987 # Linking always hardcodes the temporary library directory. 10988 hardcode_action=relink 10989 else 10990 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10991 hardcode_action=immediate 10992 fi 10993else 10994 # We cannot hardcode anything, or else we can only hardcode existing 10995 # directories. 10996 hardcode_action=unsupported 10997fi 10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10999$as_echo "$hardcode_action" >&6; } 11000 11001if test "$hardcode_action" = relink || 11002 test "$inherit_rpath" = yes; then 11003 # Fast installation is not supported 11004 enable_fast_install=no 11005elif test "$shlibpath_overrides_runpath" = yes || 11006 test "$enable_shared" = no; then 11007 # Fast installation is not necessary 11008 enable_fast_install=needless 11009fi 11010 11011 11012 11013 11014 11015 11016 if test "x$enable_dlopen" != xyes; then 11017 enable_dlopen=unknown 11018 enable_dlopen_self=unknown 11019 enable_dlopen_self_static=unknown 11020else 11021 lt_cv_dlopen=no 11022 lt_cv_dlopen_libs= 11023 11024 case $host_os in 11025 beos*) 11026 lt_cv_dlopen="load_add_on" 11027 lt_cv_dlopen_libs= 11028 lt_cv_dlopen_self=yes 11029 ;; 11030 11031 mingw* | pw32* | cegcc*) 11032 lt_cv_dlopen="LoadLibrary" 11033 lt_cv_dlopen_libs= 11034 ;; 11035 11036 cygwin*) 11037 lt_cv_dlopen="dlopen" 11038 lt_cv_dlopen_libs= 11039 ;; 11040 11041 darwin*) 11042 # if libdl is installed we need to link against it 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11044$as_echo_n "checking for dlopen in -ldl... " >&6; } 11045if ${ac_cv_lib_dl_dlopen+:} false; then : 11046 $as_echo_n "(cached) " >&6 11047else 11048 ac_check_lib_save_LIBS=$LIBS 11049LIBS="-ldl $LIBS" 11050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051/* end confdefs.h. */ 11052 11053/* Override any GCC internal prototype to avoid an error. 11054 Use char because int might match the return type of a GCC 11055 builtin and then its argument prototype would still apply. */ 11056#ifdef __cplusplus 11057extern "C" 11058#endif 11059char dlopen (); 11060int 11061main () 11062{ 11063return dlopen (); 11064 ; 11065 return 0; 11066} 11067_ACEOF 11068if ac_fn_c_try_link "$LINENO"; then : 11069 ac_cv_lib_dl_dlopen=yes 11070else 11071 ac_cv_lib_dl_dlopen=no 11072fi 11073rm -f core conftest.err conftest.$ac_objext \ 11074 conftest$ac_exeext conftest.$ac_ext 11075LIBS=$ac_check_lib_save_LIBS 11076fi 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11078$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11079if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11081else 11082 11083 lt_cv_dlopen="dyld" 11084 lt_cv_dlopen_libs= 11085 lt_cv_dlopen_self=yes 11086 11087fi 11088 11089 ;; 11090 11091 *) 11092 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11093if test "x$ac_cv_func_shl_load" = xyes; then : 11094 lt_cv_dlopen="shl_load" 11095else 11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11097$as_echo_n "checking for shl_load in -ldld... " >&6; } 11098if ${ac_cv_lib_dld_shl_load+:} false; then : 11099 $as_echo_n "(cached) " >&6 11100else 11101 ac_check_lib_save_LIBS=$LIBS 11102LIBS="-ldld $LIBS" 11103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11104/* end confdefs.h. */ 11105 11106/* Override any GCC internal prototype to avoid an error. 11107 Use char because int might match the return type of a GCC 11108 builtin and then its argument prototype would still apply. */ 11109#ifdef __cplusplus 11110extern "C" 11111#endif 11112char shl_load (); 11113int 11114main () 11115{ 11116return shl_load (); 11117 ; 11118 return 0; 11119} 11120_ACEOF 11121if ac_fn_c_try_link "$LINENO"; then : 11122 ac_cv_lib_dld_shl_load=yes 11123else 11124 ac_cv_lib_dld_shl_load=no 11125fi 11126rm -f core conftest.err conftest.$ac_objext \ 11127 conftest$ac_exeext conftest.$ac_ext 11128LIBS=$ac_check_lib_save_LIBS 11129fi 11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11131$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11132if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11133 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11134else 11135 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11136if test "x$ac_cv_func_dlopen" = xyes; then : 11137 lt_cv_dlopen="dlopen" 11138else 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11140$as_echo_n "checking for dlopen in -ldl... " >&6; } 11141if ${ac_cv_lib_dl_dlopen+:} false; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 ac_check_lib_save_LIBS=$LIBS 11145LIBS="-ldl $LIBS" 11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11147/* end confdefs.h. */ 11148 11149/* Override any GCC internal prototype to avoid an error. 11150 Use char because int might match the return type of a GCC 11151 builtin and then its argument prototype would still apply. */ 11152#ifdef __cplusplus 11153extern "C" 11154#endif 11155char dlopen (); 11156int 11157main () 11158{ 11159return dlopen (); 11160 ; 11161 return 0; 11162} 11163_ACEOF 11164if ac_fn_c_try_link "$LINENO"; then : 11165 ac_cv_lib_dl_dlopen=yes 11166else 11167 ac_cv_lib_dl_dlopen=no 11168fi 11169rm -f core conftest.err conftest.$ac_objext \ 11170 conftest$ac_exeext conftest.$ac_ext 11171LIBS=$ac_check_lib_save_LIBS 11172fi 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11174$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11175if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11177else 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11179$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11180if ${ac_cv_lib_svld_dlopen+:} false; then : 11181 $as_echo_n "(cached) " >&6 11182else 11183 ac_check_lib_save_LIBS=$LIBS 11184LIBS="-lsvld $LIBS" 11185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11186/* end confdefs.h. */ 11187 11188/* Override any GCC internal prototype to avoid an error. 11189 Use char because int might match the return type of a GCC 11190 builtin and then its argument prototype would still apply. */ 11191#ifdef __cplusplus 11192extern "C" 11193#endif 11194char dlopen (); 11195int 11196main () 11197{ 11198return dlopen (); 11199 ; 11200 return 0; 11201} 11202_ACEOF 11203if ac_fn_c_try_link "$LINENO"; then : 11204 ac_cv_lib_svld_dlopen=yes 11205else 11206 ac_cv_lib_svld_dlopen=no 11207fi 11208rm -f core conftest.err conftest.$ac_objext \ 11209 conftest$ac_exeext conftest.$ac_ext 11210LIBS=$ac_check_lib_save_LIBS 11211fi 11212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11213$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11214if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11216else 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11218$as_echo_n "checking for dld_link in -ldld... " >&6; } 11219if ${ac_cv_lib_dld_dld_link+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221else 11222 ac_check_lib_save_LIBS=$LIBS 11223LIBS="-ldld $LIBS" 11224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11225/* end confdefs.h. */ 11226 11227/* Override any GCC internal prototype to avoid an error. 11228 Use char because int might match the return type of a GCC 11229 builtin and then its argument prototype would still apply. */ 11230#ifdef __cplusplus 11231extern "C" 11232#endif 11233char dld_link (); 11234int 11235main () 11236{ 11237return dld_link (); 11238 ; 11239 return 0; 11240} 11241_ACEOF 11242if ac_fn_c_try_link "$LINENO"; then : 11243 ac_cv_lib_dld_dld_link=yes 11244else 11245 ac_cv_lib_dld_dld_link=no 11246fi 11247rm -f core conftest.err conftest.$ac_objext \ 11248 conftest$ac_exeext conftest.$ac_ext 11249LIBS=$ac_check_lib_save_LIBS 11250fi 11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11252$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11253if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11254 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11255fi 11256 11257 11258fi 11259 11260 11261fi 11262 11263 11264fi 11265 11266 11267fi 11268 11269 11270fi 11271 11272 ;; 11273 esac 11274 11275 if test "x$lt_cv_dlopen" != xno; then 11276 enable_dlopen=yes 11277 else 11278 enable_dlopen=no 11279 fi 11280 11281 case $lt_cv_dlopen in 11282 dlopen) 11283 save_CPPFLAGS="$CPPFLAGS" 11284 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11285 11286 save_LDFLAGS="$LDFLAGS" 11287 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11288 11289 save_LIBS="$LIBS" 11290 LIBS="$lt_cv_dlopen_libs $LIBS" 11291 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11293$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11294if ${lt_cv_dlopen_self+:} false; then : 11295 $as_echo_n "(cached) " >&6 11296else 11297 if test "$cross_compiling" = yes; then : 11298 lt_cv_dlopen_self=cross 11299else 11300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11301 lt_status=$lt_dlunknown 11302 cat > conftest.$ac_ext <<_LT_EOF 11303#line $LINENO "configure" 11304#include "confdefs.h" 11305 11306#if HAVE_DLFCN_H 11307#include <dlfcn.h> 11308#endif 11309 11310#include <stdio.h> 11311 11312#ifdef RTLD_GLOBAL 11313# define LT_DLGLOBAL RTLD_GLOBAL 11314#else 11315# ifdef DL_GLOBAL 11316# define LT_DLGLOBAL DL_GLOBAL 11317# else 11318# define LT_DLGLOBAL 0 11319# endif 11320#endif 11321 11322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11323 find out it does not work in some platform. */ 11324#ifndef LT_DLLAZY_OR_NOW 11325# ifdef RTLD_LAZY 11326# define LT_DLLAZY_OR_NOW RTLD_LAZY 11327# else 11328# ifdef DL_LAZY 11329# define LT_DLLAZY_OR_NOW DL_LAZY 11330# else 11331# ifdef RTLD_NOW 11332# define LT_DLLAZY_OR_NOW RTLD_NOW 11333# else 11334# ifdef DL_NOW 11335# define LT_DLLAZY_OR_NOW DL_NOW 11336# else 11337# define LT_DLLAZY_OR_NOW 0 11338# endif 11339# endif 11340# endif 11341# endif 11342#endif 11343 11344/* When -fvisbility=hidden is used, assume the code has been annotated 11345 correspondingly for the symbols needed. */ 11346#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11347int fnord () __attribute__((visibility("default"))); 11348#endif 11349 11350int fnord () { return 42; } 11351int main () 11352{ 11353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11354 int status = $lt_dlunknown; 11355 11356 if (self) 11357 { 11358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11359 else 11360 { 11361 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11362 else puts (dlerror ()); 11363 } 11364 /* dlclose (self); */ 11365 } 11366 else 11367 puts (dlerror ()); 11368 11369 return status; 11370} 11371_LT_EOF 11372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11373 (eval $ac_link) 2>&5 11374 ac_status=$? 11375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11376 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11377 (./conftest; exit; ) >&5 2>/dev/null 11378 lt_status=$? 11379 case x$lt_status in 11380 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11381 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11382 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11383 esac 11384 else : 11385 # compilation failed 11386 lt_cv_dlopen_self=no 11387 fi 11388fi 11389rm -fr conftest* 11390 11391 11392fi 11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11394$as_echo "$lt_cv_dlopen_self" >&6; } 11395 11396 if test "x$lt_cv_dlopen_self" = xyes; then 11397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11399$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11400if ${lt_cv_dlopen_self_static+:} false; then : 11401 $as_echo_n "(cached) " >&6 11402else 11403 if test "$cross_compiling" = yes; then : 11404 lt_cv_dlopen_self_static=cross 11405else 11406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11407 lt_status=$lt_dlunknown 11408 cat > conftest.$ac_ext <<_LT_EOF 11409#line $LINENO "configure" 11410#include "confdefs.h" 11411 11412#if HAVE_DLFCN_H 11413#include <dlfcn.h> 11414#endif 11415 11416#include <stdio.h> 11417 11418#ifdef RTLD_GLOBAL 11419# define LT_DLGLOBAL RTLD_GLOBAL 11420#else 11421# ifdef DL_GLOBAL 11422# define LT_DLGLOBAL DL_GLOBAL 11423# else 11424# define LT_DLGLOBAL 0 11425# endif 11426#endif 11427 11428/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11429 find out it does not work in some platform. */ 11430#ifndef LT_DLLAZY_OR_NOW 11431# ifdef RTLD_LAZY 11432# define LT_DLLAZY_OR_NOW RTLD_LAZY 11433# else 11434# ifdef DL_LAZY 11435# define LT_DLLAZY_OR_NOW DL_LAZY 11436# else 11437# ifdef RTLD_NOW 11438# define LT_DLLAZY_OR_NOW RTLD_NOW 11439# else 11440# ifdef DL_NOW 11441# define LT_DLLAZY_OR_NOW DL_NOW 11442# else 11443# define LT_DLLAZY_OR_NOW 0 11444# endif 11445# endif 11446# endif 11447# endif 11448#endif 11449 11450/* When -fvisbility=hidden is used, assume the code has been annotated 11451 correspondingly for the symbols needed. */ 11452#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11453int fnord () __attribute__((visibility("default"))); 11454#endif 11455 11456int fnord () { return 42; } 11457int main () 11458{ 11459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11460 int status = $lt_dlunknown; 11461 11462 if (self) 11463 { 11464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11465 else 11466 { 11467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11468 else puts (dlerror ()); 11469 } 11470 /* dlclose (self); */ 11471 } 11472 else 11473 puts (dlerror ()); 11474 11475 return status; 11476} 11477_LT_EOF 11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11479 (eval $ac_link) 2>&5 11480 ac_status=$? 11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11482 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11483 (./conftest; exit; ) >&5 2>/dev/null 11484 lt_status=$? 11485 case x$lt_status in 11486 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11487 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11488 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11489 esac 11490 else : 11491 # compilation failed 11492 lt_cv_dlopen_self_static=no 11493 fi 11494fi 11495rm -fr conftest* 11496 11497 11498fi 11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11500$as_echo "$lt_cv_dlopen_self_static" >&6; } 11501 fi 11502 11503 CPPFLAGS="$save_CPPFLAGS" 11504 LDFLAGS="$save_LDFLAGS" 11505 LIBS="$save_LIBS" 11506 ;; 11507 esac 11508 11509 case $lt_cv_dlopen_self in 11510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11511 *) enable_dlopen_self=unknown ;; 11512 esac 11513 11514 case $lt_cv_dlopen_self_static in 11515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11516 *) enable_dlopen_self_static=unknown ;; 11517 esac 11518fi 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536striplib= 11537old_striplib= 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11539$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11540if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11541 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11542 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11544$as_echo "yes" >&6; } 11545else 11546# FIXME - insert some real tests, host_os isn't really good enough 11547 case $host_os in 11548 darwin*) 11549 if test -n "$STRIP" ; then 11550 striplib="$STRIP -x" 11551 old_striplib="$STRIP -S" 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11553$as_echo "yes" >&6; } 11554 else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11556$as_echo "no" >&6; } 11557 fi 11558 ;; 11559 *) 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11561$as_echo "no" >&6; } 11562 ;; 11563 esac 11564fi 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 # Report which library types will actually be built 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11579$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11581$as_echo "$can_build_shared" >&6; } 11582 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11584$as_echo_n "checking whether to build shared libraries... " >&6; } 11585 test "$can_build_shared" = "no" && enable_shared=no 11586 11587 # On AIX, shared libraries and static libraries use the same namespace, and 11588 # are all built from PIC. 11589 case $host_os in 11590 aix3*) 11591 test "$enable_shared" = yes && enable_static=no 11592 if test -n "$RANLIB"; then 11593 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11594 postinstall_cmds='$RANLIB $lib' 11595 fi 11596 ;; 11597 11598 aix[4-9]*) 11599 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11600 test "$enable_shared" = yes && enable_static=no 11601 fi 11602 ;; 11603 esac 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11605$as_echo "$enable_shared" >&6; } 11606 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11608$as_echo_n "checking whether to build static libraries... " >&6; } 11609 # Make sure either enable_shared or enable_static is yes. 11610 test "$enable_shared" = yes || enable_static=yes 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11612$as_echo "$enable_static" >&6; } 11613 11614 11615 11616 11617fi 11618ac_ext=c 11619ac_cpp='$CPP $CPPFLAGS' 11620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11622ac_compiler_gnu=$ac_cv_c_compiler_gnu 11623 11624CC="$lt_save_CC" 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 ac_config_commands="$ac_config_commands libtool" 11641 11642 11643 11644 11645# Only expand once: 11646 11647 11648 11649# Require xorg-macros minimum of 1.12 for DocBook external references 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11662$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11663if ${ac_cv_prog_cc_c99+:} false; then : 11664 $as_echo_n "(cached) " >&6 11665else 11666 ac_cv_prog_cc_c99=no 11667ac_save_CC=$CC 11668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11669/* end confdefs.h. */ 11670#include <stdarg.h> 11671#include <stdbool.h> 11672#include <stdlib.h> 11673#include <wchar.h> 11674#include <stdio.h> 11675 11676// Check varargs macros. These examples are taken from C99 6.10.3.5. 11677#define debug(...) fprintf (stderr, __VA_ARGS__) 11678#define showlist(...) puts (#__VA_ARGS__) 11679#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11680static void 11681test_varargs_macros (void) 11682{ 11683 int x = 1234; 11684 int y = 5678; 11685 debug ("Flag"); 11686 debug ("X = %d\n", x); 11687 showlist (The first, second, and third items.); 11688 report (x>y, "x is %d but y is %d", x, y); 11689} 11690 11691// Check long long types. 11692#define BIG64 18446744073709551615ull 11693#define BIG32 4294967295ul 11694#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11695#if !BIG_OK 11696 your preprocessor is broken; 11697#endif 11698#if BIG_OK 11699#else 11700 your preprocessor is broken; 11701#endif 11702static long long int bignum = -9223372036854775807LL; 11703static unsigned long long int ubignum = BIG64; 11704 11705struct incomplete_array 11706{ 11707 int datasize; 11708 double data[]; 11709}; 11710 11711struct named_init { 11712 int number; 11713 const wchar_t *name; 11714 double average; 11715}; 11716 11717typedef const char *ccp; 11718 11719static inline int 11720test_restrict (ccp restrict text) 11721{ 11722 // See if C++-style comments work. 11723 // Iterate through items via the restricted pointer. 11724 // Also check for declarations in for loops. 11725 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11726 continue; 11727 return 0; 11728} 11729 11730// Check varargs and va_copy. 11731static void 11732test_varargs (const char *format, ...) 11733{ 11734 va_list args; 11735 va_start (args, format); 11736 va_list args_copy; 11737 va_copy (args_copy, args); 11738 11739 const char *str; 11740 int number; 11741 float fnumber; 11742 11743 while (*format) 11744 { 11745 switch (*format++) 11746 { 11747 case 's': // string 11748 str = va_arg (args_copy, const char *); 11749 break; 11750 case 'd': // int 11751 number = va_arg (args_copy, int); 11752 break; 11753 case 'f': // float 11754 fnumber = va_arg (args_copy, double); 11755 break; 11756 default: 11757 break; 11758 } 11759 } 11760 va_end (args_copy); 11761 va_end (args); 11762} 11763 11764int 11765main () 11766{ 11767 11768 // Check bool. 11769 _Bool success = false; 11770 11771 // Check restrict. 11772 if (test_restrict ("String literal") == 0) 11773 success = true; 11774 char *restrict newvar = "Another string"; 11775 11776 // Check varargs. 11777 test_varargs ("s, d' f .", "string", 65, 34.234); 11778 test_varargs_macros (); 11779 11780 // Check flexible array members. 11781 struct incomplete_array *ia = 11782 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11783 ia->datasize = 10; 11784 for (int i = 0; i < ia->datasize; ++i) 11785 ia->data[i] = i * 1.234; 11786 11787 // Check named initializers. 11788 struct named_init ni = { 11789 .number = 34, 11790 .name = L"Test wide string", 11791 .average = 543.34343, 11792 }; 11793 11794 ni.number = 58; 11795 11796 int dynamic_array[ni.number]; 11797 dynamic_array[ni.number - 1] = 543; 11798 11799 // work around unused variable warnings 11800 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11801 || dynamic_array[ni.number - 1] != 543); 11802 11803 ; 11804 return 0; 11805} 11806_ACEOF 11807for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11808do 11809 CC="$ac_save_CC $ac_arg" 11810 if ac_fn_c_try_compile "$LINENO"; then : 11811 ac_cv_prog_cc_c99=$ac_arg 11812fi 11813rm -f core conftest.err conftest.$ac_objext 11814 test "x$ac_cv_prog_cc_c99" != "xno" && break 11815done 11816rm -f conftest.$ac_ext 11817CC=$ac_save_CC 11818 11819fi 11820# AC_CACHE_VAL 11821case "x$ac_cv_prog_cc_c99" in 11822 x) 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11824$as_echo "none needed" >&6; } ;; 11825 xno) 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11827$as_echo "unsupported" >&6; } ;; 11828 *) 11829 CC="$CC $ac_cv_prog_cc_c99" 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11831$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11832esac 11833if test "x$ac_cv_prog_cc_c99" != xno; then : 11834 11835fi 11836 11837 11838 11839 11840 11841 11842ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11843if test "x$ac_cv_have_decl___clang__" = xyes; then : 11844 CLANGCC="yes" 11845else 11846 CLANGCC="no" 11847fi 11848 11849ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11850if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11851 INTELCC="yes" 11852else 11853 INTELCC="no" 11854fi 11855 11856ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11857if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11858 SUNCC="yes" 11859else 11860 SUNCC="no" 11861fi 11862 11863 11864 11865 11866if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11867 if test -n "$ac_tool_prefix"; then 11868 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11869set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11871$as_echo_n "checking for $ac_word... " >&6; } 11872if ${ac_cv_path_PKG_CONFIG+:} false; then : 11873 $as_echo_n "(cached) " >&6 11874else 11875 case $PKG_CONFIG in 11876 [\\/]* | ?:[\\/]*) 11877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11878 ;; 11879 *) 11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11881for as_dir in $PATH 11882do 11883 IFS=$as_save_IFS 11884 test -z "$as_dir" && as_dir=. 11885 for ac_exec_ext in '' $ac_executable_extensions; do 11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11889 break 2 11890 fi 11891done 11892 done 11893IFS=$as_save_IFS 11894 11895 ;; 11896esac 11897fi 11898PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11899if test -n "$PKG_CONFIG"; then 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11901$as_echo "$PKG_CONFIG" >&6; } 11902else 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11904$as_echo "no" >&6; } 11905fi 11906 11907 11908fi 11909if test -z "$ac_cv_path_PKG_CONFIG"; then 11910 ac_pt_PKG_CONFIG=$PKG_CONFIG 11911 # Extract the first word of "pkg-config", so it can be a program name with args. 11912set dummy pkg-config; ac_word=$2 11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11914$as_echo_n "checking for $ac_word... " >&6; } 11915if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11916 $as_echo_n "(cached) " >&6 11917else 11918 case $ac_pt_PKG_CONFIG in 11919 [\\/]* | ?:[\\/]*) 11920 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11921 ;; 11922 *) 11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11924for as_dir in $PATH 11925do 11926 IFS=$as_save_IFS 11927 test -z "$as_dir" && as_dir=. 11928 for ac_exec_ext in '' $ac_executable_extensions; do 11929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11930 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11932 break 2 11933 fi 11934done 11935 done 11936IFS=$as_save_IFS 11937 11938 ;; 11939esac 11940fi 11941ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11942if test -n "$ac_pt_PKG_CONFIG"; then 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11944$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11945else 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11947$as_echo "no" >&6; } 11948fi 11949 11950 if test "x$ac_pt_PKG_CONFIG" = x; then 11951 PKG_CONFIG="" 11952 else 11953 case $cross_compiling:$ac_tool_warned in 11954yes:) 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11957ac_tool_warned=yes ;; 11958esac 11959 PKG_CONFIG=$ac_pt_PKG_CONFIG 11960 fi 11961else 11962 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11963fi 11964 11965fi 11966if test -n "$PKG_CONFIG"; then 11967 _pkg_min_version=0.9.0 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11969$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11970 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11972$as_echo "yes" >&6; } 11973 else 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11975$as_echo "no" >&6; } 11976 PKG_CONFIG="" 11977 fi 11978 11979fi 11980 11981 11982 11983 11984 11985# Check whether --enable-selective-werror was given. 11986if test "${enable_selective_werror+set}" = set; then : 11987 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11988else 11989 SELECTIVE_WERROR=yes 11990fi 11991 11992 11993 11994 11995 11996# -v is too short to test reliably with XORG_TESTSET_CFLAG 11997if test "x$SUNCC" = "xyes"; then 11998 BASE_CFLAGS="-v" 11999else 12000 BASE_CFLAGS="" 12001fi 12002 12003# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017xorg_testset_save_CFLAGS="$CFLAGS" 12018 12019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12024 $as_echo_n "(cached) " >&6 12025else 12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12027/* end confdefs.h. */ 12028int i; 12029_ACEOF 12030if ac_fn_c_try_compile "$LINENO"; then : 12031 xorg_cv_cc_flag_unknown_warning_option=yes 12032else 12033 xorg_cv_cc_flag_unknown_warning_option=no 12034fi 12035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12036fi 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12040 CFLAGS="$xorg_testset_save_CFLAGS" 12041fi 12042 12043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12046 fi 12047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12051 $as_echo_n "(cached) " >&6 12052else 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055int i; 12056_ACEOF 12057if ac_fn_c_try_compile "$LINENO"; then : 12058 xorg_cv_cc_flag_unused_command_line_argument=yes 12059else 12060 xorg_cv_cc_flag_unused_command_line_argument=no 12061fi 12062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12063fi 12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12067 CFLAGS="$xorg_testset_save_CFLAGS" 12068fi 12069 12070found="no" 12071 12072 if test $found = "no" ; then 12073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12075 fi 12076 12077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12079 fi 12080 12081 CFLAGS="$CFLAGS -Wall" 12082 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12084$as_echo_n "checking if $CC supports -Wall... " >&6; } 12085 cacheid=xorg_cv_cc_flag__Wall 12086 if eval \${$cacheid+:} false; then : 12087 $as_echo_n "(cached) " >&6 12088else 12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12090/* end confdefs.h. */ 12091int i; 12092int 12093main () 12094{ 12095 12096 ; 12097 return 0; 12098} 12099_ACEOF 12100if ac_fn_c_try_link "$LINENO"; then : 12101 eval $cacheid=yes 12102else 12103 eval $cacheid=no 12104fi 12105rm -f core conftest.err conftest.$ac_objext \ 12106 conftest$ac_exeext conftest.$ac_ext 12107fi 12108 12109 12110 CFLAGS="$xorg_testset_save_CFLAGS" 12111 12112 eval supported=\$$cacheid 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12114$as_echo "$supported" >&6; } 12115 if test "$supported" = "yes" ; then 12116 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12117 found="yes" 12118 fi 12119 fi 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135xorg_testset_save_CFLAGS="$CFLAGS" 12136 12137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12142 $as_echo_n "(cached) " >&6 12143else 12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12145/* end confdefs.h. */ 12146int i; 12147_ACEOF 12148if ac_fn_c_try_compile "$LINENO"; then : 12149 xorg_cv_cc_flag_unknown_warning_option=yes 12150else 12151 xorg_cv_cc_flag_unknown_warning_option=no 12152fi 12153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12154fi 12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12158 CFLAGS="$xorg_testset_save_CFLAGS" 12159fi 12160 12161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12164 fi 12165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12169 $as_echo_n "(cached) " >&6 12170else 12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12172/* end confdefs.h. */ 12173int i; 12174_ACEOF 12175if ac_fn_c_try_compile "$LINENO"; then : 12176 xorg_cv_cc_flag_unused_command_line_argument=yes 12177else 12178 xorg_cv_cc_flag_unused_command_line_argument=no 12179fi 12180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12181fi 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12185 CFLAGS="$xorg_testset_save_CFLAGS" 12186fi 12187 12188found="no" 12189 12190 if test $found = "no" ; then 12191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12193 fi 12194 12195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12197 fi 12198 12199 CFLAGS="$CFLAGS -Wpointer-arith" 12200 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12202$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12203 cacheid=xorg_cv_cc_flag__Wpointer_arith 12204 if eval \${$cacheid+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12208/* end confdefs.h. */ 12209int i; 12210int 12211main () 12212{ 12213 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218if ac_fn_c_try_link "$LINENO"; then : 12219 eval $cacheid=yes 12220else 12221 eval $cacheid=no 12222fi 12223rm -f core conftest.err conftest.$ac_objext \ 12224 conftest$ac_exeext conftest.$ac_ext 12225fi 12226 12227 12228 CFLAGS="$xorg_testset_save_CFLAGS" 12229 12230 eval supported=\$$cacheid 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12232$as_echo "$supported" >&6; } 12233 if test "$supported" = "yes" ; then 12234 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12235 found="yes" 12236 fi 12237 fi 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253xorg_testset_save_CFLAGS="$CFLAGS" 12254 12255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12260 $as_echo_n "(cached) " >&6 12261else 12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12263/* end confdefs.h. */ 12264int i; 12265_ACEOF 12266if ac_fn_c_try_compile "$LINENO"; then : 12267 xorg_cv_cc_flag_unknown_warning_option=yes 12268else 12269 xorg_cv_cc_flag_unknown_warning_option=no 12270fi 12271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12272fi 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12276 CFLAGS="$xorg_testset_save_CFLAGS" 12277fi 12278 12279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12282 fi 12283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12287 $as_echo_n "(cached) " >&6 12288else 12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12290/* end confdefs.h. */ 12291int i; 12292_ACEOF 12293if ac_fn_c_try_compile "$LINENO"; then : 12294 xorg_cv_cc_flag_unused_command_line_argument=yes 12295else 12296 xorg_cv_cc_flag_unused_command_line_argument=no 12297fi 12298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12299fi 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12303 CFLAGS="$xorg_testset_save_CFLAGS" 12304fi 12305 12306found="no" 12307 12308 if test $found = "no" ; then 12309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12311 fi 12312 12313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12315 fi 12316 12317 CFLAGS="$CFLAGS -Wmissing-declarations" 12318 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12320$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12321 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12322 if eval \${$cacheid+:} false; then : 12323 $as_echo_n "(cached) " >&6 12324else 12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12326/* end confdefs.h. */ 12327int i; 12328int 12329main () 12330{ 12331 12332 ; 12333 return 0; 12334} 12335_ACEOF 12336if ac_fn_c_try_link "$LINENO"; then : 12337 eval $cacheid=yes 12338else 12339 eval $cacheid=no 12340fi 12341rm -f core conftest.err conftest.$ac_objext \ 12342 conftest$ac_exeext conftest.$ac_ext 12343fi 12344 12345 12346 CFLAGS="$xorg_testset_save_CFLAGS" 12347 12348 eval supported=\$$cacheid 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12350$as_echo "$supported" >&6; } 12351 if test "$supported" = "yes" ; then 12352 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12353 found="yes" 12354 fi 12355 fi 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371xorg_testset_save_CFLAGS="$CFLAGS" 12372 12373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12378 $as_echo_n "(cached) " >&6 12379else 12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12381/* end confdefs.h. */ 12382int i; 12383_ACEOF 12384if ac_fn_c_try_compile "$LINENO"; then : 12385 xorg_cv_cc_flag_unknown_warning_option=yes 12386else 12387 xorg_cv_cc_flag_unknown_warning_option=no 12388fi 12389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12390fi 12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12394 CFLAGS="$xorg_testset_save_CFLAGS" 12395fi 12396 12397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12400 fi 12401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12408/* end confdefs.h. */ 12409int i; 12410_ACEOF 12411if ac_fn_c_try_compile "$LINENO"; then : 12412 xorg_cv_cc_flag_unused_command_line_argument=yes 12413else 12414 xorg_cv_cc_flag_unused_command_line_argument=no 12415fi 12416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12417fi 12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12421 CFLAGS="$xorg_testset_save_CFLAGS" 12422fi 12423 12424found="no" 12425 12426 if test $found = "no" ; then 12427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12429 fi 12430 12431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12433 fi 12434 12435 CFLAGS="$CFLAGS -Wformat=2" 12436 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12438$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12439 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12440 if eval \${$cacheid+:} false; then : 12441 $as_echo_n "(cached) " >&6 12442else 12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12444/* end confdefs.h. */ 12445int i; 12446int 12447main () 12448{ 12449 12450 ; 12451 return 0; 12452} 12453_ACEOF 12454if ac_fn_c_try_link "$LINENO"; then : 12455 eval $cacheid=yes 12456else 12457 eval $cacheid=no 12458fi 12459rm -f core conftest.err conftest.$ac_objext \ 12460 conftest$ac_exeext conftest.$ac_ext 12461fi 12462 12463 12464 CFLAGS="$xorg_testset_save_CFLAGS" 12465 12466 eval supported=\$$cacheid 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12468$as_echo "$supported" >&6; } 12469 if test "$supported" = "yes" ; then 12470 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12471 found="yes" 12472 fi 12473 fi 12474 12475 if test $found = "no" ; then 12476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12478 fi 12479 12480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12482 fi 12483 12484 CFLAGS="$CFLAGS -Wformat" 12485 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12487$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12488 cacheid=xorg_cv_cc_flag__Wformat 12489 if eval \${$cacheid+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494int i; 12495int 12496main () 12497{ 12498 12499 ; 12500 return 0; 12501} 12502_ACEOF 12503if ac_fn_c_try_link "$LINENO"; then : 12504 eval $cacheid=yes 12505else 12506 eval $cacheid=no 12507fi 12508rm -f core conftest.err conftest.$ac_objext \ 12509 conftest$ac_exeext conftest.$ac_ext 12510fi 12511 12512 12513 CFLAGS="$xorg_testset_save_CFLAGS" 12514 12515 eval supported=\$$cacheid 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12517$as_echo "$supported" >&6; } 12518 if test "$supported" = "yes" ; then 12519 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12520 found="yes" 12521 fi 12522 fi 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540xorg_testset_save_CFLAGS="$CFLAGS" 12541 12542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12550/* end confdefs.h. */ 12551int i; 12552_ACEOF 12553if ac_fn_c_try_compile "$LINENO"; then : 12554 xorg_cv_cc_flag_unknown_warning_option=yes 12555else 12556 xorg_cv_cc_flag_unknown_warning_option=no 12557fi 12558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12559fi 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12563 CFLAGS="$xorg_testset_save_CFLAGS" 12564fi 12565 12566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12569 fi 12570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12574 $as_echo_n "(cached) " >&6 12575else 12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12577/* end confdefs.h. */ 12578int i; 12579_ACEOF 12580if ac_fn_c_try_compile "$LINENO"; then : 12581 xorg_cv_cc_flag_unused_command_line_argument=yes 12582else 12583 xorg_cv_cc_flag_unused_command_line_argument=no 12584fi 12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12586fi 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12590 CFLAGS="$xorg_testset_save_CFLAGS" 12591fi 12592 12593found="no" 12594 12595 if test $found = "no" ; then 12596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12598 fi 12599 12600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12602 fi 12603 12604 CFLAGS="$CFLAGS -Wstrict-prototypes" 12605 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12607$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12608 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12609 if eval \${$cacheid+:} false; then : 12610 $as_echo_n "(cached) " >&6 12611else 12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12613/* end confdefs.h. */ 12614int i; 12615int 12616main () 12617{ 12618 12619 ; 12620 return 0; 12621} 12622_ACEOF 12623if ac_fn_c_try_link "$LINENO"; then : 12624 eval $cacheid=yes 12625else 12626 eval $cacheid=no 12627fi 12628rm -f core conftest.err conftest.$ac_objext \ 12629 conftest$ac_exeext conftest.$ac_ext 12630fi 12631 12632 12633 CFLAGS="$xorg_testset_save_CFLAGS" 12634 12635 eval supported=\$$cacheid 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12637$as_echo "$supported" >&6; } 12638 if test "$supported" = "yes" ; then 12639 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12640 found="yes" 12641 fi 12642 fi 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658xorg_testset_save_CFLAGS="$CFLAGS" 12659 12660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12665 $as_echo_n "(cached) " >&6 12666else 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669int i; 12670_ACEOF 12671if ac_fn_c_try_compile "$LINENO"; then : 12672 xorg_cv_cc_flag_unknown_warning_option=yes 12673else 12674 xorg_cv_cc_flag_unknown_warning_option=no 12675fi 12676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12677fi 12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12681 CFLAGS="$xorg_testset_save_CFLAGS" 12682fi 12683 12684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12687 fi 12688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12692 $as_echo_n "(cached) " >&6 12693else 12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12695/* end confdefs.h. */ 12696int i; 12697_ACEOF 12698if ac_fn_c_try_compile "$LINENO"; then : 12699 xorg_cv_cc_flag_unused_command_line_argument=yes 12700else 12701 xorg_cv_cc_flag_unused_command_line_argument=no 12702fi 12703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12704fi 12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12708 CFLAGS="$xorg_testset_save_CFLAGS" 12709fi 12710 12711found="no" 12712 12713 if test $found = "no" ; then 12714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12716 fi 12717 12718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12720 fi 12721 12722 CFLAGS="$CFLAGS -Wmissing-prototypes" 12723 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12725$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12726 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12727 if eval \${$cacheid+:} false; then : 12728 $as_echo_n "(cached) " >&6 12729else 12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12731/* end confdefs.h. */ 12732int i; 12733int 12734main () 12735{ 12736 12737 ; 12738 return 0; 12739} 12740_ACEOF 12741if ac_fn_c_try_link "$LINENO"; then : 12742 eval $cacheid=yes 12743else 12744 eval $cacheid=no 12745fi 12746rm -f core conftest.err conftest.$ac_objext \ 12747 conftest$ac_exeext conftest.$ac_ext 12748fi 12749 12750 12751 CFLAGS="$xorg_testset_save_CFLAGS" 12752 12753 eval supported=\$$cacheid 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12755$as_echo "$supported" >&6; } 12756 if test "$supported" = "yes" ; then 12757 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12758 found="yes" 12759 fi 12760 fi 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776xorg_testset_save_CFLAGS="$CFLAGS" 12777 12778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12783 $as_echo_n "(cached) " >&6 12784else 12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12786/* end confdefs.h. */ 12787int i; 12788_ACEOF 12789if ac_fn_c_try_compile "$LINENO"; then : 12790 xorg_cv_cc_flag_unknown_warning_option=yes 12791else 12792 xorg_cv_cc_flag_unknown_warning_option=no 12793fi 12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12795fi 12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12799 CFLAGS="$xorg_testset_save_CFLAGS" 12800fi 12801 12802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12805 fi 12806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12810 $as_echo_n "(cached) " >&6 12811else 12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12813/* end confdefs.h. */ 12814int i; 12815_ACEOF 12816if ac_fn_c_try_compile "$LINENO"; then : 12817 xorg_cv_cc_flag_unused_command_line_argument=yes 12818else 12819 xorg_cv_cc_flag_unused_command_line_argument=no 12820fi 12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12822fi 12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12826 CFLAGS="$xorg_testset_save_CFLAGS" 12827fi 12828 12829found="no" 12830 12831 if test $found = "no" ; then 12832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12834 fi 12835 12836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12838 fi 12839 12840 CFLAGS="$CFLAGS -Wnested-externs" 12841 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12843$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12844 cacheid=xorg_cv_cc_flag__Wnested_externs 12845 if eval \${$cacheid+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847else 12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12849/* end confdefs.h. */ 12850int i; 12851int 12852main () 12853{ 12854 12855 ; 12856 return 0; 12857} 12858_ACEOF 12859if ac_fn_c_try_link "$LINENO"; then : 12860 eval $cacheid=yes 12861else 12862 eval $cacheid=no 12863fi 12864rm -f core conftest.err conftest.$ac_objext \ 12865 conftest$ac_exeext conftest.$ac_ext 12866fi 12867 12868 12869 CFLAGS="$xorg_testset_save_CFLAGS" 12870 12871 eval supported=\$$cacheid 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12873$as_echo "$supported" >&6; } 12874 if test "$supported" = "yes" ; then 12875 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12876 found="yes" 12877 fi 12878 fi 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894xorg_testset_save_CFLAGS="$CFLAGS" 12895 12896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12901 $as_echo_n "(cached) " >&6 12902else 12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904/* end confdefs.h. */ 12905int i; 12906_ACEOF 12907if ac_fn_c_try_compile "$LINENO"; then : 12908 xorg_cv_cc_flag_unknown_warning_option=yes 12909else 12910 xorg_cv_cc_flag_unknown_warning_option=no 12911fi 12912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12913fi 12914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12917 CFLAGS="$xorg_testset_save_CFLAGS" 12918fi 12919 12920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12923 fi 12924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12928 $as_echo_n "(cached) " >&6 12929else 12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12931/* end confdefs.h. */ 12932int i; 12933_ACEOF 12934if ac_fn_c_try_compile "$LINENO"; then : 12935 xorg_cv_cc_flag_unused_command_line_argument=yes 12936else 12937 xorg_cv_cc_flag_unused_command_line_argument=no 12938fi 12939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12940fi 12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12944 CFLAGS="$xorg_testset_save_CFLAGS" 12945fi 12946 12947found="no" 12948 12949 if test $found = "no" ; then 12950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12952 fi 12953 12954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12956 fi 12957 12958 CFLAGS="$CFLAGS -Wbad-function-cast" 12959 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12961$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12962 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12963 if eval \${$cacheid+:} false; then : 12964 $as_echo_n "(cached) " >&6 12965else 12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967/* end confdefs.h. */ 12968int i; 12969int 12970main () 12971{ 12972 12973 ; 12974 return 0; 12975} 12976_ACEOF 12977if ac_fn_c_try_link "$LINENO"; then : 12978 eval $cacheid=yes 12979else 12980 eval $cacheid=no 12981fi 12982rm -f core conftest.err conftest.$ac_objext \ 12983 conftest$ac_exeext conftest.$ac_ext 12984fi 12985 12986 12987 CFLAGS="$xorg_testset_save_CFLAGS" 12988 12989 eval supported=\$$cacheid 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12991$as_echo "$supported" >&6; } 12992 if test "$supported" = "yes" ; then 12993 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12994 found="yes" 12995 fi 12996 fi 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012xorg_testset_save_CFLAGS="$CFLAGS" 13013 13014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13019 $as_echo_n "(cached) " >&6 13020else 13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13022/* end confdefs.h. */ 13023int i; 13024_ACEOF 13025if ac_fn_c_try_compile "$LINENO"; then : 13026 xorg_cv_cc_flag_unknown_warning_option=yes 13027else 13028 xorg_cv_cc_flag_unknown_warning_option=no 13029fi 13030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13031fi 13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13035 CFLAGS="$xorg_testset_save_CFLAGS" 13036fi 13037 13038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13041 fi 13042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13046 $as_echo_n "(cached) " >&6 13047else 13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13049/* end confdefs.h. */ 13050int i; 13051_ACEOF 13052if ac_fn_c_try_compile "$LINENO"; then : 13053 xorg_cv_cc_flag_unused_command_line_argument=yes 13054else 13055 xorg_cv_cc_flag_unused_command_line_argument=no 13056fi 13057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13058fi 13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13062 CFLAGS="$xorg_testset_save_CFLAGS" 13063fi 13064 13065found="no" 13066 13067 if test $found = "no" ; then 13068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13070 fi 13071 13072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13074 fi 13075 13076 CFLAGS="$CFLAGS -Wold-style-definition" 13077 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13079$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13080 cacheid=xorg_cv_cc_flag__Wold_style_definition 13081 if eval \${$cacheid+:} false; then : 13082 $as_echo_n "(cached) " >&6 13083else 13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086int i; 13087int 13088main () 13089{ 13090 13091 ; 13092 return 0; 13093} 13094_ACEOF 13095if ac_fn_c_try_link "$LINENO"; then : 13096 eval $cacheid=yes 13097else 13098 eval $cacheid=no 13099fi 13100rm -f core conftest.err conftest.$ac_objext \ 13101 conftest$ac_exeext conftest.$ac_ext 13102fi 13103 13104 13105 CFLAGS="$xorg_testset_save_CFLAGS" 13106 13107 eval supported=\$$cacheid 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13109$as_echo "$supported" >&6; } 13110 if test "$supported" = "yes" ; then 13111 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13112 found="yes" 13113 fi 13114 fi 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130xorg_testset_save_CFLAGS="$CFLAGS" 13131 13132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13137 $as_echo_n "(cached) " >&6 13138else 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141int i; 13142_ACEOF 13143if ac_fn_c_try_compile "$LINENO"; then : 13144 xorg_cv_cc_flag_unknown_warning_option=yes 13145else 13146 xorg_cv_cc_flag_unknown_warning_option=no 13147fi 13148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13149fi 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13153 CFLAGS="$xorg_testset_save_CFLAGS" 13154fi 13155 13156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13159 fi 13160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13167/* end confdefs.h. */ 13168int i; 13169_ACEOF 13170if ac_fn_c_try_compile "$LINENO"; then : 13171 xorg_cv_cc_flag_unused_command_line_argument=yes 13172else 13173 xorg_cv_cc_flag_unused_command_line_argument=no 13174fi 13175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13176fi 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13180 CFLAGS="$xorg_testset_save_CFLAGS" 13181fi 13182 13183found="no" 13184 13185 if test $found = "no" ; then 13186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13188 fi 13189 13190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13192 fi 13193 13194 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13195 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13197$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13198 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13199 if eval \${$cacheid+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13203/* end confdefs.h. */ 13204int i; 13205int 13206main () 13207{ 13208 13209 ; 13210 return 0; 13211} 13212_ACEOF 13213if ac_fn_c_try_link "$LINENO"; then : 13214 eval $cacheid=yes 13215else 13216 eval $cacheid=no 13217fi 13218rm -f core conftest.err conftest.$ac_objext \ 13219 conftest$ac_exeext conftest.$ac_ext 13220fi 13221 13222 13223 CFLAGS="$xorg_testset_save_CFLAGS" 13224 13225 eval supported=\$$cacheid 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13227$as_echo "$supported" >&6; } 13228 if test "$supported" = "yes" ; then 13229 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13230 found="yes" 13231 fi 13232 fi 13233 13234 13235 13236 13237 13238# This chunk adds additional warnings that could catch undesired effects. 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252xorg_testset_save_CFLAGS="$CFLAGS" 13253 13254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13259 $as_echo_n "(cached) " >&6 13260else 13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13262/* end confdefs.h. */ 13263int i; 13264_ACEOF 13265if ac_fn_c_try_compile "$LINENO"; then : 13266 xorg_cv_cc_flag_unknown_warning_option=yes 13267else 13268 xorg_cv_cc_flag_unknown_warning_option=no 13269fi 13270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13271fi 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13275 CFLAGS="$xorg_testset_save_CFLAGS" 13276fi 13277 13278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13281 fi 13282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13286 $as_echo_n "(cached) " >&6 13287else 13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13289/* end confdefs.h. */ 13290int i; 13291_ACEOF 13292if ac_fn_c_try_compile "$LINENO"; then : 13293 xorg_cv_cc_flag_unused_command_line_argument=yes 13294else 13295 xorg_cv_cc_flag_unused_command_line_argument=no 13296fi 13297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13298fi 13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13302 CFLAGS="$xorg_testset_save_CFLAGS" 13303fi 13304 13305found="no" 13306 13307 if test $found = "no" ; then 13308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13310 fi 13311 13312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13314 fi 13315 13316 CFLAGS="$CFLAGS -Wunused" 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13319$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13320 cacheid=xorg_cv_cc_flag__Wunused 13321 if eval \${$cacheid+:} false; then : 13322 $as_echo_n "(cached) " >&6 13323else 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326int i; 13327int 13328main () 13329{ 13330 13331 ; 13332 return 0; 13333} 13334_ACEOF 13335if ac_fn_c_try_link "$LINENO"; then : 13336 eval $cacheid=yes 13337else 13338 eval $cacheid=no 13339fi 13340rm -f core conftest.err conftest.$ac_objext \ 13341 conftest$ac_exeext conftest.$ac_ext 13342fi 13343 13344 13345 CFLAGS="$xorg_testset_save_CFLAGS" 13346 13347 eval supported=\$$cacheid 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13349$as_echo "$supported" >&6; } 13350 if test "$supported" = "yes" ; then 13351 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13352 found="yes" 13353 fi 13354 fi 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370xorg_testset_save_CFLAGS="$CFLAGS" 13371 13372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13377 $as_echo_n "(cached) " >&6 13378else 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13380/* end confdefs.h. */ 13381int i; 13382_ACEOF 13383if ac_fn_c_try_compile "$LINENO"; then : 13384 xorg_cv_cc_flag_unknown_warning_option=yes 13385else 13386 xorg_cv_cc_flag_unknown_warning_option=no 13387fi 13388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13389fi 13390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13393 CFLAGS="$xorg_testset_save_CFLAGS" 13394fi 13395 13396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13399 fi 13400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405else 13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13407/* end confdefs.h. */ 13408int i; 13409_ACEOF 13410if ac_fn_c_try_compile "$LINENO"; then : 13411 xorg_cv_cc_flag_unused_command_line_argument=yes 13412else 13413 xorg_cv_cc_flag_unused_command_line_argument=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13416fi 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421fi 13422 13423found="no" 13424 13425 if test $found = "no" ; then 13426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13428 fi 13429 13430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 fi 13433 13434 CFLAGS="$CFLAGS -Wuninitialized" 13435 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13437$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13438 cacheid=xorg_cv_cc_flag__Wuninitialized 13439 if eval \${$cacheid+:} false; then : 13440 $as_echo_n "(cached) " >&6 13441else 13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443/* end confdefs.h. */ 13444int i; 13445int 13446main () 13447{ 13448 13449 ; 13450 return 0; 13451} 13452_ACEOF 13453if ac_fn_c_try_link "$LINENO"; then : 13454 eval $cacheid=yes 13455else 13456 eval $cacheid=no 13457fi 13458rm -f core conftest.err conftest.$ac_objext \ 13459 conftest$ac_exeext conftest.$ac_ext 13460fi 13461 13462 13463 CFLAGS="$xorg_testset_save_CFLAGS" 13464 13465 eval supported=\$$cacheid 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13467$as_echo "$supported" >&6; } 13468 if test "$supported" = "yes" ; then 13469 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13470 found="yes" 13471 fi 13472 fi 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488xorg_testset_save_CFLAGS="$CFLAGS" 13489 13490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13495 $as_echo_n "(cached) " >&6 13496else 13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13498/* end confdefs.h. */ 13499int i; 13500_ACEOF 13501if ac_fn_c_try_compile "$LINENO"; then : 13502 xorg_cv_cc_flag_unknown_warning_option=yes 13503else 13504 xorg_cv_cc_flag_unknown_warning_option=no 13505fi 13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13507fi 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13511 CFLAGS="$xorg_testset_save_CFLAGS" 13512fi 13513 13514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13517 fi 13518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13525/* end confdefs.h. */ 13526int i; 13527_ACEOF 13528if ac_fn_c_try_compile "$LINENO"; then : 13529 xorg_cv_cc_flag_unused_command_line_argument=yes 13530else 13531 xorg_cv_cc_flag_unused_command_line_argument=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13534fi 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13538 CFLAGS="$xorg_testset_save_CFLAGS" 13539fi 13540 13541found="no" 13542 13543 if test $found = "no" ; then 13544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13546 fi 13547 13548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13550 fi 13551 13552 CFLAGS="$CFLAGS -Wshadow" 13553 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13555$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13556 cacheid=xorg_cv_cc_flag__Wshadow 13557 if eval \${$cacheid+:} false; then : 13558 $as_echo_n "(cached) " >&6 13559else 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561/* end confdefs.h. */ 13562int i; 13563int 13564main () 13565{ 13566 13567 ; 13568 return 0; 13569} 13570_ACEOF 13571if ac_fn_c_try_link "$LINENO"; then : 13572 eval $cacheid=yes 13573else 13574 eval $cacheid=no 13575fi 13576rm -f core conftest.err conftest.$ac_objext \ 13577 conftest$ac_exeext conftest.$ac_ext 13578fi 13579 13580 13581 CFLAGS="$xorg_testset_save_CFLAGS" 13582 13583 eval supported=\$$cacheid 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13585$as_echo "$supported" >&6; } 13586 if test "$supported" = "yes" ; then 13587 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13588 found="yes" 13589 fi 13590 fi 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606xorg_testset_save_CFLAGS="$CFLAGS" 13607 13608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13613 $as_echo_n "(cached) " >&6 13614else 13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13616/* end confdefs.h. */ 13617int i; 13618_ACEOF 13619if ac_fn_c_try_compile "$LINENO"; then : 13620 xorg_cv_cc_flag_unknown_warning_option=yes 13621else 13622 xorg_cv_cc_flag_unknown_warning_option=no 13623fi 13624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13625fi 13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13629 CFLAGS="$xorg_testset_save_CFLAGS" 13630fi 13631 13632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13635 fi 13636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13640 $as_echo_n "(cached) " >&6 13641else 13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13643/* end confdefs.h. */ 13644int i; 13645_ACEOF 13646if ac_fn_c_try_compile "$LINENO"; then : 13647 xorg_cv_cc_flag_unused_command_line_argument=yes 13648else 13649 xorg_cv_cc_flag_unused_command_line_argument=no 13650fi 13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13652fi 13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13656 CFLAGS="$xorg_testset_save_CFLAGS" 13657fi 13658 13659found="no" 13660 13661 if test $found = "no" ; then 13662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13664 fi 13665 13666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13668 fi 13669 13670 CFLAGS="$CFLAGS -Wcast-qual" 13671 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13673$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13674 cacheid=xorg_cv_cc_flag__Wcast_qual 13675 if eval \${$cacheid+:} false; then : 13676 $as_echo_n "(cached) " >&6 13677else 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679/* end confdefs.h. */ 13680int i; 13681int 13682main () 13683{ 13684 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_link "$LINENO"; then : 13690 eval $cacheid=yes 13691else 13692 eval $cacheid=no 13693fi 13694rm -f core conftest.err conftest.$ac_objext \ 13695 conftest$ac_exeext conftest.$ac_ext 13696fi 13697 13698 13699 CFLAGS="$xorg_testset_save_CFLAGS" 13700 13701 eval supported=\$$cacheid 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13703$as_echo "$supported" >&6; } 13704 if test "$supported" = "yes" ; then 13705 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13706 found="yes" 13707 fi 13708 fi 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724xorg_testset_save_CFLAGS="$CFLAGS" 13725 13726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732else 13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13734/* end confdefs.h. */ 13735int i; 13736_ACEOF 13737if ac_fn_c_try_compile "$LINENO"; then : 13738 xorg_cv_cc_flag_unknown_warning_option=yes 13739else 13740 xorg_cv_cc_flag_unknown_warning_option=no 13741fi 13742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13743fi 13744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13747 CFLAGS="$xorg_testset_save_CFLAGS" 13748fi 13749 13750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13753 fi 13754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13758 $as_echo_n "(cached) " >&6 13759else 13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13761/* end confdefs.h. */ 13762int i; 13763_ACEOF 13764if ac_fn_c_try_compile "$LINENO"; then : 13765 xorg_cv_cc_flag_unused_command_line_argument=yes 13766else 13767 xorg_cv_cc_flag_unused_command_line_argument=no 13768fi 13769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13770fi 13771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13774 CFLAGS="$xorg_testset_save_CFLAGS" 13775fi 13776 13777found="no" 13778 13779 if test $found = "no" ; then 13780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13782 fi 13783 13784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13786 fi 13787 13788 CFLAGS="$CFLAGS -Wmissing-noreturn" 13789 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13791$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13792 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13793 if eval \${$cacheid+:} false; then : 13794 $as_echo_n "(cached) " >&6 13795else 13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13797/* end confdefs.h. */ 13798int i; 13799int 13800main () 13801{ 13802 13803 ; 13804 return 0; 13805} 13806_ACEOF 13807if ac_fn_c_try_link "$LINENO"; then : 13808 eval $cacheid=yes 13809else 13810 eval $cacheid=no 13811fi 13812rm -f core conftest.err conftest.$ac_objext \ 13813 conftest$ac_exeext conftest.$ac_ext 13814fi 13815 13816 13817 CFLAGS="$xorg_testset_save_CFLAGS" 13818 13819 eval supported=\$$cacheid 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13821$as_echo "$supported" >&6; } 13822 if test "$supported" = "yes" ; then 13823 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13824 found="yes" 13825 fi 13826 fi 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842xorg_testset_save_CFLAGS="$CFLAGS" 13843 13844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850else 13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13852/* end confdefs.h. */ 13853int i; 13854_ACEOF 13855if ac_fn_c_try_compile "$LINENO"; then : 13856 xorg_cv_cc_flag_unknown_warning_option=yes 13857else 13858 xorg_cv_cc_flag_unknown_warning_option=no 13859fi 13860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13861fi 13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13865 CFLAGS="$xorg_testset_save_CFLAGS" 13866fi 13867 13868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13871 fi 13872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13876 $as_echo_n "(cached) " >&6 13877else 13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13879/* end confdefs.h. */ 13880int i; 13881_ACEOF 13882if ac_fn_c_try_compile "$LINENO"; then : 13883 xorg_cv_cc_flag_unused_command_line_argument=yes 13884else 13885 xorg_cv_cc_flag_unused_command_line_argument=no 13886fi 13887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13888fi 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13892 CFLAGS="$xorg_testset_save_CFLAGS" 13893fi 13894 13895found="no" 13896 13897 if test $found = "no" ; then 13898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13900 fi 13901 13902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13904 fi 13905 13906 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13907 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13909$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13910 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13911 if eval \${$cacheid+:} false; then : 13912 $as_echo_n "(cached) " >&6 13913else 13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13915/* end confdefs.h. */ 13916int i; 13917int 13918main () 13919{ 13920 13921 ; 13922 return 0; 13923} 13924_ACEOF 13925if ac_fn_c_try_link "$LINENO"; then : 13926 eval $cacheid=yes 13927else 13928 eval $cacheid=no 13929fi 13930rm -f core conftest.err conftest.$ac_objext \ 13931 conftest$ac_exeext conftest.$ac_ext 13932fi 13933 13934 13935 CFLAGS="$xorg_testset_save_CFLAGS" 13936 13937 eval supported=\$$cacheid 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13939$as_echo "$supported" >&6; } 13940 if test "$supported" = "yes" ; then 13941 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13942 found="yes" 13943 fi 13944 fi 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960xorg_testset_save_CFLAGS="$CFLAGS" 13961 13962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13967 $as_echo_n "(cached) " >&6 13968else 13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971int i; 13972_ACEOF 13973if ac_fn_c_try_compile "$LINENO"; then : 13974 xorg_cv_cc_flag_unknown_warning_option=yes 13975else 13976 xorg_cv_cc_flag_unknown_warning_option=no 13977fi 13978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13979fi 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13983 CFLAGS="$xorg_testset_save_CFLAGS" 13984fi 13985 13986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13989 fi 13990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13994 $as_echo_n "(cached) " >&6 13995else 13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13997/* end confdefs.h. */ 13998int i; 13999_ACEOF 14000if ac_fn_c_try_compile "$LINENO"; then : 14001 xorg_cv_cc_flag_unused_command_line_argument=yes 14002else 14003 xorg_cv_cc_flag_unused_command_line_argument=no 14004fi 14005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14006fi 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14010 CFLAGS="$xorg_testset_save_CFLAGS" 14011fi 14012 14013found="no" 14014 14015 if test $found = "no" ; then 14016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14018 fi 14019 14020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14022 fi 14023 14024 CFLAGS="$CFLAGS -Wredundant-decls" 14025 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14027$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14028 cacheid=xorg_cv_cc_flag__Wredundant_decls 14029 if eval \${$cacheid+:} false; then : 14030 $as_echo_n "(cached) " >&6 14031else 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034int i; 14035int 14036main () 14037{ 14038 14039 ; 14040 return 0; 14041} 14042_ACEOF 14043if ac_fn_c_try_link "$LINENO"; then : 14044 eval $cacheid=yes 14045else 14046 eval $cacheid=no 14047fi 14048rm -f core conftest.err conftest.$ac_objext \ 14049 conftest$ac_exeext conftest.$ac_ext 14050fi 14051 14052 14053 CFLAGS="$xorg_testset_save_CFLAGS" 14054 14055 eval supported=\$$cacheid 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14057$as_echo "$supported" >&6; } 14058 if test "$supported" = "yes" ; then 14059 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14060 found="yes" 14061 fi 14062 fi 14063 14064 14065 14066# These are currently disabled because they are noisy. They will be enabled 14067# in the future once the codebase is sufficiently modernized to silence 14068# them. For now, I don't want them to drown out the other warnings. 14069# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14070# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14071# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14072 14073# Turn some warnings into errors, so we don't accidently get successful builds 14074# when there are problems that should be fixed. 14075 14076if test "x$SELECTIVE_WERROR" = "xyes" ; then 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090xorg_testset_save_CFLAGS="$CFLAGS" 14091 14092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14097 $as_echo_n "(cached) " >&6 14098else 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101int i; 14102_ACEOF 14103if ac_fn_c_try_compile "$LINENO"; then : 14104 xorg_cv_cc_flag_unknown_warning_option=yes 14105else 14106 xorg_cv_cc_flag_unknown_warning_option=no 14107fi 14108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14109fi 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14113 CFLAGS="$xorg_testset_save_CFLAGS" 14114fi 14115 14116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14119 fi 14120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14124 $as_echo_n "(cached) " >&6 14125else 14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14127/* end confdefs.h. */ 14128int i; 14129_ACEOF 14130if ac_fn_c_try_compile "$LINENO"; then : 14131 xorg_cv_cc_flag_unused_command_line_argument=yes 14132else 14133 xorg_cv_cc_flag_unused_command_line_argument=no 14134fi 14135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14136fi 14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14140 CFLAGS="$xorg_testset_save_CFLAGS" 14141fi 14142 14143found="no" 14144 14145 if test $found = "no" ; then 14146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14148 fi 14149 14150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14152 fi 14153 14154 CFLAGS="$CFLAGS -Werror=implicit" 14155 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14157$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14158 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14159 if eval \${$cacheid+:} false; then : 14160 $as_echo_n "(cached) " >&6 14161else 14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14163/* end confdefs.h. */ 14164int i; 14165int 14166main () 14167{ 14168 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173if ac_fn_c_try_link "$LINENO"; then : 14174 eval $cacheid=yes 14175else 14176 eval $cacheid=no 14177fi 14178rm -f core conftest.err conftest.$ac_objext \ 14179 conftest$ac_exeext conftest.$ac_ext 14180fi 14181 14182 14183 CFLAGS="$xorg_testset_save_CFLAGS" 14184 14185 eval supported=\$$cacheid 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14187$as_echo "$supported" >&6; } 14188 if test "$supported" = "yes" ; then 14189 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14190 found="yes" 14191 fi 14192 fi 14193 14194 if test $found = "no" ; then 14195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14197 fi 14198 14199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14201 fi 14202 14203 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14204 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14206$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14207 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14208 if eval \${$cacheid+:} false; then : 14209 $as_echo_n "(cached) " >&6 14210else 14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14212/* end confdefs.h. */ 14213int i; 14214int 14215main () 14216{ 14217 14218 ; 14219 return 0; 14220} 14221_ACEOF 14222if ac_fn_c_try_link "$LINENO"; then : 14223 eval $cacheid=yes 14224else 14225 eval $cacheid=no 14226fi 14227rm -f core conftest.err conftest.$ac_objext \ 14228 conftest$ac_exeext conftest.$ac_ext 14229fi 14230 14231 14232 CFLAGS="$xorg_testset_save_CFLAGS" 14233 14234 eval supported=\$$cacheid 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14236$as_echo "$supported" >&6; } 14237 if test "$supported" = "yes" ; then 14238 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14239 found="yes" 14240 fi 14241 fi 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257xorg_testset_save_CFLAGS="$CFLAGS" 14258 14259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14264 $as_echo_n "(cached) " >&6 14265else 14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14267/* end confdefs.h. */ 14268int i; 14269_ACEOF 14270if ac_fn_c_try_compile "$LINENO"; then : 14271 xorg_cv_cc_flag_unknown_warning_option=yes 14272else 14273 xorg_cv_cc_flag_unknown_warning_option=no 14274fi 14275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14280 CFLAGS="$xorg_testset_save_CFLAGS" 14281fi 14282 14283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14286 fi 14287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14291 $as_echo_n "(cached) " >&6 14292else 14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14294/* end confdefs.h. */ 14295int i; 14296_ACEOF 14297if ac_fn_c_try_compile "$LINENO"; then : 14298 xorg_cv_cc_flag_unused_command_line_argument=yes 14299else 14300 xorg_cv_cc_flag_unused_command_line_argument=no 14301fi 14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14303fi 14304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14307 CFLAGS="$xorg_testset_save_CFLAGS" 14308fi 14309 14310found="no" 14311 14312 if test $found = "no" ; then 14313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14315 fi 14316 14317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14319 fi 14320 14321 CFLAGS="$CFLAGS -Werror=nonnull" 14322 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14324$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14325 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14326 if eval \${$cacheid+:} false; then : 14327 $as_echo_n "(cached) " >&6 14328else 14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14330/* end confdefs.h. */ 14331int i; 14332int 14333main () 14334{ 14335 14336 ; 14337 return 0; 14338} 14339_ACEOF 14340if ac_fn_c_try_link "$LINENO"; then : 14341 eval $cacheid=yes 14342else 14343 eval $cacheid=no 14344fi 14345rm -f core conftest.err conftest.$ac_objext \ 14346 conftest$ac_exeext conftest.$ac_ext 14347fi 14348 14349 14350 CFLAGS="$xorg_testset_save_CFLAGS" 14351 14352 eval supported=\$$cacheid 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14354$as_echo "$supported" >&6; } 14355 if test "$supported" = "yes" ; then 14356 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14357 found="yes" 14358 fi 14359 fi 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375xorg_testset_save_CFLAGS="$CFLAGS" 14376 14377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14382 $as_echo_n "(cached) " >&6 14383else 14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14385/* end confdefs.h. */ 14386int i; 14387_ACEOF 14388if ac_fn_c_try_compile "$LINENO"; then : 14389 xorg_cv_cc_flag_unknown_warning_option=yes 14390else 14391 xorg_cv_cc_flag_unknown_warning_option=no 14392fi 14393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14394fi 14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14398 CFLAGS="$xorg_testset_save_CFLAGS" 14399fi 14400 14401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14404 fi 14405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14409 $as_echo_n "(cached) " >&6 14410else 14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14412/* end confdefs.h. */ 14413int i; 14414_ACEOF 14415if ac_fn_c_try_compile "$LINENO"; then : 14416 xorg_cv_cc_flag_unused_command_line_argument=yes 14417else 14418 xorg_cv_cc_flag_unused_command_line_argument=no 14419fi 14420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14421fi 14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14425 CFLAGS="$xorg_testset_save_CFLAGS" 14426fi 14427 14428found="no" 14429 14430 if test $found = "no" ; then 14431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14433 fi 14434 14435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14437 fi 14438 14439 CFLAGS="$CFLAGS -Werror=init-self" 14440 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14442$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14443 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14444 if eval \${$cacheid+:} false; then : 14445 $as_echo_n "(cached) " >&6 14446else 14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14448/* end confdefs.h. */ 14449int i; 14450int 14451main () 14452{ 14453 14454 ; 14455 return 0; 14456} 14457_ACEOF 14458if ac_fn_c_try_link "$LINENO"; then : 14459 eval $cacheid=yes 14460else 14461 eval $cacheid=no 14462fi 14463rm -f core conftest.err conftest.$ac_objext \ 14464 conftest$ac_exeext conftest.$ac_ext 14465fi 14466 14467 14468 CFLAGS="$xorg_testset_save_CFLAGS" 14469 14470 eval supported=\$$cacheid 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14472$as_echo "$supported" >&6; } 14473 if test "$supported" = "yes" ; then 14474 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14475 found="yes" 14476 fi 14477 fi 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493xorg_testset_save_CFLAGS="$CFLAGS" 14494 14495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14500 $as_echo_n "(cached) " >&6 14501else 14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14503/* end confdefs.h. */ 14504int i; 14505_ACEOF 14506if ac_fn_c_try_compile "$LINENO"; then : 14507 xorg_cv_cc_flag_unknown_warning_option=yes 14508else 14509 xorg_cv_cc_flag_unknown_warning_option=no 14510fi 14511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14512fi 14513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14516 CFLAGS="$xorg_testset_save_CFLAGS" 14517fi 14518 14519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14522 fi 14523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14527 $as_echo_n "(cached) " >&6 14528else 14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14530/* end confdefs.h. */ 14531int i; 14532_ACEOF 14533if ac_fn_c_try_compile "$LINENO"; then : 14534 xorg_cv_cc_flag_unused_command_line_argument=yes 14535else 14536 xorg_cv_cc_flag_unused_command_line_argument=no 14537fi 14538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14539fi 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14543 CFLAGS="$xorg_testset_save_CFLAGS" 14544fi 14545 14546found="no" 14547 14548 if test $found = "no" ; then 14549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14551 fi 14552 14553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14555 fi 14556 14557 CFLAGS="$CFLAGS -Werror=main" 14558 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14560$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14561 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14562 if eval \${$cacheid+:} false; then : 14563 $as_echo_n "(cached) " >&6 14564else 14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14566/* end confdefs.h. */ 14567int i; 14568int 14569main () 14570{ 14571 14572 ; 14573 return 0; 14574} 14575_ACEOF 14576if ac_fn_c_try_link "$LINENO"; then : 14577 eval $cacheid=yes 14578else 14579 eval $cacheid=no 14580fi 14581rm -f core conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583fi 14584 14585 14586 CFLAGS="$xorg_testset_save_CFLAGS" 14587 14588 eval supported=\$$cacheid 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14590$as_echo "$supported" >&6; } 14591 if test "$supported" = "yes" ; then 14592 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14593 found="yes" 14594 fi 14595 fi 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611xorg_testset_save_CFLAGS="$CFLAGS" 14612 14613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14621/* end confdefs.h. */ 14622int i; 14623_ACEOF 14624if ac_fn_c_try_compile "$LINENO"; then : 14625 xorg_cv_cc_flag_unknown_warning_option=yes 14626else 14627 xorg_cv_cc_flag_unknown_warning_option=no 14628fi 14629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14630fi 14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14634 CFLAGS="$xorg_testset_save_CFLAGS" 14635fi 14636 14637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14640 fi 14641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14645 $as_echo_n "(cached) " >&6 14646else 14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14648/* end confdefs.h. */ 14649int i; 14650_ACEOF 14651if ac_fn_c_try_compile "$LINENO"; then : 14652 xorg_cv_cc_flag_unused_command_line_argument=yes 14653else 14654 xorg_cv_cc_flag_unused_command_line_argument=no 14655fi 14656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14657fi 14658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14661 CFLAGS="$xorg_testset_save_CFLAGS" 14662fi 14663 14664found="no" 14665 14666 if test $found = "no" ; then 14667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14669 fi 14670 14671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14673 fi 14674 14675 CFLAGS="$CFLAGS -Werror=missing-braces" 14676 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14678$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14679 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14680 if eval \${$cacheid+:} false; then : 14681 $as_echo_n "(cached) " >&6 14682else 14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14684/* end confdefs.h. */ 14685int i; 14686int 14687main () 14688{ 14689 14690 ; 14691 return 0; 14692} 14693_ACEOF 14694if ac_fn_c_try_link "$LINENO"; then : 14695 eval $cacheid=yes 14696else 14697 eval $cacheid=no 14698fi 14699rm -f core conftest.err conftest.$ac_objext \ 14700 conftest$ac_exeext conftest.$ac_ext 14701fi 14702 14703 14704 CFLAGS="$xorg_testset_save_CFLAGS" 14705 14706 eval supported=\$$cacheid 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14708$as_echo "$supported" >&6; } 14709 if test "$supported" = "yes" ; then 14710 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14711 found="yes" 14712 fi 14713 fi 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729xorg_testset_save_CFLAGS="$CFLAGS" 14730 14731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14736 $as_echo_n "(cached) " >&6 14737else 14738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14739/* end confdefs.h. */ 14740int i; 14741_ACEOF 14742if ac_fn_c_try_compile "$LINENO"; then : 14743 xorg_cv_cc_flag_unknown_warning_option=yes 14744else 14745 xorg_cv_cc_flag_unknown_warning_option=no 14746fi 14747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14748fi 14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14752 CFLAGS="$xorg_testset_save_CFLAGS" 14753fi 14754 14755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14758 fi 14759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14763 $as_echo_n "(cached) " >&6 14764else 14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14766/* end confdefs.h. */ 14767int i; 14768_ACEOF 14769if ac_fn_c_try_compile "$LINENO"; then : 14770 xorg_cv_cc_flag_unused_command_line_argument=yes 14771else 14772 xorg_cv_cc_flag_unused_command_line_argument=no 14773fi 14774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14775fi 14776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14779 CFLAGS="$xorg_testset_save_CFLAGS" 14780fi 14781 14782found="no" 14783 14784 if test $found = "no" ; then 14785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14787 fi 14788 14789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14791 fi 14792 14793 CFLAGS="$CFLAGS -Werror=sequence-point" 14794 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14796$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14797 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14798 if eval \${$cacheid+:} false; then : 14799 $as_echo_n "(cached) " >&6 14800else 14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14802/* end confdefs.h. */ 14803int i; 14804int 14805main () 14806{ 14807 14808 ; 14809 return 0; 14810} 14811_ACEOF 14812if ac_fn_c_try_link "$LINENO"; then : 14813 eval $cacheid=yes 14814else 14815 eval $cacheid=no 14816fi 14817rm -f core conftest.err conftest.$ac_objext \ 14818 conftest$ac_exeext conftest.$ac_ext 14819fi 14820 14821 14822 CFLAGS="$xorg_testset_save_CFLAGS" 14823 14824 eval supported=\$$cacheid 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14826$as_echo "$supported" >&6; } 14827 if test "$supported" = "yes" ; then 14828 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14829 found="yes" 14830 fi 14831 fi 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847xorg_testset_save_CFLAGS="$CFLAGS" 14848 14849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14854 $as_echo_n "(cached) " >&6 14855else 14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14857/* end confdefs.h. */ 14858int i; 14859_ACEOF 14860if ac_fn_c_try_compile "$LINENO"; then : 14861 xorg_cv_cc_flag_unknown_warning_option=yes 14862else 14863 xorg_cv_cc_flag_unknown_warning_option=no 14864fi 14865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14866fi 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14870 CFLAGS="$xorg_testset_save_CFLAGS" 14871fi 14872 14873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14876 fi 14877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14881 $as_echo_n "(cached) " >&6 14882else 14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14884/* end confdefs.h. */ 14885int i; 14886_ACEOF 14887if ac_fn_c_try_compile "$LINENO"; then : 14888 xorg_cv_cc_flag_unused_command_line_argument=yes 14889else 14890 xorg_cv_cc_flag_unused_command_line_argument=no 14891fi 14892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14893fi 14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14897 CFLAGS="$xorg_testset_save_CFLAGS" 14898fi 14899 14900found="no" 14901 14902 if test $found = "no" ; then 14903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14905 fi 14906 14907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14909 fi 14910 14911 CFLAGS="$CFLAGS -Werror=return-type" 14912 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14914$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14915 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14916 if eval \${$cacheid+:} false; then : 14917 $as_echo_n "(cached) " >&6 14918else 14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921int i; 14922int 14923main () 14924{ 14925 14926 ; 14927 return 0; 14928} 14929_ACEOF 14930if ac_fn_c_try_link "$LINENO"; then : 14931 eval $cacheid=yes 14932else 14933 eval $cacheid=no 14934fi 14935rm -f core conftest.err conftest.$ac_objext \ 14936 conftest$ac_exeext conftest.$ac_ext 14937fi 14938 14939 14940 CFLAGS="$xorg_testset_save_CFLAGS" 14941 14942 eval supported=\$$cacheid 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14944$as_echo "$supported" >&6; } 14945 if test "$supported" = "yes" ; then 14946 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14947 found="yes" 14948 fi 14949 fi 14950 14951 if test $found = "no" ; then 14952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14954 fi 14955 14956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14958 fi 14959 14960 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14961 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14963$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14964 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14965 if eval \${$cacheid+:} false; then : 14966 $as_echo_n "(cached) " >&6 14967else 14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14969/* end confdefs.h. */ 14970int i; 14971int 14972main () 14973{ 14974 14975 ; 14976 return 0; 14977} 14978_ACEOF 14979if ac_fn_c_try_link "$LINENO"; then : 14980 eval $cacheid=yes 14981else 14982 eval $cacheid=no 14983fi 14984rm -f core conftest.err conftest.$ac_objext \ 14985 conftest$ac_exeext conftest.$ac_ext 14986fi 14987 14988 14989 CFLAGS="$xorg_testset_save_CFLAGS" 14990 14991 eval supported=\$$cacheid 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14993$as_echo "$supported" >&6; } 14994 if test "$supported" = "yes" ; then 14995 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14996 found="yes" 14997 fi 14998 fi 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014xorg_testset_save_CFLAGS="$CFLAGS" 15015 15016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15021 $as_echo_n "(cached) " >&6 15022else 15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15024/* end confdefs.h. */ 15025int i; 15026_ACEOF 15027if ac_fn_c_try_compile "$LINENO"; then : 15028 xorg_cv_cc_flag_unknown_warning_option=yes 15029else 15030 xorg_cv_cc_flag_unknown_warning_option=no 15031fi 15032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15033fi 15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15037 CFLAGS="$xorg_testset_save_CFLAGS" 15038fi 15039 15040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15043 fi 15044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15048 $as_echo_n "(cached) " >&6 15049else 15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15051/* end confdefs.h. */ 15052int i; 15053_ACEOF 15054if ac_fn_c_try_compile "$LINENO"; then : 15055 xorg_cv_cc_flag_unused_command_line_argument=yes 15056else 15057 xorg_cv_cc_flag_unused_command_line_argument=no 15058fi 15059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15060fi 15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15064 CFLAGS="$xorg_testset_save_CFLAGS" 15065fi 15066 15067found="no" 15068 15069 if test $found = "no" ; then 15070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15072 fi 15073 15074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15076 fi 15077 15078 CFLAGS="$CFLAGS -Werror=trigraphs" 15079 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15081$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15082 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15083 if eval \${$cacheid+:} false; then : 15084 $as_echo_n "(cached) " >&6 15085else 15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15087/* end confdefs.h. */ 15088int i; 15089int 15090main () 15091{ 15092 15093 ; 15094 return 0; 15095} 15096_ACEOF 15097if ac_fn_c_try_link "$LINENO"; then : 15098 eval $cacheid=yes 15099else 15100 eval $cacheid=no 15101fi 15102rm -f core conftest.err conftest.$ac_objext \ 15103 conftest$ac_exeext conftest.$ac_ext 15104fi 15105 15106 15107 CFLAGS="$xorg_testset_save_CFLAGS" 15108 15109 eval supported=\$$cacheid 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15111$as_echo "$supported" >&6; } 15112 if test "$supported" = "yes" ; then 15113 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15114 found="yes" 15115 fi 15116 fi 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132xorg_testset_save_CFLAGS="$CFLAGS" 15133 15134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15139 $as_echo_n "(cached) " >&6 15140else 15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15142/* end confdefs.h. */ 15143int i; 15144_ACEOF 15145if ac_fn_c_try_compile "$LINENO"; then : 15146 xorg_cv_cc_flag_unknown_warning_option=yes 15147else 15148 xorg_cv_cc_flag_unknown_warning_option=no 15149fi 15150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15151fi 15152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15155 CFLAGS="$xorg_testset_save_CFLAGS" 15156fi 15157 15158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15161 fi 15162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15166 $as_echo_n "(cached) " >&6 15167else 15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15169/* end confdefs.h. */ 15170int i; 15171_ACEOF 15172if ac_fn_c_try_compile "$LINENO"; then : 15173 xorg_cv_cc_flag_unused_command_line_argument=yes 15174else 15175 xorg_cv_cc_flag_unused_command_line_argument=no 15176fi 15177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15178fi 15179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15182 CFLAGS="$xorg_testset_save_CFLAGS" 15183fi 15184 15185found="no" 15186 15187 if test $found = "no" ; then 15188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15190 fi 15191 15192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15194 fi 15195 15196 CFLAGS="$CFLAGS -Werror=array-bounds" 15197 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15199$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15200 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15201 if eval \${$cacheid+:} false; then : 15202 $as_echo_n "(cached) " >&6 15203else 15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205/* end confdefs.h. */ 15206int i; 15207int 15208main () 15209{ 15210 15211 ; 15212 return 0; 15213} 15214_ACEOF 15215if ac_fn_c_try_link "$LINENO"; then : 15216 eval $cacheid=yes 15217else 15218 eval $cacheid=no 15219fi 15220rm -f core conftest.err conftest.$ac_objext \ 15221 conftest$ac_exeext conftest.$ac_ext 15222fi 15223 15224 15225 CFLAGS="$xorg_testset_save_CFLAGS" 15226 15227 eval supported=\$$cacheid 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15229$as_echo "$supported" >&6; } 15230 if test "$supported" = "yes" ; then 15231 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15232 found="yes" 15233 fi 15234 fi 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250xorg_testset_save_CFLAGS="$CFLAGS" 15251 15252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15257 $as_echo_n "(cached) " >&6 15258else 15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15260/* end confdefs.h. */ 15261int i; 15262_ACEOF 15263if ac_fn_c_try_compile "$LINENO"; then : 15264 xorg_cv_cc_flag_unknown_warning_option=yes 15265else 15266 xorg_cv_cc_flag_unknown_warning_option=no 15267fi 15268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15269fi 15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15273 CFLAGS="$xorg_testset_save_CFLAGS" 15274fi 15275 15276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15279 fi 15280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15284 $as_echo_n "(cached) " >&6 15285else 15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15287/* end confdefs.h. */ 15288int i; 15289_ACEOF 15290if ac_fn_c_try_compile "$LINENO"; then : 15291 xorg_cv_cc_flag_unused_command_line_argument=yes 15292else 15293 xorg_cv_cc_flag_unused_command_line_argument=no 15294fi 15295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15296fi 15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15300 CFLAGS="$xorg_testset_save_CFLAGS" 15301fi 15302 15303found="no" 15304 15305 if test $found = "no" ; then 15306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15308 fi 15309 15310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15312 fi 15313 15314 CFLAGS="$CFLAGS -Werror=write-strings" 15315 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15317$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15318 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15319 if eval \${$cacheid+:} false; then : 15320 $as_echo_n "(cached) " >&6 15321else 15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15323/* end confdefs.h. */ 15324int i; 15325int 15326main () 15327{ 15328 15329 ; 15330 return 0; 15331} 15332_ACEOF 15333if ac_fn_c_try_link "$LINENO"; then : 15334 eval $cacheid=yes 15335else 15336 eval $cacheid=no 15337fi 15338rm -f core conftest.err conftest.$ac_objext \ 15339 conftest$ac_exeext conftest.$ac_ext 15340fi 15341 15342 15343 CFLAGS="$xorg_testset_save_CFLAGS" 15344 15345 eval supported=\$$cacheid 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15347$as_echo "$supported" >&6; } 15348 if test "$supported" = "yes" ; then 15349 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15350 found="yes" 15351 fi 15352 fi 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368xorg_testset_save_CFLAGS="$CFLAGS" 15369 15370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15375 $as_echo_n "(cached) " >&6 15376else 15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15378/* end confdefs.h. */ 15379int i; 15380_ACEOF 15381if ac_fn_c_try_compile "$LINENO"; then : 15382 xorg_cv_cc_flag_unknown_warning_option=yes 15383else 15384 xorg_cv_cc_flag_unknown_warning_option=no 15385fi 15386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15387fi 15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15391 CFLAGS="$xorg_testset_save_CFLAGS" 15392fi 15393 15394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15397 fi 15398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15402 $as_echo_n "(cached) " >&6 15403else 15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15405/* end confdefs.h. */ 15406int i; 15407_ACEOF 15408if ac_fn_c_try_compile "$LINENO"; then : 15409 xorg_cv_cc_flag_unused_command_line_argument=yes 15410else 15411 xorg_cv_cc_flag_unused_command_line_argument=no 15412fi 15413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15414fi 15415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15418 CFLAGS="$xorg_testset_save_CFLAGS" 15419fi 15420 15421found="no" 15422 15423 if test $found = "no" ; then 15424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15426 fi 15427 15428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 fi 15431 15432 CFLAGS="$CFLAGS -Werror=address" 15433 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15435$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15436 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15437 if eval \${$cacheid+:} false; then : 15438 $as_echo_n "(cached) " >&6 15439else 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441/* end confdefs.h. */ 15442int i; 15443int 15444main () 15445{ 15446 15447 ; 15448 return 0; 15449} 15450_ACEOF 15451if ac_fn_c_try_link "$LINENO"; then : 15452 eval $cacheid=yes 15453else 15454 eval $cacheid=no 15455fi 15456rm -f core conftest.err conftest.$ac_objext \ 15457 conftest$ac_exeext conftest.$ac_ext 15458fi 15459 15460 15461 CFLAGS="$xorg_testset_save_CFLAGS" 15462 15463 eval supported=\$$cacheid 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15465$as_echo "$supported" >&6; } 15466 if test "$supported" = "yes" ; then 15467 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15468 found="yes" 15469 fi 15470 fi 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486xorg_testset_save_CFLAGS="$CFLAGS" 15487 15488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15493 $as_echo_n "(cached) " >&6 15494else 15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496/* end confdefs.h. */ 15497int i; 15498_ACEOF 15499if ac_fn_c_try_compile "$LINENO"; then : 15500 xorg_cv_cc_flag_unknown_warning_option=yes 15501else 15502 xorg_cv_cc_flag_unknown_warning_option=no 15503fi 15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15505fi 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15509 CFLAGS="$xorg_testset_save_CFLAGS" 15510fi 15511 15512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15515 fi 15516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521else 15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15523/* end confdefs.h. */ 15524int i; 15525_ACEOF 15526if ac_fn_c_try_compile "$LINENO"; then : 15527 xorg_cv_cc_flag_unused_command_line_argument=yes 15528else 15529 xorg_cv_cc_flag_unused_command_line_argument=no 15530fi 15531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15532fi 15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15536 CFLAGS="$xorg_testset_save_CFLAGS" 15537fi 15538 15539found="no" 15540 15541 if test $found = "no" ; then 15542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15544 fi 15545 15546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15548 fi 15549 15550 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15551 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15553$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15554 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15555 if eval \${$cacheid+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557else 15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15559/* end confdefs.h. */ 15560int i; 15561int 15562main () 15563{ 15564 15565 ; 15566 return 0; 15567} 15568_ACEOF 15569if ac_fn_c_try_link "$LINENO"; then : 15570 eval $cacheid=yes 15571else 15572 eval $cacheid=no 15573fi 15574rm -f core conftest.err conftest.$ac_objext \ 15575 conftest$ac_exeext conftest.$ac_ext 15576fi 15577 15578 15579 CFLAGS="$xorg_testset_save_CFLAGS" 15580 15581 eval supported=\$$cacheid 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15583$as_echo "$supported" >&6; } 15584 if test "$supported" = "yes" ; then 15585 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15586 found="yes" 15587 fi 15588 fi 15589 15590 if test $found = "no" ; then 15591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15593 fi 15594 15595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15597 fi 15598 15599 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15600 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15602$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15603 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15604 if eval \${$cacheid+:} false; then : 15605 $as_echo_n "(cached) " >&6 15606else 15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15608/* end confdefs.h. */ 15609int i; 15610int 15611main () 15612{ 15613 15614 ; 15615 return 0; 15616} 15617_ACEOF 15618if ac_fn_c_try_link "$LINENO"; then : 15619 eval $cacheid=yes 15620else 15621 eval $cacheid=no 15622fi 15623rm -f core conftest.err conftest.$ac_objext \ 15624 conftest$ac_exeext conftest.$ac_ext 15625fi 15626 15627 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629 15630 eval supported=\$$cacheid 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15632$as_echo "$supported" >&6; } 15633 if test "$supported" = "yes" ; then 15634 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15635 found="yes" 15636 fi 15637 fi 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653xorg_testset_save_CFLAGS="$CFLAGS" 15654 15655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15660 $as_echo_n "(cached) " >&6 15661else 15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15663/* end confdefs.h. */ 15664int i; 15665_ACEOF 15666if ac_fn_c_try_compile "$LINENO"; then : 15667 xorg_cv_cc_flag_unknown_warning_option=yes 15668else 15669 xorg_cv_cc_flag_unknown_warning_option=no 15670fi 15671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15672fi 15673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15676 CFLAGS="$xorg_testset_save_CFLAGS" 15677fi 15678 15679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15682 fi 15683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15687 $as_echo_n "(cached) " >&6 15688else 15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690/* end confdefs.h. */ 15691int i; 15692_ACEOF 15693if ac_fn_c_try_compile "$LINENO"; then : 15694 xorg_cv_cc_flag_unused_command_line_argument=yes 15695else 15696 xorg_cv_cc_flag_unused_command_line_argument=no 15697fi 15698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15699fi 15700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15703 CFLAGS="$xorg_testset_save_CFLAGS" 15704fi 15705 15706found="no" 15707 15708 if test $found = "no" ; then 15709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15711 fi 15712 15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15715 fi 15716 15717 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15718 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15720$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15721 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15722 if eval \${$cacheid+:} false; then : 15723 $as_echo_n "(cached) " >&6 15724else 15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15726/* end confdefs.h. */ 15727int i; 15728int 15729main () 15730{ 15731 15732 ; 15733 return 0; 15734} 15735_ACEOF 15736if ac_fn_c_try_link "$LINENO"; then : 15737 eval $cacheid=yes 15738else 15739 eval $cacheid=no 15740fi 15741rm -f core conftest.err conftest.$ac_objext \ 15742 conftest$ac_exeext conftest.$ac_ext 15743fi 15744 15745 15746 CFLAGS="$xorg_testset_save_CFLAGS" 15747 15748 eval supported=\$$cacheid 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15750$as_echo "$supported" >&6; } 15751 if test "$supported" = "yes" ; then 15752 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15753 found="yes" 15754 fi 15755 fi 15756 15757 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15758else 15759{ $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 15760$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;} 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774xorg_testset_save_CFLAGS="$CFLAGS" 15775 15776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15781 $as_echo_n "(cached) " >&6 15782else 15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15784/* end confdefs.h. */ 15785int i; 15786_ACEOF 15787if ac_fn_c_try_compile "$LINENO"; then : 15788 xorg_cv_cc_flag_unknown_warning_option=yes 15789else 15790 xorg_cv_cc_flag_unknown_warning_option=no 15791fi 15792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15793fi 15794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15797 CFLAGS="$xorg_testset_save_CFLAGS" 15798fi 15799 15800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15803 fi 15804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15808 $as_echo_n "(cached) " >&6 15809else 15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15811/* end confdefs.h. */ 15812int i; 15813_ACEOF 15814if ac_fn_c_try_compile "$LINENO"; then : 15815 xorg_cv_cc_flag_unused_command_line_argument=yes 15816else 15817 xorg_cv_cc_flag_unused_command_line_argument=no 15818fi 15819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15820fi 15821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15824 CFLAGS="$xorg_testset_save_CFLAGS" 15825fi 15826 15827found="no" 15828 15829 if test $found = "no" ; then 15830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15832 fi 15833 15834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15836 fi 15837 15838 CFLAGS="$CFLAGS -Wimplicit" 15839 15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15841$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15842 cacheid=xorg_cv_cc_flag__Wimplicit 15843 if eval \${$cacheid+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15847/* end confdefs.h. */ 15848int i; 15849int 15850main () 15851{ 15852 15853 ; 15854 return 0; 15855} 15856_ACEOF 15857if ac_fn_c_try_link "$LINENO"; then : 15858 eval $cacheid=yes 15859else 15860 eval $cacheid=no 15861fi 15862rm -f core conftest.err conftest.$ac_objext \ 15863 conftest$ac_exeext conftest.$ac_ext 15864fi 15865 15866 15867 CFLAGS="$xorg_testset_save_CFLAGS" 15868 15869 eval supported=\$$cacheid 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15871$as_echo "$supported" >&6; } 15872 if test "$supported" = "yes" ; then 15873 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15874 found="yes" 15875 fi 15876 fi 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892xorg_testset_save_CFLAGS="$CFLAGS" 15893 15894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900else 15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15902/* end confdefs.h. */ 15903int i; 15904_ACEOF 15905if ac_fn_c_try_compile "$LINENO"; then : 15906 xorg_cv_cc_flag_unknown_warning_option=yes 15907else 15908 xorg_cv_cc_flag_unknown_warning_option=no 15909fi 15910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15911fi 15912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15915 CFLAGS="$xorg_testset_save_CFLAGS" 15916fi 15917 15918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15921 fi 15922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15926 $as_echo_n "(cached) " >&6 15927else 15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15929/* end confdefs.h. */ 15930int i; 15931_ACEOF 15932if ac_fn_c_try_compile "$LINENO"; then : 15933 xorg_cv_cc_flag_unused_command_line_argument=yes 15934else 15935 xorg_cv_cc_flag_unused_command_line_argument=no 15936fi 15937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15938fi 15939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15942 CFLAGS="$xorg_testset_save_CFLAGS" 15943fi 15944 15945found="no" 15946 15947 if test $found = "no" ; then 15948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15950 fi 15951 15952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15954 fi 15955 15956 CFLAGS="$CFLAGS -Wnonnull" 15957 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15959$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15960 cacheid=xorg_cv_cc_flag__Wnonnull 15961 if eval \${$cacheid+:} false; then : 15962 $as_echo_n "(cached) " >&6 15963else 15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15965/* end confdefs.h. */ 15966int i; 15967int 15968main () 15969{ 15970 15971 ; 15972 return 0; 15973} 15974_ACEOF 15975if ac_fn_c_try_link "$LINENO"; then : 15976 eval $cacheid=yes 15977else 15978 eval $cacheid=no 15979fi 15980rm -f core conftest.err conftest.$ac_objext \ 15981 conftest$ac_exeext conftest.$ac_ext 15982fi 15983 15984 15985 CFLAGS="$xorg_testset_save_CFLAGS" 15986 15987 eval supported=\$$cacheid 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15989$as_echo "$supported" >&6; } 15990 if test "$supported" = "yes" ; then 15991 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15992 found="yes" 15993 fi 15994 fi 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010xorg_testset_save_CFLAGS="$CFLAGS" 16011 16012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16017 $as_echo_n "(cached) " >&6 16018else 16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16020/* end confdefs.h. */ 16021int i; 16022_ACEOF 16023if ac_fn_c_try_compile "$LINENO"; then : 16024 xorg_cv_cc_flag_unknown_warning_option=yes 16025else 16026 xorg_cv_cc_flag_unknown_warning_option=no 16027fi 16028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16029fi 16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16033 CFLAGS="$xorg_testset_save_CFLAGS" 16034fi 16035 16036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16039 fi 16040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16044 $as_echo_n "(cached) " >&6 16045else 16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16047/* end confdefs.h. */ 16048int i; 16049_ACEOF 16050if ac_fn_c_try_compile "$LINENO"; then : 16051 xorg_cv_cc_flag_unused_command_line_argument=yes 16052else 16053 xorg_cv_cc_flag_unused_command_line_argument=no 16054fi 16055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16056fi 16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16060 CFLAGS="$xorg_testset_save_CFLAGS" 16061fi 16062 16063found="no" 16064 16065 if test $found = "no" ; then 16066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16068 fi 16069 16070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16072 fi 16073 16074 CFLAGS="$CFLAGS -Winit-self" 16075 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16077$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16078 cacheid=xorg_cv_cc_flag__Winit_self 16079 if eval \${$cacheid+:} false; then : 16080 $as_echo_n "(cached) " >&6 16081else 16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16083/* end confdefs.h. */ 16084int i; 16085int 16086main () 16087{ 16088 16089 ; 16090 return 0; 16091} 16092_ACEOF 16093if ac_fn_c_try_link "$LINENO"; then : 16094 eval $cacheid=yes 16095else 16096 eval $cacheid=no 16097fi 16098rm -f core conftest.err conftest.$ac_objext \ 16099 conftest$ac_exeext conftest.$ac_ext 16100fi 16101 16102 16103 CFLAGS="$xorg_testset_save_CFLAGS" 16104 16105 eval supported=\$$cacheid 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16107$as_echo "$supported" >&6; } 16108 if test "$supported" = "yes" ; then 16109 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16110 found="yes" 16111 fi 16112 fi 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128xorg_testset_save_CFLAGS="$CFLAGS" 16129 16130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16133$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16134if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16135 $as_echo_n "(cached) " >&6 16136else 16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16138/* end confdefs.h. */ 16139int i; 16140_ACEOF 16141if ac_fn_c_try_compile "$LINENO"; then : 16142 xorg_cv_cc_flag_unknown_warning_option=yes 16143else 16144 xorg_cv_cc_flag_unknown_warning_option=no 16145fi 16146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16147fi 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16149$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16151 CFLAGS="$xorg_testset_save_CFLAGS" 16152fi 16153 16154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16157 fi 16158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16160$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16161if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16162 $as_echo_n "(cached) " >&6 16163else 16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16165/* end confdefs.h. */ 16166int i; 16167_ACEOF 16168if ac_fn_c_try_compile "$LINENO"; then : 16169 xorg_cv_cc_flag_unused_command_line_argument=yes 16170else 16171 xorg_cv_cc_flag_unused_command_line_argument=no 16172fi 16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16174fi 16175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16176$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16178 CFLAGS="$xorg_testset_save_CFLAGS" 16179fi 16180 16181found="no" 16182 16183 if test $found = "no" ; then 16184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 fi 16187 16188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16190 fi 16191 16192 CFLAGS="$CFLAGS -Wmain" 16193 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16195$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16196 cacheid=xorg_cv_cc_flag__Wmain 16197 if eval \${$cacheid+:} false; then : 16198 $as_echo_n "(cached) " >&6 16199else 16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16201/* end confdefs.h. */ 16202int i; 16203int 16204main () 16205{ 16206 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_link "$LINENO"; then : 16212 eval $cacheid=yes 16213else 16214 eval $cacheid=no 16215fi 16216rm -f core conftest.err conftest.$ac_objext \ 16217 conftest$ac_exeext conftest.$ac_ext 16218fi 16219 16220 16221 CFLAGS="$xorg_testset_save_CFLAGS" 16222 16223 eval supported=\$$cacheid 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16225$as_echo "$supported" >&6; } 16226 if test "$supported" = "yes" ; then 16227 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16228 found="yes" 16229 fi 16230 fi 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246xorg_testset_save_CFLAGS="$CFLAGS" 16247 16248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16253 $as_echo_n "(cached) " >&6 16254else 16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16256/* end confdefs.h. */ 16257int i; 16258_ACEOF 16259if ac_fn_c_try_compile "$LINENO"; then : 16260 xorg_cv_cc_flag_unknown_warning_option=yes 16261else 16262 xorg_cv_cc_flag_unknown_warning_option=no 16263fi 16264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16265fi 16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16269 CFLAGS="$xorg_testset_save_CFLAGS" 16270fi 16271 16272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16275 fi 16276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16280 $as_echo_n "(cached) " >&6 16281else 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284int i; 16285_ACEOF 16286if ac_fn_c_try_compile "$LINENO"; then : 16287 xorg_cv_cc_flag_unused_command_line_argument=yes 16288else 16289 xorg_cv_cc_flag_unused_command_line_argument=no 16290fi 16291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16292fi 16293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16296 CFLAGS="$xorg_testset_save_CFLAGS" 16297fi 16298 16299found="no" 16300 16301 if test $found = "no" ; then 16302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16304 fi 16305 16306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16308 fi 16309 16310 CFLAGS="$CFLAGS -Wmissing-braces" 16311 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16313$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16314 cacheid=xorg_cv_cc_flag__Wmissing_braces 16315 if eval \${$cacheid+:} false; then : 16316 $as_echo_n "(cached) " >&6 16317else 16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16319/* end confdefs.h. */ 16320int i; 16321int 16322main () 16323{ 16324 16325 ; 16326 return 0; 16327} 16328_ACEOF 16329if ac_fn_c_try_link "$LINENO"; then : 16330 eval $cacheid=yes 16331else 16332 eval $cacheid=no 16333fi 16334rm -f core conftest.err conftest.$ac_objext \ 16335 conftest$ac_exeext conftest.$ac_ext 16336fi 16337 16338 16339 CFLAGS="$xorg_testset_save_CFLAGS" 16340 16341 eval supported=\$$cacheid 16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16343$as_echo "$supported" >&6; } 16344 if test "$supported" = "yes" ; then 16345 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16346 found="yes" 16347 fi 16348 fi 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364xorg_testset_save_CFLAGS="$CFLAGS" 16365 16366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16371 $as_echo_n "(cached) " >&6 16372else 16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374/* end confdefs.h. */ 16375int i; 16376_ACEOF 16377if ac_fn_c_try_compile "$LINENO"; then : 16378 xorg_cv_cc_flag_unknown_warning_option=yes 16379else 16380 xorg_cv_cc_flag_unknown_warning_option=no 16381fi 16382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16383fi 16384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16387 CFLAGS="$xorg_testset_save_CFLAGS" 16388fi 16389 16390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16393 fi 16394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16398 $as_echo_n "(cached) " >&6 16399else 16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402int i; 16403_ACEOF 16404if ac_fn_c_try_compile "$LINENO"; then : 16405 xorg_cv_cc_flag_unused_command_line_argument=yes 16406else 16407 xorg_cv_cc_flag_unused_command_line_argument=no 16408fi 16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16410fi 16411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16414 CFLAGS="$xorg_testset_save_CFLAGS" 16415fi 16416 16417found="no" 16418 16419 if test $found = "no" ; then 16420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16422 fi 16423 16424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16426 fi 16427 16428 CFLAGS="$CFLAGS -Wsequence-point" 16429 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16431$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16432 cacheid=xorg_cv_cc_flag__Wsequence_point 16433 if eval \${$cacheid+:} false; then : 16434 $as_echo_n "(cached) " >&6 16435else 16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16437/* end confdefs.h. */ 16438int i; 16439int 16440main () 16441{ 16442 16443 ; 16444 return 0; 16445} 16446_ACEOF 16447if ac_fn_c_try_link "$LINENO"; then : 16448 eval $cacheid=yes 16449else 16450 eval $cacheid=no 16451fi 16452rm -f core conftest.err conftest.$ac_objext \ 16453 conftest$ac_exeext conftest.$ac_ext 16454fi 16455 16456 16457 CFLAGS="$xorg_testset_save_CFLAGS" 16458 16459 eval supported=\$$cacheid 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16461$as_echo "$supported" >&6; } 16462 if test "$supported" = "yes" ; then 16463 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16464 found="yes" 16465 fi 16466 fi 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482xorg_testset_save_CFLAGS="$CFLAGS" 16483 16484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16487$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16488if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16489 $as_echo_n "(cached) " >&6 16490else 16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16492/* end confdefs.h. */ 16493int i; 16494_ACEOF 16495if ac_fn_c_try_compile "$LINENO"; then : 16496 xorg_cv_cc_flag_unknown_warning_option=yes 16497else 16498 xorg_cv_cc_flag_unknown_warning_option=no 16499fi 16500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16501fi 16502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16503$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16505 CFLAGS="$xorg_testset_save_CFLAGS" 16506fi 16507 16508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16511 fi 16512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16514$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16515if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16516 $as_echo_n "(cached) " >&6 16517else 16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16519/* end confdefs.h. */ 16520int i; 16521_ACEOF 16522if ac_fn_c_try_compile "$LINENO"; then : 16523 xorg_cv_cc_flag_unused_command_line_argument=yes 16524else 16525 xorg_cv_cc_flag_unused_command_line_argument=no 16526fi 16527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16528fi 16529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16530$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16532 CFLAGS="$xorg_testset_save_CFLAGS" 16533fi 16534 16535found="no" 16536 16537 if test $found = "no" ; then 16538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16540 fi 16541 16542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16544 fi 16545 16546 CFLAGS="$CFLAGS -Wreturn-type" 16547 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16549$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16550 cacheid=xorg_cv_cc_flag__Wreturn_type 16551 if eval \${$cacheid+:} false; then : 16552 $as_echo_n "(cached) " >&6 16553else 16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16555/* end confdefs.h. */ 16556int i; 16557int 16558main () 16559{ 16560 16561 ; 16562 return 0; 16563} 16564_ACEOF 16565if ac_fn_c_try_link "$LINENO"; then : 16566 eval $cacheid=yes 16567else 16568 eval $cacheid=no 16569fi 16570rm -f core conftest.err conftest.$ac_objext \ 16571 conftest$ac_exeext conftest.$ac_ext 16572fi 16573 16574 16575 CFLAGS="$xorg_testset_save_CFLAGS" 16576 16577 eval supported=\$$cacheid 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16579$as_echo "$supported" >&6; } 16580 if test "$supported" = "yes" ; then 16581 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16582 found="yes" 16583 fi 16584 fi 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600xorg_testset_save_CFLAGS="$CFLAGS" 16601 16602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16610/* end confdefs.h. */ 16611int i; 16612_ACEOF 16613if ac_fn_c_try_compile "$LINENO"; then : 16614 xorg_cv_cc_flag_unknown_warning_option=yes 16615else 16616 xorg_cv_cc_flag_unknown_warning_option=no 16617fi 16618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16619fi 16620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16623 CFLAGS="$xorg_testset_save_CFLAGS" 16624fi 16625 16626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16629 fi 16630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16634 $as_echo_n "(cached) " >&6 16635else 16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16637/* end confdefs.h. */ 16638int i; 16639_ACEOF 16640if ac_fn_c_try_compile "$LINENO"; then : 16641 xorg_cv_cc_flag_unused_command_line_argument=yes 16642else 16643 xorg_cv_cc_flag_unused_command_line_argument=no 16644fi 16645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16646fi 16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16650 CFLAGS="$xorg_testset_save_CFLAGS" 16651fi 16652 16653found="no" 16654 16655 if test $found = "no" ; then 16656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16658 fi 16659 16660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16662 fi 16663 16664 CFLAGS="$CFLAGS -Wtrigraphs" 16665 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16667$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16668 cacheid=xorg_cv_cc_flag__Wtrigraphs 16669 if eval \${$cacheid+:} false; then : 16670 $as_echo_n "(cached) " >&6 16671else 16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16673/* end confdefs.h. */ 16674int i; 16675int 16676main () 16677{ 16678 16679 ; 16680 return 0; 16681} 16682_ACEOF 16683if ac_fn_c_try_link "$LINENO"; then : 16684 eval $cacheid=yes 16685else 16686 eval $cacheid=no 16687fi 16688rm -f core conftest.err conftest.$ac_objext \ 16689 conftest$ac_exeext conftest.$ac_ext 16690fi 16691 16692 16693 CFLAGS="$xorg_testset_save_CFLAGS" 16694 16695 eval supported=\$$cacheid 16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16697$as_echo "$supported" >&6; } 16698 if test "$supported" = "yes" ; then 16699 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16700 found="yes" 16701 fi 16702 fi 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718xorg_testset_save_CFLAGS="$CFLAGS" 16719 16720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16725 $as_echo_n "(cached) " >&6 16726else 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729int i; 16730_ACEOF 16731if ac_fn_c_try_compile "$LINENO"; then : 16732 xorg_cv_cc_flag_unknown_warning_option=yes 16733else 16734 xorg_cv_cc_flag_unknown_warning_option=no 16735fi 16736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16737fi 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16741 CFLAGS="$xorg_testset_save_CFLAGS" 16742fi 16743 16744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16747 fi 16748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16752 $as_echo_n "(cached) " >&6 16753else 16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16755/* end confdefs.h. */ 16756int i; 16757_ACEOF 16758if ac_fn_c_try_compile "$LINENO"; then : 16759 xorg_cv_cc_flag_unused_command_line_argument=yes 16760else 16761 xorg_cv_cc_flag_unused_command_line_argument=no 16762fi 16763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16764fi 16765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16768 CFLAGS="$xorg_testset_save_CFLAGS" 16769fi 16770 16771found="no" 16772 16773 if test $found = "no" ; then 16774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16776 fi 16777 16778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16780 fi 16781 16782 CFLAGS="$CFLAGS -Warray-bounds" 16783 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16785$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16786 cacheid=xorg_cv_cc_flag__Warray_bounds 16787 if eval \${$cacheid+:} false; then : 16788 $as_echo_n "(cached) " >&6 16789else 16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16791/* end confdefs.h. */ 16792int i; 16793int 16794main () 16795{ 16796 16797 ; 16798 return 0; 16799} 16800_ACEOF 16801if ac_fn_c_try_link "$LINENO"; then : 16802 eval $cacheid=yes 16803else 16804 eval $cacheid=no 16805fi 16806rm -f core conftest.err conftest.$ac_objext \ 16807 conftest$ac_exeext conftest.$ac_ext 16808fi 16809 16810 16811 CFLAGS="$xorg_testset_save_CFLAGS" 16812 16813 eval supported=\$$cacheid 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16815$as_echo "$supported" >&6; } 16816 if test "$supported" = "yes" ; then 16817 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16818 found="yes" 16819 fi 16820 fi 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836xorg_testset_save_CFLAGS="$CFLAGS" 16837 16838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16843 $as_echo_n "(cached) " >&6 16844else 16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16846/* end confdefs.h. */ 16847int i; 16848_ACEOF 16849if ac_fn_c_try_compile "$LINENO"; then : 16850 xorg_cv_cc_flag_unknown_warning_option=yes 16851else 16852 xorg_cv_cc_flag_unknown_warning_option=no 16853fi 16854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16855fi 16856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16859 CFLAGS="$xorg_testset_save_CFLAGS" 16860fi 16861 16862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16865 fi 16866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16870 $as_echo_n "(cached) " >&6 16871else 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874int i; 16875_ACEOF 16876if ac_fn_c_try_compile "$LINENO"; then : 16877 xorg_cv_cc_flag_unused_command_line_argument=yes 16878else 16879 xorg_cv_cc_flag_unused_command_line_argument=no 16880fi 16881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16882fi 16883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16886 CFLAGS="$xorg_testset_save_CFLAGS" 16887fi 16888 16889found="no" 16890 16891 if test $found = "no" ; then 16892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16894 fi 16895 16896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16898 fi 16899 16900 CFLAGS="$CFLAGS -Wwrite-strings" 16901 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16903$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16904 cacheid=xorg_cv_cc_flag__Wwrite_strings 16905 if eval \${$cacheid+:} false; then : 16906 $as_echo_n "(cached) " >&6 16907else 16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16909/* end confdefs.h. */ 16910int i; 16911int 16912main () 16913{ 16914 16915 ; 16916 return 0; 16917} 16918_ACEOF 16919if ac_fn_c_try_link "$LINENO"; then : 16920 eval $cacheid=yes 16921else 16922 eval $cacheid=no 16923fi 16924rm -f core conftest.err conftest.$ac_objext \ 16925 conftest$ac_exeext conftest.$ac_ext 16926fi 16927 16928 16929 CFLAGS="$xorg_testset_save_CFLAGS" 16930 16931 eval supported=\$$cacheid 16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16933$as_echo "$supported" >&6; } 16934 if test "$supported" = "yes" ; then 16935 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16936 found="yes" 16937 fi 16938 fi 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954xorg_testset_save_CFLAGS="$CFLAGS" 16955 16956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16961 $as_echo_n "(cached) " >&6 16962else 16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16964/* end confdefs.h. */ 16965int i; 16966_ACEOF 16967if ac_fn_c_try_compile "$LINENO"; then : 16968 xorg_cv_cc_flag_unknown_warning_option=yes 16969else 16970 xorg_cv_cc_flag_unknown_warning_option=no 16971fi 16972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16973fi 16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16977 CFLAGS="$xorg_testset_save_CFLAGS" 16978fi 16979 16980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16983 fi 16984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16988 $as_echo_n "(cached) " >&6 16989else 16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16991/* end confdefs.h. */ 16992int i; 16993_ACEOF 16994if ac_fn_c_try_compile "$LINENO"; then : 16995 xorg_cv_cc_flag_unused_command_line_argument=yes 16996else 16997 xorg_cv_cc_flag_unused_command_line_argument=no 16998fi 16999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17000fi 17001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17004 CFLAGS="$xorg_testset_save_CFLAGS" 17005fi 17006 17007found="no" 17008 17009 if test $found = "no" ; then 17010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17012 fi 17013 17014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17016 fi 17017 17018 CFLAGS="$CFLAGS -Waddress" 17019 17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17021$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17022 cacheid=xorg_cv_cc_flag__Waddress 17023 if eval \${$cacheid+:} false; then : 17024 $as_echo_n "(cached) " >&6 17025else 17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17027/* end confdefs.h. */ 17028int i; 17029int 17030main () 17031{ 17032 17033 ; 17034 return 0; 17035} 17036_ACEOF 17037if ac_fn_c_try_link "$LINENO"; then : 17038 eval $cacheid=yes 17039else 17040 eval $cacheid=no 17041fi 17042rm -f core conftest.err conftest.$ac_objext \ 17043 conftest$ac_exeext conftest.$ac_ext 17044fi 17045 17046 17047 CFLAGS="$xorg_testset_save_CFLAGS" 17048 17049 eval supported=\$$cacheid 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17051$as_echo "$supported" >&6; } 17052 if test "$supported" = "yes" ; then 17053 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17054 found="yes" 17055 fi 17056 fi 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072xorg_testset_save_CFLAGS="$CFLAGS" 17073 17074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17079 $as_echo_n "(cached) " >&6 17080else 17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17082/* end confdefs.h. */ 17083int i; 17084_ACEOF 17085if ac_fn_c_try_compile "$LINENO"; then : 17086 xorg_cv_cc_flag_unknown_warning_option=yes 17087else 17088 xorg_cv_cc_flag_unknown_warning_option=no 17089fi 17090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17091fi 17092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17095 CFLAGS="$xorg_testset_save_CFLAGS" 17096fi 17097 17098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17101 fi 17102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17106 $as_echo_n "(cached) " >&6 17107else 17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17109/* end confdefs.h. */ 17110int i; 17111_ACEOF 17112if ac_fn_c_try_compile "$LINENO"; then : 17113 xorg_cv_cc_flag_unused_command_line_argument=yes 17114else 17115 xorg_cv_cc_flag_unused_command_line_argument=no 17116fi 17117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17118fi 17119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17122 CFLAGS="$xorg_testset_save_CFLAGS" 17123fi 17124 17125found="no" 17126 17127 if test $found = "no" ; then 17128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17130 fi 17131 17132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17134 fi 17135 17136 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17137 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17139$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17140 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17141 if eval \${$cacheid+:} false; then : 17142 $as_echo_n "(cached) " >&6 17143else 17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17145/* end confdefs.h. */ 17146int i; 17147int 17148main () 17149{ 17150 17151 ; 17152 return 0; 17153} 17154_ACEOF 17155if ac_fn_c_try_link "$LINENO"; then : 17156 eval $cacheid=yes 17157else 17158 eval $cacheid=no 17159fi 17160rm -f core conftest.err conftest.$ac_objext \ 17161 conftest$ac_exeext conftest.$ac_ext 17162fi 17163 17164 17165 CFLAGS="$xorg_testset_save_CFLAGS" 17166 17167 eval supported=\$$cacheid 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17169$as_echo "$supported" >&6; } 17170 if test "$supported" = "yes" ; then 17171 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17172 found="yes" 17173 fi 17174 fi 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190xorg_testset_save_CFLAGS="$CFLAGS" 17191 17192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17197 $as_echo_n "(cached) " >&6 17198else 17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17200/* end confdefs.h. */ 17201int i; 17202_ACEOF 17203if ac_fn_c_try_compile "$LINENO"; then : 17204 xorg_cv_cc_flag_unknown_warning_option=yes 17205else 17206 xorg_cv_cc_flag_unknown_warning_option=no 17207fi 17208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17209fi 17210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17213 CFLAGS="$xorg_testset_save_CFLAGS" 17214fi 17215 17216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17219 fi 17220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17224 $as_echo_n "(cached) " >&6 17225else 17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17227/* end confdefs.h. */ 17228int i; 17229_ACEOF 17230if ac_fn_c_try_compile "$LINENO"; then : 17231 xorg_cv_cc_flag_unused_command_line_argument=yes 17232else 17233 xorg_cv_cc_flag_unused_command_line_argument=no 17234fi 17235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17236fi 17237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17240 CFLAGS="$xorg_testset_save_CFLAGS" 17241fi 17242 17243found="no" 17244 17245 if test $found = "no" ; then 17246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17248 fi 17249 17250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17252 fi 17253 17254 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17255 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17257$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17258 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17259 if eval \${$cacheid+:} false; then : 17260 $as_echo_n "(cached) " >&6 17261else 17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17263/* end confdefs.h. */ 17264int i; 17265int 17266main () 17267{ 17268 17269 ; 17270 return 0; 17271} 17272_ACEOF 17273if ac_fn_c_try_link "$LINENO"; then : 17274 eval $cacheid=yes 17275else 17276 eval $cacheid=no 17277fi 17278rm -f core conftest.err conftest.$ac_objext \ 17279 conftest$ac_exeext conftest.$ac_ext 17280fi 17281 17282 17283 CFLAGS="$xorg_testset_save_CFLAGS" 17284 17285 eval supported=\$$cacheid 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17287$as_echo "$supported" >&6; } 17288 if test "$supported" = "yes" ; then 17289 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17290 found="yes" 17291 fi 17292 fi 17293 17294 17295fi 17296 17297 17298 17299 17300 17301 17302 17303 CWARNFLAGS="$BASE_CFLAGS" 17304 if test "x$GCC" = xyes ; then 17305 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17306 fi 17307 17308 17309 17310 17311 17312 17313 17314 17315# Check whether --enable-strict-compilation was given. 17316if test "${enable_strict_compilation+set}" = set; then : 17317 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17318else 17319 STRICT_COMPILE=no 17320fi 17321 17322 17323 17324 17325 17326 17327STRICT_CFLAGS="" 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341xorg_testset_save_CFLAGS="$CFLAGS" 17342 17343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17348 $as_echo_n "(cached) " >&6 17349else 17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17351/* end confdefs.h. */ 17352int i; 17353_ACEOF 17354if ac_fn_c_try_compile "$LINENO"; then : 17355 xorg_cv_cc_flag_unknown_warning_option=yes 17356else 17357 xorg_cv_cc_flag_unknown_warning_option=no 17358fi 17359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17360fi 17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17364 CFLAGS="$xorg_testset_save_CFLAGS" 17365fi 17366 17367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17370 fi 17371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17375 $as_echo_n "(cached) " >&6 17376else 17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17378/* end confdefs.h. */ 17379int i; 17380_ACEOF 17381if ac_fn_c_try_compile "$LINENO"; then : 17382 xorg_cv_cc_flag_unused_command_line_argument=yes 17383else 17384 xorg_cv_cc_flag_unused_command_line_argument=no 17385fi 17386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17387fi 17388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17391 CFLAGS="$xorg_testset_save_CFLAGS" 17392fi 17393 17394found="no" 17395 17396 if test $found = "no" ; then 17397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17399 fi 17400 17401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17403 fi 17404 17405 CFLAGS="$CFLAGS -pedantic" 17406 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17408$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17409 cacheid=xorg_cv_cc_flag__pedantic 17410 if eval \${$cacheid+:} false; then : 17411 $as_echo_n "(cached) " >&6 17412else 17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17414/* end confdefs.h. */ 17415int i; 17416int 17417main () 17418{ 17419 17420 ; 17421 return 0; 17422} 17423_ACEOF 17424if ac_fn_c_try_link "$LINENO"; then : 17425 eval $cacheid=yes 17426else 17427 eval $cacheid=no 17428fi 17429rm -f core conftest.err conftest.$ac_objext \ 17430 conftest$ac_exeext conftest.$ac_ext 17431fi 17432 17433 17434 CFLAGS="$xorg_testset_save_CFLAGS" 17435 17436 eval supported=\$$cacheid 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17438$as_echo "$supported" >&6; } 17439 if test "$supported" = "yes" ; then 17440 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17441 found="yes" 17442 fi 17443 fi 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459xorg_testset_save_CFLAGS="$CFLAGS" 17460 17461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17466 $as_echo_n "(cached) " >&6 17467else 17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17469/* end confdefs.h. */ 17470int i; 17471_ACEOF 17472if ac_fn_c_try_compile "$LINENO"; then : 17473 xorg_cv_cc_flag_unknown_warning_option=yes 17474else 17475 xorg_cv_cc_flag_unknown_warning_option=no 17476fi 17477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17478fi 17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17482 CFLAGS="$xorg_testset_save_CFLAGS" 17483fi 17484 17485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17488 fi 17489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494else 17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17496/* end confdefs.h. */ 17497int i; 17498_ACEOF 17499if ac_fn_c_try_compile "$LINENO"; then : 17500 xorg_cv_cc_flag_unused_command_line_argument=yes 17501else 17502 xorg_cv_cc_flag_unused_command_line_argument=no 17503fi 17504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17505fi 17506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17509 CFLAGS="$xorg_testset_save_CFLAGS" 17510fi 17511 17512found="no" 17513 17514 if test $found = "no" ; then 17515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17517 fi 17518 17519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17521 fi 17522 17523 CFLAGS="$CFLAGS -Werror" 17524 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17526$as_echo_n "checking if $CC supports -Werror... " >&6; } 17527 cacheid=xorg_cv_cc_flag__Werror 17528 if eval \${$cacheid+:} false; then : 17529 $as_echo_n "(cached) " >&6 17530else 17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17532/* end confdefs.h. */ 17533int i; 17534int 17535main () 17536{ 17537 17538 ; 17539 return 0; 17540} 17541_ACEOF 17542if ac_fn_c_try_link "$LINENO"; then : 17543 eval $cacheid=yes 17544else 17545 eval $cacheid=no 17546fi 17547rm -f core conftest.err conftest.$ac_objext \ 17548 conftest$ac_exeext conftest.$ac_ext 17549fi 17550 17551 17552 CFLAGS="$xorg_testset_save_CFLAGS" 17553 17554 eval supported=\$$cacheid 17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17556$as_echo "$supported" >&6; } 17557 if test "$supported" = "yes" ; then 17558 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17559 found="yes" 17560 fi 17561 fi 17562 17563 if test $found = "no" ; then 17564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17566 fi 17567 17568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17570 fi 17571 17572 CFLAGS="$CFLAGS -errwarn" 17573 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17575$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17576 cacheid=xorg_cv_cc_flag__errwarn 17577 if eval \${$cacheid+:} false; then : 17578 $as_echo_n "(cached) " >&6 17579else 17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17581/* end confdefs.h. */ 17582int i; 17583int 17584main () 17585{ 17586 17587 ; 17588 return 0; 17589} 17590_ACEOF 17591if ac_fn_c_try_link "$LINENO"; then : 17592 eval $cacheid=yes 17593else 17594 eval $cacheid=no 17595fi 17596rm -f core conftest.err conftest.$ac_objext \ 17597 conftest$ac_exeext conftest.$ac_ext 17598fi 17599 17600 17601 CFLAGS="$xorg_testset_save_CFLAGS" 17602 17603 eval supported=\$$cacheid 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17605$as_echo "$supported" >&6; } 17606 if test "$supported" = "yes" ; then 17607 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17608 found="yes" 17609 fi 17610 fi 17611 17612 17613 17614# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17615# activate it with -Werror, so we add it here explicitly. 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629xorg_testset_save_CFLAGS="$CFLAGS" 17630 17631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640int i; 17641_ACEOF 17642if ac_fn_c_try_compile "$LINENO"; then : 17643 xorg_cv_cc_flag_unknown_warning_option=yes 17644else 17645 xorg_cv_cc_flag_unknown_warning_option=no 17646fi 17647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17648fi 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17652 CFLAGS="$xorg_testset_save_CFLAGS" 17653fi 17654 17655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17658 fi 17659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17663 $as_echo_n "(cached) " >&6 17664else 17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666/* end confdefs.h. */ 17667int i; 17668_ACEOF 17669if ac_fn_c_try_compile "$LINENO"; then : 17670 xorg_cv_cc_flag_unused_command_line_argument=yes 17671else 17672 xorg_cv_cc_flag_unused_command_line_argument=no 17673fi 17674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17675fi 17676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17679 CFLAGS="$xorg_testset_save_CFLAGS" 17680fi 17681 17682found="no" 17683 17684 if test $found = "no" ; then 17685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17687 fi 17688 17689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17691 fi 17692 17693 CFLAGS="$CFLAGS -Werror=attributes" 17694 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17696$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17697 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17698 if eval \${$cacheid+:} false; then : 17699 $as_echo_n "(cached) " >&6 17700else 17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17702/* end confdefs.h. */ 17703int i; 17704int 17705main () 17706{ 17707 17708 ; 17709 return 0; 17710} 17711_ACEOF 17712if ac_fn_c_try_link "$LINENO"; then : 17713 eval $cacheid=yes 17714else 17715 eval $cacheid=no 17716fi 17717rm -f core conftest.err conftest.$ac_objext \ 17718 conftest$ac_exeext conftest.$ac_ext 17719fi 17720 17721 17722 CFLAGS="$xorg_testset_save_CFLAGS" 17723 17724 eval supported=\$$cacheid 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17726$as_echo "$supported" >&6; } 17727 if test "$supported" = "yes" ; then 17728 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17729 found="yes" 17730 fi 17731 fi 17732 17733 17734 17735if test "x$STRICT_COMPILE" = "xyes"; then 17736 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17737 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17738fi 17739 17740 17741 17742 17743 17744 17745cat >>confdefs.h <<_ACEOF 17746#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17747_ACEOF 17748 17749 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17750 if test "x$PVM" = "x"; then 17751 PVM="0" 17752 fi 17753 17754cat >>confdefs.h <<_ACEOF 17755#define PACKAGE_VERSION_MINOR $PVM 17756_ACEOF 17757 17758 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17759 if test "x$PVP" = "x"; then 17760 PVP="0" 17761 fi 17762 17763cat >>confdefs.h <<_ACEOF 17764#define PACKAGE_VERSION_PATCHLEVEL $PVP 17765_ACEOF 17766 17767 17768 17769CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17770mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17771|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17772echo 'git directory not found: installing possibly empty changelog.' >&2)" 17773 17774 17775 17776 17777macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17778INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17779mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17780|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17781echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17782 17783 17784 17785 17786 17787 17788if test x$APP_MAN_SUFFIX = x ; then 17789 APP_MAN_SUFFIX=1 17790fi 17791if test x$APP_MAN_DIR = x ; then 17792 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17793fi 17794 17795if test x$LIB_MAN_SUFFIX = x ; then 17796 LIB_MAN_SUFFIX=3 17797fi 17798if test x$LIB_MAN_DIR = x ; then 17799 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17800fi 17801 17802if test x$FILE_MAN_SUFFIX = x ; then 17803 case $host_os in 17804 solaris*) FILE_MAN_SUFFIX=4 ;; 17805 *) FILE_MAN_SUFFIX=5 ;; 17806 esac 17807fi 17808if test x$FILE_MAN_DIR = x ; then 17809 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17810fi 17811 17812if test x$MISC_MAN_SUFFIX = x ; then 17813 case $host_os in 17814 solaris*) MISC_MAN_SUFFIX=5 ;; 17815 *) MISC_MAN_SUFFIX=7 ;; 17816 esac 17817fi 17818if test x$MISC_MAN_DIR = x ; then 17819 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17820fi 17821 17822if test x$DRIVER_MAN_SUFFIX = x ; then 17823 case $host_os in 17824 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17825 *) DRIVER_MAN_SUFFIX=4 ;; 17826 esac 17827fi 17828if test x$DRIVER_MAN_DIR = x ; then 17829 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17830fi 17831 17832if test x$ADMIN_MAN_SUFFIX = x ; then 17833 case $host_os in 17834 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17835 *) ADMIN_MAN_SUFFIX=8 ;; 17836 esac 17837fi 17838if test x$ADMIN_MAN_DIR = x ; then 17839 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17840fi 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856XORG_MAN_PAGE="X Version 11" 17857 17858MAN_SUBSTS="\ 17859 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17860 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17861 -e 's|__xservername__|Xorg|g' \ 17862 -e 's|__xconfigfile__|xorg.conf|g' \ 17863 -e 's|__projectroot__|\$(prefix)|g' \ 17864 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17865 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17866 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17867 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17868 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17869 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17870 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17871 17872 17873 17874# Check whether --enable-silent-rules was given. 17875if test "${enable_silent_rules+set}" = set; then : 17876 enableval=$enable_silent_rules; 17877fi 17878 17879case $enable_silent_rules in # ((( 17880 yes) AM_DEFAULT_VERBOSITY=0;; 17881 no) AM_DEFAULT_VERBOSITY=1;; 17882 *) AM_DEFAULT_VERBOSITY=0;; 17883esac 17884am_make=${MAKE-make} 17885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17886$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17887if ${am_cv_make_support_nested_variables+:} false; then : 17888 $as_echo_n "(cached) " >&6 17889else 17890 if $as_echo 'TRUE=$(BAR$(V)) 17891BAR0=false 17892BAR1=true 17893V=1 17894am__doit: 17895 @$(TRUE) 17896.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17897 am_cv_make_support_nested_variables=yes 17898else 17899 am_cv_make_support_nested_variables=no 17900fi 17901fi 17902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17903$as_echo "$am_cv_make_support_nested_variables" >&6; } 17904if test $am_cv_make_support_nested_variables = yes; then 17905 AM_V='$(V)' 17906 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17907else 17908 AM_V=$AM_DEFAULT_VERBOSITY 17909 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17910fi 17911AM_BACKSLASH='\' 17912 17913 17914 17915 17916# Check whether --enable-docs was given. 17917if test "${enable_docs+set}" = set; then : 17918 enableval=$enable_docs; build_docs=$enableval 17919else 17920 build_docs=yes 17921fi 17922 17923 17924 if test x$build_docs = xyes; then 17925 ENABLE_DOCS_TRUE= 17926 ENABLE_DOCS_FALSE='#' 17927else 17928 ENABLE_DOCS_TRUE='#' 17929 ENABLE_DOCS_FALSE= 17930fi 17931 17932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17933$as_echo_n "checking whether to build documentation... " >&6; } 17934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17935$as_echo "$build_docs" >&6; } 17936 17937 17938 17939 17940 17941# Check whether --with-xmlto was given. 17942if test "${with_xmlto+set}" = set; then : 17943 withval=$with_xmlto; use_xmlto=$withval 17944else 17945 use_xmlto=auto 17946fi 17947 17948 17949 17950if test "x$use_xmlto" = x"auto"; then 17951 # Extract the first word of "xmlto", so it can be a program name with args. 17952set dummy xmlto; ac_word=$2 17953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17954$as_echo_n "checking for $ac_word... " >&6; } 17955if ${ac_cv_path_XMLTO+:} false; then : 17956 $as_echo_n "(cached) " >&6 17957else 17958 case $XMLTO in 17959 [\\/]* | ?:[\\/]*) 17960 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17961 ;; 17962 *) 17963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17964for as_dir in $PATH 17965do 17966 IFS=$as_save_IFS 17967 test -z "$as_dir" && as_dir=. 17968 for ac_exec_ext in '' $ac_executable_extensions; do 17969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17970 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17972 break 2 17973 fi 17974done 17975 done 17976IFS=$as_save_IFS 17977 17978 ;; 17979esac 17980fi 17981XMLTO=$ac_cv_path_XMLTO 17982if test -n "$XMLTO"; then 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17984$as_echo "$XMLTO" >&6; } 17985else 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17987$as_echo "no" >&6; } 17988fi 17989 17990 17991 if test "x$XMLTO" = "x"; then 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17993$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17994 have_xmlto=no 17995 else 17996 have_xmlto=yes 17997 fi 17998elif test "x$use_xmlto" = x"yes" ; then 17999 # Extract the first word of "xmlto", so it can be a program name with args. 18000set dummy xmlto; ac_word=$2 18001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18002$as_echo_n "checking for $ac_word... " >&6; } 18003if ${ac_cv_path_XMLTO+:} false; then : 18004 $as_echo_n "(cached) " >&6 18005else 18006 case $XMLTO in 18007 [\\/]* | ?:[\\/]*) 18008 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18009 ;; 18010 *) 18011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18012for as_dir in $PATH 18013do 18014 IFS=$as_save_IFS 18015 test -z "$as_dir" && as_dir=. 18016 for ac_exec_ext in '' $ac_executable_extensions; do 18017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18018 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18020 break 2 18021 fi 18022done 18023 done 18024IFS=$as_save_IFS 18025 18026 ;; 18027esac 18028fi 18029XMLTO=$ac_cv_path_XMLTO 18030if test -n "$XMLTO"; then 18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18032$as_echo "$XMLTO" >&6; } 18033else 18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18035$as_echo "no" >&6; } 18036fi 18037 18038 18039 if test "x$XMLTO" = "x"; then 18040 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18041 fi 18042 have_xmlto=yes 18043elif test "x$use_xmlto" = x"no" ; then 18044 if test "x$XMLTO" != "x"; then 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18046$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18047 fi 18048 have_xmlto=no 18049else 18050 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18051fi 18052 18053# Test for a minimum version of xmlto, if provided. 18054if test "$have_xmlto" = yes; then 18055 # scrape the xmlto version 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18057$as_echo_n "checking the xmlto version... " >&6; } 18058 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18060$as_echo "$xmlto_version" >&6; } 18061 as_arg_v1=$xmlto_version 18062as_arg_v2=0.0.22 18063awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18064case $? in #( 18065 1) : 18066 if test "x$use_xmlto" = xauto; then 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18068$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18069 have_xmlto=no 18070 else 18071 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18072 fi ;; #( 18073 0) : 18074 ;; #( 18075 2) : 18076 ;; #( 18077 *) : 18078 ;; 18079esac 18080fi 18081 18082# Test for the ability of xmlto to generate a text target 18083have_xmlto_text=no 18084cat > conftest.xml << "EOF" 18085EOF 18086if test "$have_xmlto" = yes; then : 18087 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18088 have_xmlto_text=yes 18089else 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18091$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18092fi 18093fi 18094rm -f conftest.xml 18095 if test $have_xmlto_text = yes; then 18096 HAVE_XMLTO_TEXT_TRUE= 18097 HAVE_XMLTO_TEXT_FALSE='#' 18098else 18099 HAVE_XMLTO_TEXT_TRUE='#' 18100 HAVE_XMLTO_TEXT_FALSE= 18101fi 18102 18103 if test "$have_xmlto" = yes; then 18104 HAVE_XMLTO_TRUE= 18105 HAVE_XMLTO_FALSE='#' 18106else 18107 HAVE_XMLTO_TRUE='#' 18108 HAVE_XMLTO_FALSE= 18109fi 18110 18111 18112 18113 18114 18115 18116# Check whether --with-fop was given. 18117if test "${with_fop+set}" = set; then : 18118 withval=$with_fop; use_fop=$withval 18119else 18120 use_fop=auto 18121fi 18122 18123 18124 18125if test "x$use_fop" = x"auto"; then 18126 # Extract the first word of "fop", so it can be a program name with args. 18127set dummy fop; ac_word=$2 18128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18129$as_echo_n "checking for $ac_word... " >&6; } 18130if ${ac_cv_path_FOP+:} false; then : 18131 $as_echo_n "(cached) " >&6 18132else 18133 case $FOP in 18134 [\\/]* | ?:[\\/]*) 18135 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18136 ;; 18137 *) 18138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18139for as_dir in $PATH 18140do 18141 IFS=$as_save_IFS 18142 test -z "$as_dir" && as_dir=. 18143 for ac_exec_ext in '' $ac_executable_extensions; do 18144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18145 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18147 break 2 18148 fi 18149done 18150 done 18151IFS=$as_save_IFS 18152 18153 ;; 18154esac 18155fi 18156FOP=$ac_cv_path_FOP 18157if test -n "$FOP"; then 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18159$as_echo "$FOP" >&6; } 18160else 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18162$as_echo "no" >&6; } 18163fi 18164 18165 18166 if test "x$FOP" = "x"; then 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18168$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18169 have_fop=no 18170 else 18171 have_fop=yes 18172 fi 18173elif test "x$use_fop" = x"yes" ; then 18174 # Extract the first word of "fop", so it can be a program name with args. 18175set dummy fop; ac_word=$2 18176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18177$as_echo_n "checking for $ac_word... " >&6; } 18178if ${ac_cv_path_FOP+:} false; then : 18179 $as_echo_n "(cached) " >&6 18180else 18181 case $FOP in 18182 [\\/]* | ?:[\\/]*) 18183 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18184 ;; 18185 *) 18186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18187for as_dir in $PATH 18188do 18189 IFS=$as_save_IFS 18190 test -z "$as_dir" && as_dir=. 18191 for ac_exec_ext in '' $ac_executable_extensions; do 18192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18193 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18195 break 2 18196 fi 18197done 18198 done 18199IFS=$as_save_IFS 18200 18201 ;; 18202esac 18203fi 18204FOP=$ac_cv_path_FOP 18205if test -n "$FOP"; then 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18207$as_echo "$FOP" >&6; } 18208else 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18210$as_echo "no" >&6; } 18211fi 18212 18213 18214 if test "x$FOP" = "x"; then 18215 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18216 fi 18217 have_fop=yes 18218elif test "x$use_fop" = x"no" ; then 18219 if test "x$FOP" != "x"; then 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18221$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18222 fi 18223 have_fop=no 18224else 18225 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18226fi 18227 18228# Test for a minimum version of fop, if provided. 18229 18230 if test "$have_fop" = yes; then 18231 HAVE_FOP_TRUE= 18232 HAVE_FOP_FALSE='#' 18233else 18234 HAVE_FOP_TRUE='#' 18235 HAVE_FOP_FALSE= 18236fi 18237 18238 18239 18240 18241# Preserves the interface, should it be implemented later 18242 18243 18244 18245# Check whether --with-xsltproc was given. 18246if test "${with_xsltproc+set}" = set; then : 18247 withval=$with_xsltproc; use_xsltproc=$withval 18248else 18249 use_xsltproc=auto 18250fi 18251 18252 18253 18254if test "x$use_xsltproc" = x"auto"; then 18255 # Extract the first word of "xsltproc", so it can be a program name with args. 18256set dummy xsltproc; ac_word=$2 18257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18258$as_echo_n "checking for $ac_word... " >&6; } 18259if ${ac_cv_path_XSLTPROC+:} false; then : 18260 $as_echo_n "(cached) " >&6 18261else 18262 case $XSLTPROC in 18263 [\\/]* | ?:[\\/]*) 18264 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18265 ;; 18266 *) 18267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18268for as_dir in $PATH 18269do 18270 IFS=$as_save_IFS 18271 test -z "$as_dir" && as_dir=. 18272 for ac_exec_ext in '' $ac_executable_extensions; do 18273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18274 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18276 break 2 18277 fi 18278done 18279 done 18280IFS=$as_save_IFS 18281 18282 ;; 18283esac 18284fi 18285XSLTPROC=$ac_cv_path_XSLTPROC 18286if test -n "$XSLTPROC"; then 18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18288$as_echo "$XSLTPROC" >&6; } 18289else 18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18291$as_echo "no" >&6; } 18292fi 18293 18294 18295 if test "x$XSLTPROC" = "x"; then 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18297$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18298 have_xsltproc=no 18299 else 18300 have_xsltproc=yes 18301 fi 18302elif test "x$use_xsltproc" = x"yes" ; then 18303 # Extract the first word of "xsltproc", so it can be a program name with args. 18304set dummy xsltproc; ac_word=$2 18305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18306$as_echo_n "checking for $ac_word... " >&6; } 18307if ${ac_cv_path_XSLTPROC+:} false; then : 18308 $as_echo_n "(cached) " >&6 18309else 18310 case $XSLTPROC in 18311 [\\/]* | ?:[\\/]*) 18312 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18313 ;; 18314 *) 18315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18316for as_dir in $PATH 18317do 18318 IFS=$as_save_IFS 18319 test -z "$as_dir" && as_dir=. 18320 for ac_exec_ext in '' $ac_executable_extensions; do 18321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18322 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18324 break 2 18325 fi 18326done 18327 done 18328IFS=$as_save_IFS 18329 18330 ;; 18331esac 18332fi 18333XSLTPROC=$ac_cv_path_XSLTPROC 18334if test -n "$XSLTPROC"; then 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18336$as_echo "$XSLTPROC" >&6; } 18337else 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18339$as_echo "no" >&6; } 18340fi 18341 18342 18343 if test "x$XSLTPROC" = "x"; then 18344 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18345 fi 18346 have_xsltproc=yes 18347elif test "x$use_xsltproc" = x"no" ; then 18348 if test "x$XSLTPROC" != "x"; then 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18350$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18351 fi 18352 have_xsltproc=no 18353else 18354 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18355fi 18356 18357 if test "$have_xsltproc" = yes; then 18358 HAVE_XSLTPROC_TRUE= 18359 HAVE_XSLTPROC_FALSE='#' 18360else 18361 HAVE_XSLTPROC_TRUE='#' 18362 HAVE_XSLTPROC_FALSE= 18363fi 18364 18365 18366 18367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18368$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18369XORG_SGML_PATH= 18370if test -n "$PKG_CONFIG" && \ 18371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18372 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18373 ac_status=$? 18374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18375 test $ac_status = 0; }; then 18376 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18377else 18378 : 18379 18380fi 18381 18382# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18383# the path and the name of the doc stylesheet 18384if test "x$XORG_SGML_PATH" != "x" ; then 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18386$as_echo "$XORG_SGML_PATH" >&6; } 18387 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18388 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18389else 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18391$as_echo "no" >&6; } 18392fi 18393 18394 18395 18396 18397 if test "x$XSL_STYLESHEET" != "x"; then 18398 HAVE_STYLESHEETS_TRUE= 18399 HAVE_STYLESHEETS_FALSE='#' 18400else 18401 HAVE_STYLESHEETS_TRUE='#' 18402 HAVE_STYLESHEETS_FALSE= 18403fi 18404 18405 18406 18407# Obtain compiler/linker options for depedencies 18408 18409pkg_failed=no 18410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5 18411$as_echo_n "checking for XMU... " >&6; } 18412 18413if test -n "$XMU_CFLAGS"; then 18414 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS" 18415 elif test -n "$PKG_CONFIG"; then 18416 if test -n "$PKG_CONFIG" && \ 18417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5 18418 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5 18419 ac_status=$? 18420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18421 test $ac_status = 0; }; then 18422 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null` 18423else 18424 pkg_failed=yes 18425fi 18426 else 18427 pkg_failed=untried 18428fi 18429if test -n "$XMU_LIBS"; then 18430 pkg_cv_XMU_LIBS="$XMU_LIBS" 18431 elif test -n "$PKG_CONFIG"; then 18432 if test -n "$PKG_CONFIG" && \ 18433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5 18434 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5 18435 ac_status=$? 18436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18437 test $ac_status = 0; }; then 18438 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null` 18439else 18440 pkg_failed=yes 18441fi 18442 else 18443 pkg_failed=untried 18444fi 18445 18446 18447 18448if test $pkg_failed = yes; then 18449 18450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18451 _pkg_short_errors_supported=yes 18452else 18453 _pkg_short_errors_supported=no 18454fi 18455 if test $_pkg_short_errors_supported = yes; then 18456 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext x11 xextproto" 2>&1` 18457 else 18458 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext x11 xextproto" 2>&1` 18459 fi 18460 # Put the nasty error message in config.log where it belongs 18461 echo "$XMU_PKG_ERRORS" >&5 18462 18463 as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met: 18464 18465$XMU_PKG_ERRORS 18466 18467Consider adjusting the PKG_CONFIG_PATH environment variable if you 18468installed software in a non-standard prefix. 18469 18470Alternatively, you may set the environment variables XMU_CFLAGS 18471and XMU_LIBS to avoid the need to call pkg-config. 18472See the pkg-config man page for more details. 18473" "$LINENO" 5 18474elif test $pkg_failed = untried; then 18475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18477as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18478is in your PATH or set the PKG_CONFIG environment variable to the full 18479path to pkg-config. 18480 18481Alternatively, you may set the environment variables XMU_CFLAGS 18482and XMU_LIBS to avoid the need to call pkg-config. 18483See the pkg-config man page for more details. 18484 18485To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18486See \`config.log' for more details" "$LINENO" 5; } 18487else 18488 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS 18489 XMU_LIBS=$pkg_cv_XMU_LIBS 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18491$as_echo "yes" >&6; } 18492 : 18493fi 18494 18495pkg_failed=no 18496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5 18497$as_echo_n "checking for XMUU... " >&6; } 18498 18499if test -n "$XMUU_CFLAGS"; then 18500 pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS" 18501 elif test -n "$PKG_CONFIG"; then 18502 if test -n "$PKG_CONFIG" && \ 18503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 18504 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 18505 ac_status=$? 18506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18507 test $ac_status = 0; }; then 18508 pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 18509else 18510 pkg_failed=yes 18511fi 18512 else 18513 pkg_failed=untried 18514fi 18515if test -n "$XMUU_LIBS"; then 18516 pkg_cv_XMUU_LIBS="$XMUU_LIBS" 18517 elif test -n "$PKG_CONFIG"; then 18518 if test -n "$PKG_CONFIG" && \ 18519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 18520 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 18521 ac_status=$? 18522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18523 test $ac_status = 0; }; then 18524 pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 18525else 18526 pkg_failed=yes 18527fi 18528 else 18529 pkg_failed=untried 18530fi 18531 18532 18533 18534if test $pkg_failed = yes; then 18535 18536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18537 _pkg_short_errors_supported=yes 18538else 18539 _pkg_short_errors_supported=no 18540fi 18541 if test $_pkg_short_errors_supported = yes; then 18542 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 18543 else 18544 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 18545 fi 18546 # Put the nasty error message in config.log where it belongs 18547 echo "$XMUU_PKG_ERRORS" >&5 18548 18549 as_fn_error $? "Package requirements (x11) were not met: 18550 18551$XMUU_PKG_ERRORS 18552 18553Consider adjusting the PKG_CONFIG_PATH environment variable if you 18554installed software in a non-standard prefix. 18555 18556Alternatively, you may set the environment variables XMUU_CFLAGS 18557and XMUU_LIBS to avoid the need to call pkg-config. 18558See the pkg-config man page for more details. 18559" "$LINENO" 5 18560elif test $pkg_failed = untried; then 18561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18563as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18564is in your PATH or set the PKG_CONFIG environment variable to the full 18565path to pkg-config. 18566 18567Alternatively, you may set the environment variables XMUU_CFLAGS 18568and XMUU_LIBS to avoid the need to call pkg-config. 18569See the pkg-config man page for more details. 18570 18571To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18572See \`config.log' for more details" "$LINENO" 5; } 18573else 18574 XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS 18575 XMUU_LIBS=$pkg_cv_XMUU_LIBS 18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18577$as_echo "yes" >&6; } 18578 : 18579fi 18580 18581# CvtStdSel.c needs to know which network transports to build hostname 18582# conversion routines for 18583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 18584$as_echo_n "checking return type of signal handlers... " >&6; } 18585if ${ac_cv_type_signal+:} false; then : 18586 $as_echo_n "(cached) " >&6 18587else 18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18589/* end confdefs.h. */ 18590#include <sys/types.h> 18591#include <signal.h> 18592 18593int 18594main () 18595{ 18596return *(signal (0, 0)) (0) == 1; 18597 ; 18598 return 0; 18599} 18600_ACEOF 18601if ac_fn_c_try_compile "$LINENO"; then : 18602 ac_cv_type_signal=int 18603else 18604 ac_cv_type_signal=void 18605fi 18606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18607fi 18608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 18609$as_echo "$ac_cv_type_signal" >&6; } 18610 18611cat >>confdefs.h <<_ACEOF 18612#define RETSIGTYPE $ac_cv_type_signal 18613_ACEOF 18614 18615 18616 18617 18618 18619 case $host_os in 18620 mingw*) unixdef="no" ;; 18621 *) unixdef="yes" ;; 18622 esac 18623 # Check whether --enable-unix-transport was given. 18624if test "${enable_unix_transport+set}" = set; then : 18625 enableval=$enable_unix_transport; UNIXCONN=$enableval 18626else 18627 UNIXCONN=$unixdef 18628fi 18629 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 18631$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 18632 if test "$UNIXCONN" = "yes"; then 18633 18634$as_echo "#define UNIXCONN 1" >>confdefs.h 18635 18636 fi 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 18638$as_echo "$UNIXCONN" >&6; } 18639 # Check whether --enable-tcp-transport was given. 18640if test "${enable_tcp_transport+set}" = set; then : 18641 enableval=$enable_tcp_transport; TCPCONN=$enableval 18642else 18643 TCPCONN=yes 18644fi 18645 18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 18647$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 18649$as_echo "$TCPCONN" >&6; } 18650 if test "$TCPCONN" = "yes"; then 18651 18652$as_echo "#define TCPCONN 1" >>confdefs.h 18653 18654 18655 # SVR4 hides these in libraries other than libc 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18657$as_echo_n "checking for library containing socket... " >&6; } 18658if ${ac_cv_search_socket+:} false; then : 18659 $as_echo_n "(cached) " >&6 18660else 18661 ac_func_search_save_LIBS=$LIBS 18662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18663/* end confdefs.h. */ 18664 18665/* Override any GCC internal prototype to avoid an error. 18666 Use char because int might match the return type of a GCC 18667 builtin and then its argument prototype would still apply. */ 18668#ifdef __cplusplus 18669extern "C" 18670#endif 18671char socket (); 18672int 18673main () 18674{ 18675return socket (); 18676 ; 18677 return 0; 18678} 18679_ACEOF 18680for ac_lib in '' socket; do 18681 if test -z "$ac_lib"; then 18682 ac_res="none required" 18683 else 18684 ac_res=-l$ac_lib 18685 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18686 fi 18687 if ac_fn_c_try_link "$LINENO"; then : 18688 ac_cv_search_socket=$ac_res 18689fi 18690rm -f core conftest.err conftest.$ac_objext \ 18691 conftest$ac_exeext 18692 if ${ac_cv_search_socket+:} false; then : 18693 break 18694fi 18695done 18696if ${ac_cv_search_socket+:} false; then : 18697 18698else 18699 ac_cv_search_socket=no 18700fi 18701rm conftest.$ac_ext 18702LIBS=$ac_func_search_save_LIBS 18703fi 18704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18705$as_echo "$ac_cv_search_socket" >&6; } 18706ac_res=$ac_cv_search_socket 18707if test "$ac_res" != no; then : 18708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18709 18710fi 18711 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18713$as_echo_n "checking for library containing gethostbyname... " >&6; } 18714if ${ac_cv_search_gethostbyname+:} false; then : 18715 $as_echo_n "(cached) " >&6 18716else 18717 ac_func_search_save_LIBS=$LIBS 18718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720 18721/* Override any GCC internal prototype to avoid an error. 18722 Use char because int might match the return type of a GCC 18723 builtin and then its argument prototype would still apply. */ 18724#ifdef __cplusplus 18725extern "C" 18726#endif 18727char gethostbyname (); 18728int 18729main () 18730{ 18731return gethostbyname (); 18732 ; 18733 return 0; 18734} 18735_ACEOF 18736for ac_lib in '' nsl; do 18737 if test -z "$ac_lib"; then 18738 ac_res="none required" 18739 else 18740 ac_res=-l$ac_lib 18741 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18742 fi 18743 if ac_fn_c_try_link "$LINENO"; then : 18744 ac_cv_search_gethostbyname=$ac_res 18745fi 18746rm -f core conftest.err conftest.$ac_objext \ 18747 conftest$ac_exeext 18748 if ${ac_cv_search_gethostbyname+:} false; then : 18749 break 18750fi 18751done 18752if ${ac_cv_search_gethostbyname+:} false; then : 18753 18754else 18755 ac_cv_search_gethostbyname=no 18756fi 18757rm conftest.$ac_ext 18758LIBS=$ac_func_search_save_LIBS 18759fi 18760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18761$as_echo "$ac_cv_search_gethostbyname" >&6; } 18762ac_res=$ac_cv_search_gethostbyname 18763if test "$ac_res" != no; then : 18764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18765 18766fi 18767 18768 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18770$as_echo_n "checking for main in -lws2_32... " >&6; } 18771if ${ac_cv_lib_ws2_32_main+:} false; then : 18772 $as_echo_n "(cached) " >&6 18773else 18774 ac_check_lib_save_LIBS=$LIBS 18775LIBS="-lws2_32 $LIBS" 18776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18777/* end confdefs.h. */ 18778 18779 18780int 18781main () 18782{ 18783return main (); 18784 ; 18785 return 0; 18786} 18787_ACEOF 18788if ac_fn_c_try_link "$LINENO"; then : 18789 ac_cv_lib_ws2_32_main=yes 18790else 18791 ac_cv_lib_ws2_32_main=no 18792fi 18793rm -f core conftest.err conftest.$ac_objext \ 18794 conftest$ac_exeext conftest.$ac_ext 18795LIBS=$ac_check_lib_save_LIBS 18796fi 18797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18798$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18799if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18800 cat >>confdefs.h <<_ACEOF 18801#define HAVE_LIBWS2_32 1 18802_ACEOF 18803 18804 LIBS="-lws2_32 $LIBS" 18805 18806fi 18807ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 18808 18809 fi 18810 18811 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18812 # Check whether --enable-ipv6 was given. 18813if test "${enable_ipv6+set}" = set; then : 18814 enableval=$enable_ipv6; IPV6CONN=$enableval 18815else 18816 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18817if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18818 IPV6CONN=yes 18819else 18820 IPV6CONN=no 18821fi 18822 18823fi 18824 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18826$as_echo_n "checking if IPv6 support should be built... " >&6; } 18827 if test "$IPV6CONN" = "yes"; then 18828 18829$as_echo "#define IPv6 1" >>confdefs.h 18830 18831 fi 18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18833$as_echo "$IPV6CONN" >&6; } 18834 18835 # 4.3BSD-Reno added a new member to struct sockaddr_in 18836 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18837#include <sys/types.h> 18838#include <sys/socket.h> 18839#include <netinet/in.h> 18840 18841" 18842if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18843 18844$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18845 18846fi 18847 18848 18849 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18850 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18851$ac_includes_default 18852#include <sys/socket.h> 18853" 18854if test "x$ac_cv_type_socklen_t" = xyes; then : 18855 18856cat >>confdefs.h <<_ACEOF 18857#define HAVE_SOCKLEN_T 1 18858_ACEOF 18859 18860 18861fi 18862 18863 18864 18865 fi 18866 case $host_os in 18867 solaris*|sco*|sysv4*) localdef="yes" ;; 18868 *) localdef="no" ;; 18869 esac 18870 # Check whether --enable-local-transport was given. 18871if test "${enable_local_transport+set}" = set; then : 18872 enableval=$enable_local_transport; LOCALCONN=$enableval 18873else 18874 LOCALCONN=$localdef 18875fi 18876 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 18878$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 18880$as_echo "$LOCALCONN" >&6; } 18881 if test "$LOCALCONN" = "yes"; then 18882 18883$as_echo "#define LOCALCONN 1" >>confdefs.h 18884 18885 fi 18886 18887 18888 18889# Allow checking code with lint, sparse, etc. 18890 18891 18892 18893 18894 18895# Check whether --with-lint was given. 18896if test "${with_lint+set}" = set; then : 18897 withval=$with_lint; use_lint=$withval 18898else 18899 use_lint=no 18900fi 18901 18902 18903# Obtain platform specific info like program name and options 18904# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18905case $host_os in 18906 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18907 lint_name=splint 18908 lint_options="-badflag" 18909 ;; 18910 *freebsd* | *netbsd*) 18911 lint_name=lint 18912 lint_options="-u -b" 18913 ;; 18914 *solaris*) 18915 lint_name=lint 18916 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18917 ;; 18918esac 18919 18920# Test for the presence of the program (either guessed by the code or spelled out by the user) 18921if test "x$use_lint" = x"yes" ; then 18922 # Extract the first word of "$lint_name", so it can be a program name with args. 18923set dummy $lint_name; ac_word=$2 18924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18925$as_echo_n "checking for $ac_word... " >&6; } 18926if ${ac_cv_path_LINT+:} false; then : 18927 $as_echo_n "(cached) " >&6 18928else 18929 case $LINT in 18930 [\\/]* | ?:[\\/]*) 18931 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18932 ;; 18933 *) 18934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18935for as_dir in $PATH 18936do 18937 IFS=$as_save_IFS 18938 test -z "$as_dir" && as_dir=. 18939 for ac_exec_ext in '' $ac_executable_extensions; do 18940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18941 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18943 break 2 18944 fi 18945done 18946 done 18947IFS=$as_save_IFS 18948 18949 ;; 18950esac 18951fi 18952LINT=$ac_cv_path_LINT 18953if test -n "$LINT"; then 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18955$as_echo "$LINT" >&6; } 18956else 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18958$as_echo "no" >&6; } 18959fi 18960 18961 18962 if test "x$LINT" = "x"; then 18963 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18964 fi 18965elif test "x$use_lint" = x"no" ; then 18966 if test "x$LINT" != "x"; then 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18968$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18969 fi 18970else 18971 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18972fi 18973 18974# User supplied flags override default flags 18975if test "x$LINT_FLAGS" != "x"; then 18976 lint_options=$LINT_FLAGS 18977fi 18978 18979LINT_FLAGS=$lint_options 18980 18981 if test "x$LINT" != x; then 18982 LINT_TRUE= 18983 LINT_FALSE='#' 18984else 18985 LINT_TRUE='#' 18986 LINT_FALSE= 18987fi 18988 18989 18990 18991 18992 18993# Check whether --enable-lint-library was given. 18994if test "${enable_lint_library+set}" = set; then : 18995 enableval=$enable_lint_library; make_lint_lib=$enableval 18996else 18997 make_lint_lib=no 18998fi 18999 19000 19001if test "x$make_lint_lib" = x"yes" ; then 19002 LINTLIB=llib-lXmu.ln 19003 if test "x$LINT" = "x"; then 19004 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 19005 fi 19006elif test "x$make_lint_lib" != x"no" ; then 19007 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 19008fi 19009 19010 19011 if test x$make_lint_lib != xno; then 19012 MAKE_LINT_LIB_TRUE= 19013 MAKE_LINT_LIB_FALSE='#' 19014else 19015 MAKE_LINT_LIB_TRUE='#' 19016 MAKE_LINT_LIB_FALSE= 19017fi 19018 19019 19020 19021LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/` 19022 19023 19024ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile xmu.pc xmuu.pc" 19025 19026cat >confcache <<\_ACEOF 19027# This file is a shell script that caches the results of configure 19028# tests run on this system so they can be shared between configure 19029# scripts and configure runs, see configure's option --config-cache. 19030# It is not useful on other systems. If it contains results you don't 19031# want to keep, you may remove or edit it. 19032# 19033# config.status only pays attention to the cache file if you give it 19034# the --recheck option to rerun configure. 19035# 19036# `ac_cv_env_foo' variables (set or unset) will be overridden when 19037# loading this file, other *unset* `ac_cv_foo' will be assigned the 19038# following values. 19039 19040_ACEOF 19041 19042# The following way of writing the cache mishandles newlines in values, 19043# but we know of no workaround that is simple, portable, and efficient. 19044# So, we kill variables containing newlines. 19045# Ultrix sh set writes to stderr and can't be redirected directly, 19046# and sets the high bit in the cache file unless we assign to the vars. 19047( 19048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19049 eval ac_val=\$$ac_var 19050 case $ac_val in #( 19051 *${as_nl}*) 19052 case $ac_var in #( 19053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19055 esac 19056 case $ac_var in #( 19057 _ | IFS | as_nl) ;; #( 19058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19059 *) { eval $ac_var=; unset $ac_var;} ;; 19060 esac ;; 19061 esac 19062 done 19063 19064 (set) 2>&1 | 19065 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19066 *${as_nl}ac_space=\ *) 19067 # `set' does not quote correctly, so add quotes: double-quote 19068 # substitution turns \\\\ into \\, and sed turns \\ into \. 19069 sed -n \ 19070 "s/'/'\\\\''/g; 19071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19072 ;; #( 19073 *) 19074 # `set' quotes correctly as required by POSIX, so do not add quotes. 19075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19076 ;; 19077 esac | 19078 sort 19079) | 19080 sed ' 19081 /^ac_cv_env_/b end 19082 t clear 19083 :clear 19084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19085 t end 19086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19087 :end' >>confcache 19088if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19089 if test -w "$cache_file"; then 19090 if test "x$cache_file" != "x/dev/null"; then 19091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19092$as_echo "$as_me: updating cache $cache_file" >&6;} 19093 if test ! -f "$cache_file" || test -h "$cache_file"; then 19094 cat confcache >"$cache_file" 19095 else 19096 case $cache_file in #( 19097 */* | ?:*) 19098 mv -f confcache "$cache_file"$$ && 19099 mv -f "$cache_file"$$ "$cache_file" ;; #( 19100 *) 19101 mv -f confcache "$cache_file" ;; 19102 esac 19103 fi 19104 fi 19105 else 19106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19107$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19108 fi 19109fi 19110rm -f confcache 19111 19112test "x$prefix" = xNONE && prefix=$ac_default_prefix 19113# Let make expand exec_prefix. 19114test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19115 19116DEFS=-DHAVE_CONFIG_H 19117 19118ac_libobjs= 19119ac_ltlibobjs= 19120U= 19121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19122 # 1. Remove the extension, and $U if already installed. 19123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19126 # will be set to the directory where LIBOBJS objects are built. 19127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19129done 19130LIBOBJS=$ac_libobjs 19131 19132LTLIBOBJS=$ac_ltlibobjs 19133 19134 19135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19136$as_echo_n "checking that generated files are newer than configure... " >&6; } 19137 if test -n "$am_sleep_pid"; then 19138 # Hide warnings about reused PIDs. 19139 wait $am_sleep_pid 2>/dev/null 19140 fi 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19142$as_echo "done" >&6; } 19143 if test -n "$EXEEXT"; then 19144 am__EXEEXT_TRUE= 19145 am__EXEEXT_FALSE='#' 19146else 19147 am__EXEEXT_TRUE='#' 19148 am__EXEEXT_FALSE= 19149fi 19150 19151if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19152 as_fn_error $? "conditional \"AMDEP\" was never defined. 19153Usually this means the macro was only invoked conditionally." "$LINENO" 5 19154fi 19155if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19156 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19157Usually this means the macro was only invoked conditionally." "$LINENO" 5 19158fi 19159if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 19160 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 19161Usually this means the macro was only invoked conditionally." "$LINENO" 5 19162fi 19163if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19164 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19165Usually this means the macro was only invoked conditionally." "$LINENO" 5 19166fi 19167if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19168 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19169Usually this means the macro was only invoked conditionally." "$LINENO" 5 19170fi 19171if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19172 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19173Usually this means the macro was only invoked conditionally." "$LINENO" 5 19174fi 19175if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19176 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19177Usually this means the macro was only invoked conditionally." "$LINENO" 5 19178fi 19179if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19180 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19181Usually this means the macro was only invoked conditionally." "$LINENO" 5 19182fi 19183if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19184 as_fn_error $? "conditional \"LINT\" was never defined. 19185Usually this means the macro was only invoked conditionally." "$LINENO" 5 19186fi 19187if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 19188 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 19189Usually this means the macro was only invoked conditionally." "$LINENO" 5 19190fi 19191 19192: "${CONFIG_STATUS=./config.status}" 19193ac_write_fail=0 19194ac_clean_files_save=$ac_clean_files 19195ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19196{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19197$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19198as_write_fail=0 19199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19200#! $SHELL 19201# Generated by $as_me. 19202# Run this file to recreate the current configuration. 19203# Compiler output produced by configure, useful for debugging 19204# configure, is in config.log if it exists. 19205 19206debug=false 19207ac_cs_recheck=false 19208ac_cs_silent=false 19209 19210SHELL=\${CONFIG_SHELL-$SHELL} 19211export SHELL 19212_ASEOF 19213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19214## -------------------- ## 19215## M4sh Initialization. ## 19216## -------------------- ## 19217 19218# Be more Bourne compatible 19219DUALCASE=1; export DUALCASE # for MKS sh 19220if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19221 emulate sh 19222 NULLCMD=: 19223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19224 # is contrary to our usage. Disable this feature. 19225 alias -g '${1+"$@"}'='"$@"' 19226 setopt NO_GLOB_SUBST 19227else 19228 case `(set -o) 2>/dev/null` in #( 19229 *posix*) : 19230 set -o posix ;; #( 19231 *) : 19232 ;; 19233esac 19234fi 19235 19236 19237as_nl=' 19238' 19239export as_nl 19240# Printing a long string crashes Solaris 7 /usr/bin/printf. 19241as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19244# Prefer a ksh shell builtin over an external printf program on Solaris, 19245# but without wasting forks for bash or zsh. 19246if test -z "$BASH_VERSION$ZSH_VERSION" \ 19247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19248 as_echo='print -r --' 19249 as_echo_n='print -rn --' 19250elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19251 as_echo='printf %s\n' 19252 as_echo_n='printf %s' 19253else 19254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19256 as_echo_n='/usr/ucb/echo -n' 19257 else 19258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19259 as_echo_n_body='eval 19260 arg=$1; 19261 case $arg in #( 19262 *"$as_nl"*) 19263 expr "X$arg" : "X\\(.*\\)$as_nl"; 19264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19265 esac; 19266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19267 ' 19268 export as_echo_n_body 19269 as_echo_n='sh -c $as_echo_n_body as_echo' 19270 fi 19271 export as_echo_body 19272 as_echo='sh -c $as_echo_body as_echo' 19273fi 19274 19275# The user is always right. 19276if test "${PATH_SEPARATOR+set}" != set; then 19277 PATH_SEPARATOR=: 19278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19280 PATH_SEPARATOR=';' 19281 } 19282fi 19283 19284 19285# IFS 19286# We need space, tab and new line, in precisely that order. Quoting is 19287# there to prevent editors from complaining about space-tab. 19288# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19289# splitting by setting IFS to empty value.) 19290IFS=" "" $as_nl" 19291 19292# Find who we are. Look in the path if we contain no directory separator. 19293as_myself= 19294case $0 in #(( 19295 *[\\/]* ) as_myself=$0 ;; 19296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19297for as_dir in $PATH 19298do 19299 IFS=$as_save_IFS 19300 test -z "$as_dir" && as_dir=. 19301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19302 done 19303IFS=$as_save_IFS 19304 19305 ;; 19306esac 19307# We did not find ourselves, most probably we were run as `sh COMMAND' 19308# in which case we are not to be found in the path. 19309if test "x$as_myself" = x; then 19310 as_myself=$0 19311fi 19312if test ! -f "$as_myself"; then 19313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19314 exit 1 19315fi 19316 19317# Unset variables that we do not need and which cause bugs (e.g. in 19318# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19319# suppresses any "Segmentation fault" message there. '((' could 19320# trigger a bug in pdksh 5.2.14. 19321for as_var in BASH_ENV ENV MAIL MAILPATH 19322do eval test x\${$as_var+set} = xset \ 19323 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19324done 19325PS1='$ ' 19326PS2='> ' 19327PS4='+ ' 19328 19329# NLS nuisances. 19330LC_ALL=C 19331export LC_ALL 19332LANGUAGE=C 19333export LANGUAGE 19334 19335# CDPATH. 19336(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19337 19338 19339# as_fn_error STATUS ERROR [LINENO LOG_FD] 19340# ---------------------------------------- 19341# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19342# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19343# script with STATUS, using 1 if that was 0. 19344as_fn_error () 19345{ 19346 as_status=$1; test $as_status -eq 0 && as_status=1 19347 if test "$4"; then 19348 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19349 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19350 fi 19351 $as_echo "$as_me: error: $2" >&2 19352 as_fn_exit $as_status 19353} # as_fn_error 19354 19355 19356# as_fn_set_status STATUS 19357# ----------------------- 19358# Set $? to STATUS, without forking. 19359as_fn_set_status () 19360{ 19361 return $1 19362} # as_fn_set_status 19363 19364# as_fn_exit STATUS 19365# ----------------- 19366# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19367as_fn_exit () 19368{ 19369 set +e 19370 as_fn_set_status $1 19371 exit $1 19372} # as_fn_exit 19373 19374# as_fn_unset VAR 19375# --------------- 19376# Portably unset VAR. 19377as_fn_unset () 19378{ 19379 { eval $1=; unset $1;} 19380} 19381as_unset=as_fn_unset 19382# as_fn_append VAR VALUE 19383# ---------------------- 19384# Append the text in VALUE to the end of the definition contained in VAR. Take 19385# advantage of any shell optimizations that allow amortized linear growth over 19386# repeated appends, instead of the typical quadratic growth present in naive 19387# implementations. 19388if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19389 eval 'as_fn_append () 19390 { 19391 eval $1+=\$2 19392 }' 19393else 19394 as_fn_append () 19395 { 19396 eval $1=\$$1\$2 19397 } 19398fi # as_fn_append 19399 19400# as_fn_arith ARG... 19401# ------------------ 19402# Perform arithmetic evaluation on the ARGs, and store the result in the 19403# global $as_val. Take advantage of shells that can avoid forks. The arguments 19404# must be portable across $(()) and expr. 19405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19406 eval 'as_fn_arith () 19407 { 19408 as_val=$(( $* )) 19409 }' 19410else 19411 as_fn_arith () 19412 { 19413 as_val=`expr "$@" || test $? -eq 1` 19414 } 19415fi # as_fn_arith 19416 19417 19418if expr a : '\(a\)' >/dev/null 2>&1 && 19419 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19420 as_expr=expr 19421else 19422 as_expr=false 19423fi 19424 19425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19426 as_basename=basename 19427else 19428 as_basename=false 19429fi 19430 19431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19432 as_dirname=dirname 19433else 19434 as_dirname=false 19435fi 19436 19437as_me=`$as_basename -- "$0" || 19438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19439 X"$0" : 'X\(//\)$' \| \ 19440 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19441$as_echo X/"$0" | 19442 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19443 s//\1/ 19444 q 19445 } 19446 /^X\/\(\/\/\)$/{ 19447 s//\1/ 19448 q 19449 } 19450 /^X\/\(\/\).*/{ 19451 s//\1/ 19452 q 19453 } 19454 s/.*/./; q'` 19455 19456# Avoid depending upon Character Ranges. 19457as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19459as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19460as_cr_digits='0123456789' 19461as_cr_alnum=$as_cr_Letters$as_cr_digits 19462 19463ECHO_C= ECHO_N= ECHO_T= 19464case `echo -n x` in #((((( 19465-n*) 19466 case `echo 'xy\c'` in 19467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19468 xy) ECHO_C='\c';; 19469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19470 ECHO_T=' ';; 19471 esac;; 19472*) 19473 ECHO_N='-n';; 19474esac 19475 19476rm -f conf$$ conf$$.exe conf$$.file 19477if test -d conf$$.dir; then 19478 rm -f conf$$.dir/conf$$.file 19479else 19480 rm -f conf$$.dir 19481 mkdir conf$$.dir 2>/dev/null 19482fi 19483if (echo >conf$$.file) 2>/dev/null; then 19484 if ln -s conf$$.file conf$$ 2>/dev/null; then 19485 as_ln_s='ln -s' 19486 # ... but there are two gotchas: 19487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19489 # In both cases, we have to default to `cp -p'. 19490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19491 as_ln_s='cp -p' 19492 elif ln conf$$.file conf$$ 2>/dev/null; then 19493 as_ln_s=ln 19494 else 19495 as_ln_s='cp -p' 19496 fi 19497else 19498 as_ln_s='cp -p' 19499fi 19500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19501rmdir conf$$.dir 2>/dev/null 19502 19503 19504# as_fn_mkdir_p 19505# ------------- 19506# Create "$as_dir" as a directory, including parents if necessary. 19507as_fn_mkdir_p () 19508{ 19509 19510 case $as_dir in #( 19511 -*) as_dir=./$as_dir;; 19512 esac 19513 test -d "$as_dir" || eval $as_mkdir_p || { 19514 as_dirs= 19515 while :; do 19516 case $as_dir in #( 19517 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19518 *) as_qdir=$as_dir;; 19519 esac 19520 as_dirs="'$as_qdir' $as_dirs" 19521 as_dir=`$as_dirname -- "$as_dir" || 19522$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19523 X"$as_dir" : 'X\(//\)[^/]' \| \ 19524 X"$as_dir" : 'X\(//\)$' \| \ 19525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19526$as_echo X"$as_dir" | 19527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19528 s//\1/ 19529 q 19530 } 19531 /^X\(\/\/\)[^/].*/{ 19532 s//\1/ 19533 q 19534 } 19535 /^X\(\/\/\)$/{ 19536 s//\1/ 19537 q 19538 } 19539 /^X\(\/\).*/{ 19540 s//\1/ 19541 q 19542 } 19543 s/.*/./; q'` 19544 test -d "$as_dir" && break 19545 done 19546 test -z "$as_dirs" || eval "mkdir $as_dirs" 19547 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19548 19549 19550} # as_fn_mkdir_p 19551if mkdir -p . 2>/dev/null; then 19552 as_mkdir_p='mkdir -p "$as_dir"' 19553else 19554 test -d ./-p && rmdir ./-p 19555 as_mkdir_p=false 19556fi 19557 19558if test -x / >/dev/null 2>&1; then 19559 as_test_x='test -x' 19560else 19561 if ls -dL / >/dev/null 2>&1; then 19562 as_ls_L_option=L 19563 else 19564 as_ls_L_option= 19565 fi 19566 as_test_x=' 19567 eval sh -c '\'' 19568 if test -d "$1"; then 19569 test -d "$1/."; 19570 else 19571 case $1 in #( 19572 -*)set "./$1";; 19573 esac; 19574 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19575 ???[sx]*):;;*)false;;esac;fi 19576 '\'' sh 19577 ' 19578fi 19579as_executable_p=$as_test_x 19580 19581# Sed expression to map a string onto a valid CPP name. 19582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19583 19584# Sed expression to map a string onto a valid variable name. 19585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19586 19587 19588exec 6>&1 19589## ----------------------------------- ## 19590## Main body of $CONFIG_STATUS script. ## 19591## ----------------------------------- ## 19592_ASEOF 19593test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19594 19595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19596# Save the log message, to keep $0 and so on meaningful, and to 19597# report actual input values of CONFIG_FILES etc. instead of their 19598# values after options handling. 19599ac_log=" 19600This file was extended by libXmu $as_me 1.1.2, which was 19601generated by GNU Autoconf 2.68. Invocation command line was 19602 19603 CONFIG_FILES = $CONFIG_FILES 19604 CONFIG_HEADERS = $CONFIG_HEADERS 19605 CONFIG_LINKS = $CONFIG_LINKS 19606 CONFIG_COMMANDS = $CONFIG_COMMANDS 19607 $ $0 $@ 19608 19609on `(hostname || uname -n) 2>/dev/null | sed 1q` 19610" 19611 19612_ACEOF 19613 19614case $ac_config_files in *" 19615"*) set x $ac_config_files; shift; ac_config_files=$*;; 19616esac 19617 19618case $ac_config_headers in *" 19619"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19620esac 19621 19622 19623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19624# Files that config.status was made for. 19625config_files="$ac_config_files" 19626config_headers="$ac_config_headers" 19627config_commands="$ac_config_commands" 19628 19629_ACEOF 19630 19631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19632ac_cs_usage="\ 19633\`$as_me' instantiates files and other configuration actions 19634from templates according to the current configuration. Unless the files 19635and actions are specified as TAGs, all are instantiated by default. 19636 19637Usage: $0 [OPTION]... [TAG]... 19638 19639 -h, --help print this help, then exit 19640 -V, --version print version number and configuration settings, then exit 19641 --config print configuration, then exit 19642 -q, --quiet, --silent 19643 do not print progress messages 19644 -d, --debug don't remove temporary files 19645 --recheck update $as_me by reconfiguring in the same conditions 19646 --file=FILE[:TEMPLATE] 19647 instantiate the configuration file FILE 19648 --header=FILE[:TEMPLATE] 19649 instantiate the configuration header FILE 19650 19651Configuration files: 19652$config_files 19653 19654Configuration headers: 19655$config_headers 19656 19657Configuration commands: 19658$config_commands 19659 19660Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19661 19662_ACEOF 19663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19664ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19665ac_cs_version="\\ 19666libXmu config.status 1.1.2 19667configured by $0, generated by GNU Autoconf 2.68, 19668 with options \\"\$ac_cs_config\\" 19669 19670Copyright (C) 2010 Free Software Foundation, Inc. 19671This config.status script is free software; the Free Software Foundation 19672gives unlimited permission to copy, distribute and modify it." 19673 19674ac_pwd='$ac_pwd' 19675srcdir='$srcdir' 19676INSTALL='$INSTALL' 19677MKDIR_P='$MKDIR_P' 19678AWK='$AWK' 19679test -n "\$AWK" || AWK=awk 19680_ACEOF 19681 19682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19683# The default lists apply if the user does not specify any file. 19684ac_need_defaults=: 19685while test $# != 0 19686do 19687 case $1 in 19688 --*=?*) 19689 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19691 ac_shift=: 19692 ;; 19693 --*=) 19694 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19695 ac_optarg= 19696 ac_shift=: 19697 ;; 19698 *) 19699 ac_option=$1 19700 ac_optarg=$2 19701 ac_shift=shift 19702 ;; 19703 esac 19704 19705 case $ac_option in 19706 # Handling of the options. 19707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19708 ac_cs_recheck=: ;; 19709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19710 $as_echo "$ac_cs_version"; exit ;; 19711 --config | --confi | --conf | --con | --co | --c ) 19712 $as_echo "$ac_cs_config"; exit ;; 19713 --debug | --debu | --deb | --de | --d | -d ) 19714 debug=: ;; 19715 --file | --fil | --fi | --f ) 19716 $ac_shift 19717 case $ac_optarg in 19718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19719 '') as_fn_error $? "missing file argument" ;; 19720 esac 19721 as_fn_append CONFIG_FILES " '$ac_optarg'" 19722 ac_need_defaults=false;; 19723 --header | --heade | --head | --hea ) 19724 $ac_shift 19725 case $ac_optarg in 19726 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19727 esac 19728 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19729 ac_need_defaults=false;; 19730 --he | --h) 19731 # Conflict between --help and --header 19732 as_fn_error $? "ambiguous option: \`$1' 19733Try \`$0 --help' for more information.";; 19734 --help | --hel | -h ) 19735 $as_echo "$ac_cs_usage"; exit ;; 19736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19737 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19738 ac_cs_silent=: ;; 19739 19740 # This is an error. 19741 -*) as_fn_error $? "unrecognized option: \`$1' 19742Try \`$0 --help' for more information." ;; 19743 19744 *) as_fn_append ac_config_targets " $1" 19745 ac_need_defaults=false ;; 19746 19747 esac 19748 shift 19749done 19750 19751ac_configure_extra_args= 19752 19753if $ac_cs_silent; then 19754 exec 6>/dev/null 19755 ac_configure_extra_args="$ac_configure_extra_args --silent" 19756fi 19757 19758_ACEOF 19759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19760if \$ac_cs_recheck; then 19761 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19762 shift 19763 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19764 CONFIG_SHELL='$SHELL' 19765 export CONFIG_SHELL 19766 exec "\$@" 19767fi 19768 19769_ACEOF 19770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19771exec 5>>config.log 19772{ 19773 echo 19774 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19775## Running $as_me. ## 19776_ASBOX 19777 $as_echo "$ac_log" 19778} >&5 19779 19780_ACEOF 19781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19782# 19783# INIT-COMMANDS 19784# 19785AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19786 19787 19788# The HP-UX ksh and POSIX shell print the target directory to stdout 19789# if CDPATH is set. 19790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19791 19792sed_quote_subst='$sed_quote_subst' 19793double_quote_subst='$double_quote_subst' 19794delay_variable_subst='$delay_variable_subst' 19795macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19796macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19797enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19798enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19799pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19800enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19801SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19802ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19803PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19804host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19805host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19806host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19807build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19808build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19809build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19810SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19811Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19812GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19813EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19814FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19815LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19816NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19817LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19818max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19819ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19820exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19821lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19822lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19823lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19824lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19825lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19826reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19827reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19828OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19829deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19830file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19831file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19832want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19833DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19834sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19835AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19836AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19837archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19838STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19839RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19840old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19841old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19842old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19843lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19844CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19845CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19846compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19847GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19848lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19849lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19850lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19851lt_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"`' 19852nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19853lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19854objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19855MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19856lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19857lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19858lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19859lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19860lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19861need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19862MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19863DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19864NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19865LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19866OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19867OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19868libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19869shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19870extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19871archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19872enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19873export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19874whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19875compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19876old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19877old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19878archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19879archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19880module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19881module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19882with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19883allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19884no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19885hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19886hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19887hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19888hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19889hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19890hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19891hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19892inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19893link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19894always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19895export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19896exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19897include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19898prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19899postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19900file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19901variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19902need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19903need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19904version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19905runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19906shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19907shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19908libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19909library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19910soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19911install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19912postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19913postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19914finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19915finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19916hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19917sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19918sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19919hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19920enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19921enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19922enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19923old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19924striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19925 19926LTCC='$LTCC' 19927LTCFLAGS='$LTCFLAGS' 19928compiler='$compiler_DEFAULT' 19929 19930# A function that is used when there is no print builtin or printf. 19931func_fallback_echo () 19932{ 19933 eval 'cat <<_LTECHO_EOF 19934\$1 19935_LTECHO_EOF' 19936} 19937 19938# Quote evaled strings. 19939for var in SHELL \ 19940ECHO \ 19941PATH_SEPARATOR \ 19942SED \ 19943GREP \ 19944EGREP \ 19945FGREP \ 19946LD \ 19947NM \ 19948LN_S \ 19949lt_SP2NL \ 19950lt_NL2SP \ 19951reload_flag \ 19952OBJDUMP \ 19953deplibs_check_method \ 19954file_magic_cmd \ 19955file_magic_glob \ 19956want_nocaseglob \ 19957DLLTOOL \ 19958sharedlib_from_linklib_cmd \ 19959AR \ 19960AR_FLAGS \ 19961archiver_list_spec \ 19962STRIP \ 19963RANLIB \ 19964CC \ 19965CFLAGS \ 19966compiler \ 19967lt_cv_sys_global_symbol_pipe \ 19968lt_cv_sys_global_symbol_to_cdecl \ 19969lt_cv_sys_global_symbol_to_c_name_address \ 19970lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19971nm_file_list_spec \ 19972lt_prog_compiler_no_builtin_flag \ 19973lt_prog_compiler_pic \ 19974lt_prog_compiler_wl \ 19975lt_prog_compiler_static \ 19976lt_cv_prog_compiler_c_o \ 19977need_locks \ 19978MANIFEST_TOOL \ 19979DSYMUTIL \ 19980NMEDIT \ 19981LIPO \ 19982OTOOL \ 19983OTOOL64 \ 19984shrext_cmds \ 19985export_dynamic_flag_spec \ 19986whole_archive_flag_spec \ 19987compiler_needs_object \ 19988with_gnu_ld \ 19989allow_undefined_flag \ 19990no_undefined_flag \ 19991hardcode_libdir_flag_spec \ 19992hardcode_libdir_separator \ 19993exclude_expsyms \ 19994include_expsyms \ 19995file_list_spec \ 19996variables_saved_for_relink \ 19997libname_spec \ 19998library_names_spec \ 19999soname_spec \ 20000install_override_mode \ 20001finish_eval \ 20002old_striplib \ 20003striplib; do 20004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20005 *[\\\\\\\`\\"\\\$]*) 20006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20007 ;; 20008 *) 20009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20010 ;; 20011 esac 20012done 20013 20014# Double-quote double-evaled strings. 20015for var in reload_cmds \ 20016old_postinstall_cmds \ 20017old_postuninstall_cmds \ 20018old_archive_cmds \ 20019extract_expsyms_cmds \ 20020old_archive_from_new_cmds \ 20021old_archive_from_expsyms_cmds \ 20022archive_cmds \ 20023archive_expsym_cmds \ 20024module_cmds \ 20025module_expsym_cmds \ 20026export_symbols_cmds \ 20027prelink_cmds \ 20028postlink_cmds \ 20029postinstall_cmds \ 20030postuninstall_cmds \ 20031finish_cmds \ 20032sys_lib_search_path_spec \ 20033sys_lib_dlsearch_path_spec; do 20034 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20035 *[\\\\\\\`\\"\\\$]*) 20036 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20037 ;; 20038 *) 20039 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20040 ;; 20041 esac 20042done 20043 20044ac_aux_dir='$ac_aux_dir' 20045xsi_shell='$xsi_shell' 20046lt_shell_append='$lt_shell_append' 20047 20048# See if we are running on zsh, and set the options which allow our 20049# commands through without removal of \ escapes INIT. 20050if test -n "\${ZSH_VERSION+set}" ; then 20051 setopt NO_GLOB_SUBST 20052fi 20053 20054 20055 PACKAGE='$PACKAGE' 20056 VERSION='$VERSION' 20057 TIMESTAMP='$TIMESTAMP' 20058 RM='$RM' 20059 ofile='$ofile' 20060 20061 20062 20063 20064_ACEOF 20065 20066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20067 20068# Handling of arguments. 20069for ac_config_target in $ac_config_targets 20070do 20071 case $ac_config_target in 20072 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20073 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20074 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20076 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20077 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20078 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20079 "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;; 20080 "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;; 20081 20082 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20083 esac 20084done 20085 20086 20087# If the user did not use the arguments to specify the items to instantiate, 20088# then the envvar interface is used. Set only those that are not. 20089# We use the long form for the default assignment because of an extremely 20090# bizarre bug on SunOS 4.1.3. 20091if $ac_need_defaults; then 20092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20095fi 20096 20097# Have a temporary directory for convenience. Make it in the build tree 20098# simply because there is no reason against having it here, and in addition, 20099# creating and moving files from /tmp can sometimes cause problems. 20100# Hook for its removal unless debugging. 20101# Note that there is a small window in which the directory will not be cleaned: 20102# after its creation but before its name has been assigned to `$tmp'. 20103$debug || 20104{ 20105 tmp= ac_tmp= 20106 trap 'exit_status=$? 20107 : "${ac_tmp:=$tmp}" 20108 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20109' 0 20110 trap 'as_fn_exit 1' 1 2 13 15 20111} 20112# Create a (secure) tmp directory for tmp files. 20113 20114{ 20115 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20116 test -d "$tmp" 20117} || 20118{ 20119 tmp=./conf$$-$RANDOM 20120 (umask 077 && mkdir "$tmp") 20121} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20122ac_tmp=$tmp 20123 20124# Set up the scripts for CONFIG_FILES section. 20125# No need to generate them if there are no CONFIG_FILES. 20126# This happens for instance with `./config.status config.h'. 20127if test -n "$CONFIG_FILES"; then 20128 20129 20130ac_cr=`echo X | tr X '\015'` 20131# On cygwin, bash can eat \r inside `` if the user requested igncr. 20132# But we know of no other shell where ac_cr would be empty at this 20133# point, so we can use a bashism as a fallback. 20134if test "x$ac_cr" = x; then 20135 eval ac_cr=\$\'\\r\' 20136fi 20137ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20138if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20139 ac_cs_awk_cr='\\r' 20140else 20141 ac_cs_awk_cr=$ac_cr 20142fi 20143 20144echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20145_ACEOF 20146 20147 20148{ 20149 echo "cat >conf$$subs.awk <<_ACEOF" && 20150 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20151 echo "_ACEOF" 20152} >conf$$subs.sh || 20153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20154ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20155ac_delim='%!_!# ' 20156for ac_last_try in false false false false false :; do 20157 . ./conf$$subs.sh || 20158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20159 20160 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20161 if test $ac_delim_n = $ac_delim_num; then 20162 break 20163 elif $ac_last_try; then 20164 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20165 else 20166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20167 fi 20168done 20169rm -f conf$$subs.sh 20170 20171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20172cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20173_ACEOF 20174sed -n ' 20175h 20176s/^/S["/; s/!.*/"]=/ 20177p 20178g 20179s/^[^!]*!// 20180:repl 20181t repl 20182s/'"$ac_delim"'$// 20183t delim 20184:nl 20185h 20186s/\(.\{148\}\)..*/\1/ 20187t more1 20188s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20189p 20190n 20191b repl 20192:more1 20193s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20194p 20195g 20196s/.\{148\}// 20197t nl 20198:delim 20199h 20200s/\(.\{148\}\)..*/\1/ 20201t more2 20202s/["\\]/\\&/g; s/^/"/; s/$/"/ 20203p 20204b 20205:more2 20206s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20207p 20208g 20209s/.\{148\}// 20210t delim 20211' <conf$$subs.awk | sed ' 20212/^[^""]/{ 20213 N 20214 s/\n// 20215} 20216' >>$CONFIG_STATUS || ac_write_fail=1 20217rm -f conf$$subs.awk 20218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20219_ACAWK 20220cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20221 for (key in S) S_is_set[key] = 1 20222 FS = "" 20223 20224} 20225{ 20226 line = $ 0 20227 nfields = split(line, field, "@") 20228 substed = 0 20229 len = length(field[1]) 20230 for (i = 2; i < nfields; i++) { 20231 key = field[i] 20232 keylen = length(key) 20233 if (S_is_set[key]) { 20234 value = S[key] 20235 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20236 len += length(value) + length(field[++i]) 20237 substed = 1 20238 } else 20239 len += 1 + keylen 20240 } 20241 20242 print line 20243} 20244 20245_ACAWK 20246_ACEOF 20247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20248if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20249 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20250else 20251 cat 20252fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20253 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20254_ACEOF 20255 20256# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20257# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20258# trailing colons and then remove the whole line if VPATH becomes empty 20259# (actually we leave an empty line to preserve line numbers). 20260if test "x$srcdir" = x.; then 20261 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20262h 20263s/// 20264s/^/:/ 20265s/[ ]*$/:/ 20266s/:\$(srcdir):/:/g 20267s/:\${srcdir}:/:/g 20268s/:@srcdir@:/:/g 20269s/^:*// 20270s/:*$// 20271x 20272s/\(=[ ]*\).*/\1/ 20273G 20274s/\n// 20275s/^[^=]*=[ ]*$// 20276}' 20277fi 20278 20279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20280fi # test -n "$CONFIG_FILES" 20281 20282# Set up the scripts for CONFIG_HEADERS section. 20283# No need to generate them if there are no CONFIG_HEADERS. 20284# This happens for instance with `./config.status Makefile'. 20285if test -n "$CONFIG_HEADERS"; then 20286cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20287BEGIN { 20288_ACEOF 20289 20290# Transform confdefs.h into an awk script `defines.awk', embedded as 20291# here-document in config.status, that substitutes the proper values into 20292# config.h.in to produce config.h. 20293 20294# Create a delimiter string that does not exist in confdefs.h, to ease 20295# handling of long lines. 20296ac_delim='%!_!# ' 20297for ac_last_try in false false :; do 20298 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20299 if test -z "$ac_tt"; then 20300 break 20301 elif $ac_last_try; then 20302 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20303 else 20304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20305 fi 20306done 20307 20308# For the awk script, D is an array of macro values keyed by name, 20309# likewise P contains macro parameters if any. Preserve backslash 20310# newline sequences. 20311 20312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20313sed -n ' 20314s/.\{148\}/&'"$ac_delim"'/g 20315t rset 20316:rset 20317s/^[ ]*#[ ]*define[ ][ ]*/ / 20318t def 20319d 20320:def 20321s/\\$// 20322t bsnl 20323s/["\\]/\\&/g 20324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20325D["\1"]=" \3"/p 20326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20327d 20328:bsnl 20329s/["\\]/\\&/g 20330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20331D["\1"]=" \3\\\\\\n"\\/p 20332t cont 20333s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20334t cont 20335d 20336:cont 20337n 20338s/.\{148\}/&'"$ac_delim"'/g 20339t clear 20340:clear 20341s/\\$// 20342t bsnlc 20343s/["\\]/\\&/g; s/^/"/; s/$/"/p 20344d 20345:bsnlc 20346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20347b cont 20348' <confdefs.h | sed ' 20349s/'"$ac_delim"'/"\\\ 20350"/g' >>$CONFIG_STATUS || ac_write_fail=1 20351 20352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20353 for (key in D) D_is_set[key] = 1 20354 FS = "" 20355} 20356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20357 line = \$ 0 20358 split(line, arg, " ") 20359 if (arg[1] == "#") { 20360 defundef = arg[2] 20361 mac1 = arg[3] 20362 } else { 20363 defundef = substr(arg[1], 2) 20364 mac1 = arg[2] 20365 } 20366 split(mac1, mac2, "(") #) 20367 macro = mac2[1] 20368 prefix = substr(line, 1, index(line, defundef) - 1) 20369 if (D_is_set[macro]) { 20370 # Preserve the white space surrounding the "#". 20371 print prefix "define", macro P[macro] D[macro] 20372 next 20373 } else { 20374 # Replace #undef with comments. This is necessary, for example, 20375 # in the case of _POSIX_SOURCE, which is predefined and required 20376 # on some systems where configure will not decide to define it. 20377 if (defundef == "undef") { 20378 print "/*", prefix defundef, macro, "*/" 20379 next 20380 } 20381 } 20382} 20383{ print } 20384_ACAWK 20385_ACEOF 20386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20387 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20388fi # test -n "$CONFIG_HEADERS" 20389 20390 20391eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20392shift 20393for ac_tag 20394do 20395 case $ac_tag in 20396 :[FHLC]) ac_mode=$ac_tag; continue;; 20397 esac 20398 case $ac_mode$ac_tag in 20399 :[FHL]*:*);; 20400 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20401 :[FH]-) ac_tag=-:-;; 20402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20403 esac 20404 ac_save_IFS=$IFS 20405 IFS=: 20406 set x $ac_tag 20407 IFS=$ac_save_IFS 20408 shift 20409 ac_file=$1 20410 shift 20411 20412 case $ac_mode in 20413 :L) ac_source=$1;; 20414 :[FH]) 20415 ac_file_inputs= 20416 for ac_f 20417 do 20418 case $ac_f in 20419 -) ac_f="$ac_tmp/stdin";; 20420 *) # Look for the file first in the build tree, then in the source tree 20421 # (if the path is not absolute). The absolute path cannot be DOS-style, 20422 # because $ac_f cannot contain `:'. 20423 test -f "$ac_f" || 20424 case $ac_f in 20425 [\\/$]*) false;; 20426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20427 esac || 20428 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20429 esac 20430 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20431 as_fn_append ac_file_inputs " '$ac_f'" 20432 done 20433 20434 # Let's still pretend it is `configure' which instantiates (i.e., don't 20435 # use $as_me), people would be surprised to read: 20436 # /* config.h. Generated by config.status. */ 20437 configure_input='Generated from '` 20438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20439 `' by configure.' 20440 if test x"$ac_file" != x-; then 20441 configure_input="$ac_file. $configure_input" 20442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20443$as_echo "$as_me: creating $ac_file" >&6;} 20444 fi 20445 # Neutralize special characters interpreted by sed in replacement strings. 20446 case $configure_input in #( 20447 *\&* | *\|* | *\\* ) 20448 ac_sed_conf_input=`$as_echo "$configure_input" | 20449 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20450 *) ac_sed_conf_input=$configure_input;; 20451 esac 20452 20453 case $ac_tag in 20454 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20456 esac 20457 ;; 20458 esac 20459 20460 ac_dir=`$as_dirname -- "$ac_file" || 20461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20462 X"$ac_file" : 'X\(//\)[^/]' \| \ 20463 X"$ac_file" : 'X\(//\)$' \| \ 20464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20465$as_echo X"$ac_file" | 20466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20467 s//\1/ 20468 q 20469 } 20470 /^X\(\/\/\)[^/].*/{ 20471 s//\1/ 20472 q 20473 } 20474 /^X\(\/\/\)$/{ 20475 s//\1/ 20476 q 20477 } 20478 /^X\(\/\).*/{ 20479 s//\1/ 20480 q 20481 } 20482 s/.*/./; q'` 20483 as_dir="$ac_dir"; as_fn_mkdir_p 20484 ac_builddir=. 20485 20486case "$ac_dir" in 20487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20488*) 20489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20490 # A ".." for each directory in $ac_dir_suffix. 20491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20492 case $ac_top_builddir_sub in 20493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20495 esac ;; 20496esac 20497ac_abs_top_builddir=$ac_pwd 20498ac_abs_builddir=$ac_pwd$ac_dir_suffix 20499# for backward compatibility: 20500ac_top_builddir=$ac_top_build_prefix 20501 20502case $srcdir in 20503 .) # We are building in place. 20504 ac_srcdir=. 20505 ac_top_srcdir=$ac_top_builddir_sub 20506 ac_abs_top_srcdir=$ac_pwd ;; 20507 [\\/]* | ?:[\\/]* ) # Absolute name. 20508 ac_srcdir=$srcdir$ac_dir_suffix; 20509 ac_top_srcdir=$srcdir 20510 ac_abs_top_srcdir=$srcdir ;; 20511 *) # Relative name. 20512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20513 ac_top_srcdir=$ac_top_build_prefix$srcdir 20514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20515esac 20516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20517 20518 20519 case $ac_mode in 20520 :F) 20521 # 20522 # CONFIG_FILE 20523 # 20524 20525 case $INSTALL in 20526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20528 esac 20529 ac_MKDIR_P=$MKDIR_P 20530 case $MKDIR_P in 20531 [\\/$]* | ?:[\\/]* ) ;; 20532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20533 esac 20534_ACEOF 20535 20536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20537# If the template does not know about datarootdir, expand it. 20538# FIXME: This hack should be removed a few years after 2.60. 20539ac_datarootdir_hack=; ac_datarootdir_seen= 20540ac_sed_dataroot=' 20541/datarootdir/ { 20542 p 20543 q 20544} 20545/@datadir@/p 20546/@docdir@/p 20547/@infodir@/p 20548/@localedir@/p 20549/@mandir@/p' 20550case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20551*datarootdir*) ac_datarootdir_seen=yes;; 20552*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20554$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20555_ACEOF 20556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20557 ac_datarootdir_hack=' 20558 s&@datadir@&$datadir&g 20559 s&@docdir@&$docdir&g 20560 s&@infodir@&$infodir&g 20561 s&@localedir@&$localedir&g 20562 s&@mandir@&$mandir&g 20563 s&\\\${datarootdir}&$datarootdir&g' ;; 20564esac 20565_ACEOF 20566 20567# Neutralize VPATH when `$srcdir' = `.'. 20568# Shell code in configure.ac might set extrasub. 20569# FIXME: do we really want to maintain this feature? 20570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20571ac_sed_extra="$ac_vpsub 20572$extrasub 20573_ACEOF 20574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20575:t 20576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20577s|@configure_input@|$ac_sed_conf_input|;t t 20578s&@top_builddir@&$ac_top_builddir_sub&;t t 20579s&@top_build_prefix@&$ac_top_build_prefix&;t t 20580s&@srcdir@&$ac_srcdir&;t t 20581s&@abs_srcdir@&$ac_abs_srcdir&;t t 20582s&@top_srcdir@&$ac_top_srcdir&;t t 20583s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20584s&@builddir@&$ac_builddir&;t t 20585s&@abs_builddir@&$ac_abs_builddir&;t t 20586s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20587s&@INSTALL@&$ac_INSTALL&;t t 20588s&@MKDIR_P@&$ac_MKDIR_P&;t t 20589$ac_datarootdir_hack 20590" 20591eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20592 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20593 20594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20595 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20597 "$ac_tmp/out"`; test -z "$ac_out"; } && 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20599which seems to be undefined. Please make sure it is defined" >&5 20600$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20601which seems to be undefined. Please make sure it is defined" >&2;} 20602 20603 rm -f "$ac_tmp/stdin" 20604 case $ac_file in 20605 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20606 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20607 esac \ 20608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20609 ;; 20610 :H) 20611 # 20612 # CONFIG_HEADER 20613 # 20614 if test x"$ac_file" != x-; then 20615 { 20616 $as_echo "/* $configure_input */" \ 20617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20618 } >"$ac_tmp/config.h" \ 20619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20620 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20622$as_echo "$as_me: $ac_file is unchanged" >&6;} 20623 else 20624 rm -f "$ac_file" 20625 mv "$ac_tmp/config.h" "$ac_file" \ 20626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20627 fi 20628 else 20629 $as_echo "/* $configure_input */" \ 20630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20631 || as_fn_error $? "could not create -" "$LINENO" 5 20632 fi 20633# Compute "$ac_file"'s index in $config_headers. 20634_am_arg="$ac_file" 20635_am_stamp_count=1 20636for _am_header in $config_headers :; do 20637 case $_am_header in 20638 $_am_arg | $_am_arg:* ) 20639 break ;; 20640 * ) 20641 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20642 esac 20643done 20644echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20645$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20646 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20647 X"$_am_arg" : 'X\(//\)$' \| \ 20648 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20649$as_echo X"$_am_arg" | 20650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20651 s//\1/ 20652 q 20653 } 20654 /^X\(\/\/\)[^/].*/{ 20655 s//\1/ 20656 q 20657 } 20658 /^X\(\/\/\)$/{ 20659 s//\1/ 20660 q 20661 } 20662 /^X\(\/\).*/{ 20663 s//\1/ 20664 q 20665 } 20666 s/.*/./; q'`/stamp-h$_am_stamp_count 20667 ;; 20668 20669 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20670$as_echo "$as_me: executing $ac_file commands" >&6;} 20671 ;; 20672 esac 20673 20674 20675 case $ac_file$ac_mode in 20676 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20677 # Older Autoconf quotes --file arguments for eval, but not when files 20678 # are listed without --file. Let's play safe and only enable the eval 20679 # if we detect the quoting. 20680 case $CONFIG_FILES in 20681 *\'*) eval set x "$CONFIG_FILES" ;; 20682 *) set x $CONFIG_FILES ;; 20683 esac 20684 shift 20685 for mf 20686 do 20687 # Strip MF so we end up with the name of the file. 20688 mf=`echo "$mf" | sed -e 's/:.*$//'` 20689 # Check whether this is an Automake generated Makefile or not. 20690 # We used to match only the files named 'Makefile.in', but 20691 # some people rename them; so instead we look at the file content. 20692 # Grep'ing the first line is not enough: some people post-process 20693 # each Makefile.in and add a new line on top of each file to say so. 20694 # Grep'ing the whole file is not good either: AIX grep has a line 20695 # limit of 2048, but all sed's we know have understand at least 4000. 20696 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20697 dirpart=`$as_dirname -- "$mf" || 20698$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20699 X"$mf" : 'X\(//\)[^/]' \| \ 20700 X"$mf" : 'X\(//\)$' \| \ 20701 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20702$as_echo X"$mf" | 20703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20704 s//\1/ 20705 q 20706 } 20707 /^X\(\/\/\)[^/].*/{ 20708 s//\1/ 20709 q 20710 } 20711 /^X\(\/\/\)$/{ 20712 s//\1/ 20713 q 20714 } 20715 /^X\(\/\).*/{ 20716 s//\1/ 20717 q 20718 } 20719 s/.*/./; q'` 20720 else 20721 continue 20722 fi 20723 # Extract the definition of DEPDIR, am__include, and am__quote 20724 # from the Makefile without running 'make'. 20725 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20726 test -z "$DEPDIR" && continue 20727 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20728 test -z "$am__include" && continue 20729 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20730 # Find all dependency output files, they are included files with 20731 # $(DEPDIR) in their names. We invoke sed twice because it is the 20732 # simplest approach to changing $(DEPDIR) to its actual value in the 20733 # expansion. 20734 for file in `sed -n " 20735 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20736 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20737 # Make sure the directory exists. 20738 test -f "$dirpart/$file" && continue 20739 fdir=`$as_dirname -- "$file" || 20740$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20741 X"$file" : 'X\(//\)[^/]' \| \ 20742 X"$file" : 'X\(//\)$' \| \ 20743 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20744$as_echo X"$file" | 20745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20746 s//\1/ 20747 q 20748 } 20749 /^X\(\/\/\)[^/].*/{ 20750 s//\1/ 20751 q 20752 } 20753 /^X\(\/\/\)$/{ 20754 s//\1/ 20755 q 20756 } 20757 /^X\(\/\).*/{ 20758 s//\1/ 20759 q 20760 } 20761 s/.*/./; q'` 20762 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20763 # echo "creating $dirpart/$file" 20764 echo '# dummy' > "$dirpart/$file" 20765 done 20766 done 20767} 20768 ;; 20769 "libtool":C) 20770 20771 # See if we are running on zsh, and set the options which allow our 20772 # commands through without removal of \ escapes. 20773 if test -n "${ZSH_VERSION+set}" ; then 20774 setopt NO_GLOB_SUBST 20775 fi 20776 20777 cfgfile="${ofile}T" 20778 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20779 $RM "$cfgfile" 20780 20781 cat <<_LT_EOF >> "$cfgfile" 20782#! $SHELL 20783 20784# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20785# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20787# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20788# 20789# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20790# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20791# Foundation, Inc. 20792# Written by Gordon Matzigkeit, 1996 20793# 20794# This file is part of GNU Libtool. 20795# 20796# GNU Libtool is free software; you can redistribute it and/or 20797# modify it under the terms of the GNU General Public License as 20798# published by the Free Software Foundation; either version 2 of 20799# the License, or (at your option) any later version. 20800# 20801# As a special exception to the GNU General Public License, 20802# if you distribute this file as part of a program or library that 20803# is built using GNU Libtool, you may include this file under the 20804# same distribution terms that you use for the rest of that program. 20805# 20806# GNU Libtool is distributed in the hope that it will be useful, 20807# but WITHOUT ANY WARRANTY; without even the implied warranty of 20808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20809# GNU General Public License for more details. 20810# 20811# You should have received a copy of the GNU General Public License 20812# along with GNU Libtool; see the file COPYING. If not, a copy 20813# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20814# obtained by writing to the Free Software Foundation, Inc., 20815# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20816 20817 20818# The names of the tagged configurations supported by this script. 20819available_tags="" 20820 20821# ### BEGIN LIBTOOL CONFIG 20822 20823# Which release of libtool.m4 was used? 20824macro_version=$macro_version 20825macro_revision=$macro_revision 20826 20827# Whether or not to build shared libraries. 20828build_libtool_libs=$enable_shared 20829 20830# Whether or not to build static libraries. 20831build_old_libs=$enable_static 20832 20833# What type of objects to build. 20834pic_mode=$pic_mode 20835 20836# Whether or not to optimize for fast installation. 20837fast_install=$enable_fast_install 20838 20839# Shell to use when invoking shell scripts. 20840SHELL=$lt_SHELL 20841 20842# An echo program that protects backslashes. 20843ECHO=$lt_ECHO 20844 20845# The PATH separator for the build system. 20846PATH_SEPARATOR=$lt_PATH_SEPARATOR 20847 20848# The host system. 20849host_alias=$host_alias 20850host=$host 20851host_os=$host_os 20852 20853# The build system. 20854build_alias=$build_alias 20855build=$build 20856build_os=$build_os 20857 20858# A sed program that does not truncate output. 20859SED=$lt_SED 20860 20861# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20862Xsed="\$SED -e 1s/^X//" 20863 20864# A grep program that handles long lines. 20865GREP=$lt_GREP 20866 20867# An ERE matcher. 20868EGREP=$lt_EGREP 20869 20870# A literal string matcher. 20871FGREP=$lt_FGREP 20872 20873# A BSD- or MS-compatible name lister. 20874NM=$lt_NM 20875 20876# Whether we need soft or hard links. 20877LN_S=$lt_LN_S 20878 20879# What is the maximum length of a command? 20880max_cmd_len=$max_cmd_len 20881 20882# Object file suffix (normally "o"). 20883objext=$ac_objext 20884 20885# Executable file suffix (normally ""). 20886exeext=$exeext 20887 20888# whether the shell understands "unset". 20889lt_unset=$lt_unset 20890 20891# turn spaces into newlines. 20892SP2NL=$lt_lt_SP2NL 20893 20894# turn newlines into spaces. 20895NL2SP=$lt_lt_NL2SP 20896 20897# convert \$build file names to \$host format. 20898to_host_file_cmd=$lt_cv_to_host_file_cmd 20899 20900# convert \$build files to toolchain format. 20901to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20902 20903# An object symbol dumper. 20904OBJDUMP=$lt_OBJDUMP 20905 20906# Method to check whether dependent libraries are shared objects. 20907deplibs_check_method=$lt_deplibs_check_method 20908 20909# Command to use when deplibs_check_method = "file_magic". 20910file_magic_cmd=$lt_file_magic_cmd 20911 20912# How to find potential files when deplibs_check_method = "file_magic". 20913file_magic_glob=$lt_file_magic_glob 20914 20915# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20916want_nocaseglob=$lt_want_nocaseglob 20917 20918# DLL creation program. 20919DLLTOOL=$lt_DLLTOOL 20920 20921# Command to associate shared and link libraries. 20922sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20923 20924# The archiver. 20925AR=$lt_AR 20926 20927# Flags to create an archive. 20928AR_FLAGS=$lt_AR_FLAGS 20929 20930# How to feed a file listing to the archiver. 20931archiver_list_spec=$lt_archiver_list_spec 20932 20933# A symbol stripping program. 20934STRIP=$lt_STRIP 20935 20936# Commands used to install an old-style archive. 20937RANLIB=$lt_RANLIB 20938old_postinstall_cmds=$lt_old_postinstall_cmds 20939old_postuninstall_cmds=$lt_old_postuninstall_cmds 20940 20941# Whether to use a lock for old archive extraction. 20942lock_old_archive_extraction=$lock_old_archive_extraction 20943 20944# A C compiler. 20945LTCC=$lt_CC 20946 20947# LTCC compiler flags. 20948LTCFLAGS=$lt_CFLAGS 20949 20950# Take the output of nm and produce a listing of raw symbols and C names. 20951global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20952 20953# Transform the output of nm in a proper C declaration. 20954global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20955 20956# Transform the output of nm in a C name address pair. 20957global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20958 20959# Transform the output of nm in a C name address pair when lib prefix is needed. 20960global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20961 20962# Specify filename containing input files for \$NM. 20963nm_file_list_spec=$lt_nm_file_list_spec 20964 20965# The root where to search for dependent libraries,and in which our libraries should be installed. 20966lt_sysroot=$lt_sysroot 20967 20968# The name of the directory that contains temporary libtool files. 20969objdir=$objdir 20970 20971# Used to examine libraries when file_magic_cmd begins with "file". 20972MAGIC_CMD=$MAGIC_CMD 20973 20974# Must we lock files when doing compilation? 20975need_locks=$lt_need_locks 20976 20977# Manifest tool. 20978MANIFEST_TOOL=$lt_MANIFEST_TOOL 20979 20980# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20981DSYMUTIL=$lt_DSYMUTIL 20982 20983# Tool to change global to local symbols on Mac OS X. 20984NMEDIT=$lt_NMEDIT 20985 20986# Tool to manipulate fat objects and archives on Mac OS X. 20987LIPO=$lt_LIPO 20988 20989# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20990OTOOL=$lt_OTOOL 20991 20992# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20993OTOOL64=$lt_OTOOL64 20994 20995# Old archive suffix (normally "a"). 20996libext=$libext 20997 20998# Shared library suffix (normally ".so"). 20999shrext_cmds=$lt_shrext_cmds 21000 21001# The commands to extract the exported symbol list from a shared archive. 21002extract_expsyms_cmds=$lt_extract_expsyms_cmds 21003 21004# Variables whose values should be saved in libtool wrapper scripts and 21005# restored at link time. 21006variables_saved_for_relink=$lt_variables_saved_for_relink 21007 21008# Do we need the "lib" prefix for modules? 21009need_lib_prefix=$need_lib_prefix 21010 21011# Do we need a version for libraries? 21012need_version=$need_version 21013 21014# Library versioning type. 21015version_type=$version_type 21016 21017# Shared library runtime path variable. 21018runpath_var=$runpath_var 21019 21020# Shared library path variable. 21021shlibpath_var=$shlibpath_var 21022 21023# Is shlibpath searched before the hard-coded library search path? 21024shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21025 21026# Format of library name prefix. 21027libname_spec=$lt_libname_spec 21028 21029# List of archive names. First name is the real one, the rest are links. 21030# The last name is the one that the linker finds with -lNAME 21031library_names_spec=$lt_library_names_spec 21032 21033# The coded name of the library, if different from the real name. 21034soname_spec=$lt_soname_spec 21035 21036# Permission mode override for installation of shared libraries. 21037install_override_mode=$lt_install_override_mode 21038 21039# Command to use after installation of a shared archive. 21040postinstall_cmds=$lt_postinstall_cmds 21041 21042# Command to use after uninstallation of a shared archive. 21043postuninstall_cmds=$lt_postuninstall_cmds 21044 21045# Commands used to finish a libtool library installation in a directory. 21046finish_cmds=$lt_finish_cmds 21047 21048# As "finish_cmds", except a single script fragment to be evaled but 21049# not shown. 21050finish_eval=$lt_finish_eval 21051 21052# Whether we should hardcode library paths into libraries. 21053hardcode_into_libs=$hardcode_into_libs 21054 21055# Compile-time system search path for libraries. 21056sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21057 21058# Run-time system search path for libraries. 21059sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21060 21061# Whether dlopen is supported. 21062dlopen_support=$enable_dlopen 21063 21064# Whether dlopen of programs is supported. 21065dlopen_self=$enable_dlopen_self 21066 21067# Whether dlopen of statically linked programs is supported. 21068dlopen_self_static=$enable_dlopen_self_static 21069 21070# Commands to strip libraries. 21071old_striplib=$lt_old_striplib 21072striplib=$lt_striplib 21073 21074 21075# The linker used to build libraries. 21076LD=$lt_LD 21077 21078# How to create reloadable object files. 21079reload_flag=$lt_reload_flag 21080reload_cmds=$lt_reload_cmds 21081 21082# Commands used to build an old-style archive. 21083old_archive_cmds=$lt_old_archive_cmds 21084 21085# A language specific compiler. 21086CC=$lt_compiler 21087 21088# Is the compiler the GNU compiler? 21089with_gcc=$GCC 21090 21091# Compiler flag to turn off builtin functions. 21092no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21093 21094# Additional compiler flags for building library objects. 21095pic_flag=$lt_lt_prog_compiler_pic 21096 21097# How to pass a linker flag through the compiler. 21098wl=$lt_lt_prog_compiler_wl 21099 21100# Compiler flag to prevent dynamic linking. 21101link_static_flag=$lt_lt_prog_compiler_static 21102 21103# Does compiler simultaneously support -c and -o options? 21104compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21105 21106# Whether or not to add -lc for building shared libraries. 21107build_libtool_need_lc=$archive_cmds_need_lc 21108 21109# Whether or not to disallow shared libs when runtime libs are static. 21110allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21111 21112# Compiler flag to allow reflexive dlopens. 21113export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21114 21115# Compiler flag to generate shared objects directly from archives. 21116whole_archive_flag_spec=$lt_whole_archive_flag_spec 21117 21118# Whether the compiler copes with passing no objects directly. 21119compiler_needs_object=$lt_compiler_needs_object 21120 21121# Create an old-style archive from a shared archive. 21122old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21123 21124# Create a temporary old-style archive to link instead of a shared archive. 21125old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21126 21127# Commands used to build a shared archive. 21128archive_cmds=$lt_archive_cmds 21129archive_expsym_cmds=$lt_archive_expsym_cmds 21130 21131# Commands used to build a loadable module if different from building 21132# a shared archive. 21133module_cmds=$lt_module_cmds 21134module_expsym_cmds=$lt_module_expsym_cmds 21135 21136# Whether we are building with GNU ld or not. 21137with_gnu_ld=$lt_with_gnu_ld 21138 21139# Flag that allows shared libraries with undefined symbols to be built. 21140allow_undefined_flag=$lt_allow_undefined_flag 21141 21142# Flag that enforces no undefined symbols. 21143no_undefined_flag=$lt_no_undefined_flag 21144 21145# Flag to hardcode \$libdir into a binary during linking. 21146# This must work even if \$libdir does not exist 21147hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21148 21149# Whether we need a single "-rpath" flag with a separated argument. 21150hardcode_libdir_separator=$lt_hardcode_libdir_separator 21151 21152# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21153# DIR into the resulting binary. 21154hardcode_direct=$hardcode_direct 21155 21156# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21157# DIR into the resulting binary and the resulting library dependency is 21158# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21159# library is relocated. 21160hardcode_direct_absolute=$hardcode_direct_absolute 21161 21162# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21163# into the resulting binary. 21164hardcode_minus_L=$hardcode_minus_L 21165 21166# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21167# into the resulting binary. 21168hardcode_shlibpath_var=$hardcode_shlibpath_var 21169 21170# Set to "yes" if building a shared library automatically hardcodes DIR 21171# into the library and all subsequent libraries and executables linked 21172# against it. 21173hardcode_automatic=$hardcode_automatic 21174 21175# Set to yes if linker adds runtime paths of dependent libraries 21176# to runtime path list. 21177inherit_rpath=$inherit_rpath 21178 21179# Whether libtool must link a program against all its dependency libraries. 21180link_all_deplibs=$link_all_deplibs 21181 21182# Set to "yes" if exported symbols are required. 21183always_export_symbols=$always_export_symbols 21184 21185# The commands to list exported symbols. 21186export_symbols_cmds=$lt_export_symbols_cmds 21187 21188# Symbols that should not be listed in the preloaded symbols. 21189exclude_expsyms=$lt_exclude_expsyms 21190 21191# Symbols that must always be exported. 21192include_expsyms=$lt_include_expsyms 21193 21194# Commands necessary for linking programs (against libraries) with templates. 21195prelink_cmds=$lt_prelink_cmds 21196 21197# Commands necessary for finishing linking programs. 21198postlink_cmds=$lt_postlink_cmds 21199 21200# Specify filename containing input files. 21201file_list_spec=$lt_file_list_spec 21202 21203# How to hardcode a shared library path into an executable. 21204hardcode_action=$hardcode_action 21205 21206# ### END LIBTOOL CONFIG 21207 21208_LT_EOF 21209 21210 case $host_os in 21211 aix3*) 21212 cat <<\_LT_EOF >> "$cfgfile" 21213# AIX sometimes has problems with the GCC collect2 program. For some 21214# reason, if we set the COLLECT_NAMES environment variable, the problems 21215# vanish in a puff of smoke. 21216if test "X${COLLECT_NAMES+set}" != Xset; then 21217 COLLECT_NAMES= 21218 export COLLECT_NAMES 21219fi 21220_LT_EOF 21221 ;; 21222 esac 21223 21224 21225ltmain="$ac_aux_dir/ltmain.sh" 21226 21227 21228 # We use sed instead of cat because bash on DJGPP gets confused if 21229 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21230 # text mode, it properly converts lines to CR/LF. This bash problem 21231 # is reportedly fixed, but why not run on old versions too? 21232 sed '$q' "$ltmain" >> "$cfgfile" \ 21233 || (rm -f "$cfgfile"; exit 1) 21234 21235 if test x"$xsi_shell" = xyes; then 21236 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21237func_dirname ()\ 21238{\ 21239\ case ${1} in\ 21240\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21241\ * ) func_dirname_result="${3}" ;;\ 21242\ esac\ 21243} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21244 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21246test 0 -eq $? || _lt_function_replace_fail=: 21247 21248 21249 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21250func_basename ()\ 21251{\ 21252\ func_basename_result="${1##*/}"\ 21253} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21254 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21256test 0 -eq $? || _lt_function_replace_fail=: 21257 21258 21259 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21260func_dirname_and_basename ()\ 21261{\ 21262\ case ${1} in\ 21263\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21264\ * ) func_dirname_result="${3}" ;;\ 21265\ esac\ 21266\ func_basename_result="${1##*/}"\ 21267} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21268 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21270test 0 -eq $? || _lt_function_replace_fail=: 21271 21272 21273 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21274func_stripname ()\ 21275{\ 21276\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21277\ # positional parameters, so assign one to ordinary parameter first.\ 21278\ func_stripname_result=${3}\ 21279\ func_stripname_result=${func_stripname_result#"${1}"}\ 21280\ func_stripname_result=${func_stripname_result%"${2}"}\ 21281} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21282 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21284test 0 -eq $? || _lt_function_replace_fail=: 21285 21286 21287 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21288func_split_long_opt ()\ 21289{\ 21290\ func_split_long_opt_name=${1%%=*}\ 21291\ func_split_long_opt_arg=${1#*=}\ 21292} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21293 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21295test 0 -eq $? || _lt_function_replace_fail=: 21296 21297 21298 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21299func_split_short_opt ()\ 21300{\ 21301\ func_split_short_opt_arg=${1#??}\ 21302\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21303} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21304 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21306test 0 -eq $? || _lt_function_replace_fail=: 21307 21308 21309 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21310func_lo2o ()\ 21311{\ 21312\ case ${1} in\ 21313\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21314\ *) func_lo2o_result=${1} ;;\ 21315\ esac\ 21316} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21317 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21319test 0 -eq $? || _lt_function_replace_fail=: 21320 21321 21322 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21323func_xform ()\ 21324{\ 21325 func_xform_result=${1%.*}.lo\ 21326} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21327 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21329test 0 -eq $? || _lt_function_replace_fail=: 21330 21331 21332 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21333func_arith ()\ 21334{\ 21335 func_arith_result=$(( $* ))\ 21336} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21337 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21339test 0 -eq $? || _lt_function_replace_fail=: 21340 21341 21342 sed -e '/^func_len ()$/,/^} # func_len /c\ 21343func_len ()\ 21344{\ 21345 func_len_result=${#1}\ 21346} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21347 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21349test 0 -eq $? || _lt_function_replace_fail=: 21350 21351fi 21352 21353if test x"$lt_shell_append" = xyes; then 21354 sed -e '/^func_append ()$/,/^} # func_append /c\ 21355func_append ()\ 21356{\ 21357 eval "${1}+=\\${2}"\ 21358} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21359 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21361test 0 -eq $? || _lt_function_replace_fail=: 21362 21363 21364 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21365func_append_quoted ()\ 21366{\ 21367\ func_quote_for_eval "${2}"\ 21368\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21369} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21370 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21372test 0 -eq $? || _lt_function_replace_fail=: 21373 21374 21375 # Save a `func_append' function call where possible by direct use of '+=' 21376 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21377 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21379 test 0 -eq $? || _lt_function_replace_fail=: 21380else 21381 # Save a `func_append' function call even when '+=' is not available 21382 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21383 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21384 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21385 test 0 -eq $? || _lt_function_replace_fail=: 21386fi 21387 21388if test x"$_lt_function_replace_fail" = x":"; then 21389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21390$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21391fi 21392 21393 21394 mv -f "$cfgfile" "$ofile" || 21395 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21396 chmod +x "$ofile" 21397 21398 ;; 21399 21400 esac 21401done # for ac_tag 21402 21403 21404as_fn_exit 0 21405_ACEOF 21406ac_clean_files=$ac_clean_files_save 21407 21408test $ac_write_fail = 0 || 21409 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21410 21411 21412# configure is writing to config.log, and then calls config.status. 21413# config.status does its own redirection, appending to config.log. 21414# Unfortunately, on DOS this fails, as config.log is still kept open 21415# by configure, so config.status won't be able to write to it; its 21416# output is simply discarded. So we exec the FD to /dev/null, 21417# effectively closing config.log, so it can be properly (re)opened and 21418# appended to by config.status. When coming back to configure, we 21419# need to make the FD available again. 21420if test "$no_create" != yes; then 21421 ac_cs_success=: 21422 ac_config_status_args= 21423 test "$silent" = yes && 21424 ac_config_status_args="$ac_config_status_args --quiet" 21425 exec 5>/dev/null 21426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21427 exec 5>>config.log 21428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21429 # would make configure fail if this is the last instruction. 21430 $ac_cs_success || as_fn_exit 1 21431fi 21432if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21434$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21435fi 21436 21437