configure revision c889a3bf
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXaw 1.0.12. 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='libXaw' 633PACKAGE_TARNAME='libXaw' 634PACKAGE_VERSION='1.0.12' 635PACKAGE_STRING='libXaw 1.0.12' 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 680BUILD_XAW7_FALSE 681BUILD_XAW7_TRUE 682BUILD_XAW6_FALSE 683BUILD_XAW6_TRUE 684XAW7_LIBS 685XAW7_CFLAGS 686XAW6_LIBS 687XAW6_CFLAGS 688PLATFORM_DARWIN_FALSE 689PLATFORM_DARWIN_TRUE 690PLATFORM_WIN32_FALSE 691PLATFORM_WIN32_TRUE 692LIBEXT 693HAVE_STYLESHEETS_FALSE 694HAVE_STYLESHEETS_TRUE 695XSL_STYLESHEET 696STYLESHEET_SRCDIR 697XORG_SGML_PATH 698HAVE_XSLTPROC_FALSE 699HAVE_XSLTPROC_TRUE 700XSLTPROC 701HAVE_FOP_FALSE 702HAVE_FOP_TRUE 703FOP 704HAVE_XMLTO_FALSE 705HAVE_XMLTO_TRUE 706HAVE_XMLTO_TEXT_FALSE 707HAVE_XMLTO_TEXT_TRUE 708XMLTO 709ENABLE_SPECS_FALSE 710ENABLE_SPECS_TRUE 711MAN_SUBSTS 712XORG_MAN_PAGE 713ADMIN_MAN_DIR 714DRIVER_MAN_DIR 715MISC_MAN_DIR 716FILE_MAN_DIR 717LIB_MAN_DIR 718APP_MAN_DIR 719ADMIN_MAN_SUFFIX 720DRIVER_MAN_SUFFIX 721MISC_MAN_SUFFIX 722FILE_MAN_SUFFIX 723LIB_MAN_SUFFIX 724APP_MAN_SUFFIX 725INSTALL_CMD 726PKG_CONFIG 727CHANGELOG_CMD 728STRICT_CFLAGS 729CWARNFLAGS 730BASE_CFLAGS 731CPP 732OTOOL64 733OTOOL 734LIPO 735NMEDIT 736DSYMUTIL 737MANIFEST_TOOL 738RANLIB 739ac_ct_AR 740AR 741DLLTOOL 742OBJDUMP 743LN_S 744NM 745ac_ct_DUMPBIN 746DUMPBIN 747LD 748FGREP 749EGREP 750GREP 751SED 752am__fastdepCC_FALSE 753am__fastdepCC_TRUE 754CCDEPMODE 755am__nodep 756AMDEPBACKSLASH 757AMDEP_FALSE 758AMDEP_TRUE 759am__quote 760am__include 761DEPDIR 762OBJEXT 763EXEEXT 764ac_ct_CC 765CPPFLAGS 766LDFLAGS 767CFLAGS 768CC 769host_os 770host_vendor 771host_cpu 772host 773build_os 774build_vendor 775build_cpu 776build 777LIBTOOL 778MAINT 779MAINTAINER_MODE_FALSE 780MAINTAINER_MODE_TRUE 781AM_BACKSLASH 782AM_DEFAULT_VERBOSITY 783AM_DEFAULT_V 784AM_V 785am__untar 786am__tar 787AMTAR 788am__leading_dot 789SET_MAKE 790AWK 791mkdir_p 792MKDIR_P 793INSTALL_STRIP_PROGRAM 794STRIP 795install_sh 796MAKEINFO 797AUTOHEADER 798AUTOMAKE 799AUTOCONF 800ACLOCAL 801VERSION 802PACKAGE 803CYGPATH_W 804am__isrc 805INSTALL_DATA 806INSTALL_SCRIPT 807INSTALL_PROGRAM 808target_alias 809host_alias 810build_alias 811LIBS 812ECHO_T 813ECHO_N 814ECHO_C 815DEFS 816mandir 817localedir 818libdir 819psdir 820pdfdir 821dvidir 822htmldir 823infodir 824docdir 825oldincludedir 826includedir 827localstatedir 828sharedstatedir 829sysconfdir 830datadir 831datarootdir 832libexecdir 833sbindir 834bindir 835program_transform_name 836prefix 837exec_prefix 838PACKAGE_URL 839PACKAGE_BUGREPORT 840PACKAGE_STRING 841PACKAGE_VERSION 842PACKAGE_TARNAME 843PACKAGE_NAME 844PATH_SEPARATOR 845SHELL' 846ac_subst_files='' 847ac_user_opts=' 848enable_option_checking 849enable_silent_rules 850enable_maintainer_mode 851enable_shared 852enable_static 853with_pic 854enable_fast_install 855enable_dependency_tracking 856with_gnu_ld 857with_sysroot 858enable_libtool_lock 859enable_selective_werror 860enable_strict_compilation 861enable_specs 862with_xmlto 863with_fop 864with_xsltproc 865enable_xaw6 866enable_xaw7 867' 868 ac_precious_vars='build_alias 869host_alias 870target_alias 871CC 872CFLAGS 873LDFLAGS 874LIBS 875CPPFLAGS 876CPP 877PKG_CONFIG 878XMLTO 879FOP 880XSLTPROC 881XAW6_CFLAGS 882XAW6_LIBS 883XAW7_CFLAGS 884XAW7_LIBS' 885 886 887# Initialize some variables set by options. 888ac_init_help= 889ac_init_version=false 890ac_unrecognized_opts= 891ac_unrecognized_sep= 892# The variables have the same names as the options, with 893# dashes changed to underlines. 894cache_file=/dev/null 895exec_prefix=NONE 896no_create= 897no_recursion= 898prefix=NONE 899program_prefix=NONE 900program_suffix=NONE 901program_transform_name=s,x,x, 902silent= 903site= 904srcdir= 905verbose= 906x_includes=NONE 907x_libraries=NONE 908 909# Installation directory options. 910# These are left unexpanded so users can "make install exec_prefix=/foo" 911# and all the variables that are supposed to be based on exec_prefix 912# by default will actually change. 913# Use braces instead of parens because sh, perl, etc. also accept them. 914# (The list follows the same order as the GNU Coding Standards.) 915bindir='${exec_prefix}/bin' 916sbindir='${exec_prefix}/sbin' 917libexecdir='${exec_prefix}/libexec' 918datarootdir='${prefix}/share' 919datadir='${datarootdir}' 920sysconfdir='${prefix}/etc' 921sharedstatedir='${prefix}/com' 922localstatedir='${prefix}/var' 923includedir='${prefix}/include' 924oldincludedir='/usr/include' 925docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 926infodir='${datarootdir}/info' 927htmldir='${docdir}' 928dvidir='${docdir}' 929pdfdir='${docdir}' 930psdir='${docdir}' 931libdir='${exec_prefix}/lib' 932localedir='${datarootdir}/locale' 933mandir='${datarootdir}/man' 934 935ac_prev= 936ac_dashdash= 937for ac_option 938do 939 # If the previous option needs an argument, assign it. 940 if test -n "$ac_prev"; then 941 eval $ac_prev=\$ac_option 942 ac_prev= 943 continue 944 fi 945 946 case $ac_option in 947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 948 *=) ac_optarg= ;; 949 *) ac_optarg=yes ;; 950 esac 951 952 # Accept the important Cygnus configure options, so we can diagnose typos. 953 954 case $ac_dashdash$ac_option in 955 --) 956 ac_dashdash=yes ;; 957 958 -bindir | --bindir | --bindi | --bind | --bin | --bi) 959 ac_prev=bindir ;; 960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 961 bindir=$ac_optarg ;; 962 963 -build | --build | --buil | --bui | --bu) 964 ac_prev=build_alias ;; 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 966 build_alias=$ac_optarg ;; 967 968 -cache-file | --cache-file | --cache-fil | --cache-fi \ 969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 970 ac_prev=cache_file ;; 971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 973 cache_file=$ac_optarg ;; 974 975 --config-cache | -C) 976 cache_file=config.cache ;; 977 978 -datadir | --datadir | --datadi | --datad) 979 ac_prev=datadir ;; 980 -datadir=* | --datadir=* | --datadi=* | --datad=*) 981 datadir=$ac_optarg ;; 982 983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 984 | --dataroo | --dataro | --datar) 985 ac_prev=datarootdir ;; 986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 988 datarootdir=$ac_optarg ;; 989 990 -disable-* | --disable-*) 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 994 as_fn_error $? "invalid feature name: $ac_useropt" 995 ac_useropt_orig=$ac_useropt 996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 997 case $ac_user_opts in 998 *" 999"enable_$ac_useropt" 1000"*) ;; 1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1002 ac_unrecognized_sep=', ';; 1003 esac 1004 eval enable_$ac_useropt=no ;; 1005 1006 -docdir | --docdir | --docdi | --doc | --do) 1007 ac_prev=docdir ;; 1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1009 docdir=$ac_optarg ;; 1010 1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1012 ac_prev=dvidir ;; 1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1014 dvidir=$ac_optarg ;; 1015 1016 -enable-* | --enable-*) 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1020 as_fn_error $? "invalid feature name: $ac_useropt" 1021 ac_useropt_orig=$ac_useropt 1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1023 case $ac_user_opts in 1024 *" 1025"enable_$ac_useropt" 1026"*) ;; 1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1028 ac_unrecognized_sep=', ';; 1029 esac 1030 eval enable_$ac_useropt=\$ac_optarg ;; 1031 1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1034 | --exec | --exe | --ex) 1035 ac_prev=exec_prefix ;; 1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1038 | --exec=* | --exe=* | --ex=*) 1039 exec_prefix=$ac_optarg ;; 1040 1041 -gas | --gas | --ga | --g) 1042 # Obsolete; use --with-gas. 1043 with_gas=yes ;; 1044 1045 -help | --help | --hel | --he | -h) 1046 ac_init_help=long ;; 1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1048 ac_init_help=recursive ;; 1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1050 ac_init_help=short ;; 1051 1052 -host | --host | --hos | --ho) 1053 ac_prev=host_alias ;; 1054 -host=* | --host=* | --hos=* | --ho=*) 1055 host_alias=$ac_optarg ;; 1056 1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1058 ac_prev=htmldir ;; 1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1060 | --ht=*) 1061 htmldir=$ac_optarg ;; 1062 1063 -includedir | --includedir | --includedi | --included | --include \ 1064 | --includ | --inclu | --incl | --inc) 1065 ac_prev=includedir ;; 1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1067 | --includ=* | --inclu=* | --incl=* | --inc=*) 1068 includedir=$ac_optarg ;; 1069 1070 -infodir | --infodir | --infodi | --infod | --info | --inf) 1071 ac_prev=infodir ;; 1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1073 infodir=$ac_optarg ;; 1074 1075 -libdir | --libdir | --libdi | --libd) 1076 ac_prev=libdir ;; 1077 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1078 libdir=$ac_optarg ;; 1079 1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1081 | --libexe | --libex | --libe) 1082 ac_prev=libexecdir ;; 1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1084 | --libexe=* | --libex=* | --libe=*) 1085 libexecdir=$ac_optarg ;; 1086 1087 -localedir | --localedir | --localedi | --localed | --locale) 1088 ac_prev=localedir ;; 1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1090 localedir=$ac_optarg ;; 1091 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1093 | --localstate | --localstat | --localsta | --localst | --locals) 1094 ac_prev=localstatedir ;; 1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1097 localstatedir=$ac_optarg ;; 1098 1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1100 ac_prev=mandir ;; 1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1102 mandir=$ac_optarg ;; 1103 1104 -nfp | --nfp | --nf) 1105 # Obsolete; use --without-fp. 1106 with_fp=no ;; 1107 1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1109 | --no-cr | --no-c | -n) 1110 no_create=yes ;; 1111 1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1114 no_recursion=yes ;; 1115 1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1118 | --oldin | --oldi | --old | --ol | --o) 1119 ac_prev=oldincludedir ;; 1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1123 oldincludedir=$ac_optarg ;; 1124 1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1126 ac_prev=prefix ;; 1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1128 prefix=$ac_optarg ;; 1129 1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1131 | --program-pre | --program-pr | --program-p) 1132 ac_prev=program_prefix ;; 1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1135 program_prefix=$ac_optarg ;; 1136 1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1138 | --program-suf | --program-su | --program-s) 1139 ac_prev=program_suffix ;; 1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1142 program_suffix=$ac_optarg ;; 1143 1144 -program-transform-name | --program-transform-name \ 1145 | --program-transform-nam | --program-transform-na \ 1146 | --program-transform-n | --program-transform- \ 1147 | --program-transform | --program-transfor \ 1148 | --program-transfo | --program-transf \ 1149 | --program-trans | --program-tran \ 1150 | --progr-tra | --program-tr | --program-t) 1151 ac_prev=program_transform_name ;; 1152 -program-transform-name=* | --program-transform-name=* \ 1153 | --program-transform-nam=* | --program-transform-na=* \ 1154 | --program-transform-n=* | --program-transform-=* \ 1155 | --program-transform=* | --program-transfor=* \ 1156 | --program-transfo=* | --program-transf=* \ 1157 | --program-trans=* | --program-tran=* \ 1158 | --progr-tra=* | --program-tr=* | --program-t=*) 1159 program_transform_name=$ac_optarg ;; 1160 1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1162 ac_prev=pdfdir ;; 1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1164 pdfdir=$ac_optarg ;; 1165 1166 -psdir | --psdir | --psdi | --psd | --ps) 1167 ac_prev=psdir ;; 1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1169 psdir=$ac_optarg ;; 1170 1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1172 | -silent | --silent | --silen | --sile | --sil) 1173 silent=yes ;; 1174 1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1176 ac_prev=sbindir ;; 1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1178 | --sbi=* | --sb=*) 1179 sbindir=$ac_optarg ;; 1180 1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1183 | --sharedst | --shareds | --shared | --share | --shar \ 1184 | --sha | --sh) 1185 ac_prev=sharedstatedir ;; 1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1189 | --sha=* | --sh=*) 1190 sharedstatedir=$ac_optarg ;; 1191 1192 -site | --site | --sit) 1193 ac_prev=site ;; 1194 -site=* | --site=* | --sit=*) 1195 site=$ac_optarg ;; 1196 1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1198 ac_prev=srcdir ;; 1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1200 srcdir=$ac_optarg ;; 1201 1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1203 | --syscon | --sysco | --sysc | --sys | --sy) 1204 ac_prev=sysconfdir ;; 1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1207 sysconfdir=$ac_optarg ;; 1208 1209 -target | --target | --targe | --targ | --tar | --ta | --t) 1210 ac_prev=target_alias ;; 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1212 target_alias=$ac_optarg ;; 1213 1214 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1215 verbose=yes ;; 1216 1217 -version | --version | --versio | --versi | --vers | -V) 1218 ac_init_version=: ;; 1219 1220 -with-* | --with-*) 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1224 as_fn_error $? "invalid package name: $ac_useropt" 1225 ac_useropt_orig=$ac_useropt 1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1227 case $ac_user_opts in 1228 *" 1229"with_$ac_useropt" 1230"*) ;; 1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1232 ac_unrecognized_sep=', ';; 1233 esac 1234 eval with_$ac_useropt=\$ac_optarg ;; 1235 1236 -without-* | --without-*) 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1238 # Reject names that are not valid shell variable names. 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1240 as_fn_error $? "invalid package name: $ac_useropt" 1241 ac_useropt_orig=$ac_useropt 1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1243 case $ac_user_opts in 1244 *" 1245"with_$ac_useropt" 1246"*) ;; 1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1248 ac_unrecognized_sep=', ';; 1249 esac 1250 eval with_$ac_useropt=no ;; 1251 1252 --x) 1253 # Obsolete; use --with-x. 1254 with_x=yes ;; 1255 1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1257 | --x-incl | --x-inc | --x-in | --x-i) 1258 ac_prev=x_includes ;; 1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1261 x_includes=$ac_optarg ;; 1262 1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1265 ac_prev=x_libraries ;; 1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1268 x_libraries=$ac_optarg ;; 1269 1270 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1271Try \`$0 --help' for more information" 1272 ;; 1273 1274 *=*) 1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1276 # Reject names that are not valid shell variable names. 1277 case $ac_envvar in #( 1278 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1280 esac 1281 eval $ac_envvar=\$ac_optarg 1282 export $ac_envvar ;; 1283 1284 *) 1285 # FIXME: should be removed in autoconf 3.0. 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1290 ;; 1291 1292 esac 1293done 1294 1295if test -n "$ac_prev"; then 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1297 as_fn_error $? "missing argument to $ac_option" 1298fi 1299 1300if test -n "$ac_unrecognized_opts"; then 1301 case $enable_option_checking in 1302 no) ;; 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1305 esac 1306fi 1307 1308# Check all directory arguments for consistency. 1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1310 datadir sysconfdir sharedstatedir localstatedir includedir \ 1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1312 libdir localedir mandir 1313do 1314 eval ac_val=\$$ac_var 1315 # Remove trailing slashes. 1316 case $ac_val in 1317 */ ) 1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1319 eval $ac_var=\$ac_val;; 1320 esac 1321 # Be sure to have absolute directory names. 1322 case $ac_val in 1323 [\\/$]* | ?:[\\/]* ) continue;; 1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1325 esac 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1327done 1328 1329# There might be people who depend on the old broken behavior: `$host' 1330# used to hold the argument of --host etc. 1331# FIXME: To remove some day. 1332build=$build_alias 1333host=$host_alias 1334target=$target_alias 1335 1336# FIXME: To remove some day. 1337if test "x$host_alias" != x; then 1338 if test "x$build_alias" = x; then 1339 cross_compiling=maybe 1340 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1341 If a cross compiler is detected then cross compile mode will be used" >&2 1342 elif test "x$build_alias" != "x$host_alias"; then 1343 cross_compiling=yes 1344 fi 1345fi 1346 1347ac_tool_prefix= 1348test -n "$host_alias" && ac_tool_prefix=$host_alias- 1349 1350test "$silent" = yes && exec 6>/dev/null 1351 1352 1353ac_pwd=`pwd` && test -n "$ac_pwd" && 1354ac_ls_di=`ls -di .` && 1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1356 as_fn_error $? "working directory cannot be determined" 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1358 as_fn_error $? "pwd does not report name of working directory" 1359 1360 1361# Find the source files, if location was not specified. 1362if test -z "$srcdir"; then 1363 ac_srcdir_defaulted=yes 1364 # Try the directory containing this script, then the parent directory. 1365 ac_confdir=`$as_dirname -- "$as_myself" || 1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1367 X"$as_myself" : 'X\(//\)[^/]' \| \ 1368 X"$as_myself" : 'X\(//\)$' \| \ 1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1370$as_echo X"$as_myself" | 1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\/\)[^/].*/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\/\)$/{ 1380 s//\1/ 1381 q 1382 } 1383 /^X\(\/\).*/{ 1384 s//\1/ 1385 q 1386 } 1387 s/.*/./; q'` 1388 srcdir=$ac_confdir 1389 if test ! -r "$srcdir/$ac_unique_file"; then 1390 srcdir=.. 1391 fi 1392else 1393 ac_srcdir_defaulted=no 1394fi 1395if test ! -r "$srcdir/$ac_unique_file"; then 1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1398fi 1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1400ac_abs_confdir=`( 1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1402 pwd)` 1403# When building in place, set srcdir=. 1404if test "$ac_abs_confdir" = "$ac_pwd"; then 1405 srcdir=. 1406fi 1407# Remove unnecessary trailing slashes from srcdir. 1408# Double slashes in file names in object file debugging info 1409# mess up M-x gdb in Emacs. 1410case $srcdir in 1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1412esac 1413for ac_var in $ac_precious_vars; do 1414 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1415 eval ac_env_${ac_var}_value=\$${ac_var} 1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1418done 1419 1420# 1421# Report the --help message. 1422# 1423if test "$ac_init_help" = "long"; then 1424 # Omit some internal or obsolete options to make the list less imposing. 1425 # This message is too long to be a string in the A/UX 3.1 sh. 1426 cat <<_ACEOF 1427\`configure' configures libXaw 1.0.12 to adapt to many kinds of systems. 1428 1429Usage: $0 [OPTION]... [VAR=VALUE]... 1430 1431To assign environment variables (e.g., CC, CFLAGS...), specify them as 1432VAR=VALUE. See below for descriptions of some of the useful variables. 1433 1434Defaults for the options are specified in brackets. 1435 1436Configuration: 1437 -h, --help display this help and exit 1438 --help=short display options specific to this package 1439 --help=recursive display the short help of all the included packages 1440 -V, --version display version information and exit 1441 -q, --quiet, --silent do not print \`checking ...' messages 1442 --cache-file=FILE cache test results in FILE [disabled] 1443 -C, --config-cache alias for \`--cache-file=config.cache' 1444 -n, --no-create do not create output files 1445 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1446 1447Installation directories: 1448 --prefix=PREFIX install architecture-independent files in PREFIX 1449 [$ac_default_prefix] 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1451 [PREFIX] 1452 1453By default, \`make install' will install all the files in 1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1455an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1456for instance \`--prefix=\$HOME'. 1457 1458For better control, use the options below. 1459 1460Fine tuning of the installation directories: 1461 --bindir=DIR user executables [EPREFIX/bin] 1462 --sbindir=DIR system admin executables [EPREFIX/sbin] 1463 --libexecdir=DIR program executables [EPREFIX/libexec] 1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1467 --libdir=DIR object code libraries [EPREFIX/lib] 1468 --includedir=DIR C header files [PREFIX/include] 1469 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1472 --infodir=DIR info documentation [DATAROOTDIR/info] 1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1474 --mandir=DIR man documentation [DATAROOTDIR/man] 1475 --docdir=DIR documentation root [DATAROOTDIR/doc/libXaw] 1476 --htmldir=DIR html documentation [DOCDIR] 1477 --dvidir=DIR dvi documentation [DOCDIR] 1478 --pdfdir=DIR pdf documentation [DOCDIR] 1479 --psdir=DIR ps documentation [DOCDIR] 1480_ACEOF 1481 1482 cat <<\_ACEOF 1483 1484Program names: 1485 --program-prefix=PREFIX prepend PREFIX to installed program names 1486 --program-suffix=SUFFIX append SUFFIX to installed program names 1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492_ACEOF 1493fi 1494 1495if test -n "$ac_init_help"; then 1496 case $ac_init_help in 1497 short | recursive ) echo "Configuration of libXaw 1.0.12:";; 1498 esac 1499 cat <<\_ACEOF 1500 1501Optional Features: 1502 --disable-option-checking ignore unrecognized --enable/--with options 1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1505 --enable-silent-rules less verbose build output (undo: "make V=1") 1506 --disable-silent-rules verbose build output (undo: "make V=0") 1507 --enable-maintainer-mode 1508 enable make rules and dependencies not useful (and 1509 sometimes confusing) to the casual installer 1510 --enable-shared[=PKGS] build shared libraries [default=yes] 1511 --enable-static[=PKGS] build static libraries [default=yes] 1512 --enable-fast-install[=PKGS] 1513 optimize for fast installation [default=yes] 1514 --enable-dependency-tracking 1515 do not reject slow dependency extractors 1516 --disable-dependency-tracking 1517 speeds up one-time build 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 --disable-selective-werror 1520 Turn off selective compiler errors. (default: 1521 enabled) 1522 --enable-strict-compilation 1523 Enable all warnings from compiler and make them 1524 errors (default: disabled) 1525 --enable-specs Enable building the specs (default: yes) 1526 --disable-xaw6 Disable building of libXaw.so.6 1527 --disable-xaw7 Disable building of libXaw.so.7 1528 1529Optional Packages: 1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1532 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1533 both] 1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1535 --with-sysroot=DIR Search for dependent libraries within DIR 1536 (or the compiler's sysroot if not specified). 1537 --with-xmlto Use xmlto to regenerate documentation (default: 1538 auto) 1539 --with-fop Use fop to regenerate documentation (default: auto) 1540 --with-xsltproc Use xsltproc for the transformation of XML documents 1541 (default: auto) 1542 1543Some influential environment variables: 1544 CC C compiler command 1545 CFLAGS C compiler flags 1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1547 nonstandard directory <lib dir> 1548 LIBS libraries to pass to the linker, e.g. -l<library> 1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1550 you have headers in a nonstandard directory <include dir> 1551 CPP C preprocessor 1552 PKG_CONFIG path to pkg-config utility 1553 XMLTO Path to xmlto command 1554 FOP Path to fop command 1555 XSLTPROC Path to xsltproc command 1556 XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config 1557 XAW6_LIBS linker flags for XAW6, overriding pkg-config 1558 XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config 1559 XAW7_LIBS linker flags for XAW7, overriding pkg-config 1560 1561Use these variables to override the choices made by `configure' or to help 1562it to find libraries and programs with nonstandard names/locations. 1563 1564Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1565_ACEOF 1566ac_status=$? 1567fi 1568 1569if test "$ac_init_help" = "recursive"; then 1570 # If there are subdirs, report their specific --help. 1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1572 test -d "$ac_dir" || 1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1574 continue 1575 ac_builddir=. 1576 1577case "$ac_dir" in 1578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579*) 1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1581 # A ".." for each directory in $ac_dir_suffix. 1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1583 case $ac_top_builddir_sub in 1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1586 esac ;; 1587esac 1588ac_abs_top_builddir=$ac_pwd 1589ac_abs_builddir=$ac_pwd$ac_dir_suffix 1590# for backward compatibility: 1591ac_top_builddir=$ac_top_build_prefix 1592 1593case $srcdir in 1594 .) # We are building in place. 1595 ac_srcdir=. 1596 ac_top_srcdir=$ac_top_builddir_sub 1597 ac_abs_top_srcdir=$ac_pwd ;; 1598 [\\/]* | ?:[\\/]* ) # Absolute name. 1599 ac_srcdir=$srcdir$ac_dir_suffix; 1600 ac_top_srcdir=$srcdir 1601 ac_abs_top_srcdir=$srcdir ;; 1602 *) # Relative name. 1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1604 ac_top_srcdir=$ac_top_build_prefix$srcdir 1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1606esac 1607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1608 1609 cd "$ac_dir" || { ac_status=$?; continue; } 1610 # Check for guested configure. 1611 if test -f "$ac_srcdir/configure.gnu"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1614 elif test -f "$ac_srcdir/configure"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure" --help=recursive 1617 else 1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1619 fi || ac_status=$? 1620 cd "$ac_pwd" || { ac_status=$?; break; } 1621 done 1622fi 1623 1624test -n "$ac_init_help" && exit $ac_status 1625if $ac_init_version; then 1626 cat <<\_ACEOF 1627libXaw configure 1.0.12 1628generated by GNU Autoconf 2.68 1629 1630Copyright (C) 2010 Free Software Foundation, Inc. 1631This configure script is free software; the Free Software Foundation 1632gives unlimited permission to copy, distribute and modify it. 1633_ACEOF 1634 exit 1635fi 1636 1637## ------------------------ ## 1638## Autoconf initialization. ## 1639## ------------------------ ## 1640 1641# ac_fn_c_try_compile LINENO 1642# -------------------------- 1643# Try to compile conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext 1648 if { { ac_try="$ac_compile" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_compile") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest.$ac_objext; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_compile 1678 1679# ac_fn_c_try_link LINENO 1680# ----------------------- 1681# Try to link conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_link () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 rm -f conftest.$ac_objext conftest$ac_exeext 1686 if { { ac_try="$ac_link" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_link") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { 1702 test -z "$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 } && test -s conftest$ac_exeext && { 1705 test "$cross_compiling" = yes || 1706 $as_test_x conftest$ac_exeext 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1717 # interfere with the next link command; also delete a directory that is 1718 # left behind by Apple's compiler. We do this before executing the actions. 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_link 1724 1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1726# ------------------------------------------------------- 1727# Tests whether HEADER exists and can be compiled using the include files in 1728# INCLUDES, setting the cache variable VAR accordingly. 1729ac_fn_c_check_header_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO"; then : 1743 eval "$3=yes" 1744else 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_cpp LINENO 1757# ---------------------- 1758# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_cpp () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if { { ac_try="$ac_cpp conftest.$ac_ext" 1763case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1770 ac_status=$? 1771 if test -s conftest.err; then 1772 grep -v '^ *+' conftest.err >conftest.er1 1773 cat conftest.er1 >&5 1774 mv -f conftest.er1 conftest.err 1775 fi 1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1777 test $ac_status = 0; } > conftest.i && { 1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1779 test ! -s conftest.err 1780 }; then : 1781 ac_retval=0 1782else 1783 $as_echo "$as_me: failed program was:" >&5 1784sed 's/^/| /' conftest.$ac_ext >&5 1785 1786 ac_retval=1 1787fi 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 as_fn_set_status $ac_retval 1790 1791} # ac_fn_c_try_cpp 1792 1793# ac_fn_c_try_run LINENO 1794# ---------------------- 1795# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1796# that executables *can* be run. 1797ac_fn_c_try_run () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 if { { ac_try="$ac_link" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_link") 2>&5 1808 ac_status=$? 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1811 { { case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_try") 2>&5 1818 ac_status=$? 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; }; }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: program exited with status $ac_status" >&5 1824 $as_echo "$as_me: failed program was:" >&5 1825sed 's/^/| /' conftest.$ac_ext >&5 1826 1827 ac_retval=$ac_status 1828fi 1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 as_fn_set_status $ac_retval 1832 1833} # ac_fn_c_try_run 1834 1835# ac_fn_c_check_func LINENO FUNC VAR 1836# ---------------------------------- 1837# Tests whether FUNC exists, setting the cache variable VAR accordingly 1838ac_fn_c_check_func () 1839{ 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1842$as_echo_n "checking for $2... " >&6; } 1843if eval \${$3+:} false; then : 1844 $as_echo_n "(cached) " >&6 1845else 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1850#define $2 innocuous_$2 1851 1852/* System header to define __stub macros and hopefully few prototypes, 1853 which can conflict with char $2 (); below. 1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1855 <limits.h> exists even on freestanding compilers. */ 1856 1857#ifdef __STDC__ 1858# include <limits.h> 1859#else 1860# include <assert.h> 1861#endif 1862 1863#undef $2 1864 1865/* Override any GCC internal prototype to avoid an error. 1866 Use char because int might match the return type of a GCC 1867 builtin and then its argument prototype would still apply. */ 1868#ifdef __cplusplus 1869extern "C" 1870#endif 1871char $2 (); 1872/* The GNU C library defines this for functions which it implements 1873 to always fail with ENOSYS. Some functions are actually named 1874 something starting with __ and the normal name is an alias. */ 1875#if defined __stub_$2 || defined __stub___$2 1876choke me 1877#endif 1878 1879int 1880main () 1881{ 1882return $2 (); 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887if ac_fn_c_try_link "$LINENO"; then : 1888 eval "$3=yes" 1889else 1890 eval "$3=no" 1891fi 1892rm -f core conftest.err conftest.$ac_objext \ 1893 conftest$ac_exeext conftest.$ac_ext 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 1900} # ac_fn_c_check_func 1901 1902# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1903# --------------------------------------------- 1904# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1905# accordingly. 1906ac_fn_c_check_decl () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 as_decl_name=`echo $2|sed 's/ *(.*//'` 1910 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1912$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1913if eval \${$3+:} false; then : 1914 $as_echo_n "(cached) " >&6 1915else 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918$4 1919int 1920main () 1921{ 1922#ifndef $as_decl_name 1923#ifdef __cplusplus 1924 (void) $as_decl_use; 1925#else 1926 (void) $as_decl_name; 1927#endif 1928#endif 1929 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934if ac_fn_c_try_compile "$LINENO"; then : 1935 eval "$3=yes" 1936else 1937 eval "$3=no" 1938fi 1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1940fi 1941eval ac_res=\$$3 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1943$as_echo "$ac_res" >&6; } 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1945 1946} # ac_fn_c_check_decl 1947 1948# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1949# ------------------------------------------------------- 1950# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1951# the include files in INCLUDES and setting the cache variable VAR 1952# accordingly. 1953ac_fn_c_check_header_mongrel () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 if eval \${$3+:} false; then : 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961fi 1962eval ac_res=\$$3 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964$as_echo "$ac_res" >&6; } 1965else 1966 # Is the header compilable? 1967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1968$as_echo_n "checking $2 usability... " >&6; } 1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1970/* end confdefs.h. */ 1971$4 1972#include <$2> 1973_ACEOF 1974if ac_fn_c_try_compile "$LINENO"; then : 1975 ac_header_compiler=yes 1976else 1977 ac_header_compiler=no 1978fi 1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1981$as_echo "$ac_header_compiler" >&6; } 1982 1983# Is the header present? 1984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1985$as_echo_n "checking $2 presence... " >&6; } 1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988#include <$2> 1989_ACEOF 1990if ac_fn_c_try_cpp "$LINENO"; then : 1991 ac_header_preproc=yes 1992else 1993 ac_header_preproc=no 1994fi 1995rm -f conftest.err conftest.i conftest.$ac_ext 1996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1997$as_echo "$ac_header_preproc" >&6; } 1998 1999# So? What about this header? 2000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2001 yes:no: ) 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2003$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2006 ;; 2007 no:yes:* ) 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2009$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2011$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2013$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2015$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2017$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2018( $as_echo "## ---------------------------------------------------------------------- ## 2019## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2020## ---------------------------------------------------------------------- ##" 2021 ) | sed "s/^/$as_me: WARNING: /" >&2 2022 ;; 2023esac 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2025$as_echo_n "checking for $2... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028else 2029 eval "$3=\$ac_header_compiler" 2030fi 2031eval ac_res=\$$3 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2033$as_echo "$ac_res" >&6; } 2034fi 2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2036 2037} # ac_fn_c_check_header_mongrel 2038cat >config.log <<_ACEOF 2039This file contains any messages produced by compilers while 2040running configure, to aid debugging if configure makes a mistake. 2041 2042It was created by libXaw $as_me 1.0.12, which was 2043generated by GNU Autoconf 2.68. Invocation command line was 2044 2045 $ $0 $@ 2046 2047_ACEOF 2048exec 5>>config.log 2049{ 2050cat <<_ASUNAME 2051## --------- ## 2052## Platform. ## 2053## --------- ## 2054 2055hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2056uname -m = `(uname -m) 2>/dev/null || echo unknown` 2057uname -r = `(uname -r) 2>/dev/null || echo unknown` 2058uname -s = `(uname -s) 2>/dev/null || echo unknown` 2059uname -v = `(uname -v) 2>/dev/null || echo unknown` 2060 2061/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2062/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2063 2064/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2065/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2066/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2067/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2068/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2069/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2070/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2071 2072_ASUNAME 2073 2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2075for as_dir in $PATH 2076do 2077 IFS=$as_save_IFS 2078 test -z "$as_dir" && as_dir=. 2079 $as_echo "PATH: $as_dir" 2080 done 2081IFS=$as_save_IFS 2082 2083} >&5 2084 2085cat >&5 <<_ACEOF 2086 2087 2088## ----------- ## 2089## Core tests. ## 2090## ----------- ## 2091 2092_ACEOF 2093 2094 2095# Keep a trace of the command line. 2096# Strip out --no-create and --no-recursion so they do not pile up. 2097# Strip out --silent because we don't want to record it for future runs. 2098# Also quote any args containing shell meta-characters. 2099# Make two passes to allow for proper duplicate-argument suppression. 2100ac_configure_args= 2101ac_configure_args0= 2102ac_configure_args1= 2103ac_must_keep_next=false 2104for ac_pass in 1 2 2105do 2106 for ac_arg 2107 do 2108 case $ac_arg in 2109 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2111 | -silent | --silent | --silen | --sile | --sil) 2112 continue ;; 2113 *\'*) 2114 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2115 esac 2116 case $ac_pass in 2117 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2118 2) 2119 as_fn_append ac_configure_args1 " '$ac_arg'" 2120 if test $ac_must_keep_next = true; then 2121 ac_must_keep_next=false # Got value, back to normal. 2122 else 2123 case $ac_arg in 2124 *=* | --config-cache | -C | -disable-* | --disable-* \ 2125 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2126 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2127 | -with-* | --with-* | -without-* | --without-* | --x) 2128 case "$ac_configure_args0 " in 2129 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2130 esac 2131 ;; 2132 -* ) ac_must_keep_next=true ;; 2133 esac 2134 fi 2135 as_fn_append ac_configure_args " '$ac_arg'" 2136 ;; 2137 esac 2138 done 2139done 2140{ ac_configure_args0=; unset ac_configure_args0;} 2141{ ac_configure_args1=; unset ac_configure_args1;} 2142 2143# When interrupted or exit'd, cleanup temporary files, and complete 2144# config.log. We remove comments because anyway the quotes in there 2145# would cause problems or look ugly. 2146# WARNING: Use '\'' to represent an apostrophe within the trap. 2147# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2148trap 'exit_status=$? 2149 # Save into config.log some information that might help in debugging. 2150 { 2151 echo 2152 2153 $as_echo "## ---------------- ## 2154## Cache variables. ## 2155## ---------------- ##" 2156 echo 2157 # The following way of writing the cache mishandles newlines in values, 2158( 2159 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2160 eval ac_val=\$$ac_var 2161 case $ac_val in #( 2162 *${as_nl}*) 2163 case $ac_var in #( 2164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2165$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2166 esac 2167 case $ac_var in #( 2168 _ | IFS | as_nl) ;; #( 2169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2170 *) { eval $ac_var=; unset $ac_var;} ;; 2171 esac ;; 2172 esac 2173 done 2174 (set) 2>&1 | 2175 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2176 *${as_nl}ac_space=\ *) 2177 sed -n \ 2178 "s/'\''/'\''\\\\'\'''\''/g; 2179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2180 ;; #( 2181 *) 2182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2183 ;; 2184 esac | 2185 sort 2186) 2187 echo 2188 2189 $as_echo "## ----------------- ## 2190## Output variables. ## 2191## ----------------- ##" 2192 echo 2193 for ac_var in $ac_subst_vars 2194 do 2195 eval ac_val=\$$ac_var 2196 case $ac_val in 2197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2198 esac 2199 $as_echo "$ac_var='\''$ac_val'\''" 2200 done | sort 2201 echo 2202 2203 if test -n "$ac_subst_files"; then 2204 $as_echo "## ------------------- ## 2205## File substitutions. ## 2206## ------------------- ##" 2207 echo 2208 for ac_var in $ac_subst_files 2209 do 2210 eval ac_val=\$$ac_var 2211 case $ac_val in 2212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2213 esac 2214 $as_echo "$ac_var='\''$ac_val'\''" 2215 done | sort 2216 echo 2217 fi 2218 2219 if test -s confdefs.h; then 2220 $as_echo "## ----------- ## 2221## confdefs.h. ## 2222## ----------- ##" 2223 echo 2224 cat confdefs.h 2225 echo 2226 fi 2227 test "$ac_signal" != 0 && 2228 $as_echo "$as_me: caught signal $ac_signal" 2229 $as_echo "$as_me: exit $exit_status" 2230 } >&5 2231 rm -f core *.core core.conftest.* && 2232 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2233 exit $exit_status 2234' 0 2235for ac_signal in 1 2 13 15; do 2236 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2237done 2238ac_signal=0 2239 2240# confdefs.h avoids OS command line length limits that DEFS can exceed. 2241rm -f -r conftest* confdefs.h 2242 2243$as_echo "/* confdefs.h */" > confdefs.h 2244 2245# Predefined preprocessor variables. 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PACKAGE_NAME "$PACKAGE_NAME" 2249_ACEOF 2250 2251cat >>confdefs.h <<_ACEOF 2252#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2253_ACEOF 2254 2255cat >>confdefs.h <<_ACEOF 2256#define PACKAGE_VERSION "$PACKAGE_VERSION" 2257_ACEOF 2258 2259cat >>confdefs.h <<_ACEOF 2260#define PACKAGE_STRING "$PACKAGE_STRING" 2261_ACEOF 2262 2263cat >>confdefs.h <<_ACEOF 2264#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2265_ACEOF 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_URL "$PACKAGE_URL" 2269_ACEOF 2270 2271 2272# Let the site file select an alternate cache file if it wants to. 2273# Prefer an explicitly selected file to automatically selected ones. 2274ac_site_file1=NONE 2275ac_site_file2=NONE 2276if test -n "$CONFIG_SITE"; then 2277 # We do not want a PATH search for config.site. 2278 case $CONFIG_SITE in #(( 2279 -*) ac_site_file1=./$CONFIG_SITE;; 2280 */*) ac_site_file1=$CONFIG_SITE;; 2281 *) ac_site_file1=./$CONFIG_SITE;; 2282 esac 2283elif test "x$prefix" != xNONE; then 2284 ac_site_file1=$prefix/share/config.site 2285 ac_site_file2=$prefix/etc/config.site 2286else 2287 ac_site_file1=$ac_default_prefix/share/config.site 2288 ac_site_file2=$ac_default_prefix/etc/config.site 2289fi 2290for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2291do 2292 test "x$ac_site_file" = xNONE && continue 2293 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2295$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2296 sed 's/^/| /' "$ac_site_file" >&5 2297 . "$ac_site_file" \ 2298 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2300as_fn_error $? "failed to load site script $ac_site_file 2301See \`config.log' for more details" "$LINENO" 5; } 2302 fi 2303done 2304 2305if test -r "$cache_file"; then 2306 # Some versions of bash will fail to source /dev/null (special files 2307 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2308 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2310$as_echo "$as_me: loading cache $cache_file" >&6;} 2311 case $cache_file in 2312 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2313 *) . "./$cache_file";; 2314 esac 2315 fi 2316else 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2318$as_echo "$as_me: creating cache $cache_file" >&6;} 2319 >$cache_file 2320fi 2321 2322# Check that the precious variables saved in the cache have kept the same 2323# value. 2324ac_cache_corrupted=false 2325for ac_var in $ac_precious_vars; do 2326 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2327 eval ac_new_set=\$ac_env_${ac_var}_set 2328 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2329 eval ac_new_val=\$ac_env_${ac_var}_value 2330 case $ac_old_set,$ac_new_set in 2331 set,) 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2333$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2334 ac_cache_corrupted=: ;; 2335 ,set) 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2337$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2338 ac_cache_corrupted=: ;; 2339 ,);; 2340 *) 2341 if test "x$ac_old_val" != "x$ac_new_val"; then 2342 # differences in whitespace do not lead to failure. 2343 ac_old_val_w=`echo x $ac_old_val` 2344 ac_new_val_w=`echo x $ac_new_val` 2345 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2347$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2348 ac_cache_corrupted=: 2349 else 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2351$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2352 eval $ac_var=\$ac_old_val 2353 fi 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2355$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2357$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2358 fi;; 2359 esac 2360 # Pass precious variables to config.status. 2361 if test "$ac_new_set" = set; then 2362 case $ac_new_val in 2363 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2364 *) ac_arg=$ac_var=$ac_new_val ;; 2365 esac 2366 case " $ac_configure_args " in 2367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2368 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2369 esac 2370 fi 2371done 2372if $ac_cache_corrupted; then 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2376$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2377 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2378fi 2379## -------------------- ## 2380## Main body of script. ## 2381## -------------------- ## 2382 2383ac_ext=c 2384ac_cpp='$CPP $CPPFLAGS' 2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2387ac_compiler_gnu=$ac_cv_c_compiler_gnu 2388 2389 2390 2391ac_config_headers="$ac_config_headers config.h" 2392 2393 2394# Initialize Automake 2395am__api_version='1.14' 2396 2397ac_aux_dir= 2398for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2399 if test -f "$ac_dir/install-sh"; then 2400 ac_aux_dir=$ac_dir 2401 ac_install_sh="$ac_aux_dir/install-sh -c" 2402 break 2403 elif test -f "$ac_dir/install.sh"; then 2404 ac_aux_dir=$ac_dir 2405 ac_install_sh="$ac_aux_dir/install.sh -c" 2406 break 2407 elif test -f "$ac_dir/shtool"; then 2408 ac_aux_dir=$ac_dir 2409 ac_install_sh="$ac_aux_dir/shtool install -c" 2410 break 2411 fi 2412done 2413if test -z "$ac_aux_dir"; then 2414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2415fi 2416 2417# These three variables are undocumented and unsupported, 2418# and are intended to be withdrawn in a future Autoconf release. 2419# They can cause serious problems if a builder's source tree is in a directory 2420# whose full name contains unusual characters. 2421ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2422ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2423ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2424 2425 2426# Find a good install program. We prefer a C program (faster), 2427# so one script is as good as another. But avoid the broken or 2428# incompatible versions: 2429# SysV /etc/install, /usr/sbin/install 2430# SunOS /usr/etc/install 2431# IRIX /sbin/install 2432# AIX /bin/install 2433# AmigaOS /C/install, which installs bootblocks on floppy discs 2434# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2435# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2436# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2437# OS/2's system install, which has a completely different semantic 2438# ./install, which can be erroneously created by make from ./install.sh. 2439# Reject install programs that cannot install multiple files. 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2441$as_echo_n "checking for a BSD-compatible install... " >&6; } 2442if test -z "$INSTALL"; then 2443if ${ac_cv_path_install+:} false; then : 2444 $as_echo_n "(cached) " >&6 2445else 2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2447for as_dir in $PATH 2448do 2449 IFS=$as_save_IFS 2450 test -z "$as_dir" && as_dir=. 2451 # Account for people who put trailing slashes in PATH elements. 2452case $as_dir/ in #(( 2453 ./ | .// | /[cC]/* | \ 2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2455 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2456 /usr/ucb/* ) ;; 2457 *) 2458 # OSF1 and SCO ODT 3.0 have their own names for install. 2459 # Don't use installbsd from OSF since it installs stuff as root 2460 # by default. 2461 for ac_prog in ginstall scoinst install; do 2462 for ac_exec_ext in '' $ac_executable_extensions; do 2463 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2464 if test $ac_prog = install && 2465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2466 # AIX install. It has an incompatible calling convention. 2467 : 2468 elif test $ac_prog = install && 2469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2470 # program-specific install script used by HP pwplus--don't use. 2471 : 2472 else 2473 rm -rf conftest.one conftest.two conftest.dir 2474 echo one > conftest.one 2475 echo two > conftest.two 2476 mkdir conftest.dir 2477 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2478 test -s conftest.one && test -s conftest.two && 2479 test -s conftest.dir/conftest.one && 2480 test -s conftest.dir/conftest.two 2481 then 2482 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2483 break 3 2484 fi 2485 fi 2486 fi 2487 done 2488 done 2489 ;; 2490esac 2491 2492 done 2493IFS=$as_save_IFS 2494 2495rm -rf conftest.one conftest.two conftest.dir 2496 2497fi 2498 if test "${ac_cv_path_install+set}" = set; then 2499 INSTALL=$ac_cv_path_install 2500 else 2501 # As a last resort, use the slow shell script. Don't cache a 2502 # value for INSTALL within a source directory, because that will 2503 # break other packages using the cache if that directory is 2504 # removed, or if the value is a relative name. 2505 INSTALL=$ac_install_sh 2506 fi 2507fi 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2509$as_echo "$INSTALL" >&6; } 2510 2511# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2512# It thinks the first close brace ends the variable substitution. 2513test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2514 2515test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2516 2517test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2518 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2520$as_echo_n "checking whether build environment is sane... " >&6; } 2521# Reject unsafe characters in $srcdir or the absolute working directory 2522# name. Accept space and tab only in the latter. 2523am_lf=' 2524' 2525case `pwd` in 2526 *[\\\"\#\$\&\'\`$am_lf]*) 2527 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2528esac 2529case $srcdir in 2530 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2531 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2532esac 2533 2534# Do 'set' in a subshell so we don't clobber the current shell's 2535# arguments. Must try -L first in case configure is actually a 2536# symlink; some systems play weird games with the mod time of symlinks 2537# (eg FreeBSD returns the mod time of the symlink's containing 2538# directory). 2539if ( 2540 am_has_slept=no 2541 for am_try in 1 2; do 2542 echo "timestamp, slept: $am_has_slept" > conftest.file 2543 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2544 if test "$*" = "X"; then 2545 # -L didn't work. 2546 set X `ls -t "$srcdir/configure" conftest.file` 2547 fi 2548 if test "$*" != "X $srcdir/configure conftest.file" \ 2549 && test "$*" != "X conftest.file $srcdir/configure"; then 2550 2551 # If neither matched, then we have a broken ls. This can happen 2552 # if, for instance, CONFIG_SHELL is bash and it inherits a 2553 # broken ls alias from the environment. This has actually 2554 # happened. Such a system could not be considered "sane". 2555 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2556 alias in your environment" "$LINENO" 5 2557 fi 2558 if test "$2" = conftest.file || test $am_try -eq 2; then 2559 break 2560 fi 2561 # Just in case. 2562 sleep 1 2563 am_has_slept=yes 2564 done 2565 test "$2" = conftest.file 2566 ) 2567then 2568 # Ok. 2569 : 2570else 2571 as_fn_error $? "newly created file is older than distributed files! 2572Check your system clock" "$LINENO" 5 2573fi 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2575$as_echo "yes" >&6; } 2576# If we didn't sleep, we still need to ensure time stamps of config.status and 2577# generated files are strictly newer. 2578am_sleep_pid= 2579if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2580 ( sleep 1 ) & 2581 am_sleep_pid=$! 2582fi 2583 2584rm -f conftest.file 2585 2586test "$program_prefix" != NONE && 2587 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2588# Use a double $ so make ignores it. 2589test "$program_suffix" != NONE && 2590 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2591# Double any \ or $. 2592# By default was `s,x,x', remove it if useless. 2593ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2594program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2595 2596# expand $ac_aux_dir to an absolute path 2597am_aux_dir=`cd $ac_aux_dir && pwd` 2598 2599if test x"${MISSING+set}" != xset; then 2600 case $am_aux_dir in 2601 *\ * | *\ *) 2602 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2603 *) 2604 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2605 esac 2606fi 2607# Use eval to expand $SHELL 2608if eval "$MISSING --is-lightweight"; then 2609 am_missing_run="$MISSING " 2610else 2611 am_missing_run= 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2613$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2614fi 2615 2616if test x"${install_sh}" != xset; then 2617 case $am_aux_dir in 2618 *\ * | *\ *) 2619 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2620 *) 2621 install_sh="\${SHELL} $am_aux_dir/install-sh" 2622 esac 2623fi 2624 2625# Installed binaries are usually stripped using 'strip' when the user 2626# run "make install-strip". However 'strip' might not be the right 2627# tool to use in cross-compilation environments, therefore Automake 2628# will honor the 'STRIP' environment variable to overrule this program. 2629if test "$cross_compiling" != no; then 2630 if test -n "$ac_tool_prefix"; then 2631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2632set dummy ${ac_tool_prefix}strip; ac_word=$2 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2634$as_echo_n "checking for $ac_word... " >&6; } 2635if ${ac_cv_prog_STRIP+:} false; then : 2636 $as_echo_n "(cached) " >&6 2637else 2638 if test -n "$STRIP"; then 2639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2640else 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 test -z "$as_dir" && as_dir=. 2646 for ac_exec_ext in '' $ac_executable_extensions; do 2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2648 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2650 break 2 2651 fi 2652done 2653 done 2654IFS=$as_save_IFS 2655 2656fi 2657fi 2658STRIP=$ac_cv_prog_STRIP 2659if test -n "$STRIP"; then 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2661$as_echo "$STRIP" >&6; } 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2664$as_echo "no" >&6; } 2665fi 2666 2667 2668fi 2669if test -z "$ac_cv_prog_STRIP"; then 2670 ac_ct_STRIP=$STRIP 2671 # Extract the first word of "strip", so it can be a program name with args. 2672set dummy strip; ac_word=$2 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$ac_ct_STRIP"; then 2679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2688 ac_cv_prog_ac_ct_STRIP="strip" 2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693 done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2699if test -n "$ac_ct_STRIP"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2701$as_echo "$ac_ct_STRIP" >&6; } 2702else 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704$as_echo "no" >&6; } 2705fi 2706 2707 if test "x$ac_ct_STRIP" = x; then 2708 STRIP=":" 2709 else 2710 case $cross_compiling:$ac_tool_warned in 2711yes:) 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2714ac_tool_warned=yes ;; 2715esac 2716 STRIP=$ac_ct_STRIP 2717 fi 2718else 2719 STRIP="$ac_cv_prog_STRIP" 2720fi 2721 2722fi 2723INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2724 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2726$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2727if test -z "$MKDIR_P"; then 2728 if ${ac_cv_path_mkdir+:} false; then : 2729 $as_echo_n "(cached) " >&6 2730else 2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_prog in mkdir gmkdir; do 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2739 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2740 'mkdir (GNU coreutils) '* | \ 2741 'mkdir (coreutils) '* | \ 2742 'mkdir (fileutils) '4.1*) 2743 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2744 break 3;; 2745 esac 2746 done 2747 done 2748 done 2749IFS=$as_save_IFS 2750 2751fi 2752 2753 test -d ./--version && rmdir ./--version 2754 if test "${ac_cv_path_mkdir+set}" = set; then 2755 MKDIR_P="$ac_cv_path_mkdir -p" 2756 else 2757 # As a last resort, use the slow shell script. Don't cache a 2758 # value for MKDIR_P within a source directory, because that will 2759 # break other packages using the cache if that directory is 2760 # removed, or if the value is a relative name. 2761 MKDIR_P="$ac_install_sh -d" 2762 fi 2763fi 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2765$as_echo "$MKDIR_P" >&6; } 2766 2767for ac_prog in gawk mawk nawk awk 2768do 2769 # Extract the first word of "$ac_prog", so it can be a program name with args. 2770set dummy $ac_prog; ac_word=$2 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772$as_echo_n "checking for $ac_word... " >&6; } 2773if ${ac_cv_prog_AWK+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775else 2776 if test -n "$AWK"; then 2777 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2778else 2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH 2781do 2782 IFS=$as_save_IFS 2783 test -z "$as_dir" && as_dir=. 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2786 ac_cv_prog_AWK="$ac_prog" 2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi 2795fi 2796AWK=$ac_cv_prog_AWK 2797if test -n "$AWK"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2799$as_echo "$AWK" >&6; } 2800else 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2802$as_echo "no" >&6; } 2803fi 2804 2805 2806 test -n "$AWK" && break 2807done 2808 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2810$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2811set x ${MAKE-make} 2812ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2813if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 cat >conftest.make <<\_ACEOF 2817SHELL = /bin/sh 2818all: 2819 @echo '@@@%%%=$(MAKE)=@@@%%%' 2820_ACEOF 2821# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2822case `${MAKE-make} -f conftest.make 2>/dev/null` in 2823 *@@@%%%=?*=@@@%%%*) 2824 eval ac_cv_prog_make_${ac_make}_set=yes;; 2825 *) 2826 eval ac_cv_prog_make_${ac_make}_set=no;; 2827esac 2828rm -f conftest.make 2829fi 2830if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2832$as_echo "yes" >&6; } 2833 SET_MAKE= 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837 SET_MAKE="MAKE=${MAKE-make}" 2838fi 2839 2840rm -rf .tst 2>/dev/null 2841mkdir .tst 2>/dev/null 2842if test -d .tst; then 2843 am__leading_dot=. 2844else 2845 am__leading_dot=_ 2846fi 2847rmdir .tst 2>/dev/null 2848 2849# Check whether --enable-silent-rules was given. 2850if test "${enable_silent_rules+set}" = set; then : 2851 enableval=$enable_silent_rules; 2852fi 2853 2854case $enable_silent_rules in # ((( 2855 yes) AM_DEFAULT_VERBOSITY=0;; 2856 no) AM_DEFAULT_VERBOSITY=1;; 2857 *) AM_DEFAULT_VERBOSITY=1;; 2858esac 2859am_make=${MAKE-make} 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2861$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2862if ${am_cv_make_support_nested_variables+:} false; then : 2863 $as_echo_n "(cached) " >&6 2864else 2865 if $as_echo 'TRUE=$(BAR$(V)) 2866BAR0=false 2867BAR1=true 2868V=1 2869am__doit: 2870 @$(TRUE) 2871.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2872 am_cv_make_support_nested_variables=yes 2873else 2874 am_cv_make_support_nested_variables=no 2875fi 2876fi 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2878$as_echo "$am_cv_make_support_nested_variables" >&6; } 2879if test $am_cv_make_support_nested_variables = yes; then 2880 AM_V='$(V)' 2881 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2882else 2883 AM_V=$AM_DEFAULT_VERBOSITY 2884 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2885fi 2886AM_BACKSLASH='\' 2887 2888if test "`cd $srcdir && pwd`" != "`pwd`"; then 2889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2890 # is not polluted with repeated "-I." 2891 am__isrc=' -I$(srcdir)' 2892 # test to see if srcdir already configured 2893 if test -f $srcdir/config.status; then 2894 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2895 fi 2896fi 2897 2898# test whether we have cygpath 2899if test -z "$CYGPATH_W"; then 2900 if (cygpath --version) >/dev/null 2>/dev/null; then 2901 CYGPATH_W='cygpath -w' 2902 else 2903 CYGPATH_W=echo 2904 fi 2905fi 2906 2907 2908# Define the identity of the package. 2909 PACKAGE='libXaw' 2910 VERSION='1.0.12' 2911 2912 2913cat >>confdefs.h <<_ACEOF 2914#define PACKAGE "$PACKAGE" 2915_ACEOF 2916 2917 2918cat >>confdefs.h <<_ACEOF 2919#define VERSION "$VERSION" 2920_ACEOF 2921 2922# Some tools Automake needs. 2923 2924ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2925 2926 2927AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2928 2929 2930AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2931 2932 2933AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2934 2935 2936MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2937 2938# For better backward compatibility. To be removed once Automake 1.9.x 2939# dies out for good. For more background, see: 2940# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2941# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2942mkdir_p='$(MKDIR_P)' 2943 2944# We need awk for the "check" target. The system "awk" is bad on 2945# some platforms. 2946# Always define AMTAR for backward compatibility. Yes, it's still used 2947# in the wild :-( We should find a proper way to deprecate it ... 2948AMTAR='$${TAR-tar}' 2949 2950 2951# We'll loop over all known methods to create a tar archive until one works. 2952_am_tools='gnutar pax cpio none' 2953 2954am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2955 2956 2957 2958 2959 2960 2961# POSIX will say in a future version that running "rm -f" with no argument 2962# is OK; and we want to be able to make that assumption in our Makefile 2963# recipes. So use an aggressive probe to check that the usage we want is 2964# actually supported "in the wild" to an acceptable degree. 2965# See automake bug#10828. 2966# To make any issue more visible, cause the running configure to be aborted 2967# by default if the 'rm' program in use doesn't match our expectations; the 2968# user can still override this though. 2969if rm -f && rm -fr && rm -rf; then : OK; else 2970 cat >&2 <<'END' 2971Oops! 2972 2973Your 'rm' program seems unable to run without file operands specified 2974on the command line, even when the '-f' option is present. This is contrary 2975to the behaviour of most rm programs out there, and not conforming with 2976the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2977 2978Please tell bug-automake@gnu.org about your system, including the value 2979of your $PATH and any error possibly output before this message. This 2980can help us improve future automake versions. 2981 2982END 2983 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2984 echo 'Configuration will proceed anyway, since you have set the' >&2 2985 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2986 echo >&2 2987 else 2988 cat >&2 <<'END' 2989Aborting the configuration process, to ensure you take notice of the issue. 2990 2991You can download and install GNU coreutils to get an 'rm' implementation 2992that behaves properly: <http://www.gnu.org/software/coreutils/>. 2993 2994If you want to complete the configuration process using your problematic 2995'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2996to "yes", and re-run configure. 2997 2998END 2999 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3000 fi 3001fi 3002 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3004$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3005 # Check whether --enable-maintainer-mode was given. 3006if test "${enable_maintainer_mode+set}" = set; then : 3007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3008else 3009 USE_MAINTAINER_MODE=no 3010fi 3011 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3013$as_echo "$USE_MAINTAINER_MODE" >&6; } 3014 if test $USE_MAINTAINER_MODE = yes; then 3015 MAINTAINER_MODE_TRUE= 3016 MAINTAINER_MODE_FALSE='#' 3017else 3018 MAINTAINER_MODE_TRUE='#' 3019 MAINTAINER_MODE_FALSE= 3020fi 3021 3022 MAINT=$MAINTAINER_MODE_TRUE 3023 3024 3025 3026# Initialize libtool 3027case `pwd` in 3028 *\ * | *\ *) 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3030$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3031esac 3032 3033 3034 3035macro_version='2.4.2' 3036macro_revision='1.3337' 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050ltmain="$ac_aux_dir/ltmain.sh" 3051 3052# Make sure we can run config.sub. 3053$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3054 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3055 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3057$as_echo_n "checking build system type... " >&6; } 3058if ${ac_cv_build+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 ac_build_alias=$build_alias 3062test "x$ac_build_alias" = x && 3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3064test "x$ac_build_alias" = x && 3065 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3066ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3068 3069fi 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3071$as_echo "$ac_cv_build" >&6; } 3072case $ac_cv_build in 3073*-*-*) ;; 3074*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3075esac 3076build=$ac_cv_build 3077ac_save_IFS=$IFS; IFS='-' 3078set x $ac_cv_build 3079shift 3080build_cpu=$1 3081build_vendor=$2 3082shift; shift 3083# Remember, the first character of IFS is used to create $*, 3084# except with old shells: 3085build_os=$* 3086IFS=$ac_save_IFS 3087case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3088 3089 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3091$as_echo_n "checking host system type... " >&6; } 3092if ${ac_cv_host+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test "x$host_alias" = x; then 3096 ac_cv_host=$ac_cv_build 3097else 3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3100fi 3101 3102fi 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3104$as_echo "$ac_cv_host" >&6; } 3105case $ac_cv_host in 3106*-*-*) ;; 3107*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3108esac 3109host=$ac_cv_host 3110ac_save_IFS=$IFS; IFS='-' 3111set x $ac_cv_host 3112shift 3113host_cpu=$1 3114host_vendor=$2 3115shift; shift 3116# Remember, the first character of IFS is used to create $*, 3117# except with old shells: 3118host_os=$* 3119IFS=$ac_save_IFS 3120case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3121 3122 3123# Backslashify metacharacters that are still active within 3124# double-quoted strings. 3125sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3126 3127# Same as above, but do not quote variable references. 3128double_quote_subst='s/\(["`\\]\)/\\\1/g' 3129 3130# Sed substitution to delay expansion of an escaped shell variable in a 3131# double_quote_subst'ed string. 3132delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3133 3134# Sed substitution to delay expansion of an escaped single quote. 3135delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3136 3137# Sed substitution to avoid accidental globbing in evaled expressions 3138no_glob_subst='s/\*/\\\*/g' 3139 3140ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3143 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3145$as_echo_n "checking how to print strings... " >&6; } 3146# Test print first, because it will be a builtin if present. 3147if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3148 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3149 ECHO='print -r --' 3150elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3151 ECHO='printf %s\n' 3152else 3153 # Use this function as a fallback that always works. 3154 func_fallback_echo () 3155 { 3156 eval 'cat <<_LTECHO_EOF 3157$1 3158_LTECHO_EOF' 3159 } 3160 ECHO='func_fallback_echo' 3161fi 3162 3163# func_echo_all arg... 3164# Invoke $ECHO with all args, space-separated. 3165func_echo_all () 3166{ 3167 $ECHO "" 3168} 3169 3170case "$ECHO" in 3171 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3172$as_echo "printf" >&6; } ;; 3173 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3174$as_echo "print -r" >&6; } ;; 3175 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3176$as_echo "cat" >&6; } ;; 3177esac 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192DEPDIR="${am__leading_dot}deps" 3193 3194ac_config_commands="$ac_config_commands depfiles" 3195 3196 3197am_make=${MAKE-make} 3198cat > confinc << 'END' 3199am__doit: 3200 @echo this is the am__doit target 3201.PHONY: am__doit 3202END 3203# If we don't find an include directive, just comment out the code. 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3205$as_echo_n "checking for style of include used by $am_make... " >&6; } 3206am__include="#" 3207am__quote= 3208_am_result=none 3209# First try GNU make style include. 3210echo "include confinc" > confmf 3211# Ignore all kinds of additional output from 'make'. 3212case `$am_make -s -f confmf 2> /dev/null` in #( 3213*the\ am__doit\ target*) 3214 am__include=include 3215 am__quote= 3216 _am_result=GNU 3217 ;; 3218esac 3219# Now try BSD make style include. 3220if test "$am__include" = "#"; then 3221 echo '.include "confinc"' > confmf 3222 case `$am_make -s -f confmf 2> /dev/null` in #( 3223 *the\ am__doit\ target*) 3224 am__include=.include 3225 am__quote="\"" 3226 _am_result=BSD 3227 ;; 3228 esac 3229fi 3230 3231 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3233$as_echo "$_am_result" >&6; } 3234rm -f confinc confmf 3235 3236# Check whether --enable-dependency-tracking was given. 3237if test "${enable_dependency_tracking+set}" = set; then : 3238 enableval=$enable_dependency_tracking; 3239fi 3240 3241if test "x$enable_dependency_tracking" != xno; then 3242 am_depcomp="$ac_aux_dir/depcomp" 3243 AMDEPBACKSLASH='\' 3244 am__nodep='_no' 3245fi 3246 if test "x$enable_dependency_tracking" != xno; then 3247 AMDEP_TRUE= 3248 AMDEP_FALSE='#' 3249else 3250 AMDEP_TRUE='#' 3251 AMDEP_FALSE= 3252fi 3253 3254 3255ac_ext=c 3256ac_cpp='$CPP $CPPFLAGS' 3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3259ac_compiler_gnu=$ac_cv_c_compiler_gnu 3260if test -n "$ac_tool_prefix"; then 3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3262set dummy ${ac_tool_prefix}gcc; ac_word=$2 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3264$as_echo_n "checking for $ac_word... " >&6; } 3265if ${ac_cv_prog_CC+:} false; then : 3266 $as_echo_n "(cached) " >&6 3267else 3268 if test -n "$CC"; then 3269 ac_cv_prog_CC="$CC" # Let the user override the test. 3270else 3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3272for as_dir in $PATH 3273do 3274 IFS=$as_save_IFS 3275 test -z "$as_dir" && as_dir=. 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3278 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3280 break 2 3281 fi 3282done 3283 done 3284IFS=$as_save_IFS 3285 3286fi 3287fi 3288CC=$ac_cv_prog_CC 3289if test -n "$CC"; then 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3291$as_echo "$CC" >&6; } 3292else 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3294$as_echo "no" >&6; } 3295fi 3296 3297 3298fi 3299if test -z "$ac_cv_prog_CC"; then 3300 ac_ct_CC=$CC 3301 # Extract the first word of "gcc", so it can be a program name with args. 3302set dummy gcc; ac_word=$2 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3304$as_echo_n "checking for $ac_word... " >&6; } 3305if ${ac_cv_prog_ac_ct_CC+:} false; then : 3306 $as_echo_n "(cached) " >&6 3307else 3308 if test -n "$ac_ct_CC"; then 3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3310else 3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3312for as_dir in $PATH 3313do 3314 IFS=$as_save_IFS 3315 test -z "$as_dir" && as_dir=. 3316 for ac_exec_ext in '' $ac_executable_extensions; do 3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3318 ac_cv_prog_ac_ct_CC="gcc" 3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3320 break 2 3321 fi 3322done 3323 done 3324IFS=$as_save_IFS 3325 3326fi 3327fi 3328ac_ct_CC=$ac_cv_prog_ac_ct_CC 3329if test -n "$ac_ct_CC"; then 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3331$as_echo "$ac_ct_CC" >&6; } 3332else 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3334$as_echo "no" >&6; } 3335fi 3336 3337 if test "x$ac_ct_CC" = x; then 3338 CC="" 3339 else 3340 case $cross_compiling:$ac_tool_warned in 3341yes:) 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3344ac_tool_warned=yes ;; 3345esac 3346 CC=$ac_ct_CC 3347 fi 3348else 3349 CC="$ac_cv_prog_CC" 3350fi 3351 3352if test -z "$CC"; then 3353 if test -n "$ac_tool_prefix"; then 3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3355set dummy ${ac_tool_prefix}cc; ac_word=$2 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3357$as_echo_n "checking for $ac_word... " >&6; } 3358if ${ac_cv_prog_CC+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 if test -n "$CC"; then 3362 ac_cv_prog_CC="$CC" # Let the user override the test. 3363else 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 test -z "$as_dir" && as_dir=. 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3371 ac_cv_prog_CC="${ac_tool_prefix}cc" 3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3373 break 2 3374 fi 3375done 3376 done 3377IFS=$as_save_IFS 3378 3379fi 3380fi 3381CC=$ac_cv_prog_CC 3382if test -n "$CC"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3384$as_echo "$CC" >&6; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387$as_echo "no" >&6; } 3388fi 3389 3390 3391 fi 3392fi 3393if test -z "$CC"; then 3394 # Extract the first word of "cc", so it can be a program name with args. 3395set dummy cc; ac_word=$2 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397$as_echo_n "checking for $ac_word... " >&6; } 3398if ${ac_cv_prog_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 if test -n "$CC"; then 3402 ac_cv_prog_CC="$CC" # Let the user override the test. 3403else 3404 ac_prog_rejected=no 3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3406for as_dir in $PATH 3407do 3408 IFS=$as_save_IFS 3409 test -z "$as_dir" && as_dir=. 3410 for ac_exec_ext in '' $ac_executable_extensions; do 3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3413 ac_prog_rejected=yes 3414 continue 3415 fi 3416 ac_cv_prog_CC="cc" 3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3418 break 2 3419 fi 3420done 3421 done 3422IFS=$as_save_IFS 3423 3424if test $ac_prog_rejected = yes; then 3425 # We found a bogon in the path, so make sure we never use it. 3426 set dummy $ac_cv_prog_CC 3427 shift 3428 if test $# != 0; then 3429 # We chose a different compiler from the bogus one. 3430 # However, it has the same basename, so the bogon will be chosen 3431 # first if we set CC to just the basename; use the full file name. 3432 shift 3433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3434 fi 3435fi 3436fi 3437fi 3438CC=$ac_cv_prog_CC 3439if test -n "$CC"; then 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3441$as_echo "$CC" >&6; } 3442else 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3444$as_echo "no" >&6; } 3445fi 3446 3447 3448fi 3449if test -z "$CC"; then 3450 if test -n "$ac_tool_prefix"; then 3451 for ac_prog in cl.exe 3452 do 3453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3454set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456$as_echo_n "checking for $ac_word... " >&6; } 3457if ${ac_cv_prog_CC+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 if test -n "$CC"; then 3461 ac_cv_prog_CC="$CC" # Let the user override the test. 3462else 3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464for as_dir in $PATH 3465do 3466 IFS=$as_save_IFS 3467 test -z "$as_dir" && as_dir=. 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483$as_echo "$CC" >&6; } 3484else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486$as_echo "no" >&6; } 3487fi 3488 3489 3490 test -n "$CC" && break 3491 done 3492fi 3493if test -z "$CC"; then 3494 ac_ct_CC=$CC 3495 for ac_prog in cl.exe 3496do 3497 # Extract the first word of "$ac_prog", so it can be a program name with args. 3498set dummy $ac_prog; ac_word=$2 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3500$as_echo_n "checking for $ac_word... " >&6; } 3501if ${ac_cv_prog_ac_ct_CC+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 if test -n "$ac_ct_CC"; then 3505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3506else 3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3508for as_dir in $PATH 3509do 3510 IFS=$as_save_IFS 3511 test -z "$as_dir" && as_dir=. 3512 for ac_exec_ext in '' $ac_executable_extensions; do 3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3514 ac_cv_prog_ac_ct_CC="$ac_prog" 3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3516 break 2 3517 fi 3518done 3519 done 3520IFS=$as_save_IFS 3521 3522fi 3523fi 3524ac_ct_CC=$ac_cv_prog_ac_ct_CC 3525if test -n "$ac_ct_CC"; then 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3527$as_echo "$ac_ct_CC" >&6; } 3528else 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3530$as_echo "no" >&6; } 3531fi 3532 3533 3534 test -n "$ac_ct_CC" && break 3535done 3536 3537 if test "x$ac_ct_CC" = x; then 3538 CC="" 3539 else 3540 case $cross_compiling:$ac_tool_warned in 3541yes:) 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3544ac_tool_warned=yes ;; 3545esac 3546 CC=$ac_ct_CC 3547 fi 3548fi 3549 3550fi 3551 3552 3553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3555as_fn_error $? "no acceptable C compiler found in \$PATH 3556See \`config.log' for more details" "$LINENO" 5; } 3557 3558# Provide some information about the compiler. 3559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3560set X $ac_compile 3561ac_compiler=$2 3562for ac_option in --version -v -V -qversion; do 3563 { { ac_try="$ac_compiler $ac_option >&5" 3564case "(($ac_try" in 3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566 *) ac_try_echo=$ac_try;; 3567esac 3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3569$as_echo "$ac_try_echo"; } >&5 3570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3571 ac_status=$? 3572 if test -s conftest.err; then 3573 sed '10a\ 3574... rest of stderr output deleted ... 3575 10q' conftest.err >conftest.er1 3576 cat conftest.er1 >&5 3577 fi 3578 rm -f conftest.er1 conftest.err 3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3580 test $ac_status = 0; } 3581done 3582 3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584/* end confdefs.h. */ 3585 3586int 3587main () 3588{ 3589 3590 ; 3591 return 0; 3592} 3593_ACEOF 3594ac_clean_files_save=$ac_clean_files 3595ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3596# Try to create an executable without -o first, disregard a.out. 3597# It will help us diagnose broken compilers, and finding out an intuition 3598# of exeext. 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3600$as_echo_n "checking whether the C compiler works... " >&6; } 3601ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3602 3603# The possible output files: 3604ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3605 3606ac_rmfiles= 3607for ac_file in $ac_files 3608do 3609 case $ac_file in 3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3611 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3612 esac 3613done 3614rm -f $ac_rmfiles 3615 3616if { { ac_try="$ac_link_default" 3617case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3622$as_echo "$ac_try_echo"; } >&5 3623 (eval "$ac_link_default") 2>&5 3624 ac_status=$? 3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3626 test $ac_status = 0; }; then : 3627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3629# in a Makefile. We should not override ac_cv_exeext if it was cached, 3630# so that the user can short-circuit this test for compilers unknown to 3631# Autoconf. 3632for ac_file in $ac_files '' 3633do 3634 test -f "$ac_file" || continue 3635 case $ac_file in 3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3637 ;; 3638 [ab].out ) 3639 # We found the default executable, but exeext='' is most 3640 # certainly right. 3641 break;; 3642 *.* ) 3643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3644 then :; else 3645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3646 fi 3647 # We set ac_cv_exeext here because the later test for it is not 3648 # safe: cross compilers may not add the suffix if given an `-o' 3649 # argument, so we may need to know it at that point already. 3650 # Even if this section looks crufty: it has the advantage of 3651 # actually working. 3652 break;; 3653 * ) 3654 break;; 3655 esac 3656done 3657test "$ac_cv_exeext" = no && ac_cv_exeext= 3658 3659else 3660 ac_file='' 3661fi 3662if test -z "$ac_file"; then : 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665$as_echo "$as_me: failed program was:" >&5 3666sed 's/^/| /' conftest.$ac_ext >&5 3667 3668{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3670as_fn_error 77 "C compiler cannot create executables 3671See \`config.log' for more details" "$LINENO" 5; } 3672else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3674$as_echo "yes" >&6; } 3675fi 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3677$as_echo_n "checking for C compiler default output file name... " >&6; } 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3679$as_echo "$ac_file" >&6; } 3680ac_exeext=$ac_cv_exeext 3681 3682rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3683ac_clean_files=$ac_clean_files_save 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3685$as_echo_n "checking for suffix of executables... " >&6; } 3686if { { ac_try="$ac_link" 3687case "(($ac_try" in 3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3689 *) ac_try_echo=$ac_try;; 3690esac 3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3692$as_echo "$ac_try_echo"; } >&5 3693 (eval "$ac_link") 2>&5 3694 ac_status=$? 3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3696 test $ac_status = 0; }; then : 3697 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3698# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3699# work properly (i.e., refer to `conftest.exe'), while it won't with 3700# `rm'. 3701for ac_file in conftest.exe conftest conftest.*; do 3702 test -f "$ac_file" || continue 3703 case $ac_file in 3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3706 break;; 3707 * ) break;; 3708 esac 3709done 3710else 3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3713as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3714See \`config.log' for more details" "$LINENO" 5; } 3715fi 3716rm -f conftest conftest$ac_cv_exeext 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3718$as_echo "$ac_cv_exeext" >&6; } 3719 3720rm -f conftest.$ac_ext 3721EXEEXT=$ac_cv_exeext 3722ac_exeext=$EXEEXT 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725#include <stdio.h> 3726int 3727main () 3728{ 3729FILE *f = fopen ("conftest.out", "w"); 3730 return ferror (f) || fclose (f) != 0; 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736ac_clean_files="$ac_clean_files conftest.out" 3737# Check that the compiler produces executables we can run. If not, either 3738# the compiler is broken, or we cross compile. 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3740$as_echo_n "checking whether we are cross compiling... " >&6; } 3741if test "$cross_compiling" != yes; then 3742 { { ac_try="$ac_link" 3743case "(($ac_try" in 3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3745 *) ac_try_echo=$ac_try;; 3746esac 3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3748$as_echo "$ac_try_echo"; } >&5 3749 (eval "$ac_link") 2>&5 3750 ac_status=$? 3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3752 test $ac_status = 0; } 3753 if { ac_try='./conftest$ac_cv_exeext' 3754 { { case "(($ac_try" in 3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3756 *) ac_try_echo=$ac_try;; 3757esac 3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3759$as_echo "$ac_try_echo"; } >&5 3760 (eval "$ac_try") 2>&5 3761 ac_status=$? 3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3763 test $ac_status = 0; }; }; then 3764 cross_compiling=no 3765 else 3766 if test "$cross_compiling" = maybe; then 3767 cross_compiling=yes 3768 else 3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3771as_fn_error $? "cannot run C compiled programs. 3772If you meant to cross compile, use \`--host'. 3773See \`config.log' for more details" "$LINENO" 5; } 3774 fi 3775 fi 3776fi 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3778$as_echo "$cross_compiling" >&6; } 3779 3780rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3781ac_clean_files=$ac_clean_files_save 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3783$as_echo_n "checking for suffix of object files... " >&6; } 3784if ${ac_cv_objext+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786else 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788/* end confdefs.h. */ 3789 3790int 3791main () 3792{ 3793 3794 ; 3795 return 0; 3796} 3797_ACEOF 3798rm -f conftest.o conftest.obj 3799if { { ac_try="$ac_compile" 3800case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3805$as_echo "$ac_try_echo"; } >&5 3806 (eval "$ac_compile") 2>&5 3807 ac_status=$? 3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3809 test $ac_status = 0; }; then : 3810 for ac_file in conftest.o conftest.obj conftest.*; do 3811 test -f "$ac_file" || continue; 3812 case $ac_file in 3813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3815 break;; 3816 esac 3817done 3818else 3819 $as_echo "$as_me: failed program was:" >&5 3820sed 's/^/| /' conftest.$ac_ext >&5 3821 3822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3824as_fn_error $? "cannot compute suffix of object files: cannot compile 3825See \`config.log' for more details" "$LINENO" 5; } 3826fi 3827rm -f conftest.$ac_cv_objext conftest.$ac_ext 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3830$as_echo "$ac_cv_objext" >&6; } 3831OBJEXT=$ac_cv_objext 3832ac_objext=$OBJEXT 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3834$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3835if ${ac_cv_c_compiler_gnu+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3839/* end confdefs.h. */ 3840 3841int 3842main () 3843{ 3844#ifndef __GNUC__ 3845 choke me 3846#endif 3847 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852if ac_fn_c_try_compile "$LINENO"; then : 3853 ac_compiler_gnu=yes 3854else 3855 ac_compiler_gnu=no 3856fi 3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3858ac_cv_c_compiler_gnu=$ac_compiler_gnu 3859 3860fi 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3862$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3863if test $ac_compiler_gnu = yes; then 3864 GCC=yes 3865else 3866 GCC= 3867fi 3868ac_test_CFLAGS=${CFLAGS+set} 3869ac_save_CFLAGS=$CFLAGS 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3871$as_echo_n "checking whether $CC accepts -g... " >&6; } 3872if ${ac_cv_prog_cc_g+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 ac_save_c_werror_flag=$ac_c_werror_flag 3876 ac_c_werror_flag=yes 3877 ac_cv_prog_cc_g=no 3878 CFLAGS="-g" 3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3880/* end confdefs.h. */ 3881 3882int 3883main () 3884{ 3885 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890if ac_fn_c_try_compile "$LINENO"; then : 3891 ac_cv_prog_cc_g=yes 3892else 3893 CFLAGS="" 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896 3897int 3898main () 3899{ 3900 3901 ; 3902 return 0; 3903} 3904_ACEOF 3905if ac_fn_c_try_compile "$LINENO"; then : 3906 3907else 3908 ac_c_werror_flag=$ac_save_c_werror_flag 3909 CFLAGS="-g" 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911/* end confdefs.h. */ 3912 3913int 3914main () 3915{ 3916 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921if ac_fn_c_try_compile "$LINENO"; then : 3922 ac_cv_prog_cc_g=yes 3923fi 3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3925fi 3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3927fi 3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3929 ac_c_werror_flag=$ac_save_c_werror_flag 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3932$as_echo "$ac_cv_prog_cc_g" >&6; } 3933if test "$ac_test_CFLAGS" = set; then 3934 CFLAGS=$ac_save_CFLAGS 3935elif test $ac_cv_prog_cc_g = yes; then 3936 if test "$GCC" = yes; then 3937 CFLAGS="-g -O2" 3938 else 3939 CFLAGS="-g" 3940 fi 3941else 3942 if test "$GCC" = yes; then 3943 CFLAGS="-O2" 3944 else 3945 CFLAGS= 3946 fi 3947fi 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3950if ${ac_cv_prog_cc_c89+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952else 3953 ac_cv_prog_cc_c89=no 3954ac_save_CC=$CC 3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957#include <stdarg.h> 3958#include <stdio.h> 3959#include <sys/types.h> 3960#include <sys/stat.h> 3961/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3962struct buf { int x; }; 3963FILE * (*rcsopen) (struct buf *, struct stat *, int); 3964static char *e (p, i) 3965 char **p; 3966 int i; 3967{ 3968 return p[i]; 3969} 3970static char *f (char * (*g) (char **, int), char **p, ...) 3971{ 3972 char *s; 3973 va_list v; 3974 va_start (v,p); 3975 s = g (p, va_arg (v,int)); 3976 va_end (v); 3977 return s; 3978} 3979 3980/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3981 function prototypes and stuff, but not '\xHH' hex character constants. 3982 These don't provoke an error unfortunately, instead are silently treated 3983 as 'x'. The following induces an error, until -std is added to get 3984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3985 array size at least. It's necessary to write '\x00'==0 to get something 3986 that's true only with -std. */ 3987int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3988 3989/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3990 inside strings and character constants. */ 3991#define FOO(x) 'x' 3992int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3993 3994int test (int i, double x); 3995struct s1 {int (*f) (int a);}; 3996struct s2 {int (*f) (double a);}; 3997int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3998int argc; 3999char **argv; 4000int 4001main () 4002{ 4003return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4010do 4011 CC="$ac_save_CC $ac_arg" 4012 if ac_fn_c_try_compile "$LINENO"; then : 4013 ac_cv_prog_cc_c89=$ac_arg 4014fi 4015rm -f core conftest.err conftest.$ac_objext 4016 test "x$ac_cv_prog_cc_c89" != "xno" && break 4017done 4018rm -f conftest.$ac_ext 4019CC=$ac_save_CC 4020 4021fi 4022# AC_CACHE_VAL 4023case "x$ac_cv_prog_cc_c89" in 4024 x) 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4026$as_echo "none needed" >&6; } ;; 4027 xno) 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4029$as_echo "unsupported" >&6; } ;; 4030 *) 4031 CC="$CC $ac_cv_prog_cc_c89" 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4033$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4034esac 4035if test "x$ac_cv_prog_cc_c89" != xno; then : 4036 4037fi 4038 4039ac_ext=c 4040ac_cpp='$CPP $CPPFLAGS' 4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4043ac_compiler_gnu=$ac_cv_c_compiler_gnu 4044 4045ac_ext=c 4046ac_cpp='$CPP $CPPFLAGS' 4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4049ac_compiler_gnu=$ac_cv_c_compiler_gnu 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4051$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4052if ${am_cv_prog_cc_c_o+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058int 4059main () 4060{ 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066 # Make sure it works both with $CC and with simple cc. 4067 # Following AC_PROG_CC_C_O, we do the test twice because some 4068 # compilers refuse to overwrite an existing .o file with -o, 4069 # though they will create one. 4070 am_cv_prog_cc_c_o=yes 4071 for am_i in 1 2; do 4072 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4073 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4074 ac_status=$? 4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4076 (exit $ac_status); } \ 4077 && test -f conftest2.$ac_objext; then 4078 : OK 4079 else 4080 am_cv_prog_cc_c_o=no 4081 break 4082 fi 4083 done 4084 rm -f core conftest* 4085 unset am_i 4086fi 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4088$as_echo "$am_cv_prog_cc_c_o" >&6; } 4089if test "$am_cv_prog_cc_c_o" != yes; then 4090 # Losing compiler, so override with the script. 4091 # FIXME: It is wrong to rewrite CC. 4092 # But if we don't then we get into trouble of one sort or another. 4093 # A longer-term fix would be to have automake use am__CC in this case, 4094 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4095 CC="$am_aux_dir/compile $CC" 4096fi 4097ac_ext=c 4098ac_cpp='$CPP $CPPFLAGS' 4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4101ac_compiler_gnu=$ac_cv_c_compiler_gnu 4102 4103 4104depcc="$CC" am_compiler_list= 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4107$as_echo_n "checking dependency style of $depcc... " >&6; } 4108if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4112 # We make a subdir and do the tests there. Otherwise we can end up 4113 # making bogus files that we don't know about and never remove. For 4114 # instance it was reported that on HP-UX the gcc test will end up 4115 # making a dummy file named 'D' -- because '-MD' means "put the output 4116 # in D". 4117 rm -rf conftest.dir 4118 mkdir conftest.dir 4119 # Copy depcomp to subdir because otherwise we won't find it if we're 4120 # using a relative directory. 4121 cp "$am_depcomp" conftest.dir 4122 cd conftest.dir 4123 # We will build objects and dependencies in a subdirectory because 4124 # it helps to detect inapplicable dependency modes. For instance 4125 # both Tru64's cc and ICC support -MD to output dependencies as a 4126 # side effect of compilation, but ICC will put the dependencies in 4127 # the current directory while Tru64 will put them in the object 4128 # directory. 4129 mkdir sub 4130 4131 am_cv_CC_dependencies_compiler_type=none 4132 if test "$am_compiler_list" = ""; then 4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4134 fi 4135 am__universal=false 4136 case " $depcc " in #( 4137 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4138 esac 4139 4140 for depmode in $am_compiler_list; do 4141 # Setup a source with many dependencies, because some compilers 4142 # like to wrap large dependency lists on column 80 (with \), and 4143 # we should not choose a depcomp mode which is confused by this. 4144 # 4145 # We need to recreate these files for each test, as the compiler may 4146 # overwrite some of them when testing with obscure command lines. 4147 # This happens at least with the AIX C compiler. 4148 : > sub/conftest.c 4149 for i in 1 2 3 4 5 6; do 4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4151 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4152 # Solaris 10 /bin/sh. 4153 echo '/* dummy */' > sub/conftst$i.h 4154 done 4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4156 4157 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4158 # mode. It turns out that the SunPro C++ compiler does not properly 4159 # handle '-M -o', and we need to detect this. Also, some Intel 4160 # versions had trouble with output in subdirs. 4161 am__obj=sub/conftest.${OBJEXT-o} 4162 am__minus_obj="-o $am__obj" 4163 case $depmode in 4164 gcc) 4165 # This depmode causes a compiler race in universal mode. 4166 test "$am__universal" = false || continue 4167 ;; 4168 nosideeffect) 4169 # After this tag, mechanisms are not by side-effect, so they'll 4170 # only be used when explicitly requested. 4171 if test "x$enable_dependency_tracking" = xyes; then 4172 continue 4173 else 4174 break 4175 fi 4176 ;; 4177 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4178 # This compiler won't grok '-c -o', but also, the minuso test has 4179 # not run yet. These depmodes are late enough in the game, and 4180 # so weak that their functioning should not be impacted. 4181 am__obj=conftest.${OBJEXT-o} 4182 am__minus_obj= 4183 ;; 4184 none) break ;; 4185 esac 4186 if depmode=$depmode \ 4187 source=sub/conftest.c object=$am__obj \ 4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4190 >/dev/null 2>conftest.err && 4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4195 # icc doesn't choke on unknown options, it will just issue warnings 4196 # or remarks (even with -Werror). So we grep stderr for any message 4197 # that says an option was ignored or not supported. 4198 # When given -MP, icc 7.0 and 7.1 complain thusly: 4199 # icc: Command line warning: ignoring option '-M'; no argument required 4200 # The diagnosis changed in icc 8.0: 4201 # icc: Command line remark: option '-MP' not supported 4202 if (grep 'ignoring option' conftest.err || 4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4204 am_cv_CC_dependencies_compiler_type=$depmode 4205 break 4206 fi 4207 fi 4208 done 4209 4210 cd .. 4211 rm -rf conftest.dir 4212else 4213 am_cv_CC_dependencies_compiler_type=none 4214fi 4215 4216fi 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4218$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4220 4221 if 4222 test "x$enable_dependency_tracking" != xno \ 4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4224 am__fastdepCC_TRUE= 4225 am__fastdepCC_FALSE='#' 4226else 4227 am__fastdepCC_TRUE='#' 4228 am__fastdepCC_FALSE= 4229fi 4230 4231 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4233$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4234if ${ac_cv_path_SED+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4238 for ac_i in 1 2 3 4 5 6 7; do 4239 ac_script="$ac_script$as_nl$ac_script" 4240 done 4241 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4242 { ac_script=; unset ac_script;} 4243 if test -z "$SED"; then 4244 ac_path_SED_found=false 4245 # Loop through the user's path and test for each of PROGNAME-LIST 4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_prog in sed gsed; do 4252 for ac_exec_ext in '' $ac_executable_extensions; do 4253 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4254 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4255# Check for GNU ac_path_SED and select it if it is found. 4256 # Check for GNU $ac_path_SED 4257case `"$ac_path_SED" --version 2>&1` in 4258*GNU*) 4259 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4260*) 4261 ac_count=0 4262 $as_echo_n 0123456789 >"conftest.in" 4263 while : 4264 do 4265 cat "conftest.in" "conftest.in" >"conftest.tmp" 4266 mv "conftest.tmp" "conftest.in" 4267 cp "conftest.in" "conftest.nl" 4268 $as_echo '' >> "conftest.nl" 4269 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4271 as_fn_arith $ac_count + 1 && ac_count=$as_val 4272 if test $ac_count -gt ${ac_path_SED_max-0}; then 4273 # Best one so far, save it but keep looking for a better one 4274 ac_cv_path_SED="$ac_path_SED" 4275 ac_path_SED_max=$ac_count 4276 fi 4277 # 10*(2^10) chars as input seems more than enough 4278 test $ac_count -gt 10 && break 4279 done 4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4281esac 4282 4283 $ac_path_SED_found && break 3 4284 done 4285 done 4286 done 4287IFS=$as_save_IFS 4288 if test -z "$ac_cv_path_SED"; then 4289 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4290 fi 4291else 4292 ac_cv_path_SED=$SED 4293fi 4294 4295fi 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4297$as_echo "$ac_cv_path_SED" >&6; } 4298 SED="$ac_cv_path_SED" 4299 rm -f conftest.sed 4300 4301test -z "$SED" && SED=sed 4302Xsed="$SED -e 1s/^X//" 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4315$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4316if ${ac_cv_path_GREP+:} false; then : 4317 $as_echo_n "(cached) " >&6 4318else 4319 if test -z "$GREP"; then 4320 ac_path_GREP_found=false 4321 # Loop through the user's path and test for each of PROGNAME-LIST 4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4324do 4325 IFS=$as_save_IFS 4326 test -z "$as_dir" && as_dir=. 4327 for ac_prog in grep ggrep; do 4328 for ac_exec_ext in '' $ac_executable_extensions; do 4329 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4330 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4331# Check for GNU ac_path_GREP and select it if it is found. 4332 # Check for GNU $ac_path_GREP 4333case `"$ac_path_GREP" --version 2>&1` in 4334*GNU*) 4335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4336*) 4337 ac_count=0 4338 $as_echo_n 0123456789 >"conftest.in" 4339 while : 4340 do 4341 cat "conftest.in" "conftest.in" >"conftest.tmp" 4342 mv "conftest.tmp" "conftest.in" 4343 cp "conftest.in" "conftest.nl" 4344 $as_echo 'GREP' >> "conftest.nl" 4345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4347 as_fn_arith $ac_count + 1 && ac_count=$as_val 4348 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4349 # Best one so far, save it but keep looking for a better one 4350 ac_cv_path_GREP="$ac_path_GREP" 4351 ac_path_GREP_max=$ac_count 4352 fi 4353 # 10*(2^10) chars as input seems more than enough 4354 test $ac_count -gt 10 && break 4355 done 4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4357esac 4358 4359 $ac_path_GREP_found && break 3 4360 done 4361 done 4362 done 4363IFS=$as_save_IFS 4364 if test -z "$ac_cv_path_GREP"; then 4365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4366 fi 4367else 4368 ac_cv_path_GREP=$GREP 4369fi 4370 4371fi 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4373$as_echo "$ac_cv_path_GREP" >&6; } 4374 GREP="$ac_cv_path_GREP" 4375 4376 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4378$as_echo_n "checking for egrep... " >&6; } 4379if ${ac_cv_path_EGREP+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4383 then ac_cv_path_EGREP="$GREP -E" 4384 else 4385 if test -z "$EGREP"; then 4386 ac_path_EGREP_found=false 4387 # Loop through the user's path and test for each of PROGNAME-LIST 4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_prog in egrep; do 4394 for ac_exec_ext in '' $ac_executable_extensions; do 4395 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4396 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4397# Check for GNU ac_path_EGREP and select it if it is found. 4398 # Check for GNU $ac_path_EGREP 4399case `"$ac_path_EGREP" --version 2>&1` in 4400*GNU*) 4401 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4402*) 4403 ac_count=0 4404 $as_echo_n 0123456789 >"conftest.in" 4405 while : 4406 do 4407 cat "conftest.in" "conftest.in" >"conftest.tmp" 4408 mv "conftest.tmp" "conftest.in" 4409 cp "conftest.in" "conftest.nl" 4410 $as_echo 'EGREP' >> "conftest.nl" 4411 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4413 as_fn_arith $ac_count + 1 && ac_count=$as_val 4414 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4415 # Best one so far, save it but keep looking for a better one 4416 ac_cv_path_EGREP="$ac_path_EGREP" 4417 ac_path_EGREP_max=$ac_count 4418 fi 4419 # 10*(2^10) chars as input seems more than enough 4420 test $ac_count -gt 10 && break 4421 done 4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4423esac 4424 4425 $ac_path_EGREP_found && break 3 4426 done 4427 done 4428 done 4429IFS=$as_save_IFS 4430 if test -z "$ac_cv_path_EGREP"; then 4431 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4432 fi 4433else 4434 ac_cv_path_EGREP=$EGREP 4435fi 4436 4437 fi 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4440$as_echo "$ac_cv_path_EGREP" >&6; } 4441 EGREP="$ac_cv_path_EGREP" 4442 4443 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4445$as_echo_n "checking for fgrep... " >&6; } 4446if ${ac_cv_path_FGREP+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448else 4449 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4450 then ac_cv_path_FGREP="$GREP -F" 4451 else 4452 if test -z "$FGREP"; then 4453 ac_path_FGREP_found=false 4454 # Loop through the user's path and test for each of PROGNAME-LIST 4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4456for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4457do 4458 IFS=$as_save_IFS 4459 test -z "$as_dir" && as_dir=. 4460 for ac_prog in fgrep; do 4461 for ac_exec_ext in '' $ac_executable_extensions; do 4462 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4463 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4464# Check for GNU ac_path_FGREP and select it if it is found. 4465 # Check for GNU $ac_path_FGREP 4466case `"$ac_path_FGREP" --version 2>&1` in 4467*GNU*) 4468 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4469*) 4470 ac_count=0 4471 $as_echo_n 0123456789 >"conftest.in" 4472 while : 4473 do 4474 cat "conftest.in" "conftest.in" >"conftest.tmp" 4475 mv "conftest.tmp" "conftest.in" 4476 cp "conftest.in" "conftest.nl" 4477 $as_echo 'FGREP' >> "conftest.nl" 4478 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4480 as_fn_arith $ac_count + 1 && ac_count=$as_val 4481 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4482 # Best one so far, save it but keep looking for a better one 4483 ac_cv_path_FGREP="$ac_path_FGREP" 4484 ac_path_FGREP_max=$ac_count 4485 fi 4486 # 10*(2^10) chars as input seems more than enough 4487 test $ac_count -gt 10 && break 4488 done 4489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4490esac 4491 4492 $ac_path_FGREP_found && break 3 4493 done 4494 done 4495 done 4496IFS=$as_save_IFS 4497 if test -z "$ac_cv_path_FGREP"; then 4498 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4499 fi 4500else 4501 ac_cv_path_FGREP=$FGREP 4502fi 4503 4504 fi 4505fi 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4507$as_echo "$ac_cv_path_FGREP" >&6; } 4508 FGREP="$ac_cv_path_FGREP" 4509 4510 4511test -z "$GREP" && GREP=grep 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531# Check whether --with-gnu-ld was given. 4532if test "${with_gnu_ld+set}" = set; then : 4533 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4534else 4535 with_gnu_ld=no 4536fi 4537 4538ac_prog=ld 4539if test "$GCC" = yes; then 4540 # Check if gcc -print-prog-name=ld gives a path. 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4542$as_echo_n "checking for ld used by $CC... " >&6; } 4543 case $host in 4544 *-*-mingw*) 4545 # gcc leaves a trailing carriage return which upsets mingw 4546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4547 *) 4548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4549 esac 4550 case $ac_prog in 4551 # Accept absolute paths. 4552 [\\/]* | ?:[\\/]*) 4553 re_direlt='/[^/][^/]*/\.\./' 4554 # Canonicalize the pathname of ld 4555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4558 done 4559 test -z "$LD" && LD="$ac_prog" 4560 ;; 4561 "") 4562 # If it fails, then pretend we aren't using GCC. 4563 ac_prog=ld 4564 ;; 4565 *) 4566 # If it is relative, then search for the first ld in PATH. 4567 with_gnu_ld=unknown 4568 ;; 4569 esac 4570elif test "$with_gnu_ld" = yes; then 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4572$as_echo_n "checking for GNU ld... " >&6; } 4573else 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4575$as_echo_n "checking for non-GNU ld... " >&6; } 4576fi 4577if ${lt_cv_path_LD+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 if test -z "$LD"; then 4581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4582 for ac_dir in $PATH; do 4583 IFS="$lt_save_ifs" 4584 test -z "$ac_dir" && ac_dir=. 4585 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4586 lt_cv_path_LD="$ac_dir/$ac_prog" 4587 # Check to see if the program is GNU ld. I'd rather use --version, 4588 # but apparently some variants of GNU ld only accept -v. 4589 # Break only if it was the GNU/non-GNU ld that we prefer. 4590 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4591 *GNU* | *'with BFD'*) 4592 test "$with_gnu_ld" != no && break 4593 ;; 4594 *) 4595 test "$with_gnu_ld" != yes && break 4596 ;; 4597 esac 4598 fi 4599 done 4600 IFS="$lt_save_ifs" 4601else 4602 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4603fi 4604fi 4605 4606LD="$lt_cv_path_LD" 4607if test -n "$LD"; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4609$as_echo "$LD" >&6; } 4610else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4612$as_echo "no" >&6; } 4613fi 4614test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4616$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4617if ${lt_cv_prog_gnu_ld+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4621case `$LD -v 2>&1 </dev/null` in 4622*GNU* | *'with BFD'*) 4623 lt_cv_prog_gnu_ld=yes 4624 ;; 4625*) 4626 lt_cv_prog_gnu_ld=no 4627 ;; 4628esac 4629fi 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4631$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4632with_gnu_ld=$lt_cv_prog_gnu_ld 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4643$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4644if ${lt_cv_path_NM+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 if test -n "$NM"; then 4648 # Let the user override the test. 4649 lt_cv_path_NM="$NM" 4650else 4651 lt_nm_to_check="${ac_tool_prefix}nm" 4652 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4653 lt_nm_to_check="$lt_nm_to_check nm" 4654 fi 4655 for lt_tmp_nm in $lt_nm_to_check; do 4656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4657 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4658 IFS="$lt_save_ifs" 4659 test -z "$ac_dir" && ac_dir=. 4660 tmp_nm="$ac_dir/$lt_tmp_nm" 4661 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4662 # Check to see if the nm accepts a BSD-compat flag. 4663 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4664 # nm: unknown option "B" ignored 4665 # Tru64's nm complains that /dev/null is an invalid object file 4666 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4667 */dev/null* | *'Invalid file or object type'*) 4668 lt_cv_path_NM="$tmp_nm -B" 4669 break 4670 ;; 4671 *) 4672 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4673 */dev/null*) 4674 lt_cv_path_NM="$tmp_nm -p" 4675 break 4676 ;; 4677 *) 4678 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4679 continue # so that we can try to find one that supports BSD flags 4680 ;; 4681 esac 4682 ;; 4683 esac 4684 fi 4685 done 4686 IFS="$lt_save_ifs" 4687 done 4688 : ${lt_cv_path_NM=no} 4689fi 4690fi 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4692$as_echo "$lt_cv_path_NM" >&6; } 4693if test "$lt_cv_path_NM" != "no"; then 4694 NM="$lt_cv_path_NM" 4695else 4696 # Didn't find any BSD compatible name lister, look for dumpbin. 4697 if test -n "$DUMPBIN"; then : 4698 # Let the user override the test. 4699 else 4700 if test -n "$ac_tool_prefix"; then 4701 for ac_prog in dumpbin "link -dump" 4702 do 4703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4704set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4706$as_echo_n "checking for $ac_word... " >&6; } 4707if ${ac_cv_prog_DUMPBIN+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 if test -n "$DUMPBIN"; then 4711 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4712else 4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4714for as_dir in $PATH 4715do 4716 IFS=$as_save_IFS 4717 test -z "$as_dir" && as_dir=. 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4720 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4722 break 2 4723 fi 4724done 4725 done 4726IFS=$as_save_IFS 4727 4728fi 4729fi 4730DUMPBIN=$ac_cv_prog_DUMPBIN 4731if test -n "$DUMPBIN"; then 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4733$as_echo "$DUMPBIN" >&6; } 4734else 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4736$as_echo "no" >&6; } 4737fi 4738 4739 4740 test -n "$DUMPBIN" && break 4741 done 4742fi 4743if test -z "$DUMPBIN"; then 4744 ac_ct_DUMPBIN=$DUMPBIN 4745 for ac_prog in dumpbin "link -dump" 4746do 4747 # Extract the first word of "$ac_prog", so it can be a program name with args. 4748set dummy $ac_prog; ac_word=$2 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4750$as_echo_n "checking for $ac_word... " >&6; } 4751if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753else 4754 if test -n "$ac_ct_DUMPBIN"; then 4755 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4756else 4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 test -z "$as_dir" && as_dir=. 4762 for ac_exec_ext in '' $ac_executable_extensions; do 4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4764 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768done 4769 done 4770IFS=$as_save_IFS 4771 4772fi 4773fi 4774ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4775if test -n "$ac_ct_DUMPBIN"; then 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4777$as_echo "$ac_ct_DUMPBIN" >&6; } 4778else 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4780$as_echo "no" >&6; } 4781fi 4782 4783 4784 test -n "$ac_ct_DUMPBIN" && break 4785done 4786 4787 if test "x$ac_ct_DUMPBIN" = x; then 4788 DUMPBIN=":" 4789 else 4790 case $cross_compiling:$ac_tool_warned in 4791yes:) 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4794ac_tool_warned=yes ;; 4795esac 4796 DUMPBIN=$ac_ct_DUMPBIN 4797 fi 4798fi 4799 4800 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4801 *COFF*) 4802 DUMPBIN="$DUMPBIN -symbols" 4803 ;; 4804 *) 4805 DUMPBIN=: 4806 ;; 4807 esac 4808 fi 4809 4810 if test "$DUMPBIN" != ":"; then 4811 NM="$DUMPBIN" 4812 fi 4813fi 4814test -z "$NM" && NM=nm 4815 4816 4817 4818 4819 4820 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4822$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4823if ${lt_cv_nm_interface+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825else 4826 lt_cv_nm_interface="BSD nm" 4827 echo "int some_variable = 0;" > conftest.$ac_ext 4828 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4829 (eval "$ac_compile" 2>conftest.err) 4830 cat conftest.err >&5 4831 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4832 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4833 cat conftest.err >&5 4834 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4835 cat conftest.out >&5 4836 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4837 lt_cv_nm_interface="MS dumpbin" 4838 fi 4839 rm -f conftest* 4840fi 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4842$as_echo "$lt_cv_nm_interface" >&6; } 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4845$as_echo_n "checking whether ln -s works... " >&6; } 4846LN_S=$as_ln_s 4847if test "$LN_S" = "ln -s"; then 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4849$as_echo "yes" >&6; } 4850else 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4852$as_echo "no, using $LN_S" >&6; } 4853fi 4854 4855# find the maximum length of command line arguments 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4857$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4858if ${lt_cv_sys_max_cmd_len+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 i=0 4862 teststring="ABCD" 4863 4864 case $build_os in 4865 msdosdjgpp*) 4866 # On DJGPP, this test can blow up pretty badly due to problems in libc 4867 # (any single argument exceeding 2000 bytes causes a buffer overrun 4868 # during glob expansion). Even if it were fixed, the result of this 4869 # check would be larger than it should be. 4870 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4871 ;; 4872 4873 gnu*) 4874 # Under GNU Hurd, this test is not required because there is 4875 # no limit to the length of command line arguments. 4876 # Libtool will interpret -1 as no limit whatsoever 4877 lt_cv_sys_max_cmd_len=-1; 4878 ;; 4879 4880 cygwin* | mingw* | cegcc*) 4881 # On Win9x/ME, this test blows up -- it succeeds, but takes 4882 # about 5 minutes as the teststring grows exponentially. 4883 # Worse, since 9x/ME are not pre-emptively multitasking, 4884 # you end up with a "frozen" computer, even though with patience 4885 # the test eventually succeeds (with a max line length of 256k). 4886 # Instead, let's just punt: use the minimum linelength reported by 4887 # all of the supported platforms: 8192 (on NT/2K/XP). 4888 lt_cv_sys_max_cmd_len=8192; 4889 ;; 4890 4891 mint*) 4892 # On MiNT this can take a long time and run out of memory. 4893 lt_cv_sys_max_cmd_len=8192; 4894 ;; 4895 4896 amigaos*) 4897 # On AmigaOS with pdksh, this test takes hours, literally. 4898 # So we just punt and use a minimum line length of 8192. 4899 lt_cv_sys_max_cmd_len=8192; 4900 ;; 4901 4902 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4903 # This has been around since 386BSD, at least. Likely further. 4904 if test -x /sbin/sysctl; then 4905 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4906 elif test -x /usr/sbin/sysctl; then 4907 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4908 else 4909 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4910 fi 4911 # And add a safety zone 4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4914 ;; 4915 4916 interix*) 4917 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4918 lt_cv_sys_max_cmd_len=196608 4919 ;; 4920 4921 os2*) 4922 # The test takes a long time on OS/2. 4923 lt_cv_sys_max_cmd_len=8192 4924 ;; 4925 4926 osf*) 4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4929 # nice to cause kernel panics so lets avoid the loop below. 4930 # First set a reasonable default. 4931 lt_cv_sys_max_cmd_len=16384 4932 # 4933 if test -x /sbin/sysconfig; then 4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4935 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4936 esac 4937 fi 4938 ;; 4939 sco3.2v5*) 4940 lt_cv_sys_max_cmd_len=102400 4941 ;; 4942 sysv5* | sco5v6* | sysv4.2uw2*) 4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4944 if test -n "$kargmax"; then 4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4946 else 4947 lt_cv_sys_max_cmd_len=32768 4948 fi 4949 ;; 4950 *) 4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4952 if test -n "$lt_cv_sys_max_cmd_len"; then 4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4955 else 4956 # Make teststring a little bigger before we do anything with it. 4957 # a 1K string should be a reasonable start. 4958 for i in 1 2 3 4 5 6 7 8 ; do 4959 teststring=$teststring$teststring 4960 done 4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4962 # If test is not a shell built-in, we'll probably end up computing a 4963 # maximum length that is only half of the actual maximum length, but 4964 # we can't tell. 4965 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4966 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4967 test $i != 17 # 1/2 MB should be enough 4968 do 4969 i=`expr $i + 1` 4970 teststring=$teststring$teststring 4971 done 4972 # Only check the string length outside the loop. 4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4974 teststring= 4975 # Add a significant safety factor because C++ compilers can tack on 4976 # massive amounts of additional arguments before passing them to the 4977 # linker. It appears as though 1/2 is a usable value. 4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4979 fi 4980 ;; 4981 esac 4982 4983fi 4984 4985if test -n $lt_cv_sys_max_cmd_len ; then 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4987$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4988else 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4990$as_echo "none" >&6; } 4991fi 4992max_cmd_len=$lt_cv_sys_max_cmd_len 4993 4994 4995 4996 4997 4998 4999: ${CP="cp -f"} 5000: ${MV="mv -f"} 5001: ${RM="rm -f"} 5002 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5004$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5005# Try some XSI features 5006xsi_shell=no 5007( _lt_dummy="a/b/c" 5008 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5009 = c,a/b,b/c, \ 5010 && eval 'test $(( 1 + 1 )) -eq 2 \ 5011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5012 && xsi_shell=yes 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5014$as_echo "$xsi_shell" >&6; } 5015 5016 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5018$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5019lt_shell_append=no 5020( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5021 >/dev/null 2>&1 \ 5022 && lt_shell_append=yes 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5024$as_echo "$lt_shell_append" >&6; } 5025 5026 5027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5028 lt_unset=unset 5029else 5030 lt_unset=false 5031fi 5032 5033 5034 5035 5036 5037# test EBCDIC or ASCII 5038case `echo X|tr X '\101'` in 5039 A) # ASCII based system 5040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5041 lt_SP2NL='tr \040 \012' 5042 lt_NL2SP='tr \015\012 \040\040' 5043 ;; 5044 *) # EBCDIC based system 5045 lt_SP2NL='tr \100 \n' 5046 lt_NL2SP='tr \r\n \100\100' 5047 ;; 5048esac 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5059$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5060if ${lt_cv_to_host_file_cmd+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 case $host in 5064 *-*-mingw* ) 5065 case $build in 5066 *-*-mingw* ) # actually msys 5067 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5068 ;; 5069 *-*-cygwin* ) 5070 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5071 ;; 5072 * ) # otherwise, assume *nix 5073 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5074 ;; 5075 esac 5076 ;; 5077 *-*-cygwin* ) 5078 case $build in 5079 *-*-mingw* ) # actually msys 5080 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5081 ;; 5082 *-*-cygwin* ) 5083 lt_cv_to_host_file_cmd=func_convert_file_noop 5084 ;; 5085 * ) # otherwise, assume *nix 5086 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5087 ;; 5088 esac 5089 ;; 5090 * ) # unhandled hosts (and "normal" native builds) 5091 lt_cv_to_host_file_cmd=func_convert_file_noop 5092 ;; 5093esac 5094 5095fi 5096 5097to_host_file_cmd=$lt_cv_to_host_file_cmd 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5099$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5100 5101 5102 5103 5104 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5106$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5107if ${lt_cv_to_tool_file_cmd+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 #assume ordinary cross tools, or native build. 5111lt_cv_to_tool_file_cmd=func_convert_file_noop 5112case $host in 5113 *-*-mingw* ) 5114 case $build in 5115 *-*-mingw* ) # actually msys 5116 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5117 ;; 5118 esac 5119 ;; 5120esac 5121 5122fi 5123 5124to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5126$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5127 5128 5129 5130 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5133$as_echo_n "checking for $LD option to reload object files... " >&6; } 5134if ${lt_cv_ld_reload_flag+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 lt_cv_ld_reload_flag='-r' 5138fi 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5140$as_echo "$lt_cv_ld_reload_flag" >&6; } 5141reload_flag=$lt_cv_ld_reload_flag 5142case $reload_flag in 5143"" | " "*) ;; 5144*) reload_flag=" $reload_flag" ;; 5145esac 5146reload_cmds='$LD$reload_flag -o $output$reload_objs' 5147case $host_os in 5148 cygwin* | mingw* | pw32* | cegcc*) 5149 if test "$GCC" != yes; then 5150 reload_cmds=false 5151 fi 5152 ;; 5153 darwin*) 5154 if test "$GCC" = yes; then 5155 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5156 else 5157 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5158 fi 5159 ;; 5160esac 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170if test -n "$ac_tool_prefix"; then 5171 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5172set dummy ${ac_tool_prefix}objdump; ac_word=$2 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5174$as_echo_n "checking for $ac_word... " >&6; } 5175if ${ac_cv_prog_OBJDUMP+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177else 5178 if test -n "$OBJDUMP"; then 5179 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5180else 5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5188 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193 done 5194IFS=$as_save_IFS 5195 5196fi 5197fi 5198OBJDUMP=$ac_cv_prog_OBJDUMP 5199if test -n "$OBJDUMP"; then 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5201$as_echo "$OBJDUMP" >&6; } 5202else 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5204$as_echo "no" >&6; } 5205fi 5206 5207 5208fi 5209if test -z "$ac_cv_prog_OBJDUMP"; then 5210 ac_ct_OBJDUMP=$OBJDUMP 5211 # Extract the first word of "objdump", so it can be a program name with args. 5212set dummy objdump; ac_word=$2 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5214$as_echo_n "checking for $ac_word... " >&6; } 5215if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 if test -n "$ac_ct_OBJDUMP"; then 5219 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5220else 5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5222for as_dir in $PATH 5223do 5224 IFS=$as_save_IFS 5225 test -z "$as_dir" && as_dir=. 5226 for ac_exec_ext in '' $ac_executable_extensions; do 5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5228 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5230 break 2 5231 fi 5232done 5233 done 5234IFS=$as_save_IFS 5235 5236fi 5237fi 5238ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5239if test -n "$ac_ct_OBJDUMP"; then 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5241$as_echo "$ac_ct_OBJDUMP" >&6; } 5242else 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5244$as_echo "no" >&6; } 5245fi 5246 5247 if test "x$ac_ct_OBJDUMP" = x; then 5248 OBJDUMP="false" 5249 else 5250 case $cross_compiling:$ac_tool_warned in 5251yes:) 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5254ac_tool_warned=yes ;; 5255esac 5256 OBJDUMP=$ac_ct_OBJDUMP 5257 fi 5258else 5259 OBJDUMP="$ac_cv_prog_OBJDUMP" 5260fi 5261 5262test -z "$OBJDUMP" && OBJDUMP=objdump 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5273$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5274if ${lt_cv_deplibs_check_method+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276else 5277 lt_cv_file_magic_cmd='$MAGIC_CMD' 5278lt_cv_file_magic_test_file= 5279lt_cv_deplibs_check_method='unknown' 5280# Need to set the preceding variable on all platforms that support 5281# interlibrary dependencies. 5282# 'none' -- dependencies not supported. 5283# `unknown' -- same as none, but documents that we really don't know. 5284# 'pass_all' -- all dependencies passed with no checks. 5285# 'test_compile' -- check by making test program. 5286# 'file_magic [[regex]]' -- check by looking for files in library path 5287# which responds to the $file_magic_cmd with a given extended regex. 5288# If you have `file' or equivalent on your system and you're not sure 5289# whether `pass_all' will *always* work, you probably want this one. 5290 5291case $host_os in 5292aix[4-9]*) 5293 lt_cv_deplibs_check_method=pass_all 5294 ;; 5295 5296beos*) 5297 lt_cv_deplibs_check_method=pass_all 5298 ;; 5299 5300bsdi[45]*) 5301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5302 lt_cv_file_magic_cmd='/usr/bin/file -L' 5303 lt_cv_file_magic_test_file=/shlib/libc.so 5304 ;; 5305 5306cygwin*) 5307 # func_win32_libid is a shell function defined in ltmain.sh 5308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5309 lt_cv_file_magic_cmd='func_win32_libid' 5310 ;; 5311 5312mingw* | pw32*) 5313 # Base MSYS/MinGW do not provide the 'file' command needed by 5314 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5315 # unless we find 'file', for example because we are cross-compiling. 5316 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5317 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5318 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5319 lt_cv_file_magic_cmd='func_win32_libid' 5320 else 5321 # Keep this pattern in sync with the one in func_win32_libid. 5322 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5323 lt_cv_file_magic_cmd='$OBJDUMP -f' 5324 fi 5325 ;; 5326 5327cegcc*) 5328 # use the weaker test based on 'objdump'. See mingw*. 5329 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5330 lt_cv_file_magic_cmd='$OBJDUMP -f' 5331 ;; 5332 5333darwin* | rhapsody*) 5334 lt_cv_deplibs_check_method=pass_all 5335 ;; 5336 5337freebsd* | dragonfly*) 5338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5339 case $host_cpu in 5340 i*86 ) 5341 # Not sure whether the presence of OpenBSD here was a mistake. 5342 # Let's accept both of them until this is cleared up. 5343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5344 lt_cv_file_magic_cmd=/usr/bin/file 5345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5346 ;; 5347 esac 5348 else 5349 lt_cv_deplibs_check_method=pass_all 5350 fi 5351 ;; 5352 5353gnu*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 5357haiku*) 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360 5361hpux10.20* | hpux11*) 5362 lt_cv_file_magic_cmd=/usr/bin/file 5363 case $host_cpu in 5364 ia64*) 5365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5366 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5367 ;; 5368 hppa*64*) 5369 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]' 5370 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5371 ;; 5372 *) 5373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5374 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5375 ;; 5376 esac 5377 ;; 5378 5379interix[3-9]*) 5380 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5382 ;; 5383 5384irix5* | irix6* | nonstopux*) 5385 case $LD in 5386 *-32|*"-32 ") libmagic=32-bit;; 5387 *-n32|*"-n32 ") libmagic=N32;; 5388 *-64|*"-64 ") libmagic=64-bit;; 5389 *) libmagic=never-match;; 5390 esac 5391 lt_cv_deplibs_check_method=pass_all 5392 ;; 5393 5394# This must be glibc/ELF. 5395linux* | k*bsd*-gnu | kopensolaris*-gnu) 5396 lt_cv_deplibs_check_method=pass_all 5397 ;; 5398 5399netbsd*) 5400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5402 else 5403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5404 fi 5405 ;; 5406 5407newos6*) 5408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5409 lt_cv_file_magic_cmd=/usr/bin/file 5410 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5411 ;; 5412 5413*nto* | *qnx*) 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416 5417openbsd*) 5418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5420 else 5421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5422 fi 5423 ;; 5424 5425osf3* | osf4* | osf5*) 5426 lt_cv_deplibs_check_method=pass_all 5427 ;; 5428 5429rdos*) 5430 lt_cv_deplibs_check_method=pass_all 5431 ;; 5432 5433solaris*) 5434 lt_cv_deplibs_check_method=pass_all 5435 ;; 5436 5437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5438 lt_cv_deplibs_check_method=pass_all 5439 ;; 5440 5441sysv4 | sysv4.3*) 5442 case $host_vendor in 5443 motorola) 5444 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]' 5445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5446 ;; 5447 ncr) 5448 lt_cv_deplibs_check_method=pass_all 5449 ;; 5450 sequent) 5451 lt_cv_file_magic_cmd='/bin/file' 5452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5453 ;; 5454 sni) 5455 lt_cv_file_magic_cmd='/bin/file' 5456 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5457 lt_cv_file_magic_test_file=/lib/libc.so 5458 ;; 5459 siemens) 5460 lt_cv_deplibs_check_method=pass_all 5461 ;; 5462 pc) 5463 lt_cv_deplibs_check_method=pass_all 5464 ;; 5465 esac 5466 ;; 5467 5468tpf*) 5469 lt_cv_deplibs_check_method=pass_all 5470 ;; 5471esac 5472 5473fi 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5475$as_echo "$lt_cv_deplibs_check_method" >&6; } 5476 5477file_magic_glob= 5478want_nocaseglob=no 5479if test "$build" = "$host"; then 5480 case $host_os in 5481 mingw* | pw32*) 5482 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5483 want_nocaseglob=yes 5484 else 5485 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5486 fi 5487 ;; 5488 esac 5489fi 5490 5491file_magic_cmd=$lt_cv_file_magic_cmd 5492deplibs_check_method=$lt_cv_deplibs_check_method 5493test -z "$deplibs_check_method" && deplibs_check_method=unknown 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516if test -n "$ac_tool_prefix"; then 5517 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5518set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5520$as_echo_n "checking for $ac_word... " >&6; } 5521if ${ac_cv_prog_DLLTOOL+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523else 5524 if test -n "$DLLTOOL"; then 5525 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5526else 5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5528for as_dir in $PATH 5529do 5530 IFS=$as_save_IFS 5531 test -z "$as_dir" && as_dir=. 5532 for ac_exec_ext in '' $ac_executable_extensions; do 5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5534 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5536 break 2 5537 fi 5538done 5539 done 5540IFS=$as_save_IFS 5541 5542fi 5543fi 5544DLLTOOL=$ac_cv_prog_DLLTOOL 5545if test -n "$DLLTOOL"; then 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5547$as_echo "$DLLTOOL" >&6; } 5548else 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5550$as_echo "no" >&6; } 5551fi 5552 5553 5554fi 5555if test -z "$ac_cv_prog_DLLTOOL"; then 5556 ac_ct_DLLTOOL=$DLLTOOL 5557 # Extract the first word of "dlltool", so it can be a program name with args. 5558set dummy dlltool; ac_word=$2 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5560$as_echo_n "checking for $ac_word... " >&6; } 5561if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 if test -n "$ac_ct_DLLTOOL"; then 5565 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5566else 5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5568for as_dir in $PATH 5569do 5570 IFS=$as_save_IFS 5571 test -z "$as_dir" && as_dir=. 5572 for ac_exec_ext in '' $ac_executable_extensions; do 5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5574 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5576 break 2 5577 fi 5578done 5579 done 5580IFS=$as_save_IFS 5581 5582fi 5583fi 5584ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5585if test -n "$ac_ct_DLLTOOL"; then 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5587$as_echo "$ac_ct_DLLTOOL" >&6; } 5588else 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5590$as_echo "no" >&6; } 5591fi 5592 5593 if test "x$ac_ct_DLLTOOL" = x; then 5594 DLLTOOL="false" 5595 else 5596 case $cross_compiling:$ac_tool_warned in 5597yes:) 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5600ac_tool_warned=yes ;; 5601esac 5602 DLLTOOL=$ac_ct_DLLTOOL 5603 fi 5604else 5605 DLLTOOL="$ac_cv_prog_DLLTOOL" 5606fi 5607 5608test -z "$DLLTOOL" && DLLTOOL=dlltool 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5620$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5621if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 lt_cv_sharedlib_from_linklib_cmd='unknown' 5625 5626case $host_os in 5627cygwin* | mingw* | pw32* | cegcc*) 5628 # two different shell functions defined in ltmain.sh 5629 # decide which to use based on capabilities of $DLLTOOL 5630 case `$DLLTOOL --help 2>&1` in 5631 *--identify-strict*) 5632 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5633 ;; 5634 *) 5635 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5636 ;; 5637 esac 5638 ;; 5639*) 5640 # fallback: assume linklib IS sharedlib 5641 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5642 ;; 5643esac 5644 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5647$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5648sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5649test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5650 5651 5652 5653 5654 5655 5656 5657 5658if test -n "$ac_tool_prefix"; then 5659 for ac_prog in ar 5660 do 5661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5662set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5664$as_echo_n "checking for $ac_word... " >&6; } 5665if ${ac_cv_prog_AR+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 if test -n "$AR"; then 5669 ac_cv_prog_AR="$AR" # Let the user override the test. 5670else 5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5678 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682done 5683 done 5684IFS=$as_save_IFS 5685 5686fi 5687fi 5688AR=$ac_cv_prog_AR 5689if test -n "$AR"; then 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5691$as_echo "$AR" >&6; } 5692else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694$as_echo "no" >&6; } 5695fi 5696 5697 5698 test -n "$AR" && break 5699 done 5700fi 5701if test -z "$AR"; then 5702 ac_ct_AR=$AR 5703 for ac_prog in ar 5704do 5705 # Extract the first word of "$ac_prog", so it can be a program name with args. 5706set dummy $ac_prog; ac_word=$2 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5708$as_echo_n "checking for $ac_word... " >&6; } 5709if ${ac_cv_prog_ac_ct_AR+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711else 5712 if test -n "$ac_ct_AR"; then 5713 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5714else 5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716for as_dir in $PATH 5717do 5718 IFS=$as_save_IFS 5719 test -z "$as_dir" && as_dir=. 5720 for ac_exec_ext in '' $ac_executable_extensions; do 5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5722 ac_cv_prog_ac_ct_AR="$ac_prog" 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5724 break 2 5725 fi 5726done 5727 done 5728IFS=$as_save_IFS 5729 5730fi 5731fi 5732ac_ct_AR=$ac_cv_prog_ac_ct_AR 5733if test -n "$ac_ct_AR"; then 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5735$as_echo "$ac_ct_AR" >&6; } 5736else 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5738$as_echo "no" >&6; } 5739fi 5740 5741 5742 test -n "$ac_ct_AR" && break 5743done 5744 5745 if test "x$ac_ct_AR" = x; then 5746 AR="false" 5747 else 5748 case $cross_compiling:$ac_tool_warned in 5749yes:) 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5752ac_tool_warned=yes ;; 5753esac 5754 AR=$ac_ct_AR 5755 fi 5756fi 5757 5758: ${AR=ar} 5759: ${AR_FLAGS=cru} 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5772$as_echo_n "checking for archiver @FILE support... " >&6; } 5773if ${lt_cv_ar_at_file+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775else 5776 lt_cv_ar_at_file=no 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779 5780int 5781main () 5782{ 5783 5784 ; 5785 return 0; 5786} 5787_ACEOF 5788if ac_fn_c_try_compile "$LINENO"; then : 5789 echo conftest.$ac_objext > conftest.lst 5790 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5792 (eval $lt_ar_try) 2>&5 5793 ac_status=$? 5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5795 test $ac_status = 0; } 5796 if test "$ac_status" -eq 0; then 5797 # Ensure the archiver fails upon bogus file names. 5798 rm -f conftest.$ac_objext libconftest.a 5799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5800 (eval $lt_ar_try) 2>&5 5801 ac_status=$? 5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5803 test $ac_status = 0; } 5804 if test "$ac_status" -ne 0; then 5805 lt_cv_ar_at_file=@ 5806 fi 5807 fi 5808 rm -f conftest.* libconftest.a 5809 5810fi 5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5812 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5815$as_echo "$lt_cv_ar_at_file" >&6; } 5816 5817if test "x$lt_cv_ar_at_file" = xno; then 5818 archiver_list_spec= 5819else 5820 archiver_list_spec=$lt_cv_ar_at_file 5821fi 5822 5823 5824 5825 5826 5827 5828 5829if test -n "$ac_tool_prefix"; then 5830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5831set dummy ${ac_tool_prefix}strip; ac_word=$2 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5833$as_echo_n "checking for $ac_word... " >&6; } 5834if ${ac_cv_prog_STRIP+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 if test -n "$STRIP"; then 5838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5839else 5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5841for as_dir in $PATH 5842do 5843 IFS=$as_save_IFS 5844 test -z "$as_dir" && as_dir=. 5845 for ac_exec_ext in '' $ac_executable_extensions; do 5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5847 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5849 break 2 5850 fi 5851done 5852 done 5853IFS=$as_save_IFS 5854 5855fi 5856fi 5857STRIP=$ac_cv_prog_STRIP 5858if test -n "$STRIP"; then 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5860$as_echo "$STRIP" >&6; } 5861else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5863$as_echo "no" >&6; } 5864fi 5865 5866 5867fi 5868if test -z "$ac_cv_prog_STRIP"; then 5869 ac_ct_STRIP=$STRIP 5870 # Extract the first word of "strip", so it can be a program name with args. 5871set dummy strip; ac_word=$2 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5873$as_echo_n "checking for $ac_word... " >&6; } 5874if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 if test -n "$ac_ct_STRIP"; then 5878 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5879else 5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_prog_ac_ct_STRIP="strip" 5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892 done 5893IFS=$as_save_IFS 5894 5895fi 5896fi 5897ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5898if test -n "$ac_ct_STRIP"; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5900$as_echo "$ac_ct_STRIP" >&6; } 5901else 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5903$as_echo "no" >&6; } 5904fi 5905 5906 if test "x$ac_ct_STRIP" = x; then 5907 STRIP=":" 5908 else 5909 case $cross_compiling:$ac_tool_warned in 5910yes:) 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5913ac_tool_warned=yes ;; 5914esac 5915 STRIP=$ac_ct_STRIP 5916 fi 5917else 5918 STRIP="$ac_cv_prog_STRIP" 5919fi 5920 5921test -z "$STRIP" && STRIP=: 5922 5923 5924 5925 5926 5927 5928if test -n "$ac_tool_prefix"; then 5929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5930set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_RANLIB+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$RANLIB"; then 5937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956RANLIB=$ac_cv_prog_RANLIB 5957if test -n "$RANLIB"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5959$as_echo "$RANLIB" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 5966fi 5967if test -z "$ac_cv_prog_RANLIB"; then 5968 ac_ct_RANLIB=$RANLIB 5969 # Extract the first word of "ranlib", so it can be a program name with args. 5970set dummy ranlib; ac_word=$2 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5972$as_echo_n "checking for $ac_word... " >&6; } 5973if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 if test -n "$ac_ct_RANLIB"; then 5977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5986 ac_cv_prog_ac_ct_RANLIB="ranlib" 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5997if test -n "$ac_ct_RANLIB"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5999$as_echo "$ac_ct_RANLIB" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003fi 6004 6005 if test "x$ac_ct_RANLIB" = x; then 6006 RANLIB=":" 6007 else 6008 case $cross_compiling:$ac_tool_warned in 6009yes:) 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6012ac_tool_warned=yes ;; 6013esac 6014 RANLIB=$ac_ct_RANLIB 6015 fi 6016else 6017 RANLIB="$ac_cv_prog_RANLIB" 6018fi 6019 6020test -z "$RANLIB" && RANLIB=: 6021 6022 6023 6024 6025 6026 6027# Determine commands to create old-style static archives. 6028old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6029old_postinstall_cmds='chmod 644 $oldlib' 6030old_postuninstall_cmds= 6031 6032if test -n "$RANLIB"; then 6033 case $host_os in 6034 openbsd*) 6035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6036 ;; 6037 *) 6038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6039 ;; 6040 esac 6041 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6042fi 6043 6044case $host_os in 6045 darwin*) 6046 lock_old_archive_extraction=yes ;; 6047 *) 6048 lock_old_archive_extraction=no ;; 6049esac 6050 6051 6052 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# If no C compiler was specified, use CC. 6090LTCC=${LTCC-"$CC"} 6091 6092# If no C compiler flags were specified, use CFLAGS. 6093LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6094 6095# Allow CC to be a program name with arguments. 6096compiler=$CC 6097 6098 6099# Check for command to grab the raw symbol name followed by C symbol from nm. 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6101$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6102if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 6106# These are sane defaults that work on at least a few old systems. 6107# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6108 6109# Character class describing NM global symbol codes. 6110symcode='[BCDEGRST]' 6111 6112# Regexp to match symbols that can be accessed directly from C. 6113sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6114 6115# Define system-specific variables. 6116case $host_os in 6117aix*) 6118 symcode='[BCDT]' 6119 ;; 6120cygwin* | mingw* | pw32* | cegcc*) 6121 symcode='[ABCDGISTW]' 6122 ;; 6123hpux*) 6124 if test "$host_cpu" = ia64; then 6125 symcode='[ABCDEGRST]' 6126 fi 6127 ;; 6128irix* | nonstopux*) 6129 symcode='[BCDEGRST]' 6130 ;; 6131osf*) 6132 symcode='[BCDEGQRST]' 6133 ;; 6134solaris*) 6135 symcode='[BDRT]' 6136 ;; 6137sco3.2v5*) 6138 symcode='[DT]' 6139 ;; 6140sysv4.2uw2*) 6141 symcode='[DT]' 6142 ;; 6143sysv5* | sco5v6* | unixware* | OpenUNIX*) 6144 symcode='[ABDT]' 6145 ;; 6146sysv4) 6147 symcode='[DFNSTU]' 6148 ;; 6149esac 6150 6151# If we're using GNU nm, then use its standard symbol codes. 6152case `$NM -V 2>&1` in 6153*GNU* | *'with BFD'*) 6154 symcode='[ABCDGIRSTW]' ;; 6155esac 6156 6157# Transform an extracted symbol line into a proper C declaration. 6158# Some systems (esp. on ia64) link data and code symbols differently, 6159# so use this general approach. 6160lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6161 6162# Transform an extracted symbol line into symbol name and symbol address 6163lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6164lt_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'" 6165 6166# Handle CRLF in mingw tool chain 6167opt_cr= 6168case $build_os in 6169mingw*) 6170 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6171 ;; 6172esac 6173 6174# Try without a prefix underscore, then with it. 6175for ac_symprfx in "" "_"; do 6176 6177 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6178 symxfrm="\\1 $ac_symprfx\\2 \\2" 6179 6180 # Write the raw and C identifiers. 6181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6182 # Fake it for dumpbin and say T for any non-static function 6183 # and D for any global variable. 6184 # Also find C++ and __fastcall symbols from MSVC++, 6185 # which start with @ or ?. 6186 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6187" {last_section=section; section=\$ 3};"\ 6188" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6189" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6190" \$ 0!~/External *\|/{next};"\ 6191" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6192" {if(hide[section]) next};"\ 6193" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6194" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6195" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6196" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6197" ' prfx=^$ac_symprfx" 6198 else 6199 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6200 fi 6201 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6202 6203 # Check to see that the pipe works correctly. 6204 pipe_works=no 6205 6206 rm -f conftest* 6207 cat > conftest.$ac_ext <<_LT_EOF 6208#ifdef __cplusplus 6209extern "C" { 6210#endif 6211char nm_test_var; 6212void nm_test_func(void); 6213void nm_test_func(void){} 6214#ifdef __cplusplus 6215} 6216#endif 6217int main(){nm_test_var='a';nm_test_func();return(0);} 6218_LT_EOF 6219 6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6221 (eval $ac_compile) 2>&5 6222 ac_status=$? 6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6224 test $ac_status = 0; }; then 6225 # Now try to grab the symbols. 6226 nlist=conftest.nm 6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6228 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6229 ac_status=$? 6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6231 test $ac_status = 0; } && test -s "$nlist"; then 6232 # Try sorting and uniquifying the output. 6233 if sort "$nlist" | uniq > "$nlist"T; then 6234 mv -f "$nlist"T "$nlist" 6235 else 6236 rm -f "$nlist"T 6237 fi 6238 6239 # Make sure that we snagged all the symbols we need. 6240 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6241 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6242 cat <<_LT_EOF > conftest.$ac_ext 6243/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6244#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6245/* DATA imports from DLLs on WIN32 con't be const, because runtime 6246 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6247# define LT_DLSYM_CONST 6248#elif defined(__osf__) 6249/* This system does not cope well with relocations in const data. */ 6250# define LT_DLSYM_CONST 6251#else 6252# define LT_DLSYM_CONST const 6253#endif 6254 6255#ifdef __cplusplus 6256extern "C" { 6257#endif 6258 6259_LT_EOF 6260 # Now generate the symbol file. 6261 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6262 6263 cat <<_LT_EOF >> conftest.$ac_ext 6264 6265/* The mapping between symbol names and symbols. */ 6266LT_DLSYM_CONST struct { 6267 const char *name; 6268 void *address; 6269} 6270lt__PROGRAM__LTX_preloaded_symbols[] = 6271{ 6272 { "@PROGRAM@", (void *) 0 }, 6273_LT_EOF 6274 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6275 cat <<\_LT_EOF >> conftest.$ac_ext 6276 {0, (void *) 0} 6277}; 6278 6279/* This works around a problem in FreeBSD linker */ 6280#ifdef FREEBSD_WORKAROUND 6281static const void *lt_preloaded_setup() { 6282 return lt__PROGRAM__LTX_preloaded_symbols; 6283} 6284#endif 6285 6286#ifdef __cplusplus 6287} 6288#endif 6289_LT_EOF 6290 # Now try linking the two files. 6291 mv conftest.$ac_objext conftstm.$ac_objext 6292 lt_globsym_save_LIBS=$LIBS 6293 lt_globsym_save_CFLAGS=$CFLAGS 6294 LIBS="conftstm.$ac_objext" 6295 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6297 (eval $ac_link) 2>&5 6298 ac_status=$? 6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6300 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6301 pipe_works=yes 6302 fi 6303 LIBS=$lt_globsym_save_LIBS 6304 CFLAGS=$lt_globsym_save_CFLAGS 6305 else 6306 echo "cannot find nm_test_func in $nlist" >&5 6307 fi 6308 else 6309 echo "cannot find nm_test_var in $nlist" >&5 6310 fi 6311 else 6312 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6313 fi 6314 else 6315 echo "$progname: failed program was:" >&5 6316 cat conftest.$ac_ext >&5 6317 fi 6318 rm -rf conftest* conftst* 6319 6320 # Do not use the global_symbol_pipe unless it works. 6321 if test "$pipe_works" = yes; then 6322 break 6323 else 6324 lt_cv_sys_global_symbol_pipe= 6325 fi 6326done 6327 6328fi 6329 6330if test -z "$lt_cv_sys_global_symbol_pipe"; then 6331 lt_cv_sys_global_symbol_to_cdecl= 6332fi 6333if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6335$as_echo "failed" >&6; } 6336else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6338$as_echo "ok" >&6; } 6339fi 6340 6341# Response file support. 6342if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6343 nm_file_list_spec='@' 6344elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6345 nm_file_list_spec='@' 6346fi 6347 6348 6349 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6375$as_echo_n "checking for sysroot... " >&6; } 6376 6377# Check whether --with-sysroot was given. 6378if test "${with_sysroot+set}" = set; then : 6379 withval=$with_sysroot; 6380else 6381 with_sysroot=no 6382fi 6383 6384 6385lt_sysroot= 6386case ${with_sysroot} in #( 6387 yes) 6388 if test "$GCC" = yes; then 6389 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6390 fi 6391 ;; #( 6392 /*) 6393 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6394 ;; #( 6395 no|'') 6396 ;; #( 6397 *) 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6399$as_echo "${with_sysroot}" >&6; } 6400 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6401 ;; 6402esac 6403 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6405$as_echo "${lt_sysroot:-no}" >&6; } 6406 6407 6408 6409 6410 6411# Check whether --enable-libtool-lock was given. 6412if test "${enable_libtool_lock+set}" = set; then : 6413 enableval=$enable_libtool_lock; 6414fi 6415 6416test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6417 6418# Some flags need to be propagated to the compiler or linker for good 6419# libtool support. 6420case $host in 6421ia64-*-hpux*) 6422 # Find out which ABI we are using. 6423 echo 'int i;' > conftest.$ac_ext 6424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6425 (eval $ac_compile) 2>&5 6426 ac_status=$? 6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6428 test $ac_status = 0; }; then 6429 case `/usr/bin/file conftest.$ac_objext` in 6430 *ELF-32*) 6431 HPUX_IA64_MODE="32" 6432 ;; 6433 *ELF-64*) 6434 HPUX_IA64_MODE="64" 6435 ;; 6436 esac 6437 fi 6438 rm -rf conftest* 6439 ;; 6440*-*-irix6*) 6441 # Find out which ABI we are using. 6442 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6444 (eval $ac_compile) 2>&5 6445 ac_status=$? 6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6447 test $ac_status = 0; }; then 6448 if test "$lt_cv_prog_gnu_ld" = yes; then 6449 case `/usr/bin/file conftest.$ac_objext` in 6450 *32-bit*) 6451 LD="${LD-ld} -melf32bsmip" 6452 ;; 6453 *N32*) 6454 LD="${LD-ld} -melf32bmipn32" 6455 ;; 6456 *64-bit*) 6457 LD="${LD-ld} -melf64bmip" 6458 ;; 6459 esac 6460 else 6461 case `/usr/bin/file conftest.$ac_objext` in 6462 *32-bit*) 6463 LD="${LD-ld} -32" 6464 ;; 6465 *N32*) 6466 LD="${LD-ld} -n32" 6467 ;; 6468 *64-bit*) 6469 LD="${LD-ld} -64" 6470 ;; 6471 esac 6472 fi 6473 fi 6474 rm -rf conftest* 6475 ;; 6476 6477x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6478s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6479 # Find out which ABI we are using. 6480 echo 'int i;' > conftest.$ac_ext 6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6482 (eval $ac_compile) 2>&5 6483 ac_status=$? 6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6485 test $ac_status = 0; }; then 6486 case `/usr/bin/file conftest.o` in 6487 *32-bit*) 6488 case $host in 6489 x86_64-*kfreebsd*-gnu) 6490 LD="${LD-ld} -m elf_i386_fbsd" 6491 ;; 6492 x86_64-*linux*) 6493 LD="${LD-ld} -m elf_i386" 6494 ;; 6495 ppc64-*linux*|powerpc64-*linux*) 6496 LD="${LD-ld} -m elf32ppclinux" 6497 ;; 6498 s390x-*linux*) 6499 LD="${LD-ld} -m elf_s390" 6500 ;; 6501 sparc64-*linux*) 6502 LD="${LD-ld} -m elf32_sparc" 6503 ;; 6504 esac 6505 ;; 6506 *64-bit*) 6507 case $host in 6508 x86_64-*kfreebsd*-gnu) 6509 LD="${LD-ld} -m elf_x86_64_fbsd" 6510 ;; 6511 x86_64-*linux*) 6512 LD="${LD-ld} -m elf_x86_64" 6513 ;; 6514 ppc*-*linux*|powerpc*-*linux*) 6515 LD="${LD-ld} -m elf64ppc" 6516 ;; 6517 s390*-*linux*|s390*-*tpf*) 6518 LD="${LD-ld} -m elf64_s390" 6519 ;; 6520 sparc*-*linux*) 6521 LD="${LD-ld} -m elf64_sparc" 6522 ;; 6523 esac 6524 ;; 6525 esac 6526 fi 6527 rm -rf conftest* 6528 ;; 6529 6530*-*-sco3.2v5*) 6531 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6532 SAVE_CFLAGS="$CFLAGS" 6533 CFLAGS="$CFLAGS -belf" 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6535$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6536if ${lt_cv_cc_needs_belf+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 ac_ext=c 6540ac_cpp='$CPP $CPPFLAGS' 6541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6543ac_compiler_gnu=$ac_cv_c_compiler_gnu 6544 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547 6548int 6549main () 6550{ 6551 6552 ; 6553 return 0; 6554} 6555_ACEOF 6556if ac_fn_c_try_link "$LINENO"; then : 6557 lt_cv_cc_needs_belf=yes 6558else 6559 lt_cv_cc_needs_belf=no 6560fi 6561rm -f core conftest.err conftest.$ac_objext \ 6562 conftest$ac_exeext conftest.$ac_ext 6563 ac_ext=c 6564ac_cpp='$CPP $CPPFLAGS' 6565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6567ac_compiler_gnu=$ac_cv_c_compiler_gnu 6568 6569fi 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6571$as_echo "$lt_cv_cc_needs_belf" >&6; } 6572 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6574 CFLAGS="$SAVE_CFLAGS" 6575 fi 6576 ;; 6577*-*solaris*) 6578 # Find out which ABI we are using. 6579 echo 'int i;' > conftest.$ac_ext 6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6581 (eval $ac_compile) 2>&5 6582 ac_status=$? 6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6584 test $ac_status = 0; }; then 6585 case `/usr/bin/file conftest.o` in 6586 *64-bit*) 6587 case $lt_cv_prog_gnu_ld in 6588 yes*) 6589 case $host in 6590 i?86-*-solaris*) 6591 LD="${LD-ld} -m elf_x86_64" 6592 ;; 6593 sparc*-*-solaris*) 6594 LD="${LD-ld} -m elf64_sparc" 6595 ;; 6596 esac 6597 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6598 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6599 LD="${LD-ld}_sol2" 6600 fi 6601 ;; 6602 *) 6603 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6604 LD="${LD-ld} -64" 6605 fi 6606 ;; 6607 esac 6608 ;; 6609 esac 6610 fi 6611 rm -rf conftest* 6612 ;; 6613esac 6614 6615need_locks="$enable_libtool_lock" 6616 6617if test -n "$ac_tool_prefix"; then 6618 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6619set dummy ${ac_tool_prefix}mt; ac_word=$2 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6621$as_echo_n "checking for $ac_word... " >&6; } 6622if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 if test -n "$MANIFEST_TOOL"; then 6626 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6627else 6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6629for as_dir in $PATH 6630do 6631 IFS=$as_save_IFS 6632 test -z "$as_dir" && as_dir=. 6633 for ac_exec_ext in '' $ac_executable_extensions; do 6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6635 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 break 2 6638 fi 6639done 6640 done 6641IFS=$as_save_IFS 6642 6643fi 6644fi 6645MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6646if test -n "$MANIFEST_TOOL"; then 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6648$as_echo "$MANIFEST_TOOL" >&6; } 6649else 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6651$as_echo "no" >&6; } 6652fi 6653 6654 6655fi 6656if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6657 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6658 # Extract the first word of "mt", so it can be a program name with args. 6659set dummy mt; ac_word=$2 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6661$as_echo_n "checking for $ac_word... " >&6; } 6662if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664else 6665 if test -n "$ac_ct_MANIFEST_TOOL"; then 6666 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6667else 6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6669for as_dir in $PATH 6670do 6671 IFS=$as_save_IFS 6672 test -z "$as_dir" && as_dir=. 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6675 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680 done 6681IFS=$as_save_IFS 6682 6683fi 6684fi 6685ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6686if test -n "$ac_ct_MANIFEST_TOOL"; then 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6688$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6689else 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6691$as_echo "no" >&6; } 6692fi 6693 6694 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6695 MANIFEST_TOOL=":" 6696 else 6697 case $cross_compiling:$ac_tool_warned in 6698yes:) 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6701ac_tool_warned=yes ;; 6702esac 6703 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6704 fi 6705else 6706 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6707fi 6708 6709test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6711$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6712if ${lt_cv_path_mainfest_tool+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 lt_cv_path_mainfest_tool=no 6716 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6717 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6718 cat conftest.err >&5 6719 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6720 lt_cv_path_mainfest_tool=yes 6721 fi 6722 rm -f conftest* 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6725$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6726if test "x$lt_cv_path_mainfest_tool" != xyes; then 6727 MANIFEST_TOOL=: 6728fi 6729 6730 6731 6732 6733 6734 6735 case $host_os in 6736 rhapsody* | darwin*) 6737 if test -n "$ac_tool_prefix"; then 6738 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6739set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6741$as_echo_n "checking for $ac_word... " >&6; } 6742if ${ac_cv_prog_DSYMUTIL+:} false; then : 6743 $as_echo_n "(cached) " >&6 6744else 6745 if test -n "$DSYMUTIL"; then 6746 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6747else 6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6749for as_dir in $PATH 6750do 6751 IFS=$as_save_IFS 6752 test -z "$as_dir" && as_dir=. 6753 for ac_exec_ext in '' $ac_executable_extensions; do 6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6755 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6757 break 2 6758 fi 6759done 6760 done 6761IFS=$as_save_IFS 6762 6763fi 6764fi 6765DSYMUTIL=$ac_cv_prog_DSYMUTIL 6766if test -n "$DSYMUTIL"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6768$as_echo "$DSYMUTIL" >&6; } 6769else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771$as_echo "no" >&6; } 6772fi 6773 6774 6775fi 6776if test -z "$ac_cv_prog_DSYMUTIL"; then 6777 ac_ct_DSYMUTIL=$DSYMUTIL 6778 # Extract the first word of "dsymutil", so it can be a program name with args. 6779set dummy dsymutil; ac_word=$2 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6781$as_echo_n "checking for $ac_word... " >&6; } 6782if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 if test -n "$ac_ct_DSYMUTIL"; then 6786 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6787else 6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6789for as_dir in $PATH 6790do 6791 IFS=$as_save_IFS 6792 test -z "$as_dir" && as_dir=. 6793 for ac_exec_ext in '' $ac_executable_extensions; do 6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6795 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6797 break 2 6798 fi 6799done 6800 done 6801IFS=$as_save_IFS 6802 6803fi 6804fi 6805ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6806if test -n "$ac_ct_DSYMUTIL"; then 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6808$as_echo "$ac_ct_DSYMUTIL" >&6; } 6809else 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6811$as_echo "no" >&6; } 6812fi 6813 6814 if test "x$ac_ct_DSYMUTIL" = x; then 6815 DSYMUTIL=":" 6816 else 6817 case $cross_compiling:$ac_tool_warned in 6818yes:) 6819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6821ac_tool_warned=yes ;; 6822esac 6823 DSYMUTIL=$ac_ct_DSYMUTIL 6824 fi 6825else 6826 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6827fi 6828 6829 if test -n "$ac_tool_prefix"; then 6830 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6831set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6833$as_echo_n "checking for $ac_word... " >&6; } 6834if ${ac_cv_prog_NMEDIT+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 if test -n "$NMEDIT"; then 6838 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6839else 6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6841for as_dir in $PATH 6842do 6843 IFS=$as_save_IFS 6844 test -z "$as_dir" && as_dir=. 6845 for ac_exec_ext in '' $ac_executable_extensions; do 6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6847 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6849 break 2 6850 fi 6851done 6852 done 6853IFS=$as_save_IFS 6854 6855fi 6856fi 6857NMEDIT=$ac_cv_prog_NMEDIT 6858if test -n "$NMEDIT"; then 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6860$as_echo "$NMEDIT" >&6; } 6861else 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6863$as_echo "no" >&6; } 6864fi 6865 6866 6867fi 6868if test -z "$ac_cv_prog_NMEDIT"; then 6869 ac_ct_NMEDIT=$NMEDIT 6870 # Extract the first word of "nmedit", so it can be a program name with args. 6871set dummy nmedit; ac_word=$2 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873$as_echo_n "checking for $ac_word... " >&6; } 6874if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 if test -n "$ac_ct_NMEDIT"; then 6878 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6879else 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH 6882do 6883 IFS=$as_save_IFS 6884 test -z "$as_dir" && as_dir=. 6885 for ac_exec_ext in '' $ac_executable_extensions; do 6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6887 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6889 break 2 6890 fi 6891done 6892 done 6893IFS=$as_save_IFS 6894 6895fi 6896fi 6897ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6898if test -n "$ac_ct_NMEDIT"; then 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6900$as_echo "$ac_ct_NMEDIT" >&6; } 6901else 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6903$as_echo "no" >&6; } 6904fi 6905 6906 if test "x$ac_ct_NMEDIT" = x; then 6907 NMEDIT=":" 6908 else 6909 case $cross_compiling:$ac_tool_warned in 6910yes:) 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6913ac_tool_warned=yes ;; 6914esac 6915 NMEDIT=$ac_ct_NMEDIT 6916 fi 6917else 6918 NMEDIT="$ac_cv_prog_NMEDIT" 6919fi 6920 6921 if test -n "$ac_tool_prefix"; then 6922 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6923set dummy ${ac_tool_prefix}lipo; ac_word=$2 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6925$as_echo_n "checking for $ac_word... " >&6; } 6926if ${ac_cv_prog_LIPO+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 if test -n "$LIPO"; then 6930 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6931else 6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6933for as_dir in $PATH 6934do 6935 IFS=$as_save_IFS 6936 test -z "$as_dir" && as_dir=. 6937 for ac_exec_ext in '' $ac_executable_extensions; do 6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6939 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6941 break 2 6942 fi 6943done 6944 done 6945IFS=$as_save_IFS 6946 6947fi 6948fi 6949LIPO=$ac_cv_prog_LIPO 6950if test -n "$LIPO"; then 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6952$as_echo "$LIPO" >&6; } 6953else 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6955$as_echo "no" >&6; } 6956fi 6957 6958 6959fi 6960if test -z "$ac_cv_prog_LIPO"; then 6961 ac_ct_LIPO=$LIPO 6962 # Extract the first word of "lipo", so it can be a program name with args. 6963set dummy lipo; ac_word=$2 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6965$as_echo_n "checking for $ac_word... " >&6; } 6966if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 if test -n "$ac_ct_LIPO"; then 6970 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6971else 6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6973for as_dir in $PATH 6974do 6975 IFS=$as_save_IFS 6976 test -z "$as_dir" && as_dir=. 6977 for ac_exec_ext in '' $ac_executable_extensions; do 6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6979 ac_cv_prog_ac_ct_LIPO="lipo" 6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6981 break 2 6982 fi 6983done 6984 done 6985IFS=$as_save_IFS 6986 6987fi 6988fi 6989ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6990if test -n "$ac_ct_LIPO"; then 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6992$as_echo "$ac_ct_LIPO" >&6; } 6993else 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6995$as_echo "no" >&6; } 6996fi 6997 6998 if test "x$ac_ct_LIPO" = x; then 6999 LIPO=":" 7000 else 7001 case $cross_compiling:$ac_tool_warned in 7002yes:) 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7005ac_tool_warned=yes ;; 7006esac 7007 LIPO=$ac_ct_LIPO 7008 fi 7009else 7010 LIPO="$ac_cv_prog_LIPO" 7011fi 7012 7013 if test -n "$ac_tool_prefix"; then 7014 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7015set dummy ${ac_tool_prefix}otool; ac_word=$2 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7017$as_echo_n "checking for $ac_word... " >&6; } 7018if ${ac_cv_prog_OTOOL+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020else 7021 if test -n "$OTOOL"; then 7022 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7023else 7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7025for as_dir in $PATH 7026do 7027 IFS=$as_save_IFS 7028 test -z "$as_dir" && as_dir=. 7029 for ac_exec_ext in '' $ac_executable_extensions; do 7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7031 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7033 break 2 7034 fi 7035done 7036 done 7037IFS=$as_save_IFS 7038 7039fi 7040fi 7041OTOOL=$ac_cv_prog_OTOOL 7042if test -n "$OTOOL"; then 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7044$as_echo "$OTOOL" >&6; } 7045else 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7047$as_echo "no" >&6; } 7048fi 7049 7050 7051fi 7052if test -z "$ac_cv_prog_OTOOL"; then 7053 ac_ct_OTOOL=$OTOOL 7054 # Extract the first word of "otool", so it can be a program name with args. 7055set dummy otool; ac_word=$2 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7057$as_echo_n "checking for $ac_word... " >&6; } 7058if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 if test -n "$ac_ct_OTOOL"; then 7062 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7063else 7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7065for as_dir in $PATH 7066do 7067 IFS=$as_save_IFS 7068 test -z "$as_dir" && as_dir=. 7069 for ac_exec_ext in '' $ac_executable_extensions; do 7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7071 ac_cv_prog_ac_ct_OTOOL="otool" 7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7073 break 2 7074 fi 7075done 7076 done 7077IFS=$as_save_IFS 7078 7079fi 7080fi 7081ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7082if test -n "$ac_ct_OTOOL"; then 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7084$as_echo "$ac_ct_OTOOL" >&6; } 7085else 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7087$as_echo "no" >&6; } 7088fi 7089 7090 if test "x$ac_ct_OTOOL" = x; then 7091 OTOOL=":" 7092 else 7093 case $cross_compiling:$ac_tool_warned in 7094yes:) 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7097ac_tool_warned=yes ;; 7098esac 7099 OTOOL=$ac_ct_OTOOL 7100 fi 7101else 7102 OTOOL="$ac_cv_prog_OTOOL" 7103fi 7104 7105 if test -n "$ac_tool_prefix"; then 7106 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7107set dummy ${ac_tool_prefix}otool64; ac_word=$2 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7109$as_echo_n "checking for $ac_word... " >&6; } 7110if ${ac_cv_prog_OTOOL64+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 if test -n "$OTOOL64"; then 7114 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7115else 7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7123 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127done 7128 done 7129IFS=$as_save_IFS 7130 7131fi 7132fi 7133OTOOL64=$ac_cv_prog_OTOOL64 7134if test -n "$OTOOL64"; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7136$as_echo "$OTOOL64" >&6; } 7137else 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7139$as_echo "no" >&6; } 7140fi 7141 7142 7143fi 7144if test -z "$ac_cv_prog_OTOOL64"; then 7145 ac_ct_OTOOL64=$OTOOL64 7146 # Extract the first word of "otool64", so it can be a program name with args. 7147set dummy otool64; ac_word=$2 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7149$as_echo_n "checking for $ac_word... " >&6; } 7150if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 if test -n "$ac_ct_OTOOL64"; then 7154 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7155else 7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_exec_ext in '' $ac_executable_extensions; do 7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7163 ac_cv_prog_ac_ct_OTOOL64="otool64" 7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7165 break 2 7166 fi 7167done 7168 done 7169IFS=$as_save_IFS 7170 7171fi 7172fi 7173ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7174if test -n "$ac_ct_OTOOL64"; then 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7176$as_echo "$ac_ct_OTOOL64" >&6; } 7177else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7179$as_echo "no" >&6; } 7180fi 7181 7182 if test "x$ac_ct_OTOOL64" = x; then 7183 OTOOL64=":" 7184 else 7185 case $cross_compiling:$ac_tool_warned in 7186yes:) 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7189ac_tool_warned=yes ;; 7190esac 7191 OTOOL64=$ac_ct_OTOOL64 7192 fi 7193else 7194 OTOOL64="$ac_cv_prog_OTOOL64" 7195fi 7196 7197 7198 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7224$as_echo_n "checking for -single_module linker flag... " >&6; } 7225if ${lt_cv_apple_cc_single_mod+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 lt_cv_apple_cc_single_mod=no 7229 if test -z "${LT_MULTI_MODULE}"; then 7230 # By default we will add the -single_module flag. You can override 7231 # by either setting the environment variable LT_MULTI_MODULE 7232 # non-empty at configure time, or by adding -multi_module to the 7233 # link flags. 7234 rm -rf libconftest.dylib* 7235 echo "int foo(void){return 1;}" > conftest.c 7236 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7237-dynamiclib -Wl,-single_module conftest.c" >&5 7238 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7239 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7240 _lt_result=$? 7241 # If there is a non-empty error log, and "single_module" 7242 # appears in it, assume the flag caused a linker warning 7243 if test -s conftest.err && $GREP single_module conftest.err; then 7244 cat conftest.err >&5 7245 # Otherwise, if the output was created with a 0 exit code from 7246 # the compiler, it worked. 7247 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7248 lt_cv_apple_cc_single_mod=yes 7249 else 7250 cat conftest.err >&5 7251 fi 7252 rm -rf libconftest.dylib* 7253 rm -f conftest.* 7254 fi 7255fi 7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7257$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7258 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7260$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7261if ${lt_cv_ld_exported_symbols_list+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263else 7264 lt_cv_ld_exported_symbols_list=no 7265 save_LDFLAGS=$LDFLAGS 7266 echo "_main" > conftest.sym 7267 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270 7271int 7272main () 7273{ 7274 7275 ; 7276 return 0; 7277} 7278_ACEOF 7279if ac_fn_c_try_link "$LINENO"; then : 7280 lt_cv_ld_exported_symbols_list=yes 7281else 7282 lt_cv_ld_exported_symbols_list=no 7283fi 7284rm -f core conftest.err conftest.$ac_objext \ 7285 conftest$ac_exeext conftest.$ac_ext 7286 LDFLAGS="$save_LDFLAGS" 7287 7288fi 7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7290$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7291 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7293$as_echo_n "checking for -force_load linker flag... " >&6; } 7294if ${lt_cv_ld_force_load+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 lt_cv_ld_force_load=no 7298 cat > conftest.c << _LT_EOF 7299int forced_loaded() { return 2;} 7300_LT_EOF 7301 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7302 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7303 echo "$AR cru libconftest.a conftest.o" >&5 7304 $AR cru libconftest.a conftest.o 2>&5 7305 echo "$RANLIB libconftest.a" >&5 7306 $RANLIB libconftest.a 2>&5 7307 cat > conftest.c << _LT_EOF 7308int main() { return 0;} 7309_LT_EOF 7310 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7311 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7312 _lt_result=$? 7313 if test -s conftest.err && $GREP force_load conftest.err; then 7314 cat conftest.err >&5 7315 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7316 lt_cv_ld_force_load=yes 7317 else 7318 cat conftest.err >&5 7319 fi 7320 rm -f conftest.err libconftest.a conftest conftest.c 7321 rm -rf conftest.dSYM 7322 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7325$as_echo "$lt_cv_ld_force_load" >&6; } 7326 case $host_os in 7327 rhapsody* | darwin1.[012]) 7328 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7329 darwin1.*) 7330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7331 darwin*) # darwin 5.x on 7332 # if running on 10.5 or later, the deployment target defaults 7333 # to the OS version, if on x86, and 10.4, the deployment 7334 # target defaults to 10.4. Don't you love it? 7335 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7336 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7338 10.[012]*) 7339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7340 10.*) 7341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7342 esac 7343 ;; 7344 esac 7345 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7346 _lt_dar_single_mod='$single_module' 7347 fi 7348 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7349 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7350 else 7351 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7352 fi 7353 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7354 _lt_dsymutil='~$DSYMUTIL $lib || :' 7355 else 7356 _lt_dsymutil= 7357 fi 7358 ;; 7359 esac 7360 7361ac_ext=c 7362ac_cpp='$CPP $CPPFLAGS' 7363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7365ac_compiler_gnu=$ac_cv_c_compiler_gnu 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7367$as_echo_n "checking how to run the C preprocessor... " >&6; } 7368# On Suns, sometimes $CPP names a directory. 7369if test -n "$CPP" && test -d "$CPP"; then 7370 CPP= 7371fi 7372if test -z "$CPP"; then 7373 if ${ac_cv_prog_CPP+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 # Double quotes because CPP needs to be expanded 7377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7378 do 7379 ac_preproc_ok=false 7380for ac_c_preproc_warn_flag in '' yes 7381do 7382 # Use a header file that comes with gcc, so configuring glibc 7383 # with a fresh cross-compiler works. 7384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7385 # <limits.h> exists even on freestanding compilers. 7386 # On the NeXT, cc -E runs the code through the compiler's parser, 7387 # not just through cpp. "Syntax error" is here to catch this case. 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390#ifdef __STDC__ 7391# include <limits.h> 7392#else 7393# include <assert.h> 7394#endif 7395 Syntax error 7396_ACEOF 7397if ac_fn_c_try_cpp "$LINENO"; then : 7398 7399else 7400 # Broken: fails on valid input. 7401continue 7402fi 7403rm -f conftest.err conftest.i conftest.$ac_ext 7404 7405 # OK, works on sane cases. Now check whether nonexistent headers 7406 # can be detected and how. 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409#include <ac_nonexistent.h> 7410_ACEOF 7411if ac_fn_c_try_cpp "$LINENO"; then : 7412 # Broken: success on invalid input. 7413continue 7414else 7415 # Passes both tests. 7416ac_preproc_ok=: 7417break 7418fi 7419rm -f conftest.err conftest.i conftest.$ac_ext 7420 7421done 7422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7423rm -f conftest.i conftest.err conftest.$ac_ext 7424if $ac_preproc_ok; then : 7425 break 7426fi 7427 7428 done 7429 ac_cv_prog_CPP=$CPP 7430 7431fi 7432 CPP=$ac_cv_prog_CPP 7433else 7434 ac_cv_prog_CPP=$CPP 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7437$as_echo "$CPP" >&6; } 7438ac_preproc_ok=false 7439for ac_c_preproc_warn_flag in '' yes 7440do 7441 # Use a header file that comes with gcc, so configuring glibc 7442 # with a fresh cross-compiler works. 7443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7444 # <limits.h> exists even on freestanding compilers. 7445 # On the NeXT, cc -E runs the code through the compiler's parser, 7446 # not just through cpp. "Syntax error" is here to catch this case. 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449#ifdef __STDC__ 7450# include <limits.h> 7451#else 7452# include <assert.h> 7453#endif 7454 Syntax error 7455_ACEOF 7456if ac_fn_c_try_cpp "$LINENO"; then : 7457 7458else 7459 # Broken: fails on valid input. 7460continue 7461fi 7462rm -f conftest.err conftest.i conftest.$ac_ext 7463 7464 # OK, works on sane cases. Now check whether nonexistent headers 7465 # can be detected and how. 7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7467/* end confdefs.h. */ 7468#include <ac_nonexistent.h> 7469_ACEOF 7470if ac_fn_c_try_cpp "$LINENO"; then : 7471 # Broken: success on invalid input. 7472continue 7473else 7474 # Passes both tests. 7475ac_preproc_ok=: 7476break 7477fi 7478rm -f conftest.err conftest.i conftest.$ac_ext 7479 7480done 7481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7482rm -f conftest.i conftest.err conftest.$ac_ext 7483if $ac_preproc_ok; then : 7484 7485else 7486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7488as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7489See \`config.log' for more details" "$LINENO" 5; } 7490fi 7491 7492ac_ext=c 7493ac_cpp='$CPP $CPPFLAGS' 7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7496ac_compiler_gnu=$ac_cv_c_compiler_gnu 7497 7498 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7500$as_echo_n "checking for ANSI C header files... " >&6; } 7501if ${ac_cv_header_stdc+:} false; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505/* end confdefs.h. */ 7506#include <stdlib.h> 7507#include <stdarg.h> 7508#include <string.h> 7509#include <float.h> 7510 7511int 7512main () 7513{ 7514 7515 ; 7516 return 0; 7517} 7518_ACEOF 7519if ac_fn_c_try_compile "$LINENO"; then : 7520 ac_cv_header_stdc=yes 7521else 7522 ac_cv_header_stdc=no 7523fi 7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7525 7526if test $ac_cv_header_stdc = yes; then 7527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530#include <string.h> 7531 7532_ACEOF 7533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7534 $EGREP "memchr" >/dev/null 2>&1; then : 7535 7536else 7537 ac_cv_header_stdc=no 7538fi 7539rm -f conftest* 7540 7541fi 7542 7543if test $ac_cv_header_stdc = yes; then 7544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547#include <stdlib.h> 7548 7549_ACEOF 7550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7551 $EGREP "free" >/dev/null 2>&1; then : 7552 7553else 7554 ac_cv_header_stdc=no 7555fi 7556rm -f conftest* 7557 7558fi 7559 7560if test $ac_cv_header_stdc = yes; then 7561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7562 if test "$cross_compiling" = yes; then : 7563 : 7564else 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7566/* end confdefs.h. */ 7567#include <ctype.h> 7568#include <stdlib.h> 7569#if ((' ' & 0x0FF) == 0x020) 7570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7572#else 7573# define ISLOWER(c) \ 7574 (('a' <= (c) && (c) <= 'i') \ 7575 || ('j' <= (c) && (c) <= 'r') \ 7576 || ('s' <= (c) && (c) <= 'z')) 7577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7578#endif 7579 7580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7581int 7582main () 7583{ 7584 int i; 7585 for (i = 0; i < 256; i++) 7586 if (XOR (islower (i), ISLOWER (i)) 7587 || toupper (i) != TOUPPER (i)) 7588 return 2; 7589 return 0; 7590} 7591_ACEOF 7592if ac_fn_c_try_run "$LINENO"; then : 7593 7594else 7595 ac_cv_header_stdc=no 7596fi 7597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7598 conftest.$ac_objext conftest.beam conftest.$ac_ext 7599fi 7600 7601fi 7602fi 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7604$as_echo "$ac_cv_header_stdc" >&6; } 7605if test $ac_cv_header_stdc = yes; then 7606 7607$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7608 7609fi 7610 7611# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7612for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7613 inttypes.h stdint.h unistd.h 7614do : 7615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7616ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7617" 7618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7619 cat >>confdefs.h <<_ACEOF 7620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7621_ACEOF 7622 7623fi 7624 7625done 7626 7627 7628for ac_header in dlfcn.h 7629do : 7630 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7631" 7632if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7633 cat >>confdefs.h <<_ACEOF 7634#define HAVE_DLFCN_H 1 7635_ACEOF 7636 7637fi 7638 7639done 7640 7641 7642 7643 7644 7645# Set options 7646 7647 7648 7649 enable_dlopen=no 7650 7651 7652 enable_win32_dll=no 7653 7654 7655 # Check whether --enable-shared was given. 7656if test "${enable_shared+set}" = set; then : 7657 enableval=$enable_shared; p=${PACKAGE-default} 7658 case $enableval in 7659 yes) enable_shared=yes ;; 7660 no) enable_shared=no ;; 7661 *) 7662 enable_shared=no 7663 # Look at the argument we got. We use all the common list separators. 7664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7665 for pkg in $enableval; do 7666 IFS="$lt_save_ifs" 7667 if test "X$pkg" = "X$p"; then 7668 enable_shared=yes 7669 fi 7670 done 7671 IFS="$lt_save_ifs" 7672 ;; 7673 esac 7674else 7675 enable_shared=yes 7676fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 # Check whether --enable-static was given. 7687if test "${enable_static+set}" = set; then : 7688 enableval=$enable_static; p=${PACKAGE-default} 7689 case $enableval in 7690 yes) enable_static=yes ;; 7691 no) enable_static=no ;; 7692 *) 7693 enable_static=no 7694 # Look at the argument we got. We use all the common list separators. 7695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7696 for pkg in $enableval; do 7697 IFS="$lt_save_ifs" 7698 if test "X$pkg" = "X$p"; then 7699 enable_static=yes 7700 fi 7701 done 7702 IFS="$lt_save_ifs" 7703 ;; 7704 esac 7705else 7706 enable_static=yes 7707fi 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718# Check whether --with-pic was given. 7719if test "${with_pic+set}" = set; then : 7720 withval=$with_pic; lt_p=${PACKAGE-default} 7721 case $withval in 7722 yes|no) pic_mode=$withval ;; 7723 *) 7724 pic_mode=default 7725 # Look at the argument we got. We use all the common list separators. 7726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7727 for lt_pkg in $withval; do 7728 IFS="$lt_save_ifs" 7729 if test "X$lt_pkg" = "X$lt_p"; then 7730 pic_mode=yes 7731 fi 7732 done 7733 IFS="$lt_save_ifs" 7734 ;; 7735 esac 7736else 7737 pic_mode=default 7738fi 7739 7740 7741test -z "$pic_mode" && pic_mode=default 7742 7743 7744 7745 7746 7747 7748 7749 # Check whether --enable-fast-install was given. 7750if test "${enable_fast_install+set}" = set; then : 7751 enableval=$enable_fast_install; p=${PACKAGE-default} 7752 case $enableval in 7753 yes) enable_fast_install=yes ;; 7754 no) enable_fast_install=no ;; 7755 *) 7756 enable_fast_install=no 7757 # Look at the argument we got. We use all the common list separators. 7758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7759 for pkg in $enableval; do 7760 IFS="$lt_save_ifs" 7761 if test "X$pkg" = "X$p"; then 7762 enable_fast_install=yes 7763 fi 7764 done 7765 IFS="$lt_save_ifs" 7766 ;; 7767 esac 7768else 7769 enable_fast_install=yes 7770fi 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782# This can be used to rebuild libtool when needed 7783LIBTOOL_DEPS="$ltmain" 7784 7785# Always use our own libtool. 7786LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7787 7788 7789 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 7817test -z "$LN_S" && LN_S="ln -s" 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832if test -n "${ZSH_VERSION+set}" ; then 7833 setopt NO_GLOB_SUBST 7834fi 7835 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7837$as_echo_n "checking for objdir... " >&6; } 7838if ${lt_cv_objdir+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 rm -f .libs 2>/dev/null 7842mkdir .libs 2>/dev/null 7843if test -d .libs; then 7844 lt_cv_objdir=.libs 7845else 7846 # MS-DOS does not allow filenames that begin with a dot. 7847 lt_cv_objdir=_libs 7848fi 7849rmdir .libs 2>/dev/null 7850fi 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7852$as_echo "$lt_cv_objdir" >&6; } 7853objdir=$lt_cv_objdir 7854 7855 7856 7857 7858 7859cat >>confdefs.h <<_ACEOF 7860#define LT_OBJDIR "$lt_cv_objdir/" 7861_ACEOF 7862 7863 7864 7865 7866case $host_os in 7867aix3*) 7868 # AIX sometimes has problems with the GCC collect2 program. For some 7869 # reason, if we set the COLLECT_NAMES environment variable, the problems 7870 # vanish in a puff of smoke. 7871 if test "X${COLLECT_NAMES+set}" != Xset; then 7872 COLLECT_NAMES= 7873 export COLLECT_NAMES 7874 fi 7875 ;; 7876esac 7877 7878# Global variables: 7879ofile=libtool 7880can_build_shared=yes 7881 7882# All known linkers require a `.a' archive for static linking (except MSVC, 7883# which needs '.lib'). 7884libext=a 7885 7886with_gnu_ld="$lt_cv_prog_gnu_ld" 7887 7888old_CC="$CC" 7889old_CFLAGS="$CFLAGS" 7890 7891# Set sane defaults for various variables 7892test -z "$CC" && CC=cc 7893test -z "$LTCC" && LTCC=$CC 7894test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7895test -z "$LD" && LD=ld 7896test -z "$ac_objext" && ac_objext=o 7897 7898for cc_temp in $compiler""; do 7899 case $cc_temp in 7900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7902 \-*) ;; 7903 *) break;; 7904 esac 7905done 7906cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7907 7908 7909# Only perform the check for file, if the check method requires it 7910test -z "$MAGIC_CMD" && MAGIC_CMD=file 7911case $deplibs_check_method in 7912file_magic*) 7913 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7915$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7916if ${lt_cv_path_MAGIC_CMD+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 case $MAGIC_CMD in 7920[\\/*] | ?:[\\/]*) 7921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7922 ;; 7923*) 7924 lt_save_MAGIC_CMD="$MAGIC_CMD" 7925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7927 for ac_dir in $ac_dummy; do 7928 IFS="$lt_save_ifs" 7929 test -z "$ac_dir" && ac_dir=. 7930 if test -f $ac_dir/${ac_tool_prefix}file; then 7931 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7932 if test -n "$file_magic_test_file"; then 7933 case $deplibs_check_method in 7934 "file_magic "*) 7935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7938 $EGREP "$file_magic_regex" > /dev/null; then 7939 : 7940 else 7941 cat <<_LT_EOF 1>&2 7942 7943*** Warning: the command libtool uses to detect shared libraries, 7944*** $file_magic_cmd, produces output that libtool cannot recognize. 7945*** The result is that libtool may fail to recognize shared libraries 7946*** as such. This will affect the creation of libtool libraries that 7947*** depend on shared libraries, but programs linked with such libtool 7948*** libraries will work regardless of this problem. Nevertheless, you 7949*** may want to report the problem to your system manager and/or to 7950*** bug-libtool@gnu.org 7951 7952_LT_EOF 7953 fi ;; 7954 esac 7955 fi 7956 break 7957 fi 7958 done 7959 IFS="$lt_save_ifs" 7960 MAGIC_CMD="$lt_save_MAGIC_CMD" 7961 ;; 7962esac 7963fi 7964 7965MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7966if test -n "$MAGIC_CMD"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7968$as_echo "$MAGIC_CMD" >&6; } 7969else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971$as_echo "no" >&6; } 7972fi 7973 7974 7975 7976 7977 7978if test -z "$lt_cv_path_MAGIC_CMD"; then 7979 if test -n "$ac_tool_prefix"; then 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7981$as_echo_n "checking for file... " >&6; } 7982if ${lt_cv_path_MAGIC_CMD+:} false; then : 7983 $as_echo_n "(cached) " >&6 7984else 7985 case $MAGIC_CMD in 7986[\\/*] | ?:[\\/]*) 7987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7988 ;; 7989*) 7990 lt_save_MAGIC_CMD="$MAGIC_CMD" 7991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7993 for ac_dir in $ac_dummy; do 7994 IFS="$lt_save_ifs" 7995 test -z "$ac_dir" && ac_dir=. 7996 if test -f $ac_dir/file; then 7997 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7998 if test -n "$file_magic_test_file"; then 7999 case $deplibs_check_method in 8000 "file_magic "*) 8001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8004 $EGREP "$file_magic_regex" > /dev/null; then 8005 : 8006 else 8007 cat <<_LT_EOF 1>&2 8008 8009*** Warning: the command libtool uses to detect shared libraries, 8010*** $file_magic_cmd, produces output that libtool cannot recognize. 8011*** The result is that libtool may fail to recognize shared libraries 8012*** as such. This will affect the creation of libtool libraries that 8013*** depend on shared libraries, but programs linked with such libtool 8014*** libraries will work regardless of this problem. Nevertheless, you 8015*** may want to report the problem to your system manager and/or to 8016*** bug-libtool@gnu.org 8017 8018_LT_EOF 8019 fi ;; 8020 esac 8021 fi 8022 break 8023 fi 8024 done 8025 IFS="$lt_save_ifs" 8026 MAGIC_CMD="$lt_save_MAGIC_CMD" 8027 ;; 8028esac 8029fi 8030 8031MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8032if test -n "$MAGIC_CMD"; then 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8034$as_echo "$MAGIC_CMD" >&6; } 8035else 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8037$as_echo "no" >&6; } 8038fi 8039 8040 8041 else 8042 MAGIC_CMD=: 8043 fi 8044fi 8045 8046 fi 8047 ;; 8048esac 8049 8050# Use C for the default configuration in the libtool script 8051 8052lt_save_CC="$CC" 8053ac_ext=c 8054ac_cpp='$CPP $CPPFLAGS' 8055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8057ac_compiler_gnu=$ac_cv_c_compiler_gnu 8058 8059 8060# Source file extension for C test sources. 8061ac_ext=c 8062 8063# Object file extension for compiled C test sources. 8064objext=o 8065objext=$objext 8066 8067# Code to be used in simple compile tests 8068lt_simple_compile_test_code="int some_variable = 0;" 8069 8070# Code to be used in simple link tests 8071lt_simple_link_test_code='int main(){return(0);}' 8072 8073 8074 8075 8076 8077 8078 8079# If no C compiler was specified, use CC. 8080LTCC=${LTCC-"$CC"} 8081 8082# If no C compiler flags were specified, use CFLAGS. 8083LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8084 8085# Allow CC to be a program name with arguments. 8086compiler=$CC 8087 8088# Save the default compiler, since it gets overwritten when the other 8089# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8090compiler_DEFAULT=$CC 8091 8092# save warnings/boilerplate of simple test code 8093ac_outfile=conftest.$ac_objext 8094echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8095eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8096_lt_compiler_boilerplate=`cat conftest.err` 8097$RM conftest* 8098 8099ac_outfile=conftest.$ac_objext 8100echo "$lt_simple_link_test_code" >conftest.$ac_ext 8101eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8102_lt_linker_boilerplate=`cat conftest.err` 8103$RM -r conftest* 8104 8105 8106if test -n "$compiler"; then 8107 8108lt_prog_compiler_no_builtin_flag= 8109 8110if test "$GCC" = yes; then 8111 case $cc_basename in 8112 nvcc*) 8113 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8114 *) 8115 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8116 esac 8117 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8119$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8120if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 lt_cv_prog_compiler_rtti_exceptions=no 8124 ac_outfile=conftest.$ac_objext 8125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8126 lt_compiler_flag="-fno-rtti -fno-exceptions" 8127 # Insert the option either (1) after the last *FLAGS variable, or 8128 # (2) before a word containing "conftest.", or (3) at the end. 8129 # Note that $ac_compile itself does not contain backslashes and begins 8130 # with a dollar sign (not a hyphen), so the echo should work correctly. 8131 # The option is referenced via a variable to avoid confusing sed. 8132 lt_compile=`echo "$ac_compile" | $SED \ 8133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8135 -e 's:$: $lt_compiler_flag:'` 8136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8137 (eval "$lt_compile" 2>conftest.err) 8138 ac_status=$? 8139 cat conftest.err >&5 8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8141 if (exit $ac_status) && test -s "$ac_outfile"; then 8142 # The compiler can only warn and ignore the option if not recognized 8143 # So say no if there are warnings other than the usual output. 8144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8147 lt_cv_prog_compiler_rtti_exceptions=yes 8148 fi 8149 fi 8150 $RM conftest* 8151 8152fi 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8154$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8155 8156if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8157 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8158else 8159 : 8160fi 8161 8162fi 8163 8164 8165 8166 8167 8168 8169 lt_prog_compiler_wl= 8170lt_prog_compiler_pic= 8171lt_prog_compiler_static= 8172 8173 8174 if test "$GCC" = yes; then 8175 lt_prog_compiler_wl='-Wl,' 8176 lt_prog_compiler_static='-static' 8177 8178 case $host_os in 8179 aix*) 8180 # All AIX code is PIC. 8181 if test "$host_cpu" = ia64; then 8182 # AIX 5 now supports IA64 processor 8183 lt_prog_compiler_static='-Bstatic' 8184 fi 8185 ;; 8186 8187 amigaos*) 8188 case $host_cpu in 8189 powerpc) 8190 # see comment about AmigaOS4 .so support 8191 lt_prog_compiler_pic='-fPIC' 8192 ;; 8193 m68k) 8194 # FIXME: we need at least 68020 code to build shared libraries, but 8195 # adding the `-m68020' flag to GCC prevents building anything better, 8196 # like `-m68040'. 8197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8198 ;; 8199 esac 8200 ;; 8201 8202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8203 # PIC is the default for these OSes. 8204 ;; 8205 8206 mingw* | cygwin* | pw32* | os2* | cegcc*) 8207 # This hack is so that the source file can tell whether it is being 8208 # built for inclusion in a dll (and should export symbols for example). 8209 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8210 # (--disable-auto-import) libraries 8211 lt_prog_compiler_pic='-DDLL_EXPORT' 8212 ;; 8213 8214 darwin* | rhapsody*) 8215 # PIC is the default on this platform 8216 # Common symbols not allowed in MH_DYLIB files 8217 lt_prog_compiler_pic='-fno-common' 8218 ;; 8219 8220 haiku*) 8221 # PIC is the default for Haiku. 8222 # The "-static" flag exists, but is broken. 8223 lt_prog_compiler_static= 8224 ;; 8225 8226 hpux*) 8227 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8228 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8229 # sets the default TLS model and affects inlining. 8230 case $host_cpu in 8231 hppa*64*) 8232 # +Z the default 8233 ;; 8234 *) 8235 lt_prog_compiler_pic='-fPIC' 8236 ;; 8237 esac 8238 ;; 8239 8240 interix[3-9]*) 8241 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8242 # Instead, we relocate shared libraries at runtime. 8243 ;; 8244 8245 msdosdjgpp*) 8246 # Just because we use GCC doesn't mean we suddenly get shared libraries 8247 # on systems that don't support them. 8248 lt_prog_compiler_can_build_shared=no 8249 enable_shared=no 8250 ;; 8251 8252 *nto* | *qnx*) 8253 # QNX uses GNU C++, but need to define -shared option too, otherwise 8254 # it will coredump. 8255 lt_prog_compiler_pic='-fPIC -shared' 8256 ;; 8257 8258 sysv4*MP*) 8259 if test -d /usr/nec; then 8260 lt_prog_compiler_pic=-Kconform_pic 8261 fi 8262 ;; 8263 8264 *) 8265 lt_prog_compiler_pic='-fPIC' 8266 ;; 8267 esac 8268 8269 case $cc_basename in 8270 nvcc*) # Cuda Compiler Driver 2.2 8271 lt_prog_compiler_wl='-Xlinker ' 8272 if test -n "$lt_prog_compiler_pic"; then 8273 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8274 fi 8275 ;; 8276 esac 8277 else 8278 # PORTME Check for flag to pass linker flags through the system compiler. 8279 case $host_os in 8280 aix*) 8281 lt_prog_compiler_wl='-Wl,' 8282 if test "$host_cpu" = ia64; then 8283 # AIX 5 now supports IA64 processor 8284 lt_prog_compiler_static='-Bstatic' 8285 else 8286 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8287 fi 8288 ;; 8289 8290 mingw* | cygwin* | pw32* | os2* | cegcc*) 8291 # This hack is so that the source file can tell whether it is being 8292 # built for inclusion in a dll (and should export symbols for example). 8293 lt_prog_compiler_pic='-DDLL_EXPORT' 8294 ;; 8295 8296 hpux9* | hpux10* | hpux11*) 8297 lt_prog_compiler_wl='-Wl,' 8298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8299 # not for PA HP-UX. 8300 case $host_cpu in 8301 hppa*64*|ia64*) 8302 # +Z the default 8303 ;; 8304 *) 8305 lt_prog_compiler_pic='+Z' 8306 ;; 8307 esac 8308 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8309 lt_prog_compiler_static='${wl}-a ${wl}archive' 8310 ;; 8311 8312 irix5* | irix6* | nonstopux*) 8313 lt_prog_compiler_wl='-Wl,' 8314 # PIC (with -KPIC) is the default. 8315 lt_prog_compiler_static='-non_shared' 8316 ;; 8317 8318 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8319 case $cc_basename in 8320 # old Intel for x86_64 which still supported -KPIC. 8321 ecc*) 8322 lt_prog_compiler_wl='-Wl,' 8323 lt_prog_compiler_pic='-KPIC' 8324 lt_prog_compiler_static='-static' 8325 ;; 8326 # icc used to be incompatible with GCC. 8327 # ICC 10 doesn't accept -KPIC any more. 8328 icc* | ifort*) 8329 lt_prog_compiler_wl='-Wl,' 8330 lt_prog_compiler_pic='-fPIC' 8331 lt_prog_compiler_static='-static' 8332 ;; 8333 # Lahey Fortran 8.1. 8334 lf95*) 8335 lt_prog_compiler_wl='-Wl,' 8336 lt_prog_compiler_pic='--shared' 8337 lt_prog_compiler_static='--static' 8338 ;; 8339 nagfor*) 8340 # NAG Fortran compiler 8341 lt_prog_compiler_wl='-Wl,-Wl,,' 8342 lt_prog_compiler_pic='-PIC' 8343 lt_prog_compiler_static='-Bstatic' 8344 ;; 8345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8346 # Portland Group compilers (*not* the Pentium gcc compiler, 8347 # which looks to be a dead project) 8348 lt_prog_compiler_wl='-Wl,' 8349 lt_prog_compiler_pic='-fpic' 8350 lt_prog_compiler_static='-Bstatic' 8351 ;; 8352 ccc*) 8353 lt_prog_compiler_wl='-Wl,' 8354 # All Alpha code is PIC. 8355 lt_prog_compiler_static='-non_shared' 8356 ;; 8357 xl* | bgxl* | bgf* | mpixl*) 8358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8359 lt_prog_compiler_wl='-Wl,' 8360 lt_prog_compiler_pic='-qpic' 8361 lt_prog_compiler_static='-qstaticlink' 8362 ;; 8363 *) 8364 case `$CC -V 2>&1 | sed 5q` in 8365 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8366 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8367 lt_prog_compiler_pic='-KPIC' 8368 lt_prog_compiler_static='-Bstatic' 8369 lt_prog_compiler_wl='' 8370 ;; 8371 *Sun\ F* | *Sun*Fortran*) 8372 lt_prog_compiler_pic='-KPIC' 8373 lt_prog_compiler_static='-Bstatic' 8374 lt_prog_compiler_wl='-Qoption ld ' 8375 ;; 8376 *Sun\ C*) 8377 # Sun C 5.9 8378 lt_prog_compiler_pic='-KPIC' 8379 lt_prog_compiler_static='-Bstatic' 8380 lt_prog_compiler_wl='-Wl,' 8381 ;; 8382 *Intel*\ [CF]*Compiler*) 8383 lt_prog_compiler_wl='-Wl,' 8384 lt_prog_compiler_pic='-fPIC' 8385 lt_prog_compiler_static='-static' 8386 ;; 8387 *Portland\ Group*) 8388 lt_prog_compiler_wl='-Wl,' 8389 lt_prog_compiler_pic='-fpic' 8390 lt_prog_compiler_static='-Bstatic' 8391 ;; 8392 esac 8393 ;; 8394 esac 8395 ;; 8396 8397 newsos6) 8398 lt_prog_compiler_pic='-KPIC' 8399 lt_prog_compiler_static='-Bstatic' 8400 ;; 8401 8402 *nto* | *qnx*) 8403 # QNX uses GNU C++, but need to define -shared option too, otherwise 8404 # it will coredump. 8405 lt_prog_compiler_pic='-fPIC -shared' 8406 ;; 8407 8408 osf3* | osf4* | osf5*) 8409 lt_prog_compiler_wl='-Wl,' 8410 # All OSF/1 code is PIC. 8411 lt_prog_compiler_static='-non_shared' 8412 ;; 8413 8414 rdos*) 8415 lt_prog_compiler_static='-non_shared' 8416 ;; 8417 8418 solaris*) 8419 lt_prog_compiler_pic='-KPIC' 8420 lt_prog_compiler_static='-Bstatic' 8421 case $cc_basename in 8422 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8423 lt_prog_compiler_wl='-Qoption ld ';; 8424 *) 8425 lt_prog_compiler_wl='-Wl,';; 8426 esac 8427 ;; 8428 8429 sunos4*) 8430 lt_prog_compiler_wl='-Qoption ld ' 8431 lt_prog_compiler_pic='-PIC' 8432 lt_prog_compiler_static='-Bstatic' 8433 ;; 8434 8435 sysv4 | sysv4.2uw2* | sysv4.3*) 8436 lt_prog_compiler_wl='-Wl,' 8437 lt_prog_compiler_pic='-KPIC' 8438 lt_prog_compiler_static='-Bstatic' 8439 ;; 8440 8441 sysv4*MP*) 8442 if test -d /usr/nec ;then 8443 lt_prog_compiler_pic='-Kconform_pic' 8444 lt_prog_compiler_static='-Bstatic' 8445 fi 8446 ;; 8447 8448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8449 lt_prog_compiler_wl='-Wl,' 8450 lt_prog_compiler_pic='-KPIC' 8451 lt_prog_compiler_static='-Bstatic' 8452 ;; 8453 8454 unicos*) 8455 lt_prog_compiler_wl='-Wl,' 8456 lt_prog_compiler_can_build_shared=no 8457 ;; 8458 8459 uts4*) 8460 lt_prog_compiler_pic='-pic' 8461 lt_prog_compiler_static='-Bstatic' 8462 ;; 8463 8464 *) 8465 lt_prog_compiler_can_build_shared=no 8466 ;; 8467 esac 8468 fi 8469 8470case $host_os in 8471 # For platforms which do not support PIC, -DPIC is meaningless: 8472 *djgpp*) 8473 lt_prog_compiler_pic= 8474 ;; 8475 *) 8476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8477 ;; 8478esac 8479 8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8481$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8482if ${lt_cv_prog_compiler_pic+:} false; then : 8483 $as_echo_n "(cached) " >&6 8484else 8485 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8486fi 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8488$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8489lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8490 8491# 8492# Check to make sure the PIC flag actually works. 8493# 8494if test -n "$lt_prog_compiler_pic"; then 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8496$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8497if ${lt_cv_prog_compiler_pic_works+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 lt_cv_prog_compiler_pic_works=no 8501 ac_outfile=conftest.$ac_objext 8502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8503 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8504 # Insert the option either (1) after the last *FLAGS variable, or 8505 # (2) before a word containing "conftest.", or (3) at the end. 8506 # Note that $ac_compile itself does not contain backslashes and begins 8507 # with a dollar sign (not a hyphen), so the echo should work correctly. 8508 # The option is referenced via a variable to avoid confusing sed. 8509 lt_compile=`echo "$ac_compile" | $SED \ 8510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8512 -e 's:$: $lt_compiler_flag:'` 8513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8514 (eval "$lt_compile" 2>conftest.err) 8515 ac_status=$? 8516 cat conftest.err >&5 8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8518 if (exit $ac_status) && test -s "$ac_outfile"; then 8519 # The compiler can only warn and ignore the option if not recognized 8520 # So say no if there are warnings other than the usual output. 8521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8524 lt_cv_prog_compiler_pic_works=yes 8525 fi 8526 fi 8527 $RM conftest* 8528 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8531$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8532 8533if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8534 case $lt_prog_compiler_pic in 8535 "" | " "*) ;; 8536 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8537 esac 8538else 8539 lt_prog_compiler_pic= 8540 lt_prog_compiler_can_build_shared=no 8541fi 8542 8543fi 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555# 8556# Check to make sure the static flag actually works. 8557# 8558wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8560$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8561if ${lt_cv_prog_compiler_static_works+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_prog_compiler_static_works=no 8565 save_LDFLAGS="$LDFLAGS" 8566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8567 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8569 # The linker can only warn and ignore the option if not recognized 8570 # So say no if there are warnings 8571 if test -s conftest.err; then 8572 # Append any errors to the config.log. 8573 cat conftest.err 1>&5 8574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8576 if diff conftest.exp conftest.er2 >/dev/null; then 8577 lt_cv_prog_compiler_static_works=yes 8578 fi 8579 else 8580 lt_cv_prog_compiler_static_works=yes 8581 fi 8582 fi 8583 $RM -r conftest* 8584 LDFLAGS="$save_LDFLAGS" 8585 8586fi 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8588$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8589 8590if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8591 : 8592else 8593 lt_prog_compiler_static= 8594fi 8595 8596 8597 8598 8599 8600 8601 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8604if ${lt_cv_prog_compiler_c_o+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 lt_cv_prog_compiler_c_o=no 8608 $RM -r conftest 2>/dev/null 8609 mkdir conftest 8610 cd conftest 8611 mkdir out 8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8613 8614 lt_compiler_flag="-o out/conftest2.$ac_objext" 8615 # Insert the option either (1) after the last *FLAGS variable, or 8616 # (2) before a word containing "conftest.", or (3) at the end. 8617 # Note that $ac_compile itself does not contain backslashes and begins 8618 # with a dollar sign (not a hyphen), so the echo should work correctly. 8619 lt_compile=`echo "$ac_compile" | $SED \ 8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8622 -e 's:$: $lt_compiler_flag:'` 8623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8624 (eval "$lt_compile" 2>out/conftest.err) 8625 ac_status=$? 8626 cat out/conftest.err >&5 8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8628 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8629 then 8630 # The compiler can only warn and ignore the option if not recognized 8631 # So say no if there are warnings 8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8635 lt_cv_prog_compiler_c_o=yes 8636 fi 8637 fi 8638 chmod u+w . 2>&5 8639 $RM conftest* 8640 # SGI C++ compiler will create directory out/ii_files/ for 8641 # template instantiation 8642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8643 $RM out/* && rmdir out 8644 cd .. 8645 $RM -r conftest 8646 $RM conftest* 8647 8648fi 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8650$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8651 8652 8653 8654 8655 8656 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8658$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8659if ${lt_cv_prog_compiler_c_o+:} false; then : 8660 $as_echo_n "(cached) " >&6 8661else 8662 lt_cv_prog_compiler_c_o=no 8663 $RM -r conftest 2>/dev/null 8664 mkdir conftest 8665 cd conftest 8666 mkdir out 8667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8668 8669 lt_compiler_flag="-o out/conftest2.$ac_objext" 8670 # Insert the option either (1) after the last *FLAGS variable, or 8671 # (2) before a word containing "conftest.", or (3) at the end. 8672 # Note that $ac_compile itself does not contain backslashes and begins 8673 # with a dollar sign (not a hyphen), so the echo should work correctly. 8674 lt_compile=`echo "$ac_compile" | $SED \ 8675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8677 -e 's:$: $lt_compiler_flag:'` 8678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8679 (eval "$lt_compile" 2>out/conftest.err) 8680 ac_status=$? 8681 cat out/conftest.err >&5 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8684 then 8685 # The compiler can only warn and ignore the option if not recognized 8686 # So say no if there are warnings 8687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8690 lt_cv_prog_compiler_c_o=yes 8691 fi 8692 fi 8693 chmod u+w . 2>&5 8694 $RM conftest* 8695 # SGI C++ compiler will create directory out/ii_files/ for 8696 # template instantiation 8697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8698 $RM out/* && rmdir out 8699 cd .. 8700 $RM -r conftest 8701 $RM conftest* 8702 8703fi 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8705$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8706 8707 8708 8709 8710hard_links="nottested" 8711if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8712 # do not overwrite the value of need_locks provided by the user 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8714$as_echo_n "checking if we can lock with hard links... " >&6; } 8715 hard_links=yes 8716 $RM conftest* 8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8718 touch conftest.a 8719 ln conftest.a conftest.b 2>&5 || hard_links=no 8720 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8722$as_echo "$hard_links" >&6; } 8723 if test "$hard_links" = no; then 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8725$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8726 need_locks=warn 8727 fi 8728else 8729 need_locks=no 8730fi 8731 8732 8733 8734 8735 8736 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8738$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8739 8740 runpath_var= 8741 allow_undefined_flag= 8742 always_export_symbols=no 8743 archive_cmds= 8744 archive_expsym_cmds= 8745 compiler_needs_object=no 8746 enable_shared_with_static_runtimes=no 8747 export_dynamic_flag_spec= 8748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8749 hardcode_automatic=no 8750 hardcode_direct=no 8751 hardcode_direct_absolute=no 8752 hardcode_libdir_flag_spec= 8753 hardcode_libdir_separator= 8754 hardcode_minus_L=no 8755 hardcode_shlibpath_var=unsupported 8756 inherit_rpath=no 8757 link_all_deplibs=unknown 8758 module_cmds= 8759 module_expsym_cmds= 8760 old_archive_from_new_cmds= 8761 old_archive_from_expsyms_cmds= 8762 thread_safe_flag_spec= 8763 whole_archive_flag_spec= 8764 # include_expsyms should be a list of space-separated symbols to be *always* 8765 # included in the symbol list 8766 include_expsyms= 8767 # exclude_expsyms can be an extended regexp of symbols to exclude 8768 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8770 # as well as any symbol that contains `d'. 8771 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8773 # platforms (ab)use it in PIC code, but their linkers get confused if 8774 # the symbol is explicitly referenced. Since portable code cannot 8775 # rely on this symbol name, it's probably fine to never include it in 8776 # preloaded symbol tables. 8777 # Exclude shared library initialization/finalization symbols. 8778 extract_expsyms_cmds= 8779 8780 case $host_os in 8781 cygwin* | mingw* | pw32* | cegcc*) 8782 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8783 # When not using gcc, we currently assume that we are using 8784 # Microsoft Visual C++. 8785 if test "$GCC" != yes; then 8786 with_gnu_ld=no 8787 fi 8788 ;; 8789 interix*) 8790 # we just hope/assume this is gcc and not c89 (= MSVC++) 8791 with_gnu_ld=yes 8792 ;; 8793 openbsd*) 8794 with_gnu_ld=no 8795 ;; 8796 esac 8797 8798 ld_shlibs=yes 8799 8800 # On some targets, GNU ld is compatible enough with the native linker 8801 # that we're better off using the native interface for both. 8802 lt_use_gnu_ld_interface=no 8803 if test "$with_gnu_ld" = yes; then 8804 case $host_os in 8805 aix*) 8806 # The AIX port of GNU ld has always aspired to compatibility 8807 # with the native linker. However, as the warning in the GNU ld 8808 # block says, versions before 2.19.5* couldn't really create working 8809 # shared libraries, regardless of the interface used. 8810 case `$LD -v 2>&1` in 8811 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8812 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8813 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8814 *) 8815 lt_use_gnu_ld_interface=yes 8816 ;; 8817 esac 8818 ;; 8819 *) 8820 lt_use_gnu_ld_interface=yes 8821 ;; 8822 esac 8823 fi 8824 8825 if test "$lt_use_gnu_ld_interface" = yes; then 8826 # If archive_cmds runs LD, not CC, wlarc should be empty 8827 wlarc='${wl}' 8828 8829 # Set some defaults for GNU ld with shared library support. These 8830 # are reset later if shared libraries are not supported. Putting them 8831 # here allows them to be overridden if necessary. 8832 runpath_var=LD_RUN_PATH 8833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8834 export_dynamic_flag_spec='${wl}--export-dynamic' 8835 # ancient GNU ld didn't support --whole-archive et. al. 8836 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8837 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8838 else 8839 whole_archive_flag_spec= 8840 fi 8841 supports_anon_versioning=no 8842 case `$LD -v 2>&1` in 8843 *GNU\ gold*) supports_anon_versioning=yes ;; 8844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8847 *\ 2.11.*) ;; # other 2.11 versions 8848 *) supports_anon_versioning=yes ;; 8849 esac 8850 8851 # See if GNU ld supports shared libraries. 8852 case $host_os in 8853 aix[3-9]*) 8854 # On AIX/PPC, the GNU linker is very broken 8855 if test "$host_cpu" != ia64; then 8856 ld_shlibs=no 8857 cat <<_LT_EOF 1>&2 8858 8859*** Warning: the GNU linker, at least up to release 2.19, is reported 8860*** to be unable to reliably create shared libraries on AIX. 8861*** Therefore, libtool is disabling shared libraries support. If you 8862*** really care for shared libraries, you may want to install binutils 8863*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8864*** You will then need to restart the configuration process. 8865 8866_LT_EOF 8867 fi 8868 ;; 8869 8870 amigaos*) 8871 case $host_cpu in 8872 powerpc) 8873 # see comment about AmigaOS4 .so support 8874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8875 archive_expsym_cmds='' 8876 ;; 8877 m68k) 8878 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)' 8879 hardcode_libdir_flag_spec='-L$libdir' 8880 hardcode_minus_L=yes 8881 ;; 8882 esac 8883 ;; 8884 8885 beos*) 8886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8887 allow_undefined_flag=unsupported 8888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8889 # support --undefined. This deserves some investigation. FIXME 8890 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8891 else 8892 ld_shlibs=no 8893 fi 8894 ;; 8895 8896 cygwin* | mingw* | pw32* | cegcc*) 8897 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8898 # as there is no search path for DLLs. 8899 hardcode_libdir_flag_spec='-L$libdir' 8900 export_dynamic_flag_spec='${wl}--export-all-symbols' 8901 allow_undefined_flag=unsupported 8902 always_export_symbols=no 8903 enable_shared_with_static_runtimes=yes 8904 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' 8905 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8906 8907 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8909 # If the export-symbols file already is a .def file (1st line 8910 # is EXPORTS), use it as is; otherwise, prepend... 8911 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8912 cp $export_symbols $output_objdir/$soname.def; 8913 else 8914 echo EXPORTS > $output_objdir/$soname.def; 8915 cat $export_symbols >> $output_objdir/$soname.def; 8916 fi~ 8917 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8918 else 8919 ld_shlibs=no 8920 fi 8921 ;; 8922 8923 haiku*) 8924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8925 link_all_deplibs=yes 8926 ;; 8927 8928 interix[3-9]*) 8929 hardcode_direct=no 8930 hardcode_shlibpath_var=no 8931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8932 export_dynamic_flag_spec='${wl}-E' 8933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8934 # Instead, shared libraries are loaded at an image base (0x10000000 by 8935 # default) and relocated if they conflict, which is a slow very memory 8936 # consuming and fragmenting process. To avoid this, we pick a random, 8937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8938 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8940 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' 8941 ;; 8942 8943 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8944 tmp_diet=no 8945 if test "$host_os" = linux-dietlibc; then 8946 case $cc_basename in 8947 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8948 esac 8949 fi 8950 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8951 && test "$tmp_diet" = no 8952 then 8953 tmp_addflag=' $pic_flag' 8954 tmp_sharedflag='-shared' 8955 case $cc_basename,$host_cpu in 8956 pgcc*) # Portland Group C compiler 8957 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' 8958 tmp_addflag=' $pic_flag' 8959 ;; 8960 pgf77* | pgf90* | pgf95* | pgfortran*) 8961 # Portland Group f77 and f90 compilers 8962 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' 8963 tmp_addflag=' $pic_flag -Mnomain' ;; 8964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8965 tmp_addflag=' -i_dynamic' ;; 8966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8967 tmp_addflag=' -i_dynamic -nofor_main' ;; 8968 ifc* | ifort*) # Intel Fortran compiler 8969 tmp_addflag=' -nofor_main' ;; 8970 lf95*) # Lahey Fortran 8.1 8971 whole_archive_flag_spec= 8972 tmp_sharedflag='--shared' ;; 8973 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8974 tmp_sharedflag='-qmkshrobj' 8975 tmp_addflag= ;; 8976 nvcc*) # Cuda Compiler Driver 2.2 8977 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' 8978 compiler_needs_object=yes 8979 ;; 8980 esac 8981 case `$CC -V 2>&1 | sed 5q` in 8982 *Sun\ C*) # Sun C 5.9 8983 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' 8984 compiler_needs_object=yes 8985 tmp_sharedflag='-G' ;; 8986 *Sun\ F*) # Sun Fortran 8.3 8987 tmp_sharedflag='-G' ;; 8988 esac 8989 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 8991 if test "x$supports_anon_versioning" = xyes; then 8992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8994 echo "local: *; };" >> $output_objdir/$libname.ver~ 8995 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8996 fi 8997 8998 case $cc_basename in 8999 xlf* | bgf* | bgxlf* | mpixlf*) 9000 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9001 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9003 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9004 if test "x$supports_anon_versioning" = xyes; then 9005 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9007 echo "local: *; };" >> $output_objdir/$libname.ver~ 9008 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9009 fi 9010 ;; 9011 esac 9012 else 9013 ld_shlibs=no 9014 fi 9015 ;; 9016 9017 netbsd*) 9018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9019 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9020 wlarc= 9021 else 9022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9024 fi 9025 ;; 9026 9027 solaris*) 9028 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9029 ld_shlibs=no 9030 cat <<_LT_EOF 1>&2 9031 9032*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9033*** create shared libraries on Solaris systems. Therefore, libtool 9034*** is disabling shared libraries support. We urge you to upgrade GNU 9035*** binutils to release 2.9.1 or newer. Another option is to modify 9036*** your PATH or compiler configuration so that the native linker is 9037*** used, and then restart. 9038 9039_LT_EOF 9040 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9043 else 9044 ld_shlibs=no 9045 fi 9046 ;; 9047 9048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9049 case `$LD -v 2>&1` in 9050 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9051 ld_shlibs=no 9052 cat <<_LT_EOF 1>&2 9053 9054*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9055*** reliably create shared libraries on SCO systems. Therefore, libtool 9056*** is disabling shared libraries support. We urge you to upgrade GNU 9057*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9058*** your PATH or compiler configuration so that the native linker is 9059*** used, and then restart. 9060 9061_LT_EOF 9062 ;; 9063 *) 9064 # For security reasons, it is highly recommended that you always 9065 # use absolute paths for naming shared libraries, and exclude the 9066 # DT_RUNPATH tag from executables and libraries. But doing so 9067 # requires that you compile everything twice, which is a pain. 9068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9072 else 9073 ld_shlibs=no 9074 fi 9075 ;; 9076 esac 9077 ;; 9078 9079 sunos4*) 9080 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9081 wlarc= 9082 hardcode_direct=yes 9083 hardcode_shlibpath_var=no 9084 ;; 9085 9086 *) 9087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9089 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9090 else 9091 ld_shlibs=no 9092 fi 9093 ;; 9094 esac 9095 9096 if test "$ld_shlibs" = no; then 9097 runpath_var= 9098 hardcode_libdir_flag_spec= 9099 export_dynamic_flag_spec= 9100 whole_archive_flag_spec= 9101 fi 9102 else 9103 # PORTME fill in a description of your system's linker (not GNU ld) 9104 case $host_os in 9105 aix3*) 9106 allow_undefined_flag=unsupported 9107 always_export_symbols=yes 9108 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' 9109 # Note: this linker hardcodes the directories in LIBPATH if there 9110 # are no directories specified by -L. 9111 hardcode_minus_L=yes 9112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9113 # Neither direct hardcoding nor static linking is supported with a 9114 # broken collect2. 9115 hardcode_direct=unsupported 9116 fi 9117 ;; 9118 9119 aix[4-9]*) 9120 if test "$host_cpu" = ia64; then 9121 # On IA64, the linker does run time linking by default, so we don't 9122 # have to do anything special. 9123 aix_use_runtimelinking=no 9124 exp_sym_flag='-Bexport' 9125 no_entry_flag="" 9126 else 9127 # If we're using GNU nm, then we don't want the "-C" option. 9128 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9129 # Also, AIX nm treats weak defined symbols like other global 9130 # defined symbols, whereas GNU nm marks them as "W". 9131 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9132 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' 9133 else 9134 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' 9135 fi 9136 aix_use_runtimelinking=no 9137 9138 # Test if we are trying to use run time linking or normal 9139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9140 # need to do runtime linking. 9141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9142 for ld_flag in $LDFLAGS; do 9143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9144 aix_use_runtimelinking=yes 9145 break 9146 fi 9147 done 9148 ;; 9149 esac 9150 9151 exp_sym_flag='-bexport' 9152 no_entry_flag='-bnoentry' 9153 fi 9154 9155 # When large executables or shared objects are built, AIX ld can 9156 # have problems creating the table of contents. If linking a library 9157 # or program results in "error TOC overflow" add -mminimal-toc to 9158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9160 9161 archive_cmds='' 9162 hardcode_direct=yes 9163 hardcode_direct_absolute=yes 9164 hardcode_libdir_separator=':' 9165 link_all_deplibs=yes 9166 file_list_spec='${wl}-f,' 9167 9168 if test "$GCC" = yes; then 9169 case $host_os in aix4.[012]|aix4.[012].*) 9170 # We only want to do this on AIX 4.2 and lower, the check 9171 # below for broken collect2 doesn't work under 4.3+ 9172 collect2name=`${CC} -print-prog-name=collect2` 9173 if test -f "$collect2name" && 9174 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9175 then 9176 # We have reworked collect2 9177 : 9178 else 9179 # We have old collect2 9180 hardcode_direct=unsupported 9181 # It fails to find uninstalled libraries when the uninstalled 9182 # path is not listed in the libpath. Setting hardcode_minus_L 9183 # to unsupported forces relinking 9184 hardcode_minus_L=yes 9185 hardcode_libdir_flag_spec='-L$libdir' 9186 hardcode_libdir_separator= 9187 fi 9188 ;; 9189 esac 9190 shared_flag='-shared' 9191 if test "$aix_use_runtimelinking" = yes; then 9192 shared_flag="$shared_flag "'${wl}-G' 9193 fi 9194 else 9195 # not using gcc 9196 if test "$host_cpu" = ia64; then 9197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9198 # chokes on -Wl,-G. The following line is correct: 9199 shared_flag='-G' 9200 else 9201 if test "$aix_use_runtimelinking" = yes; then 9202 shared_flag='${wl}-G' 9203 else 9204 shared_flag='${wl}-bM:SRE' 9205 fi 9206 fi 9207 fi 9208 9209 export_dynamic_flag_spec='${wl}-bexpall' 9210 # It seems that -bexpall does not export symbols beginning with 9211 # underscore (_), so it is better to generate a list of symbols to export. 9212 always_export_symbols=yes 9213 if test "$aix_use_runtimelinking" = yes; then 9214 # Warning - without using the other runtime loading flags (-brtl), 9215 # -berok will link without error, but may produce a broken library. 9216 allow_undefined_flag='-berok' 9217 # Determine the default libpath from the value encoded in an 9218 # empty executable. 9219 if test "${lt_cv_aix_libpath+set}" = set; then 9220 aix_libpath=$lt_cv_aix_libpath 9221else 9222 if ${lt_cv_aix_libpath_+:} false; then : 9223 $as_echo_n "(cached) " >&6 9224else 9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9226/* end confdefs.h. */ 9227 9228int 9229main () 9230{ 9231 9232 ; 9233 return 0; 9234} 9235_ACEOF 9236if ac_fn_c_try_link "$LINENO"; then : 9237 9238 lt_aix_libpath_sed=' 9239 /Import File Strings/,/^$/ { 9240 /^0/ { 9241 s/^0 *\([^ ]*\) *$/\1/ 9242 p 9243 } 9244 }' 9245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9246 # Check for a 64-bit object if we didn't find anything. 9247 if test -z "$lt_cv_aix_libpath_"; then 9248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9249 fi 9250fi 9251rm -f core conftest.err conftest.$ac_objext \ 9252 conftest$ac_exeext conftest.$ac_ext 9253 if test -z "$lt_cv_aix_libpath_"; then 9254 lt_cv_aix_libpath_="/usr/lib:/lib" 9255 fi 9256 9257fi 9258 9259 aix_libpath=$lt_cv_aix_libpath_ 9260fi 9261 9262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9263 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" 9264 else 9265 if test "$host_cpu" = ia64; then 9266 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9267 allow_undefined_flag="-z nodefs" 9268 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" 9269 else 9270 # Determine the default libpath from the value encoded in an 9271 # empty executable. 9272 if test "${lt_cv_aix_libpath+set}" = set; then 9273 aix_libpath=$lt_cv_aix_libpath 9274else 9275 if ${lt_cv_aix_libpath_+:} false; then : 9276 $as_echo_n "(cached) " >&6 9277else 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280 9281int 9282main () 9283{ 9284 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289if ac_fn_c_try_link "$LINENO"; then : 9290 9291 lt_aix_libpath_sed=' 9292 /Import File Strings/,/^$/ { 9293 /^0/ { 9294 s/^0 *\([^ ]*\) *$/\1/ 9295 p 9296 } 9297 }' 9298 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9299 # Check for a 64-bit object if we didn't find anything. 9300 if test -z "$lt_cv_aix_libpath_"; then 9301 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9302 fi 9303fi 9304rm -f core conftest.err conftest.$ac_objext \ 9305 conftest$ac_exeext conftest.$ac_ext 9306 if test -z "$lt_cv_aix_libpath_"; then 9307 lt_cv_aix_libpath_="/usr/lib:/lib" 9308 fi 9309 9310fi 9311 9312 aix_libpath=$lt_cv_aix_libpath_ 9313fi 9314 9315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9316 # Warning - without using the other run time loading flags, 9317 # -berok will link without error, but may produce a broken library. 9318 no_undefined_flag=' ${wl}-bernotok' 9319 allow_undefined_flag=' ${wl}-berok' 9320 if test "$with_gnu_ld" = yes; then 9321 # We only use this code for GNU lds that support --whole-archive. 9322 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9323 else 9324 # Exported symbols can be pulled into shared objects from archives 9325 whole_archive_flag_spec='$convenience' 9326 fi 9327 archive_cmds_need_lc=yes 9328 # This is similar to how AIX traditionally builds its shared libraries. 9329 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' 9330 fi 9331 fi 9332 ;; 9333 9334 amigaos*) 9335 case $host_cpu in 9336 powerpc) 9337 # see comment about AmigaOS4 .so support 9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9339 archive_expsym_cmds='' 9340 ;; 9341 m68k) 9342 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)' 9343 hardcode_libdir_flag_spec='-L$libdir' 9344 hardcode_minus_L=yes 9345 ;; 9346 esac 9347 ;; 9348 9349 bsdi[45]*) 9350 export_dynamic_flag_spec=-rdynamic 9351 ;; 9352 9353 cygwin* | mingw* | pw32* | cegcc*) 9354 # When not using gcc, we currently assume that we are using 9355 # Microsoft Visual C++. 9356 # hardcode_libdir_flag_spec is actually meaningless, as there is 9357 # no search path for DLLs. 9358 case $cc_basename in 9359 cl*) 9360 # Native MSVC 9361 hardcode_libdir_flag_spec=' ' 9362 allow_undefined_flag=unsupported 9363 always_export_symbols=yes 9364 file_list_spec='@' 9365 # Tell ltmain to make .lib files, not .a files. 9366 libext=lib 9367 # Tell ltmain to make .dll files, not .so files. 9368 shrext_cmds=".dll" 9369 # FIXME: Setting linknames here is a bad hack. 9370 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9371 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9372 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9373 else 9374 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9375 fi~ 9376 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9377 linknames=' 9378 # The linker will not automatically build a static lib if we build a DLL. 9379 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9380 enable_shared_with_static_runtimes=yes 9381 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9383 # Don't use ranlib 9384 old_postinstall_cmds='chmod 644 $oldlib' 9385 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9386 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9387 case $lt_outputfile in 9388 *.exe|*.EXE) ;; 9389 *) 9390 lt_outputfile="$lt_outputfile.exe" 9391 lt_tool_outputfile="$lt_tool_outputfile.exe" 9392 ;; 9393 esac~ 9394 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9395 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9396 $RM "$lt_outputfile.manifest"; 9397 fi' 9398 ;; 9399 *) 9400 # Assume MSVC wrapper 9401 hardcode_libdir_flag_spec=' ' 9402 allow_undefined_flag=unsupported 9403 # Tell ltmain to make .lib files, not .a files. 9404 libext=lib 9405 # Tell ltmain to make .dll files, not .so files. 9406 shrext_cmds=".dll" 9407 # FIXME: Setting linknames here is a bad hack. 9408 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9409 # The linker will automatically build a .lib file if we build a DLL. 9410 old_archive_from_new_cmds='true' 9411 # FIXME: Should let the user specify the lib program. 9412 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9413 enable_shared_with_static_runtimes=yes 9414 ;; 9415 esac 9416 ;; 9417 9418 darwin* | rhapsody*) 9419 9420 9421 archive_cmds_need_lc=no 9422 hardcode_direct=no 9423 hardcode_automatic=yes 9424 hardcode_shlibpath_var=unsupported 9425 if test "$lt_cv_ld_force_load" = "yes"; then 9426 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\"`' 9427 9428 else 9429 whole_archive_flag_spec='' 9430 fi 9431 link_all_deplibs=yes 9432 allow_undefined_flag="$_lt_dar_allow_undefined" 9433 case $cc_basename in 9434 ifort*) _lt_dar_can_shared=yes ;; 9435 *) _lt_dar_can_shared=$GCC ;; 9436 esac 9437 if test "$_lt_dar_can_shared" = "yes"; then 9438 output_verbose_link_cmd=func_echo_all 9439 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9440 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9441 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}" 9442 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}" 9443 9444 else 9445 ld_shlibs=no 9446 fi 9447 9448 ;; 9449 9450 dgux*) 9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9452 hardcode_libdir_flag_spec='-L$libdir' 9453 hardcode_shlibpath_var=no 9454 ;; 9455 9456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9457 # support. Future versions do this automatically, but an explicit c++rt0.o 9458 # does not break anything, and helps significantly (at the cost of a little 9459 # extra space). 9460 freebsd2.2*) 9461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9462 hardcode_libdir_flag_spec='-R$libdir' 9463 hardcode_direct=yes 9464 hardcode_shlibpath_var=no 9465 ;; 9466 9467 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9468 freebsd2.*) 9469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9470 hardcode_direct=yes 9471 hardcode_minus_L=yes 9472 hardcode_shlibpath_var=no 9473 ;; 9474 9475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9476 freebsd* | dragonfly*) 9477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9478 hardcode_libdir_flag_spec='-R$libdir' 9479 hardcode_direct=yes 9480 hardcode_shlibpath_var=no 9481 ;; 9482 9483 hpux9*) 9484 if test "$GCC" = yes; then 9485 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' 9486 else 9487 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' 9488 fi 9489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9490 hardcode_libdir_separator=: 9491 hardcode_direct=yes 9492 9493 # hardcode_minus_L: Not really in the search PATH, 9494 # but as the default location of the library. 9495 hardcode_minus_L=yes 9496 export_dynamic_flag_spec='${wl}-E' 9497 ;; 9498 9499 hpux10*) 9500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9501 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9502 else 9503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9504 fi 9505 if test "$with_gnu_ld" = no; then 9506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9507 hardcode_libdir_separator=: 9508 hardcode_direct=yes 9509 hardcode_direct_absolute=yes 9510 export_dynamic_flag_spec='${wl}-E' 9511 # hardcode_minus_L: Not really in the search PATH, 9512 # but as the default location of the library. 9513 hardcode_minus_L=yes 9514 fi 9515 ;; 9516 9517 hpux11*) 9518 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9519 case $host_cpu in 9520 hppa*64*) 9521 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9522 ;; 9523 ia64*) 9524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9525 ;; 9526 *) 9527 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9528 ;; 9529 esac 9530 else 9531 case $host_cpu in 9532 hppa*64*) 9533 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9534 ;; 9535 ia64*) 9536 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9537 ;; 9538 *) 9539 9540 # Older versions of the 11.00 compiler do not understand -b yet 9541 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9543$as_echo_n "checking if $CC understands -b... " >&6; } 9544if ${lt_cv_prog_compiler__b+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 lt_cv_prog_compiler__b=no 9548 save_LDFLAGS="$LDFLAGS" 9549 LDFLAGS="$LDFLAGS -b" 9550 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9552 # The linker can only warn and ignore the option if not recognized 9553 # So say no if there are warnings 9554 if test -s conftest.err; then 9555 # Append any errors to the config.log. 9556 cat conftest.err 1>&5 9557 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9559 if diff conftest.exp conftest.er2 >/dev/null; then 9560 lt_cv_prog_compiler__b=yes 9561 fi 9562 else 9563 lt_cv_prog_compiler__b=yes 9564 fi 9565 fi 9566 $RM -r conftest* 9567 LDFLAGS="$save_LDFLAGS" 9568 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9571$as_echo "$lt_cv_prog_compiler__b" >&6; } 9572 9573if test x"$lt_cv_prog_compiler__b" = xyes; then 9574 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9575else 9576 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9577fi 9578 9579 ;; 9580 esac 9581 fi 9582 if test "$with_gnu_ld" = no; then 9583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9584 hardcode_libdir_separator=: 9585 9586 case $host_cpu in 9587 hppa*64*|ia64*) 9588 hardcode_direct=no 9589 hardcode_shlibpath_var=no 9590 ;; 9591 *) 9592 hardcode_direct=yes 9593 hardcode_direct_absolute=yes 9594 export_dynamic_flag_spec='${wl}-E' 9595 9596 # hardcode_minus_L: Not really in the search PATH, 9597 # but as the default location of the library. 9598 hardcode_minus_L=yes 9599 ;; 9600 esac 9601 fi 9602 ;; 9603 9604 irix5* | irix6* | nonstopux*) 9605 if test "$GCC" = yes; then 9606 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' 9607 # Try to use the -exported_symbol ld option, if it does not 9608 # work, assume that -exports_file does not work either and 9609 # implicitly export all symbols. 9610 # This should be the same for all languages, so no per-tag cache variable. 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9612$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9613if ${lt_cv_irix_exported_symbol+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 save_LDFLAGS="$LDFLAGS" 9617 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9619/* end confdefs.h. */ 9620int foo (void) { return 0; } 9621_ACEOF 9622if ac_fn_c_try_link "$LINENO"; then : 9623 lt_cv_irix_exported_symbol=yes 9624else 9625 lt_cv_irix_exported_symbol=no 9626fi 9627rm -f core conftest.err conftest.$ac_objext \ 9628 conftest$ac_exeext conftest.$ac_ext 9629 LDFLAGS="$save_LDFLAGS" 9630fi 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9632$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9633 if test "$lt_cv_irix_exported_symbol" = yes; then 9634 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' 9635 fi 9636 else 9637 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' 9638 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' 9639 fi 9640 archive_cmds_need_lc='no' 9641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9642 hardcode_libdir_separator=: 9643 inherit_rpath=yes 9644 link_all_deplibs=yes 9645 ;; 9646 9647 netbsd*) 9648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9650 else 9651 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9652 fi 9653 hardcode_libdir_flag_spec='-R$libdir' 9654 hardcode_direct=yes 9655 hardcode_shlibpath_var=no 9656 ;; 9657 9658 newsos6) 9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9660 hardcode_direct=yes 9661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9662 hardcode_libdir_separator=: 9663 hardcode_shlibpath_var=no 9664 ;; 9665 9666 *nto* | *qnx*) 9667 ;; 9668 9669 openbsd*) 9670 if test -f /usr/libexec/ld.so; then 9671 hardcode_direct=yes 9672 hardcode_shlibpath_var=no 9673 hardcode_direct_absolute=yes 9674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9676 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9678 export_dynamic_flag_spec='${wl}-E' 9679 else 9680 case $host_os in 9681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9683 hardcode_libdir_flag_spec='-R$libdir' 9684 ;; 9685 *) 9686 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9688 ;; 9689 esac 9690 fi 9691 else 9692 ld_shlibs=no 9693 fi 9694 ;; 9695 9696 os2*) 9697 hardcode_libdir_flag_spec='-L$libdir' 9698 hardcode_minus_L=yes 9699 allow_undefined_flag=unsupported 9700 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' 9701 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9702 ;; 9703 9704 osf3*) 9705 if test "$GCC" = yes; then 9706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9707 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' 9708 else 9709 allow_undefined_flag=' -expect_unresolved \*' 9710 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' 9711 fi 9712 archive_cmds_need_lc='no' 9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9714 hardcode_libdir_separator=: 9715 ;; 9716 9717 osf4* | osf5*) # as osf3* with the addition of -msym flag 9718 if test "$GCC" = yes; then 9719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9720 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' 9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9722 else 9723 allow_undefined_flag=' -expect_unresolved \*' 9724 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' 9725 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~ 9726 $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' 9727 9728 # Both c and cxx compiler support -rpath directly 9729 hardcode_libdir_flag_spec='-rpath $libdir' 9730 fi 9731 archive_cmds_need_lc='no' 9732 hardcode_libdir_separator=: 9733 ;; 9734 9735 solaris*) 9736 no_undefined_flag=' -z defs' 9737 if test "$GCC" = yes; then 9738 wlarc='${wl}' 9739 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9741 $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' 9742 else 9743 case `$CC -V 2>&1` in 9744 *"Compilers 5.0"*) 9745 wlarc='' 9746 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9749 ;; 9750 *) 9751 wlarc='${wl}' 9752 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9754 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9755 ;; 9756 esac 9757 fi 9758 hardcode_libdir_flag_spec='-R$libdir' 9759 hardcode_shlibpath_var=no 9760 case $host_os in 9761 solaris2.[0-5] | solaris2.[0-5].*) ;; 9762 *) 9763 # The compiler driver will combine and reorder linker options, 9764 # but understands `-z linker_flag'. GCC discards it without `$wl', 9765 # but is careful enough not to reorder. 9766 # Supported since Solaris 2.6 (maybe 2.5.1?) 9767 if test "$GCC" = yes; then 9768 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9769 else 9770 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9771 fi 9772 ;; 9773 esac 9774 link_all_deplibs=yes 9775 ;; 9776 9777 sunos4*) 9778 if test "x$host_vendor" = xsequent; then 9779 # Use $CC to link under sequent, because it throws in some extra .o 9780 # files that make .init and .fini sections work. 9781 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9782 else 9783 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9784 fi 9785 hardcode_libdir_flag_spec='-L$libdir' 9786 hardcode_direct=yes 9787 hardcode_minus_L=yes 9788 hardcode_shlibpath_var=no 9789 ;; 9790 9791 sysv4) 9792 case $host_vendor in 9793 sni) 9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9795 hardcode_direct=yes # is this really true??? 9796 ;; 9797 siemens) 9798 ## LD is ld it makes a PLAMLIB 9799 ## CC just makes a GrossModule. 9800 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9801 reload_cmds='$CC -r -o $output$reload_objs' 9802 hardcode_direct=no 9803 ;; 9804 motorola) 9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9806 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9807 ;; 9808 esac 9809 runpath_var='LD_RUN_PATH' 9810 hardcode_shlibpath_var=no 9811 ;; 9812 9813 sysv4.3*) 9814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9815 hardcode_shlibpath_var=no 9816 export_dynamic_flag_spec='-Bexport' 9817 ;; 9818 9819 sysv4*MP*) 9820 if test -d /usr/nec; then 9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9822 hardcode_shlibpath_var=no 9823 runpath_var=LD_RUN_PATH 9824 hardcode_runpath_var=yes 9825 ld_shlibs=yes 9826 fi 9827 ;; 9828 9829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9830 no_undefined_flag='${wl}-z,text' 9831 archive_cmds_need_lc=no 9832 hardcode_shlibpath_var=no 9833 runpath_var='LD_RUN_PATH' 9834 9835 if test "$GCC" = yes; then 9836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9838 else 9839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 fi 9842 ;; 9843 9844 sysv5* | sco3.2v5* | sco5v6*) 9845 # Note: We can NOT use -z defs as we might desire, because we do not 9846 # link with -lc, and that would cause any symbols used from libc to 9847 # always be unresolved, which means just about no library would 9848 # ever link correctly. If we're not using GNU ld we use -z text 9849 # though, which does catch some bad symbols but isn't as heavy-handed 9850 # as -z defs. 9851 no_undefined_flag='${wl}-z,text' 9852 allow_undefined_flag='${wl}-z,nodefs' 9853 archive_cmds_need_lc=no 9854 hardcode_shlibpath_var=no 9855 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9856 hardcode_libdir_separator=':' 9857 link_all_deplibs=yes 9858 export_dynamic_flag_spec='${wl}-Bexport' 9859 runpath_var='LD_RUN_PATH' 9860 9861 if test "$GCC" = yes; then 9862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9864 else 9865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9867 fi 9868 ;; 9869 9870 uts4*) 9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9872 hardcode_libdir_flag_spec='-L$libdir' 9873 hardcode_shlibpath_var=no 9874 ;; 9875 9876 *) 9877 ld_shlibs=no 9878 ;; 9879 esac 9880 9881 if test x$host_vendor = xsni; then 9882 case $host in 9883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9884 export_dynamic_flag_spec='${wl}-Blargedynsym' 9885 ;; 9886 esac 9887 fi 9888 fi 9889 9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9891$as_echo "$ld_shlibs" >&6; } 9892test "$ld_shlibs" = no && can_build_shared=no 9893 9894with_gnu_ld=$with_gnu_ld 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910# 9911# Do we need to explicitly link libc? 9912# 9913case "x$archive_cmds_need_lc" in 9914x|xyes) 9915 # Assume -lc should be added 9916 archive_cmds_need_lc=yes 9917 9918 if test "$enable_shared" = yes && test "$GCC" = yes; then 9919 case $archive_cmds in 9920 *'~'*) 9921 # FIXME: we may have to deal with multi-command sequences. 9922 ;; 9923 '$CC '*) 9924 # Test whether the compiler implicitly links with -lc since on some 9925 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9926 # to ld, don't add -lc before -lgcc. 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9928$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9929if ${lt_cv_archive_cmds_need_lc+:} false; then : 9930 $as_echo_n "(cached) " >&6 9931else 9932 $RM conftest* 9933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9934 9935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9936 (eval $ac_compile) 2>&5 9937 ac_status=$? 9938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9939 test $ac_status = 0; } 2>conftest.err; then 9940 soname=conftest 9941 lib=conftest 9942 libobjs=conftest.$ac_objext 9943 deplibs= 9944 wl=$lt_prog_compiler_wl 9945 pic_flag=$lt_prog_compiler_pic 9946 compiler_flags=-v 9947 linker_flags=-v 9948 verstring= 9949 output_objdir=. 9950 libname=conftest 9951 lt_save_allow_undefined_flag=$allow_undefined_flag 9952 allow_undefined_flag= 9953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9954 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9955 ac_status=$? 9956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9957 test $ac_status = 0; } 9958 then 9959 lt_cv_archive_cmds_need_lc=no 9960 else 9961 lt_cv_archive_cmds_need_lc=yes 9962 fi 9963 allow_undefined_flag=$lt_save_allow_undefined_flag 9964 else 9965 cat conftest.err 1>&5 9966 fi 9967 $RM conftest* 9968 9969fi 9970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9971$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9972 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9973 ;; 9974 esac 9975 fi 9976 ;; 9977esac 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10131$as_echo_n "checking dynamic linker characteristics... " >&6; } 10132 10133if test "$GCC" = yes; then 10134 case $host_os in 10135 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10136 *) lt_awk_arg="/^libraries:/" ;; 10137 esac 10138 case $host_os in 10139 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10140 *) lt_sed_strip_eq="s,=/,/,g" ;; 10141 esac 10142 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10143 case $lt_search_path_spec in 10144 *\;*) 10145 # if the path contains ";" then we assume it to be the separator 10146 # otherwise default to the standard path separator (i.e. ":") - it is 10147 # assumed that no part of a normal pathname contains ";" but that should 10148 # okay in the real world where ";" in dirpaths is itself problematic. 10149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10150 ;; 10151 *) 10152 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10153 ;; 10154 esac 10155 # Ok, now we have the path, separated by spaces, we can step through it 10156 # and add multilib dir if necessary. 10157 lt_tmp_lt_search_path_spec= 10158 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10159 for lt_sys_path in $lt_search_path_spec; do 10160 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10162 else 10163 test -d "$lt_sys_path" && \ 10164 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10165 fi 10166 done 10167 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10168BEGIN {RS=" "; FS="/|\n";} { 10169 lt_foo=""; 10170 lt_count=0; 10171 for (lt_i = NF; lt_i > 0; lt_i--) { 10172 if ($lt_i != "" && $lt_i != ".") { 10173 if ($lt_i == "..") { 10174 lt_count++; 10175 } else { 10176 if (lt_count == 0) { 10177 lt_foo="/" $lt_i lt_foo; 10178 } else { 10179 lt_count--; 10180 } 10181 } 10182 } 10183 } 10184 if (lt_foo != "") { lt_freq[lt_foo]++; } 10185 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10186}'` 10187 # AWK program above erroneously prepends '/' to C:/dos/paths 10188 # for these hosts. 10189 case $host_os in 10190 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10191 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10192 esac 10193 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10194else 10195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10196fi 10197library_names_spec= 10198libname_spec='lib$name' 10199soname_spec= 10200shrext_cmds=".so" 10201postinstall_cmds= 10202postuninstall_cmds= 10203finish_cmds= 10204finish_eval= 10205shlibpath_var= 10206shlibpath_overrides_runpath=unknown 10207version_type=none 10208dynamic_linker="$host_os ld.so" 10209sys_lib_dlsearch_path_spec="/lib /usr/lib" 10210need_lib_prefix=unknown 10211hardcode_into_libs=no 10212 10213# when you set need_version to no, make sure it does not cause -set_version 10214# flags to be left without arguments 10215need_version=unknown 10216 10217case $host_os in 10218aix3*) 10219 version_type=linux # correct to gnu/linux during the next big refactor 10220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10221 shlibpath_var=LIBPATH 10222 10223 # AIX 3 has no versioning support, so we append a major version to the name. 10224 soname_spec='${libname}${release}${shared_ext}$major' 10225 ;; 10226 10227aix[4-9]*) 10228 version_type=linux # correct to gnu/linux during the next big refactor 10229 need_lib_prefix=no 10230 need_version=no 10231 hardcode_into_libs=yes 10232 if test "$host_cpu" = ia64; then 10233 # AIX 5 supports IA64 10234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10235 shlibpath_var=LD_LIBRARY_PATH 10236 else 10237 # With GCC up to 2.95.x, collect2 would create an import file 10238 # for dependence libraries. The import file would start with 10239 # the line `#! .'. This would cause the generated library to 10240 # depend on `.', always an invalid library. This was fixed in 10241 # development snapshots of GCC prior to 3.0. 10242 case $host_os in 10243 aix4 | aix4.[01] | aix4.[01].*) 10244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10245 echo ' yes ' 10246 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10247 : 10248 else 10249 can_build_shared=no 10250 fi 10251 ;; 10252 esac 10253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10254 # soname into executable. Probably we can add versioning support to 10255 # collect2, so additional links can be useful in future. 10256 if test "$aix_use_runtimelinking" = yes; then 10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10258 # instead of lib<name>.a to let people know that these are not 10259 # typical AIX shared libraries. 10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10261 else 10262 # We preserve .a as extension for shared libraries through AIX4.2 10263 # and later when we are not doing run time linking. 10264 library_names_spec='${libname}${release}.a $libname.a' 10265 soname_spec='${libname}${release}${shared_ext}$major' 10266 fi 10267 shlibpath_var=LIBPATH 10268 fi 10269 ;; 10270 10271amigaos*) 10272 case $host_cpu in 10273 powerpc) 10274 # Since July 2007 AmigaOS4 officially supports .so libraries. 10275 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10277 ;; 10278 m68k) 10279 library_names_spec='$libname.ixlibrary $libname.a' 10280 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10281 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' 10282 ;; 10283 esac 10284 ;; 10285 10286beos*) 10287 library_names_spec='${libname}${shared_ext}' 10288 dynamic_linker="$host_os ld.so" 10289 shlibpath_var=LIBRARY_PATH 10290 ;; 10291 10292bsdi[45]*) 10293 version_type=linux # correct to gnu/linux during the next big refactor 10294 need_version=no 10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10296 soname_spec='${libname}${release}${shared_ext}$major' 10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10298 shlibpath_var=LD_LIBRARY_PATH 10299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10301 # the default ld.so.conf also contains /usr/contrib/lib and 10302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10303 # libtool to hard-code these into programs 10304 ;; 10305 10306cygwin* | mingw* | pw32* | cegcc*) 10307 version_type=windows 10308 shrext_cmds=".dll" 10309 need_version=no 10310 need_lib_prefix=no 10311 10312 case $GCC,$cc_basename in 10313 yes,*) 10314 # gcc 10315 library_names_spec='$libname.dll.a' 10316 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10317 postinstall_cmds='base_file=`basename \${file}`~ 10318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10319 dldir=$destdir/`dirname \$dlpath`~ 10320 test -d \$dldir || mkdir -p \$dldir~ 10321 $install_prog $dir/$dlname \$dldir/$dlname~ 10322 chmod a+x \$dldir/$dlname~ 10323 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10324 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10325 fi' 10326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10327 dlpath=$dir/\$dldll~ 10328 $RM \$dlpath' 10329 shlibpath_overrides_runpath=yes 10330 10331 case $host_os in 10332 cygwin*) 10333 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10335 10336 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10337 ;; 10338 mingw* | cegcc*) 10339 # MinGW DLLs use traditional 'lib' prefix 10340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10341 ;; 10342 pw32*) 10343 # pw32 DLLs use 'pw' prefix rather than 'lib' 10344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10345 ;; 10346 esac 10347 dynamic_linker='Win32 ld.exe' 10348 ;; 10349 10350 *,cl*) 10351 # Native MSVC 10352 libname_spec='$name' 10353 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10354 library_names_spec='${libname}.dll.lib' 10355 10356 case $build_os in 10357 mingw*) 10358 sys_lib_search_path_spec= 10359 lt_save_ifs=$IFS 10360 IFS=';' 10361 for lt_path in $LIB 10362 do 10363 IFS=$lt_save_ifs 10364 # Let DOS variable expansion print the short 8.3 style file name. 10365 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10366 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10367 done 10368 IFS=$lt_save_ifs 10369 # Convert to MSYS style. 10370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10371 ;; 10372 cygwin*) 10373 # Convert to unix form, then to dos form, then back to unix form 10374 # but this time dos style (no spaces!) so that the unix form looks 10375 # like /cygdrive/c/PROGRA~1:/cygdr... 10376 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10377 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10378 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10379 ;; 10380 *) 10381 sys_lib_search_path_spec="$LIB" 10382 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10383 # It is most probably a Windows format PATH. 10384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10385 else 10386 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10387 fi 10388 # FIXME: find the short name or the path components, as spaces are 10389 # common. (e.g. "Program Files" -> "PROGRA~1") 10390 ;; 10391 esac 10392 10393 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10394 postinstall_cmds='base_file=`basename \${file}`~ 10395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10396 dldir=$destdir/`dirname \$dlpath`~ 10397 test -d \$dldir || mkdir -p \$dldir~ 10398 $install_prog $dir/$dlname \$dldir/$dlname' 10399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10400 dlpath=$dir/\$dldll~ 10401 $RM \$dlpath' 10402 shlibpath_overrides_runpath=yes 10403 dynamic_linker='Win32 link.exe' 10404 ;; 10405 10406 *) 10407 # Assume MSVC wrapper 10408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10409 dynamic_linker='Win32 ld.exe' 10410 ;; 10411 esac 10412 # FIXME: first we should search . and the directory the executable is in 10413 shlibpath_var=PATH 10414 ;; 10415 10416darwin* | rhapsody*) 10417 dynamic_linker="$host_os dyld" 10418 version_type=darwin 10419 need_lib_prefix=no 10420 need_version=no 10421 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10422 soname_spec='${libname}${release}${major}$shared_ext' 10423 shlibpath_overrides_runpath=yes 10424 shlibpath_var=DYLD_LIBRARY_PATH 10425 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10426 10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10429 ;; 10430 10431dgux*) 10432 version_type=linux # correct to gnu/linux during the next big refactor 10433 need_lib_prefix=no 10434 need_version=no 10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10436 soname_spec='${libname}${release}${shared_ext}$major' 10437 shlibpath_var=LD_LIBRARY_PATH 10438 ;; 10439 10440freebsd* | dragonfly*) 10441 # DragonFly does not have aout. When/if they implement a new 10442 # versioning mechanism, adjust this. 10443 if test -x /usr/bin/objformat; then 10444 objformat=`/usr/bin/objformat` 10445 else 10446 case $host_os in 10447 freebsd[23].*) objformat=aout ;; 10448 *) objformat=elf ;; 10449 esac 10450 fi 10451 version_type=freebsd-$objformat 10452 case $version_type in 10453 freebsd-elf*) 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10455 need_version=no 10456 need_lib_prefix=no 10457 ;; 10458 freebsd-*) 10459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10460 need_version=yes 10461 ;; 10462 esac 10463 shlibpath_var=LD_LIBRARY_PATH 10464 case $host_os in 10465 freebsd2.*) 10466 shlibpath_overrides_runpath=yes 10467 ;; 10468 freebsd3.[01]* | freebsdelf3.[01]*) 10469 shlibpath_overrides_runpath=yes 10470 hardcode_into_libs=yes 10471 ;; 10472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10474 shlibpath_overrides_runpath=no 10475 hardcode_into_libs=yes 10476 ;; 10477 *) # from 4.6 on, and DragonFly 10478 shlibpath_overrides_runpath=yes 10479 hardcode_into_libs=yes 10480 ;; 10481 esac 10482 ;; 10483 10484gnu*) 10485 version_type=linux # correct to gnu/linux during the next big refactor 10486 need_lib_prefix=no 10487 need_version=no 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10489 soname_spec='${libname}${release}${shared_ext}$major' 10490 shlibpath_var=LD_LIBRARY_PATH 10491 shlibpath_overrides_runpath=no 10492 hardcode_into_libs=yes 10493 ;; 10494 10495haiku*) 10496 version_type=linux # correct to gnu/linux during the next big refactor 10497 need_lib_prefix=no 10498 need_version=no 10499 dynamic_linker="$host_os runtime_loader" 10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10501 soname_spec='${libname}${release}${shared_ext}$major' 10502 shlibpath_var=LIBRARY_PATH 10503 shlibpath_overrides_runpath=yes 10504 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10505 hardcode_into_libs=yes 10506 ;; 10507 10508hpux9* | hpux10* | hpux11*) 10509 # Give a soname corresponding to the major version so that dld.sl refuses to 10510 # link against other versions. 10511 version_type=sunos 10512 need_lib_prefix=no 10513 need_version=no 10514 case $host_cpu in 10515 ia64*) 10516 shrext_cmds='.so' 10517 hardcode_into_libs=yes 10518 dynamic_linker="$host_os dld.so" 10519 shlibpath_var=LD_LIBRARY_PATH 10520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10522 soname_spec='${libname}${release}${shared_ext}$major' 10523 if test "X$HPUX_IA64_MODE" = X32; then 10524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10525 else 10526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10527 fi 10528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10529 ;; 10530 hppa*64*) 10531 shrext_cmds='.sl' 10532 hardcode_into_libs=yes 10533 dynamic_linker="$host_os dld.sl" 10534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10537 soname_spec='${libname}${release}${shared_ext}$major' 10538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10540 ;; 10541 *) 10542 shrext_cmds='.sl' 10543 dynamic_linker="$host_os dld.sl" 10544 shlibpath_var=SHLIB_PATH 10545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10547 soname_spec='${libname}${release}${shared_ext}$major' 10548 ;; 10549 esac 10550 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10551 postinstall_cmds='chmod 555 $lib' 10552 # or fails outright, so override atomically: 10553 install_override_mode=555 10554 ;; 10555 10556interix[3-9]*) 10557 version_type=linux # correct to gnu/linux during the next big refactor 10558 need_lib_prefix=no 10559 need_version=no 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10561 soname_spec='${libname}${release}${shared_ext}$major' 10562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10563 shlibpath_var=LD_LIBRARY_PATH 10564 shlibpath_overrides_runpath=no 10565 hardcode_into_libs=yes 10566 ;; 10567 10568irix5* | irix6* | nonstopux*) 10569 case $host_os in 10570 nonstopux*) version_type=nonstopux ;; 10571 *) 10572 if test "$lt_cv_prog_gnu_ld" = yes; then 10573 version_type=linux # correct to gnu/linux during the next big refactor 10574 else 10575 version_type=irix 10576 fi ;; 10577 esac 10578 need_lib_prefix=no 10579 need_version=no 10580 soname_spec='${libname}${release}${shared_ext}$major' 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10582 case $host_os in 10583 irix5* | nonstopux*) 10584 libsuff= shlibsuff= 10585 ;; 10586 *) 10587 case $LD in # libtool.m4 will add one of these switches to LD 10588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10589 libsuff= shlibsuff= libmagic=32-bit;; 10590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10591 libsuff=32 shlibsuff=N32 libmagic=N32;; 10592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10593 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10594 *) libsuff= shlibsuff= libmagic=never-match;; 10595 esac 10596 ;; 10597 esac 10598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10599 shlibpath_overrides_runpath=no 10600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10602 hardcode_into_libs=yes 10603 ;; 10604 10605# No shared lib support for Linux oldld, aout, or coff. 10606linux*oldld* | linux*aout* | linux*coff*) 10607 dynamic_linker=no 10608 ;; 10609 10610# This must be glibc/ELF. 10611linux* | k*bsd*-gnu | kopensolaris*-gnu) 10612 version_type=linux # correct to gnu/linux during the next big refactor 10613 need_lib_prefix=no 10614 need_version=no 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 shlibpath_overrides_runpath=no 10620 10621 # Some binutils ld are patched to set DT_RUNPATH 10622 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10623 $as_echo_n "(cached) " >&6 10624else 10625 lt_cv_shlibpath_overrides_runpath=no 10626 save_LDFLAGS=$LDFLAGS 10627 save_libdir=$libdir 10628 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10629 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10631/* end confdefs.h. */ 10632 10633int 10634main () 10635{ 10636 10637 ; 10638 return 0; 10639} 10640_ACEOF 10641if ac_fn_c_try_link "$LINENO"; then : 10642 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10643 lt_cv_shlibpath_overrides_runpath=yes 10644fi 10645fi 10646rm -f core conftest.err conftest.$ac_objext \ 10647 conftest$ac_exeext conftest.$ac_ext 10648 LDFLAGS=$save_LDFLAGS 10649 libdir=$save_libdir 10650 10651fi 10652 10653 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10654 10655 # This implies no fast_install, which is unacceptable. 10656 # Some rework will be needed to allow for fast_install 10657 # before this can be enabled. 10658 hardcode_into_libs=yes 10659 10660 # Append ld.so.conf contents to the search path 10661 if test -f /etc/ld.so.conf; then 10662 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' ' '` 10663 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10664 fi 10665 10666 # We used to test for /lib/ld.so.1 and disable shared libraries on 10667 # powerpc, because MkLinux only supported shared libraries with the 10668 # GNU dynamic linker. Since this was broken with cross compilers, 10669 # most powerpc-linux boxes support dynamic linking these days and 10670 # people can always --disable-shared, the test was removed, and we 10671 # assume the GNU/Linux dynamic linker is in use. 10672 dynamic_linker='GNU/Linux ld.so' 10673 ;; 10674 10675netbsd*) 10676 version_type=sunos 10677 need_lib_prefix=no 10678 need_version=no 10679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10682 dynamic_linker='NetBSD (a.out) ld.so' 10683 else 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10685 soname_spec='${libname}${release}${shared_ext}$major' 10686 dynamic_linker='NetBSD ld.elf_so' 10687 fi 10688 shlibpath_var=LD_LIBRARY_PATH 10689 shlibpath_overrides_runpath=yes 10690 hardcode_into_libs=yes 10691 ;; 10692 10693newsos6) 10694 version_type=linux # correct to gnu/linux during the next big refactor 10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10696 shlibpath_var=LD_LIBRARY_PATH 10697 shlibpath_overrides_runpath=yes 10698 ;; 10699 10700*nto* | *qnx*) 10701 version_type=qnx 10702 need_lib_prefix=no 10703 need_version=no 10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10705 soname_spec='${libname}${release}${shared_ext}$major' 10706 shlibpath_var=LD_LIBRARY_PATH 10707 shlibpath_overrides_runpath=no 10708 hardcode_into_libs=yes 10709 dynamic_linker='ldqnx.so' 10710 ;; 10711 10712openbsd*) 10713 version_type=sunos 10714 sys_lib_dlsearch_path_spec="/usr/lib" 10715 need_lib_prefix=no 10716 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10717 case $host_os in 10718 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10719 *) need_version=no ;; 10720 esac 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10723 shlibpath_var=LD_LIBRARY_PATH 10724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10725 case $host_os in 10726 openbsd2.[89] | openbsd2.[89].*) 10727 shlibpath_overrides_runpath=no 10728 ;; 10729 *) 10730 shlibpath_overrides_runpath=yes 10731 ;; 10732 esac 10733 else 10734 shlibpath_overrides_runpath=yes 10735 fi 10736 ;; 10737 10738os2*) 10739 libname_spec='$name' 10740 shrext_cmds=".dll" 10741 need_lib_prefix=no 10742 library_names_spec='$libname${shared_ext} $libname.a' 10743 dynamic_linker='OS/2 ld.exe' 10744 shlibpath_var=LIBPATH 10745 ;; 10746 10747osf3* | osf4* | osf5*) 10748 version_type=osf 10749 need_lib_prefix=no 10750 need_version=no 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10753 shlibpath_var=LD_LIBRARY_PATH 10754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10756 ;; 10757 10758rdos*) 10759 dynamic_linker=no 10760 ;; 10761 10762solaris*) 10763 version_type=linux # correct to gnu/linux during the next big refactor 10764 need_lib_prefix=no 10765 need_version=no 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10767 soname_spec='${libname}${release}${shared_ext}$major' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 shlibpath_overrides_runpath=yes 10770 hardcode_into_libs=yes 10771 # ldd complains unless libraries are executable 10772 postinstall_cmds='chmod +x $lib' 10773 ;; 10774 10775sunos4*) 10776 version_type=sunos 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 shlibpath_overrides_runpath=yes 10781 if test "$with_gnu_ld" = yes; then 10782 need_lib_prefix=no 10783 fi 10784 need_version=yes 10785 ;; 10786 10787sysv4 | sysv4.3*) 10788 version_type=linux # correct to gnu/linux during the next big refactor 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 shlibpath_var=LD_LIBRARY_PATH 10792 case $host_vendor in 10793 sni) 10794 shlibpath_overrides_runpath=no 10795 need_lib_prefix=no 10796 runpath_var=LD_RUN_PATH 10797 ;; 10798 siemens) 10799 need_lib_prefix=no 10800 ;; 10801 motorola) 10802 need_lib_prefix=no 10803 need_version=no 10804 shlibpath_overrides_runpath=no 10805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10806 ;; 10807 esac 10808 ;; 10809 10810sysv4*MP*) 10811 if test -d /usr/nec ;then 10812 version_type=linux # correct to gnu/linux during the next big refactor 10813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10814 soname_spec='$libname${shared_ext}.$major' 10815 shlibpath_var=LD_LIBRARY_PATH 10816 fi 10817 ;; 10818 10819sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10820 version_type=freebsd-elf 10821 need_lib_prefix=no 10822 need_version=no 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10824 soname_spec='${libname}${release}${shared_ext}$major' 10825 shlibpath_var=LD_LIBRARY_PATH 10826 shlibpath_overrides_runpath=yes 10827 hardcode_into_libs=yes 10828 if test "$with_gnu_ld" = yes; then 10829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10830 else 10831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10832 case $host_os in 10833 sco3.2v5*) 10834 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10835 ;; 10836 esac 10837 fi 10838 sys_lib_dlsearch_path_spec='/usr/lib' 10839 ;; 10840 10841tpf*) 10842 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10843 version_type=linux # correct to gnu/linux during the next big refactor 10844 need_lib_prefix=no 10845 need_version=no 10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10847 shlibpath_var=LD_LIBRARY_PATH 10848 shlibpath_overrides_runpath=no 10849 hardcode_into_libs=yes 10850 ;; 10851 10852uts4*) 10853 version_type=linux # correct to gnu/linux during the next big refactor 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10855 soname_spec='${libname}${release}${shared_ext}$major' 10856 shlibpath_var=LD_LIBRARY_PATH 10857 ;; 10858 10859*) 10860 dynamic_linker=no 10861 ;; 10862esac 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10864$as_echo "$dynamic_linker" >&6; } 10865test "$dynamic_linker" = no && can_build_shared=no 10866 10867variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10868if test "$GCC" = yes; then 10869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10870fi 10871 10872if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10873 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10874fi 10875if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10876 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10877fi 10878 10879 10880 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10971$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10972hardcode_action= 10973if test -n "$hardcode_libdir_flag_spec" || 10974 test -n "$runpath_var" || 10975 test "X$hardcode_automatic" = "Xyes" ; then 10976 10977 # We can hardcode non-existent directories. 10978 if test "$hardcode_direct" != no && 10979 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10980 # have to relink, otherwise we might link with an installed library 10981 # when we should be linking with a yet-to-be-installed one 10982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10983 test "$hardcode_minus_L" != no; then 10984 # Linking always hardcodes the temporary library directory. 10985 hardcode_action=relink 10986 else 10987 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10988 hardcode_action=immediate 10989 fi 10990else 10991 # We cannot hardcode anything, or else we can only hardcode existing 10992 # directories. 10993 hardcode_action=unsupported 10994fi 10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10996$as_echo "$hardcode_action" >&6; } 10997 10998if test "$hardcode_action" = relink || 10999 test "$inherit_rpath" = yes; then 11000 # Fast installation is not supported 11001 enable_fast_install=no 11002elif test "$shlibpath_overrides_runpath" = yes || 11003 test "$enable_shared" = no; then 11004 # Fast installation is not necessary 11005 enable_fast_install=needless 11006fi 11007 11008 11009 11010 11011 11012 11013 if test "x$enable_dlopen" != xyes; then 11014 enable_dlopen=unknown 11015 enable_dlopen_self=unknown 11016 enable_dlopen_self_static=unknown 11017else 11018 lt_cv_dlopen=no 11019 lt_cv_dlopen_libs= 11020 11021 case $host_os in 11022 beos*) 11023 lt_cv_dlopen="load_add_on" 11024 lt_cv_dlopen_libs= 11025 lt_cv_dlopen_self=yes 11026 ;; 11027 11028 mingw* | pw32* | cegcc*) 11029 lt_cv_dlopen="LoadLibrary" 11030 lt_cv_dlopen_libs= 11031 ;; 11032 11033 cygwin*) 11034 lt_cv_dlopen="dlopen" 11035 lt_cv_dlopen_libs= 11036 ;; 11037 11038 darwin*) 11039 # if libdl is installed we need to link against it 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11041$as_echo_n "checking for dlopen in -ldl... " >&6; } 11042if ${ac_cv_lib_dl_dlopen+:} false; then : 11043 $as_echo_n "(cached) " >&6 11044else 11045 ac_check_lib_save_LIBS=$LIBS 11046LIBS="-ldl $LIBS" 11047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11048/* end confdefs.h. */ 11049 11050/* Override any GCC internal prototype to avoid an error. 11051 Use char because int might match the return type of a GCC 11052 builtin and then its argument prototype would still apply. */ 11053#ifdef __cplusplus 11054extern "C" 11055#endif 11056char dlopen (); 11057int 11058main () 11059{ 11060return dlopen (); 11061 ; 11062 return 0; 11063} 11064_ACEOF 11065if ac_fn_c_try_link "$LINENO"; then : 11066 ac_cv_lib_dl_dlopen=yes 11067else 11068 ac_cv_lib_dl_dlopen=no 11069fi 11070rm -f core conftest.err conftest.$ac_objext \ 11071 conftest$ac_exeext conftest.$ac_ext 11072LIBS=$ac_check_lib_save_LIBS 11073fi 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11075$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11076if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11078else 11079 11080 lt_cv_dlopen="dyld" 11081 lt_cv_dlopen_libs= 11082 lt_cv_dlopen_self=yes 11083 11084fi 11085 11086 ;; 11087 11088 *) 11089 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11090if test "x$ac_cv_func_shl_load" = xyes; then : 11091 lt_cv_dlopen="shl_load" 11092else 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11094$as_echo_n "checking for shl_load in -ldld... " >&6; } 11095if ${ac_cv_lib_dld_shl_load+:} false; then : 11096 $as_echo_n "(cached) " >&6 11097else 11098 ac_check_lib_save_LIBS=$LIBS 11099LIBS="-ldld $LIBS" 11100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11101/* end confdefs.h. */ 11102 11103/* Override any GCC internal prototype to avoid an error. 11104 Use char because int might match the return type of a GCC 11105 builtin and then its argument prototype would still apply. */ 11106#ifdef __cplusplus 11107extern "C" 11108#endif 11109char shl_load (); 11110int 11111main () 11112{ 11113return shl_load (); 11114 ; 11115 return 0; 11116} 11117_ACEOF 11118if ac_fn_c_try_link "$LINENO"; then : 11119 ac_cv_lib_dld_shl_load=yes 11120else 11121 ac_cv_lib_dld_shl_load=no 11122fi 11123rm -f core conftest.err conftest.$ac_objext \ 11124 conftest$ac_exeext conftest.$ac_ext 11125LIBS=$ac_check_lib_save_LIBS 11126fi 11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11128$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11129if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11131else 11132 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11133if test "x$ac_cv_func_dlopen" = xyes; then : 11134 lt_cv_dlopen="dlopen" 11135else 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11137$as_echo_n "checking for dlopen in -ldl... " >&6; } 11138if ${ac_cv_lib_dl_dlopen+:} false; then : 11139 $as_echo_n "(cached) " >&6 11140else 11141 ac_check_lib_save_LIBS=$LIBS 11142LIBS="-ldl $LIBS" 11143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11144/* end confdefs.h. */ 11145 11146/* Override any GCC internal prototype to avoid an error. 11147 Use char because int might match the return type of a GCC 11148 builtin and then its argument prototype would still apply. */ 11149#ifdef __cplusplus 11150extern "C" 11151#endif 11152char dlopen (); 11153int 11154main () 11155{ 11156return dlopen (); 11157 ; 11158 return 0; 11159} 11160_ACEOF 11161if ac_fn_c_try_link "$LINENO"; then : 11162 ac_cv_lib_dl_dlopen=yes 11163else 11164 ac_cv_lib_dl_dlopen=no 11165fi 11166rm -f core conftest.err conftest.$ac_objext \ 11167 conftest$ac_exeext conftest.$ac_ext 11168LIBS=$ac_check_lib_save_LIBS 11169fi 11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11171$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11172if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11174else 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11176$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11177if ${ac_cv_lib_svld_dlopen+:} false; then : 11178 $as_echo_n "(cached) " >&6 11179else 11180 ac_check_lib_save_LIBS=$LIBS 11181LIBS="-lsvld $LIBS" 11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11183/* end confdefs.h. */ 11184 11185/* Override any GCC internal prototype to avoid an error. 11186 Use char because int might match the return type of a GCC 11187 builtin and then its argument prototype would still apply. */ 11188#ifdef __cplusplus 11189extern "C" 11190#endif 11191char dlopen (); 11192int 11193main () 11194{ 11195return dlopen (); 11196 ; 11197 return 0; 11198} 11199_ACEOF 11200if ac_fn_c_try_link "$LINENO"; then : 11201 ac_cv_lib_svld_dlopen=yes 11202else 11203 ac_cv_lib_svld_dlopen=no 11204fi 11205rm -f core conftest.err conftest.$ac_objext \ 11206 conftest$ac_exeext conftest.$ac_ext 11207LIBS=$ac_check_lib_save_LIBS 11208fi 11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11210$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11211if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11213else 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11215$as_echo_n "checking for dld_link in -ldld... " >&6; } 11216if ${ac_cv_lib_dld_dld_link+:} false; then : 11217 $as_echo_n "(cached) " >&6 11218else 11219 ac_check_lib_save_LIBS=$LIBS 11220LIBS="-ldld $LIBS" 11221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11222/* end confdefs.h. */ 11223 11224/* Override any GCC internal prototype to avoid an error. 11225 Use char because int might match the return type of a GCC 11226 builtin and then its argument prototype would still apply. */ 11227#ifdef __cplusplus 11228extern "C" 11229#endif 11230char dld_link (); 11231int 11232main () 11233{ 11234return dld_link (); 11235 ; 11236 return 0; 11237} 11238_ACEOF 11239if ac_fn_c_try_link "$LINENO"; then : 11240 ac_cv_lib_dld_dld_link=yes 11241else 11242 ac_cv_lib_dld_dld_link=no 11243fi 11244rm -f core conftest.err conftest.$ac_objext \ 11245 conftest$ac_exeext conftest.$ac_ext 11246LIBS=$ac_check_lib_save_LIBS 11247fi 11248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11249$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11250if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11252fi 11253 11254 11255fi 11256 11257 11258fi 11259 11260 11261fi 11262 11263 11264fi 11265 11266 11267fi 11268 11269 ;; 11270 esac 11271 11272 if test "x$lt_cv_dlopen" != xno; then 11273 enable_dlopen=yes 11274 else 11275 enable_dlopen=no 11276 fi 11277 11278 case $lt_cv_dlopen in 11279 dlopen) 11280 save_CPPFLAGS="$CPPFLAGS" 11281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11282 11283 save_LDFLAGS="$LDFLAGS" 11284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11285 11286 save_LIBS="$LIBS" 11287 LIBS="$lt_cv_dlopen_libs $LIBS" 11288 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11290$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11291if ${lt_cv_dlopen_self+:} false; then : 11292 $as_echo_n "(cached) " >&6 11293else 11294 if test "$cross_compiling" = yes; then : 11295 lt_cv_dlopen_self=cross 11296else 11297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11298 lt_status=$lt_dlunknown 11299 cat > conftest.$ac_ext <<_LT_EOF 11300#line $LINENO "configure" 11301#include "confdefs.h" 11302 11303#if HAVE_DLFCN_H 11304#include <dlfcn.h> 11305#endif 11306 11307#include <stdio.h> 11308 11309#ifdef RTLD_GLOBAL 11310# define LT_DLGLOBAL RTLD_GLOBAL 11311#else 11312# ifdef DL_GLOBAL 11313# define LT_DLGLOBAL DL_GLOBAL 11314# else 11315# define LT_DLGLOBAL 0 11316# endif 11317#endif 11318 11319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11320 find out it does not work in some platform. */ 11321#ifndef LT_DLLAZY_OR_NOW 11322# ifdef RTLD_LAZY 11323# define LT_DLLAZY_OR_NOW RTLD_LAZY 11324# else 11325# ifdef DL_LAZY 11326# define LT_DLLAZY_OR_NOW DL_LAZY 11327# else 11328# ifdef RTLD_NOW 11329# define LT_DLLAZY_OR_NOW RTLD_NOW 11330# else 11331# ifdef DL_NOW 11332# define LT_DLLAZY_OR_NOW DL_NOW 11333# else 11334# define LT_DLLAZY_OR_NOW 0 11335# endif 11336# endif 11337# endif 11338# endif 11339#endif 11340 11341/* When -fvisbility=hidden is used, assume the code has been annotated 11342 correspondingly for the symbols needed. */ 11343#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11344int fnord () __attribute__((visibility("default"))); 11345#endif 11346 11347int fnord () { return 42; } 11348int main () 11349{ 11350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11351 int status = $lt_dlunknown; 11352 11353 if (self) 11354 { 11355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11356 else 11357 { 11358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11359 else puts (dlerror ()); 11360 } 11361 /* dlclose (self); */ 11362 } 11363 else 11364 puts (dlerror ()); 11365 11366 return status; 11367} 11368_LT_EOF 11369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11370 (eval $ac_link) 2>&5 11371 ac_status=$? 11372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11374 (./conftest; exit; ) >&5 2>/dev/null 11375 lt_status=$? 11376 case x$lt_status in 11377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11380 esac 11381 else : 11382 # compilation failed 11383 lt_cv_dlopen_self=no 11384 fi 11385fi 11386rm -fr conftest* 11387 11388 11389fi 11390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11391$as_echo "$lt_cv_dlopen_self" >&6; } 11392 11393 if test "x$lt_cv_dlopen_self" = xyes; then 11394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11396$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11397if ${lt_cv_dlopen_self_static+:} false; then : 11398 $as_echo_n "(cached) " >&6 11399else 11400 if test "$cross_compiling" = yes; then : 11401 lt_cv_dlopen_self_static=cross 11402else 11403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11404 lt_status=$lt_dlunknown 11405 cat > conftest.$ac_ext <<_LT_EOF 11406#line $LINENO "configure" 11407#include "confdefs.h" 11408 11409#if HAVE_DLFCN_H 11410#include <dlfcn.h> 11411#endif 11412 11413#include <stdio.h> 11414 11415#ifdef RTLD_GLOBAL 11416# define LT_DLGLOBAL RTLD_GLOBAL 11417#else 11418# ifdef DL_GLOBAL 11419# define LT_DLGLOBAL DL_GLOBAL 11420# else 11421# define LT_DLGLOBAL 0 11422# endif 11423#endif 11424 11425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11426 find out it does not work in some platform. */ 11427#ifndef LT_DLLAZY_OR_NOW 11428# ifdef RTLD_LAZY 11429# define LT_DLLAZY_OR_NOW RTLD_LAZY 11430# else 11431# ifdef DL_LAZY 11432# define LT_DLLAZY_OR_NOW DL_LAZY 11433# else 11434# ifdef RTLD_NOW 11435# define LT_DLLAZY_OR_NOW RTLD_NOW 11436# else 11437# ifdef DL_NOW 11438# define LT_DLLAZY_OR_NOW DL_NOW 11439# else 11440# define LT_DLLAZY_OR_NOW 0 11441# endif 11442# endif 11443# endif 11444# endif 11445#endif 11446 11447/* When -fvisbility=hidden is used, assume the code has been annotated 11448 correspondingly for the symbols needed. */ 11449#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11450int fnord () __attribute__((visibility("default"))); 11451#endif 11452 11453int fnord () { return 42; } 11454int main () 11455{ 11456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11457 int status = $lt_dlunknown; 11458 11459 if (self) 11460 { 11461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11462 else 11463 { 11464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11465 else puts (dlerror ()); 11466 } 11467 /* dlclose (self); */ 11468 } 11469 else 11470 puts (dlerror ()); 11471 11472 return status; 11473} 11474_LT_EOF 11475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11476 (eval $ac_link) 2>&5 11477 ac_status=$? 11478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11480 (./conftest; exit; ) >&5 2>/dev/null 11481 lt_status=$? 11482 case x$lt_status in 11483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11486 esac 11487 else : 11488 # compilation failed 11489 lt_cv_dlopen_self_static=no 11490 fi 11491fi 11492rm -fr conftest* 11493 11494 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11497$as_echo "$lt_cv_dlopen_self_static" >&6; } 11498 fi 11499 11500 CPPFLAGS="$save_CPPFLAGS" 11501 LDFLAGS="$save_LDFLAGS" 11502 LIBS="$save_LIBS" 11503 ;; 11504 esac 11505 11506 case $lt_cv_dlopen_self in 11507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11508 *) enable_dlopen_self=unknown ;; 11509 esac 11510 11511 case $lt_cv_dlopen_self_static in 11512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11513 *) enable_dlopen_self_static=unknown ;; 11514 esac 11515fi 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533striplib= 11534old_striplib= 11535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11536$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11537if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11539 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11541$as_echo "yes" >&6; } 11542else 11543# FIXME - insert some real tests, host_os isn't really good enough 11544 case $host_os in 11545 darwin*) 11546 if test -n "$STRIP" ; then 11547 striplib="$STRIP -x" 11548 old_striplib="$STRIP -S" 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11550$as_echo "yes" >&6; } 11551 else 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11553$as_echo "no" >&6; } 11554 fi 11555 ;; 11556 *) 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11558$as_echo "no" >&6; } 11559 ;; 11560 esac 11561fi 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 # Report which library types will actually be built 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11576$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11578$as_echo "$can_build_shared" >&6; } 11579 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11581$as_echo_n "checking whether to build shared libraries... " >&6; } 11582 test "$can_build_shared" = "no" && enable_shared=no 11583 11584 # On AIX, shared libraries and static libraries use the same namespace, and 11585 # are all built from PIC. 11586 case $host_os in 11587 aix3*) 11588 test "$enable_shared" = yes && enable_static=no 11589 if test -n "$RANLIB"; then 11590 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11591 postinstall_cmds='$RANLIB $lib' 11592 fi 11593 ;; 11594 11595 aix[4-9]*) 11596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11597 test "$enable_shared" = yes && enable_static=no 11598 fi 11599 ;; 11600 esac 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11602$as_echo "$enable_shared" >&6; } 11603 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11605$as_echo_n "checking whether to build static libraries... " >&6; } 11606 # Make sure either enable_shared or enable_static is yes. 11607 test "$enable_shared" = yes || enable_static=yes 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11609$as_echo "$enable_static" >&6; } 11610 11611 11612 11613 11614fi 11615ac_ext=c 11616ac_cpp='$CPP $CPPFLAGS' 11617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11619ac_compiler_gnu=$ac_cv_c_compiler_gnu 11620 11621CC="$lt_save_CC" 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 ac_config_commands="$ac_config_commands libtool" 11638 11639 11640 11641 11642# Only expand once: 11643 11644 11645 11646# Require xorg-macros minimum of 1.12 for DocBook external references 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11659$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11660if ${ac_cv_prog_cc_c99+:} false; then : 11661 $as_echo_n "(cached) " >&6 11662else 11663 ac_cv_prog_cc_c99=no 11664ac_save_CC=$CC 11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11666/* end confdefs.h. */ 11667#include <stdarg.h> 11668#include <stdbool.h> 11669#include <stdlib.h> 11670#include <wchar.h> 11671#include <stdio.h> 11672 11673// Check varargs macros. These examples are taken from C99 6.10.3.5. 11674#define debug(...) fprintf (stderr, __VA_ARGS__) 11675#define showlist(...) puts (#__VA_ARGS__) 11676#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11677static void 11678test_varargs_macros (void) 11679{ 11680 int x = 1234; 11681 int y = 5678; 11682 debug ("Flag"); 11683 debug ("X = %d\n", x); 11684 showlist (The first, second, and third items.); 11685 report (x>y, "x is %d but y is %d", x, y); 11686} 11687 11688// Check long long types. 11689#define BIG64 18446744073709551615ull 11690#define BIG32 4294967295ul 11691#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11692#if !BIG_OK 11693 your preprocessor is broken; 11694#endif 11695#if BIG_OK 11696#else 11697 your preprocessor is broken; 11698#endif 11699static long long int bignum = -9223372036854775807LL; 11700static unsigned long long int ubignum = BIG64; 11701 11702struct incomplete_array 11703{ 11704 int datasize; 11705 double data[]; 11706}; 11707 11708struct named_init { 11709 int number; 11710 const wchar_t *name; 11711 double average; 11712}; 11713 11714typedef const char *ccp; 11715 11716static inline int 11717test_restrict (ccp restrict text) 11718{ 11719 // See if C++-style comments work. 11720 // Iterate through items via the restricted pointer. 11721 // Also check for declarations in for loops. 11722 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11723 continue; 11724 return 0; 11725} 11726 11727// Check varargs and va_copy. 11728static void 11729test_varargs (const char *format, ...) 11730{ 11731 va_list args; 11732 va_start (args, format); 11733 va_list args_copy; 11734 va_copy (args_copy, args); 11735 11736 const char *str; 11737 int number; 11738 float fnumber; 11739 11740 while (*format) 11741 { 11742 switch (*format++) 11743 { 11744 case 's': // string 11745 str = va_arg (args_copy, const char *); 11746 break; 11747 case 'd': // int 11748 number = va_arg (args_copy, int); 11749 break; 11750 case 'f': // float 11751 fnumber = va_arg (args_copy, double); 11752 break; 11753 default: 11754 break; 11755 } 11756 } 11757 va_end (args_copy); 11758 va_end (args); 11759} 11760 11761int 11762main () 11763{ 11764 11765 // Check bool. 11766 _Bool success = false; 11767 11768 // Check restrict. 11769 if (test_restrict ("String literal") == 0) 11770 success = true; 11771 char *restrict newvar = "Another string"; 11772 11773 // Check varargs. 11774 test_varargs ("s, d' f .", "string", 65, 34.234); 11775 test_varargs_macros (); 11776 11777 // Check flexible array members. 11778 struct incomplete_array *ia = 11779 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11780 ia->datasize = 10; 11781 for (int i = 0; i < ia->datasize; ++i) 11782 ia->data[i] = i * 1.234; 11783 11784 // Check named initializers. 11785 struct named_init ni = { 11786 .number = 34, 11787 .name = L"Test wide string", 11788 .average = 543.34343, 11789 }; 11790 11791 ni.number = 58; 11792 11793 int dynamic_array[ni.number]; 11794 dynamic_array[ni.number - 1] = 543; 11795 11796 // work around unused variable warnings 11797 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11798 || dynamic_array[ni.number - 1] != 543); 11799 11800 ; 11801 return 0; 11802} 11803_ACEOF 11804for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11805do 11806 CC="$ac_save_CC $ac_arg" 11807 if ac_fn_c_try_compile "$LINENO"; then : 11808 ac_cv_prog_cc_c99=$ac_arg 11809fi 11810rm -f core conftest.err conftest.$ac_objext 11811 test "x$ac_cv_prog_cc_c99" != "xno" && break 11812done 11813rm -f conftest.$ac_ext 11814CC=$ac_save_CC 11815 11816fi 11817# AC_CACHE_VAL 11818case "x$ac_cv_prog_cc_c99" in 11819 x) 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11821$as_echo "none needed" >&6; } ;; 11822 xno) 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11824$as_echo "unsupported" >&6; } ;; 11825 *) 11826 CC="$CC $ac_cv_prog_cc_c99" 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11828$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11829esac 11830if test "x$ac_cv_prog_cc_c99" != xno; then : 11831 11832fi 11833 11834 11835 11836 11837 11838 11839ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11840if test "x$ac_cv_have_decl___clang__" = xyes; then : 11841 CLANGCC="yes" 11842else 11843 CLANGCC="no" 11844fi 11845 11846ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11847if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11848 INTELCC="yes" 11849else 11850 INTELCC="no" 11851fi 11852 11853ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11854if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11855 SUNCC="yes" 11856else 11857 SUNCC="no" 11858fi 11859 11860 11861 11862 11863if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11864 if test -n "$ac_tool_prefix"; then 11865 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11866set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11868$as_echo_n "checking for $ac_word... " >&6; } 11869if ${ac_cv_path_PKG_CONFIG+:} false; then : 11870 $as_echo_n "(cached) " >&6 11871else 11872 case $PKG_CONFIG in 11873 [\\/]* | ?:[\\/]*) 11874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11875 ;; 11876 *) 11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11878for as_dir in $PATH 11879do 11880 IFS=$as_save_IFS 11881 test -z "$as_dir" && as_dir=. 11882 for ac_exec_ext in '' $ac_executable_extensions; do 11883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11886 break 2 11887 fi 11888done 11889 done 11890IFS=$as_save_IFS 11891 11892 ;; 11893esac 11894fi 11895PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11896if test -n "$PKG_CONFIG"; then 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11898$as_echo "$PKG_CONFIG" >&6; } 11899else 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11901$as_echo "no" >&6; } 11902fi 11903 11904 11905fi 11906if test -z "$ac_cv_path_PKG_CONFIG"; then 11907 ac_pt_PKG_CONFIG=$PKG_CONFIG 11908 # Extract the first word of "pkg-config", so it can be a program name with args. 11909set dummy pkg-config; ac_word=$2 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11911$as_echo_n "checking for $ac_word... " >&6; } 11912if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914else 11915 case $ac_pt_PKG_CONFIG in 11916 [\\/]* | ?:[\\/]*) 11917 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11918 ;; 11919 *) 11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11921for as_dir in $PATH 11922do 11923 IFS=$as_save_IFS 11924 test -z "$as_dir" && as_dir=. 11925 for ac_exec_ext in '' $ac_executable_extensions; do 11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11927 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11929 break 2 11930 fi 11931done 11932 done 11933IFS=$as_save_IFS 11934 11935 ;; 11936esac 11937fi 11938ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11939if test -n "$ac_pt_PKG_CONFIG"; then 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11941$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11942else 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11944$as_echo "no" >&6; } 11945fi 11946 11947 if test "x$ac_pt_PKG_CONFIG" = x; then 11948 PKG_CONFIG="" 11949 else 11950 case $cross_compiling:$ac_tool_warned in 11951yes:) 11952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11954ac_tool_warned=yes ;; 11955esac 11956 PKG_CONFIG=$ac_pt_PKG_CONFIG 11957 fi 11958else 11959 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11960fi 11961 11962fi 11963if test -n "$PKG_CONFIG"; then 11964 _pkg_min_version=0.9.0 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11966$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11967 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11969$as_echo "yes" >&6; } 11970 else 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11972$as_echo "no" >&6; } 11973 PKG_CONFIG="" 11974 fi 11975 11976fi 11977 11978 11979 11980 11981 11982# Check whether --enable-selective-werror was given. 11983if test "${enable_selective_werror+set}" = set; then : 11984 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11985else 11986 SELECTIVE_WERROR=yes 11987fi 11988 11989 11990 11991 11992 11993# -v is too short to test reliably with XORG_TESTSET_CFLAG 11994if test "x$SUNCC" = "xyes"; then 11995 BASE_CFLAGS="-v" 11996else 11997 BASE_CFLAGS="" 11998fi 11999 12000# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014xorg_testset_save_CFLAGS="$CFLAGS" 12015 12016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12021 $as_echo_n "(cached) " >&6 12022else 12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024/* end confdefs.h. */ 12025int i; 12026_ACEOF 12027if ac_fn_c_try_compile "$LINENO"; then : 12028 xorg_cv_cc_flag_unknown_warning_option=yes 12029else 12030 xorg_cv_cc_flag_unknown_warning_option=no 12031fi 12032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12033fi 12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12037 CFLAGS="$xorg_testset_save_CFLAGS" 12038fi 12039 12040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12043 fi 12044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12048 $as_echo_n "(cached) " >&6 12049else 12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052int i; 12053_ACEOF 12054if ac_fn_c_try_compile "$LINENO"; then : 12055 xorg_cv_cc_flag_unused_command_line_argument=yes 12056else 12057 xorg_cv_cc_flag_unused_command_line_argument=no 12058fi 12059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12060fi 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12064 CFLAGS="$xorg_testset_save_CFLAGS" 12065fi 12066 12067found="no" 12068 12069 if test $found = "no" ; then 12070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12072 fi 12073 12074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12076 fi 12077 12078 CFLAGS="$CFLAGS -Wall" 12079 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12081$as_echo_n "checking if $CC supports -Wall... " >&6; } 12082 cacheid=xorg_cv_cc_flag__Wall 12083 if eval \${$cacheid+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085else 12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087/* end confdefs.h. */ 12088int i; 12089int 12090main () 12091{ 12092 12093 ; 12094 return 0; 12095} 12096_ACEOF 12097if ac_fn_c_try_link "$LINENO"; then : 12098 eval $cacheid=yes 12099else 12100 eval $cacheid=no 12101fi 12102rm -f core conftest.err conftest.$ac_objext \ 12103 conftest$ac_exeext conftest.$ac_ext 12104fi 12105 12106 12107 CFLAGS="$xorg_testset_save_CFLAGS" 12108 12109 eval supported=\$$cacheid 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12111$as_echo "$supported" >&6; } 12112 if test "$supported" = "yes" ; then 12113 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12114 found="yes" 12115 fi 12116 fi 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132xorg_testset_save_CFLAGS="$CFLAGS" 12133 12134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12139 $as_echo_n "(cached) " >&6 12140else 12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12142/* end confdefs.h. */ 12143int i; 12144_ACEOF 12145if ac_fn_c_try_compile "$LINENO"; then : 12146 xorg_cv_cc_flag_unknown_warning_option=yes 12147else 12148 xorg_cv_cc_flag_unknown_warning_option=no 12149fi 12150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12155 CFLAGS="$xorg_testset_save_CFLAGS" 12156fi 12157 12158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12161 fi 12162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167else 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170int i; 12171_ACEOF 12172if ac_fn_c_try_compile "$LINENO"; then : 12173 xorg_cv_cc_flag_unused_command_line_argument=yes 12174else 12175 xorg_cv_cc_flag_unused_command_line_argument=no 12176fi 12177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12178fi 12179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12182 CFLAGS="$xorg_testset_save_CFLAGS" 12183fi 12184 12185found="no" 12186 12187 if test $found = "no" ; then 12188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12190 fi 12191 12192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12194 fi 12195 12196 CFLAGS="$CFLAGS -Wpointer-arith" 12197 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12199$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12200 cacheid=xorg_cv_cc_flag__Wpointer_arith 12201 if eval \${$cacheid+:} false; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206int i; 12207int 12208main () 12209{ 12210 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_c_try_link "$LINENO"; then : 12216 eval $cacheid=yes 12217else 12218 eval $cacheid=no 12219fi 12220rm -f core conftest.err conftest.$ac_objext \ 12221 conftest$ac_exeext conftest.$ac_ext 12222fi 12223 12224 12225 CFLAGS="$xorg_testset_save_CFLAGS" 12226 12227 eval supported=\$$cacheid 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12229$as_echo "$supported" >&6; } 12230 if test "$supported" = "yes" ; then 12231 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12232 found="yes" 12233 fi 12234 fi 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250xorg_testset_save_CFLAGS="$CFLAGS" 12251 12252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12257 $as_echo_n "(cached) " >&6 12258else 12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12260/* end confdefs.h. */ 12261int i; 12262_ACEOF 12263if ac_fn_c_try_compile "$LINENO"; then : 12264 xorg_cv_cc_flag_unknown_warning_option=yes 12265else 12266 xorg_cv_cc_flag_unknown_warning_option=no 12267fi 12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12269fi 12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12273 CFLAGS="$xorg_testset_save_CFLAGS" 12274fi 12275 12276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12279 fi 12280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12284 $as_echo_n "(cached) " >&6 12285else 12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288int i; 12289_ACEOF 12290if ac_fn_c_try_compile "$LINENO"; then : 12291 xorg_cv_cc_flag_unused_command_line_argument=yes 12292else 12293 xorg_cv_cc_flag_unused_command_line_argument=no 12294fi 12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12296fi 12297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12300 CFLAGS="$xorg_testset_save_CFLAGS" 12301fi 12302 12303found="no" 12304 12305 if test $found = "no" ; then 12306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12308 fi 12309 12310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12312 fi 12313 12314 CFLAGS="$CFLAGS -Wmissing-declarations" 12315 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12317$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12318 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12319 if eval \${$cacheid+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323/* end confdefs.h. */ 12324int i; 12325int 12326main () 12327{ 12328 12329 ; 12330 return 0; 12331} 12332_ACEOF 12333if ac_fn_c_try_link "$LINENO"; then : 12334 eval $cacheid=yes 12335else 12336 eval $cacheid=no 12337fi 12338rm -f core conftest.err conftest.$ac_objext \ 12339 conftest$ac_exeext conftest.$ac_ext 12340fi 12341 12342 12343 CFLAGS="$xorg_testset_save_CFLAGS" 12344 12345 eval supported=\$$cacheid 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12347$as_echo "$supported" >&6; } 12348 if test "$supported" = "yes" ; then 12349 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12350 found="yes" 12351 fi 12352 fi 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368xorg_testset_save_CFLAGS="$CFLAGS" 12369 12370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12375 $as_echo_n "(cached) " >&6 12376else 12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12378/* end confdefs.h. */ 12379int i; 12380_ACEOF 12381if ac_fn_c_try_compile "$LINENO"; then : 12382 xorg_cv_cc_flag_unknown_warning_option=yes 12383else 12384 xorg_cv_cc_flag_unknown_warning_option=no 12385fi 12386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12387fi 12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12391 CFLAGS="$xorg_testset_save_CFLAGS" 12392fi 12393 12394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12397 fi 12398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12405/* end confdefs.h. */ 12406int i; 12407_ACEOF 12408if ac_fn_c_try_compile "$LINENO"; then : 12409 xorg_cv_cc_flag_unused_command_line_argument=yes 12410else 12411 xorg_cv_cc_flag_unused_command_line_argument=no 12412fi 12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12414fi 12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12418 CFLAGS="$xorg_testset_save_CFLAGS" 12419fi 12420 12421found="no" 12422 12423 if test $found = "no" ; then 12424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12426 fi 12427 12428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12430 fi 12431 12432 CFLAGS="$CFLAGS -Wformat=2" 12433 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12435$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12436 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12437 if eval \${$cacheid+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12441/* end confdefs.h. */ 12442int i; 12443int 12444main () 12445{ 12446 12447 ; 12448 return 0; 12449} 12450_ACEOF 12451if ac_fn_c_try_link "$LINENO"; then : 12452 eval $cacheid=yes 12453else 12454 eval $cacheid=no 12455fi 12456rm -f core conftest.err conftest.$ac_objext \ 12457 conftest$ac_exeext conftest.$ac_ext 12458fi 12459 12460 12461 CFLAGS="$xorg_testset_save_CFLAGS" 12462 12463 eval supported=\$$cacheid 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12465$as_echo "$supported" >&6; } 12466 if test "$supported" = "yes" ; then 12467 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12468 found="yes" 12469 fi 12470 fi 12471 12472 if test $found = "no" ; then 12473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12475 fi 12476 12477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12479 fi 12480 12481 CFLAGS="$CFLAGS -Wformat" 12482 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12484$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12485 cacheid=xorg_cv_cc_flag__Wformat 12486 if eval \${$cacheid+:} false; then : 12487 $as_echo_n "(cached) " >&6 12488else 12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12490/* end confdefs.h. */ 12491int i; 12492int 12493main () 12494{ 12495 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500if ac_fn_c_try_link "$LINENO"; then : 12501 eval $cacheid=yes 12502else 12503 eval $cacheid=no 12504fi 12505rm -f core conftest.err conftest.$ac_objext \ 12506 conftest$ac_exeext conftest.$ac_ext 12507fi 12508 12509 12510 CFLAGS="$xorg_testset_save_CFLAGS" 12511 12512 eval supported=\$$cacheid 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12514$as_echo "$supported" >&6; } 12515 if test "$supported" = "yes" ; then 12516 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12517 found="yes" 12518 fi 12519 fi 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537xorg_testset_save_CFLAGS="$CFLAGS" 12538 12539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12544 $as_echo_n "(cached) " >&6 12545else 12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12547/* end confdefs.h. */ 12548int i; 12549_ACEOF 12550if ac_fn_c_try_compile "$LINENO"; then : 12551 xorg_cv_cc_flag_unknown_warning_option=yes 12552else 12553 xorg_cv_cc_flag_unknown_warning_option=no 12554fi 12555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12556fi 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12560 CFLAGS="$xorg_testset_save_CFLAGS" 12561fi 12562 12563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12566 fi 12567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572else 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574/* end confdefs.h. */ 12575int i; 12576_ACEOF 12577if ac_fn_c_try_compile "$LINENO"; then : 12578 xorg_cv_cc_flag_unused_command_line_argument=yes 12579else 12580 xorg_cv_cc_flag_unused_command_line_argument=no 12581fi 12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12583fi 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12587 CFLAGS="$xorg_testset_save_CFLAGS" 12588fi 12589 12590found="no" 12591 12592 if test $found = "no" ; then 12593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12595 fi 12596 12597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12599 fi 12600 12601 CFLAGS="$CFLAGS -Wstrict-prototypes" 12602 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12604$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12605 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12606 if eval \${$cacheid+:} false; then : 12607 $as_echo_n "(cached) " >&6 12608else 12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12610/* end confdefs.h. */ 12611int i; 12612int 12613main () 12614{ 12615 12616 ; 12617 return 0; 12618} 12619_ACEOF 12620if ac_fn_c_try_link "$LINENO"; then : 12621 eval $cacheid=yes 12622else 12623 eval $cacheid=no 12624fi 12625rm -f core conftest.err conftest.$ac_objext \ 12626 conftest$ac_exeext conftest.$ac_ext 12627fi 12628 12629 12630 CFLAGS="$xorg_testset_save_CFLAGS" 12631 12632 eval supported=\$$cacheid 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12634$as_echo "$supported" >&6; } 12635 if test "$supported" = "yes" ; then 12636 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12637 found="yes" 12638 fi 12639 fi 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655xorg_testset_save_CFLAGS="$CFLAGS" 12656 12657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12662 $as_echo_n "(cached) " >&6 12663else 12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665/* end confdefs.h. */ 12666int i; 12667_ACEOF 12668if ac_fn_c_try_compile "$LINENO"; then : 12669 xorg_cv_cc_flag_unknown_warning_option=yes 12670else 12671 xorg_cv_cc_flag_unknown_warning_option=no 12672fi 12673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12674fi 12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12678 CFLAGS="$xorg_testset_save_CFLAGS" 12679fi 12680 12681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12684 fi 12685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12689 $as_echo_n "(cached) " >&6 12690else 12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692/* end confdefs.h. */ 12693int i; 12694_ACEOF 12695if ac_fn_c_try_compile "$LINENO"; then : 12696 xorg_cv_cc_flag_unused_command_line_argument=yes 12697else 12698 xorg_cv_cc_flag_unused_command_line_argument=no 12699fi 12700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12701fi 12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12705 CFLAGS="$xorg_testset_save_CFLAGS" 12706fi 12707 12708found="no" 12709 12710 if test $found = "no" ; then 12711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12713 fi 12714 12715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12717 fi 12718 12719 CFLAGS="$CFLAGS -Wmissing-prototypes" 12720 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12722$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12723 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12724 if eval \${$cacheid+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729int i; 12730int 12731main () 12732{ 12733 12734 ; 12735 return 0; 12736} 12737_ACEOF 12738if ac_fn_c_try_link "$LINENO"; then : 12739 eval $cacheid=yes 12740else 12741 eval $cacheid=no 12742fi 12743rm -f core conftest.err conftest.$ac_objext \ 12744 conftest$ac_exeext conftest.$ac_ext 12745fi 12746 12747 12748 CFLAGS="$xorg_testset_save_CFLAGS" 12749 12750 eval supported=\$$cacheid 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12752$as_echo "$supported" >&6; } 12753 if test "$supported" = "yes" ; then 12754 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12755 found="yes" 12756 fi 12757 fi 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773xorg_testset_save_CFLAGS="$CFLAGS" 12774 12775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781else 12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12783/* end confdefs.h. */ 12784int i; 12785_ACEOF 12786if ac_fn_c_try_compile "$LINENO"; then : 12787 xorg_cv_cc_flag_unknown_warning_option=yes 12788else 12789 xorg_cv_cc_flag_unknown_warning_option=no 12790fi 12791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12792fi 12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12796 CFLAGS="$xorg_testset_save_CFLAGS" 12797fi 12798 12799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12802 fi 12803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808else 12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12810/* end confdefs.h. */ 12811int i; 12812_ACEOF 12813if ac_fn_c_try_compile "$LINENO"; then : 12814 xorg_cv_cc_flag_unused_command_line_argument=yes 12815else 12816 xorg_cv_cc_flag_unused_command_line_argument=no 12817fi 12818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12819fi 12820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12823 CFLAGS="$xorg_testset_save_CFLAGS" 12824fi 12825 12826found="no" 12827 12828 if test $found = "no" ; then 12829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12831 fi 12832 12833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12835 fi 12836 12837 CFLAGS="$CFLAGS -Wnested-externs" 12838 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12840$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12841 cacheid=xorg_cv_cc_flag__Wnested_externs 12842 if eval \${$cacheid+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12846/* end confdefs.h. */ 12847int i; 12848int 12849main () 12850{ 12851 12852 ; 12853 return 0; 12854} 12855_ACEOF 12856if ac_fn_c_try_link "$LINENO"; then : 12857 eval $cacheid=yes 12858else 12859 eval $cacheid=no 12860fi 12861rm -f core conftest.err conftest.$ac_objext \ 12862 conftest$ac_exeext conftest.$ac_ext 12863fi 12864 12865 12866 CFLAGS="$xorg_testset_save_CFLAGS" 12867 12868 eval supported=\$$cacheid 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12870$as_echo "$supported" >&6; } 12871 if test "$supported" = "yes" ; then 12872 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12873 found="yes" 12874 fi 12875 fi 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891xorg_testset_save_CFLAGS="$CFLAGS" 12892 12893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12898 $as_echo_n "(cached) " >&6 12899else 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12901/* end confdefs.h. */ 12902int i; 12903_ACEOF 12904if ac_fn_c_try_compile "$LINENO"; then : 12905 xorg_cv_cc_flag_unknown_warning_option=yes 12906else 12907 xorg_cv_cc_flag_unknown_warning_option=no 12908fi 12909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12910fi 12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12914 CFLAGS="$xorg_testset_save_CFLAGS" 12915fi 12916 12917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12920 fi 12921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12928/* end confdefs.h. */ 12929int i; 12930_ACEOF 12931if ac_fn_c_try_compile "$LINENO"; then : 12932 xorg_cv_cc_flag_unused_command_line_argument=yes 12933else 12934 xorg_cv_cc_flag_unused_command_line_argument=no 12935fi 12936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12937fi 12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12941 CFLAGS="$xorg_testset_save_CFLAGS" 12942fi 12943 12944found="no" 12945 12946 if test $found = "no" ; then 12947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12949 fi 12950 12951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12953 fi 12954 12955 CFLAGS="$CFLAGS -Wbad-function-cast" 12956 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12958$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12959 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12960 if eval \${$cacheid+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965int i; 12966int 12967main () 12968{ 12969 12970 ; 12971 return 0; 12972} 12973_ACEOF 12974if ac_fn_c_try_link "$LINENO"; then : 12975 eval $cacheid=yes 12976else 12977 eval $cacheid=no 12978fi 12979rm -f core conftest.err conftest.$ac_objext \ 12980 conftest$ac_exeext conftest.$ac_ext 12981fi 12982 12983 12984 CFLAGS="$xorg_testset_save_CFLAGS" 12985 12986 eval supported=\$$cacheid 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12988$as_echo "$supported" >&6; } 12989 if test "$supported" = "yes" ; then 12990 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12991 found="yes" 12992 fi 12993 fi 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009xorg_testset_save_CFLAGS="$CFLAGS" 13010 13011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13016 $as_echo_n "(cached) " >&6 13017else 13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019/* end confdefs.h. */ 13020int i; 13021_ACEOF 13022if ac_fn_c_try_compile "$LINENO"; then : 13023 xorg_cv_cc_flag_unknown_warning_option=yes 13024else 13025 xorg_cv_cc_flag_unknown_warning_option=no 13026fi 13027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13028fi 13029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13032 CFLAGS="$xorg_testset_save_CFLAGS" 13033fi 13034 13035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13038 fi 13039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13046/* end confdefs.h. */ 13047int i; 13048_ACEOF 13049if ac_fn_c_try_compile "$LINENO"; then : 13050 xorg_cv_cc_flag_unused_command_line_argument=yes 13051else 13052 xorg_cv_cc_flag_unused_command_line_argument=no 13053fi 13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13055fi 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13059 CFLAGS="$xorg_testset_save_CFLAGS" 13060fi 13061 13062found="no" 13063 13064 if test $found = "no" ; then 13065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13067 fi 13068 13069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13071 fi 13072 13073 CFLAGS="$CFLAGS -Wold-style-definition" 13074 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13076$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13077 cacheid=xorg_cv_cc_flag__Wold_style_definition 13078 if eval \${$cacheid+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083int i; 13084int 13085main () 13086{ 13087 13088 ; 13089 return 0; 13090} 13091_ACEOF 13092if ac_fn_c_try_link "$LINENO"; then : 13093 eval $cacheid=yes 13094else 13095 eval $cacheid=no 13096fi 13097rm -f core conftest.err conftest.$ac_objext \ 13098 conftest$ac_exeext conftest.$ac_ext 13099fi 13100 13101 13102 CFLAGS="$xorg_testset_save_CFLAGS" 13103 13104 eval supported=\$$cacheid 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13106$as_echo "$supported" >&6; } 13107 if test "$supported" = "yes" ; then 13108 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13109 found="yes" 13110 fi 13111 fi 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127xorg_testset_save_CFLAGS="$CFLAGS" 13128 13129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13134 $as_echo_n "(cached) " >&6 13135else 13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13137/* end confdefs.h. */ 13138int i; 13139_ACEOF 13140if ac_fn_c_try_compile "$LINENO"; then : 13141 xorg_cv_cc_flag_unknown_warning_option=yes 13142else 13143 xorg_cv_cc_flag_unknown_warning_option=no 13144fi 13145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13146fi 13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13150 CFLAGS="$xorg_testset_save_CFLAGS" 13151fi 13152 13153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13156 fi 13157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164/* end confdefs.h. */ 13165int i; 13166_ACEOF 13167if ac_fn_c_try_compile "$LINENO"; then : 13168 xorg_cv_cc_flag_unused_command_line_argument=yes 13169else 13170 xorg_cv_cc_flag_unused_command_line_argument=no 13171fi 13172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13173fi 13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13177 CFLAGS="$xorg_testset_save_CFLAGS" 13178fi 13179 13180found="no" 13181 13182 if test $found = "no" ; then 13183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13185 fi 13186 13187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13189 fi 13190 13191 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13192 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13194$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13195 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13196 if eval \${$cacheid+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201int i; 13202int 13203main () 13204{ 13205 13206 ; 13207 return 0; 13208} 13209_ACEOF 13210if ac_fn_c_try_link "$LINENO"; then : 13211 eval $cacheid=yes 13212else 13213 eval $cacheid=no 13214fi 13215rm -f core conftest.err conftest.$ac_objext \ 13216 conftest$ac_exeext conftest.$ac_ext 13217fi 13218 13219 13220 CFLAGS="$xorg_testset_save_CFLAGS" 13221 13222 eval supported=\$$cacheid 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13224$as_echo "$supported" >&6; } 13225 if test "$supported" = "yes" ; then 13226 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13227 found="yes" 13228 fi 13229 fi 13230 13231 13232 13233 13234 13235# This chunk adds additional warnings that could catch undesired effects. 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249xorg_testset_save_CFLAGS="$CFLAGS" 13250 13251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13256 $as_echo_n "(cached) " >&6 13257else 13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260int i; 13261_ACEOF 13262if ac_fn_c_try_compile "$LINENO"; then : 13263 xorg_cv_cc_flag_unknown_warning_option=yes 13264else 13265 xorg_cv_cc_flag_unknown_warning_option=no 13266fi 13267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13268fi 13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13272 CFLAGS="$xorg_testset_save_CFLAGS" 13273fi 13274 13275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13278 fi 13279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13283 $as_echo_n "(cached) " >&6 13284else 13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13286/* end confdefs.h. */ 13287int i; 13288_ACEOF 13289if ac_fn_c_try_compile "$LINENO"; then : 13290 xorg_cv_cc_flag_unused_command_line_argument=yes 13291else 13292 xorg_cv_cc_flag_unused_command_line_argument=no 13293fi 13294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13295fi 13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13299 CFLAGS="$xorg_testset_save_CFLAGS" 13300fi 13301 13302found="no" 13303 13304 if test $found = "no" ; then 13305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13307 fi 13308 13309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13311 fi 13312 13313 CFLAGS="$CFLAGS -Wunused" 13314 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13316$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13317 cacheid=xorg_cv_cc_flag__Wunused 13318 if eval \${$cacheid+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13322/* end confdefs.h. */ 13323int i; 13324int 13325main () 13326{ 13327 13328 ; 13329 return 0; 13330} 13331_ACEOF 13332if ac_fn_c_try_link "$LINENO"; then : 13333 eval $cacheid=yes 13334else 13335 eval $cacheid=no 13336fi 13337rm -f core conftest.err conftest.$ac_objext \ 13338 conftest$ac_exeext conftest.$ac_ext 13339fi 13340 13341 13342 CFLAGS="$xorg_testset_save_CFLAGS" 13343 13344 eval supported=\$$cacheid 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13346$as_echo "$supported" >&6; } 13347 if test "$supported" = "yes" ; then 13348 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13349 found="yes" 13350 fi 13351 fi 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367xorg_testset_save_CFLAGS="$CFLAGS" 13368 13369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13377/* end confdefs.h. */ 13378int i; 13379_ACEOF 13380if ac_fn_c_try_compile "$LINENO"; then : 13381 xorg_cv_cc_flag_unknown_warning_option=yes 13382else 13383 xorg_cv_cc_flag_unknown_warning_option=no 13384fi 13385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13386fi 13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13390 CFLAGS="$xorg_testset_save_CFLAGS" 13391fi 13392 13393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13396 fi 13397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13401 $as_echo_n "(cached) " >&6 13402else 13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13404/* end confdefs.h. */ 13405int i; 13406_ACEOF 13407if ac_fn_c_try_compile "$LINENO"; then : 13408 xorg_cv_cc_flag_unused_command_line_argument=yes 13409else 13410 xorg_cv_cc_flag_unused_command_line_argument=no 13411fi 13412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13413fi 13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13417 CFLAGS="$xorg_testset_save_CFLAGS" 13418fi 13419 13420found="no" 13421 13422 if test $found = "no" ; then 13423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13425 fi 13426 13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13429 fi 13430 13431 CFLAGS="$CFLAGS -Wuninitialized" 13432 13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13434$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13435 cacheid=xorg_cv_cc_flag__Wuninitialized 13436 if eval \${$cacheid+:} false; then : 13437 $as_echo_n "(cached) " >&6 13438else 13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13440/* end confdefs.h. */ 13441int i; 13442int 13443main () 13444{ 13445 13446 ; 13447 return 0; 13448} 13449_ACEOF 13450if ac_fn_c_try_link "$LINENO"; then : 13451 eval $cacheid=yes 13452else 13453 eval $cacheid=no 13454fi 13455rm -f core conftest.err conftest.$ac_objext \ 13456 conftest$ac_exeext conftest.$ac_ext 13457fi 13458 13459 13460 CFLAGS="$xorg_testset_save_CFLAGS" 13461 13462 eval supported=\$$cacheid 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13464$as_echo "$supported" >&6; } 13465 if test "$supported" = "yes" ; then 13466 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13467 found="yes" 13468 fi 13469 fi 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485xorg_testset_save_CFLAGS="$CFLAGS" 13486 13487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13492 $as_echo_n "(cached) " >&6 13493else 13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13495/* end confdefs.h. */ 13496int i; 13497_ACEOF 13498if ac_fn_c_try_compile "$LINENO"; then : 13499 xorg_cv_cc_flag_unknown_warning_option=yes 13500else 13501 xorg_cv_cc_flag_unknown_warning_option=no 13502fi 13503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13504fi 13505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13508 CFLAGS="$xorg_testset_save_CFLAGS" 13509fi 13510 13511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13514 fi 13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13519 $as_echo_n "(cached) " >&6 13520else 13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13522/* end confdefs.h. */ 13523int i; 13524_ACEOF 13525if ac_fn_c_try_compile "$LINENO"; then : 13526 xorg_cv_cc_flag_unused_command_line_argument=yes 13527else 13528 xorg_cv_cc_flag_unused_command_line_argument=no 13529fi 13530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13531fi 13532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13535 CFLAGS="$xorg_testset_save_CFLAGS" 13536fi 13537 13538found="no" 13539 13540 if test $found = "no" ; then 13541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13543 fi 13544 13545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13547 fi 13548 13549 CFLAGS="$CFLAGS -Wshadow" 13550 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13552$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13553 cacheid=xorg_cv_cc_flag__Wshadow 13554 if eval \${$cacheid+:} false; then : 13555 $as_echo_n "(cached) " >&6 13556else 13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13558/* end confdefs.h. */ 13559int i; 13560int 13561main () 13562{ 13563 13564 ; 13565 return 0; 13566} 13567_ACEOF 13568if ac_fn_c_try_link "$LINENO"; then : 13569 eval $cacheid=yes 13570else 13571 eval $cacheid=no 13572fi 13573rm -f core conftest.err conftest.$ac_objext \ 13574 conftest$ac_exeext conftest.$ac_ext 13575fi 13576 13577 13578 CFLAGS="$xorg_testset_save_CFLAGS" 13579 13580 eval supported=\$$cacheid 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13582$as_echo "$supported" >&6; } 13583 if test "$supported" = "yes" ; then 13584 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13585 found="yes" 13586 fi 13587 fi 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603xorg_testset_save_CFLAGS="$CFLAGS" 13604 13605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13610 $as_echo_n "(cached) " >&6 13611else 13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13613/* end confdefs.h. */ 13614int i; 13615_ACEOF 13616if ac_fn_c_try_compile "$LINENO"; then : 13617 xorg_cv_cc_flag_unknown_warning_option=yes 13618else 13619 xorg_cv_cc_flag_unknown_warning_option=no 13620fi 13621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13622fi 13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13626 CFLAGS="$xorg_testset_save_CFLAGS" 13627fi 13628 13629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13632 fi 13633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13637 $as_echo_n "(cached) " >&6 13638else 13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640/* end confdefs.h. */ 13641int i; 13642_ACEOF 13643if ac_fn_c_try_compile "$LINENO"; then : 13644 xorg_cv_cc_flag_unused_command_line_argument=yes 13645else 13646 xorg_cv_cc_flag_unused_command_line_argument=no 13647fi 13648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13649fi 13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13653 CFLAGS="$xorg_testset_save_CFLAGS" 13654fi 13655 13656found="no" 13657 13658 if test $found = "no" ; then 13659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13661 fi 13662 13663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13665 fi 13666 13667 CFLAGS="$CFLAGS -Wcast-qual" 13668 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13670$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13671 cacheid=xorg_cv_cc_flag__Wcast_qual 13672 if eval \${$cacheid+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674else 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677int i; 13678int 13679main () 13680{ 13681 13682 ; 13683 return 0; 13684} 13685_ACEOF 13686if ac_fn_c_try_link "$LINENO"; then : 13687 eval $cacheid=yes 13688else 13689 eval $cacheid=no 13690fi 13691rm -f core conftest.err conftest.$ac_objext \ 13692 conftest$ac_exeext conftest.$ac_ext 13693fi 13694 13695 13696 CFLAGS="$xorg_testset_save_CFLAGS" 13697 13698 eval supported=\$$cacheid 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13700$as_echo "$supported" >&6; } 13701 if test "$supported" = "yes" ; then 13702 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13703 found="yes" 13704 fi 13705 fi 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721xorg_testset_save_CFLAGS="$CFLAGS" 13722 13723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13728 $as_echo_n "(cached) " >&6 13729else 13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13731/* end confdefs.h. */ 13732int i; 13733_ACEOF 13734if ac_fn_c_try_compile "$LINENO"; then : 13735 xorg_cv_cc_flag_unknown_warning_option=yes 13736else 13737 xorg_cv_cc_flag_unknown_warning_option=no 13738fi 13739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13740fi 13741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13744 CFLAGS="$xorg_testset_save_CFLAGS" 13745fi 13746 13747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13750 fi 13751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13755 $as_echo_n "(cached) " >&6 13756else 13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758/* end confdefs.h. */ 13759int i; 13760_ACEOF 13761if ac_fn_c_try_compile "$LINENO"; then : 13762 xorg_cv_cc_flag_unused_command_line_argument=yes 13763else 13764 xorg_cv_cc_flag_unused_command_line_argument=no 13765fi 13766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13767fi 13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13771 CFLAGS="$xorg_testset_save_CFLAGS" 13772fi 13773 13774found="no" 13775 13776 if test $found = "no" ; then 13777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13779 fi 13780 13781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13783 fi 13784 13785 CFLAGS="$CFLAGS -Wmissing-noreturn" 13786 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13788$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13789 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13790 if eval \${$cacheid+:} false; then : 13791 $as_echo_n "(cached) " >&6 13792else 13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13794/* end confdefs.h. */ 13795int i; 13796int 13797main () 13798{ 13799 13800 ; 13801 return 0; 13802} 13803_ACEOF 13804if ac_fn_c_try_link "$LINENO"; then : 13805 eval $cacheid=yes 13806else 13807 eval $cacheid=no 13808fi 13809rm -f core conftest.err conftest.$ac_objext \ 13810 conftest$ac_exeext conftest.$ac_ext 13811fi 13812 13813 13814 CFLAGS="$xorg_testset_save_CFLAGS" 13815 13816 eval supported=\$$cacheid 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13818$as_echo "$supported" >&6; } 13819 if test "$supported" = "yes" ; then 13820 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13821 found="yes" 13822 fi 13823 fi 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839xorg_testset_save_CFLAGS="$CFLAGS" 13840 13841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13846 $as_echo_n "(cached) " >&6 13847else 13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13849/* end confdefs.h. */ 13850int i; 13851_ACEOF 13852if ac_fn_c_try_compile "$LINENO"; then : 13853 xorg_cv_cc_flag_unknown_warning_option=yes 13854else 13855 xorg_cv_cc_flag_unknown_warning_option=no 13856fi 13857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13858fi 13859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13862 CFLAGS="$xorg_testset_save_CFLAGS" 13863fi 13864 13865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13868 fi 13869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13873 $as_echo_n "(cached) " >&6 13874else 13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13876/* end confdefs.h. */ 13877int i; 13878_ACEOF 13879if ac_fn_c_try_compile "$LINENO"; then : 13880 xorg_cv_cc_flag_unused_command_line_argument=yes 13881else 13882 xorg_cv_cc_flag_unused_command_line_argument=no 13883fi 13884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13885fi 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13889 CFLAGS="$xorg_testset_save_CFLAGS" 13890fi 13891 13892found="no" 13893 13894 if test $found = "no" ; then 13895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13897 fi 13898 13899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13901 fi 13902 13903 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13904 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13906$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13907 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13908 if eval \${$cacheid+:} false; then : 13909 $as_echo_n "(cached) " >&6 13910else 13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13912/* end confdefs.h. */ 13913int i; 13914int 13915main () 13916{ 13917 13918 ; 13919 return 0; 13920} 13921_ACEOF 13922if ac_fn_c_try_link "$LINENO"; then : 13923 eval $cacheid=yes 13924else 13925 eval $cacheid=no 13926fi 13927rm -f core conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext conftest.$ac_ext 13929fi 13930 13931 13932 CFLAGS="$xorg_testset_save_CFLAGS" 13933 13934 eval supported=\$$cacheid 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13936$as_echo "$supported" >&6; } 13937 if test "$supported" = "yes" ; then 13938 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13939 found="yes" 13940 fi 13941 fi 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957xorg_testset_save_CFLAGS="$CFLAGS" 13958 13959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13964 $as_echo_n "(cached) " >&6 13965else 13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967/* end confdefs.h. */ 13968int i; 13969_ACEOF 13970if ac_fn_c_try_compile "$LINENO"; then : 13971 xorg_cv_cc_flag_unknown_warning_option=yes 13972else 13973 xorg_cv_cc_flag_unknown_warning_option=no 13974fi 13975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13976fi 13977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13980 CFLAGS="$xorg_testset_save_CFLAGS" 13981fi 13982 13983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13986 fi 13987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992else 13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994/* end confdefs.h. */ 13995int i; 13996_ACEOF 13997if ac_fn_c_try_compile "$LINENO"; then : 13998 xorg_cv_cc_flag_unused_command_line_argument=yes 13999else 14000 xorg_cv_cc_flag_unused_command_line_argument=no 14001fi 14002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14003fi 14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14007 CFLAGS="$xorg_testset_save_CFLAGS" 14008fi 14009 14010found="no" 14011 14012 if test $found = "no" ; then 14013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14015 fi 14016 14017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14019 fi 14020 14021 CFLAGS="$CFLAGS -Wredundant-decls" 14022 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14024$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14025 cacheid=xorg_cv_cc_flag__Wredundant_decls 14026 if eval \${$cacheid+:} false; then : 14027 $as_echo_n "(cached) " >&6 14028else 14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031int i; 14032int 14033main () 14034{ 14035 14036 ; 14037 return 0; 14038} 14039_ACEOF 14040if ac_fn_c_try_link "$LINENO"; then : 14041 eval $cacheid=yes 14042else 14043 eval $cacheid=no 14044fi 14045rm -f core conftest.err conftest.$ac_objext \ 14046 conftest$ac_exeext conftest.$ac_ext 14047fi 14048 14049 14050 CFLAGS="$xorg_testset_save_CFLAGS" 14051 14052 eval supported=\$$cacheid 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14054$as_echo "$supported" >&6; } 14055 if test "$supported" = "yes" ; then 14056 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14057 found="yes" 14058 fi 14059 fi 14060 14061 14062 14063# These are currently disabled because they are noisy. They will be enabled 14064# in the future once the codebase is sufficiently modernized to silence 14065# them. For now, I don't want them to drown out the other warnings. 14066# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14067# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14068# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14069 14070# Turn some warnings into errors, so we don't accidently get successful builds 14071# when there are problems that should be fixed. 14072 14073if test "x$SELECTIVE_WERROR" = "xyes" ; then 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087xorg_testset_save_CFLAGS="$CFLAGS" 14088 14089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14094 $as_echo_n "(cached) " >&6 14095else 14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14097/* end confdefs.h. */ 14098int i; 14099_ACEOF 14100if ac_fn_c_try_compile "$LINENO"; then : 14101 xorg_cv_cc_flag_unknown_warning_option=yes 14102else 14103 xorg_cv_cc_flag_unknown_warning_option=no 14104fi 14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14106fi 14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14110 CFLAGS="$xorg_testset_save_CFLAGS" 14111fi 14112 14113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14116 fi 14117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14121 $as_echo_n "(cached) " >&6 14122else 14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14124/* end confdefs.h. */ 14125int i; 14126_ACEOF 14127if ac_fn_c_try_compile "$LINENO"; then : 14128 xorg_cv_cc_flag_unused_command_line_argument=yes 14129else 14130 xorg_cv_cc_flag_unused_command_line_argument=no 14131fi 14132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14133fi 14134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14137 CFLAGS="$xorg_testset_save_CFLAGS" 14138fi 14139 14140found="no" 14141 14142 if test $found = "no" ; then 14143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14145 fi 14146 14147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14149 fi 14150 14151 CFLAGS="$CFLAGS -Werror=implicit" 14152 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14154$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14155 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14156 if eval \${$cacheid+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161int i; 14162int 14163main () 14164{ 14165 14166 ; 14167 return 0; 14168} 14169_ACEOF 14170if ac_fn_c_try_link "$LINENO"; then : 14171 eval $cacheid=yes 14172else 14173 eval $cacheid=no 14174fi 14175rm -f core conftest.err conftest.$ac_objext \ 14176 conftest$ac_exeext conftest.$ac_ext 14177fi 14178 14179 14180 CFLAGS="$xorg_testset_save_CFLAGS" 14181 14182 eval supported=\$$cacheid 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14184$as_echo "$supported" >&6; } 14185 if test "$supported" = "yes" ; then 14186 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14187 found="yes" 14188 fi 14189 fi 14190 14191 if test $found = "no" ; then 14192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14194 fi 14195 14196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14198 fi 14199 14200 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14201 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14203$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14204 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14205 if eval \${$cacheid+:} false; then : 14206 $as_echo_n "(cached) " >&6 14207else 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14209/* end confdefs.h. */ 14210int i; 14211int 14212main () 14213{ 14214 14215 ; 14216 return 0; 14217} 14218_ACEOF 14219if ac_fn_c_try_link "$LINENO"; then : 14220 eval $cacheid=yes 14221else 14222 eval $cacheid=no 14223fi 14224rm -f core conftest.err conftest.$ac_objext \ 14225 conftest$ac_exeext conftest.$ac_ext 14226fi 14227 14228 14229 CFLAGS="$xorg_testset_save_CFLAGS" 14230 14231 eval supported=\$$cacheid 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14233$as_echo "$supported" >&6; } 14234 if test "$supported" = "yes" ; then 14235 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14236 found="yes" 14237 fi 14238 fi 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254xorg_testset_save_CFLAGS="$CFLAGS" 14255 14256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14261 $as_echo_n "(cached) " >&6 14262else 14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14264/* end confdefs.h. */ 14265int i; 14266_ACEOF 14267if ac_fn_c_try_compile "$LINENO"; then : 14268 xorg_cv_cc_flag_unknown_warning_option=yes 14269else 14270 xorg_cv_cc_flag_unknown_warning_option=no 14271fi 14272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14273fi 14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14277 CFLAGS="$xorg_testset_save_CFLAGS" 14278fi 14279 14280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14283 fi 14284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14288 $as_echo_n "(cached) " >&6 14289else 14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291/* end confdefs.h. */ 14292int i; 14293_ACEOF 14294if ac_fn_c_try_compile "$LINENO"; then : 14295 xorg_cv_cc_flag_unused_command_line_argument=yes 14296else 14297 xorg_cv_cc_flag_unused_command_line_argument=no 14298fi 14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14300fi 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14304 CFLAGS="$xorg_testset_save_CFLAGS" 14305fi 14306 14307found="no" 14308 14309 if test $found = "no" ; then 14310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14312 fi 14313 14314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14316 fi 14317 14318 CFLAGS="$CFLAGS -Werror=nonnull" 14319 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14321$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14322 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14323 if eval \${$cacheid+:} false; then : 14324 $as_echo_n "(cached) " >&6 14325else 14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14327/* end confdefs.h. */ 14328int i; 14329int 14330main () 14331{ 14332 14333 ; 14334 return 0; 14335} 14336_ACEOF 14337if ac_fn_c_try_link "$LINENO"; then : 14338 eval $cacheid=yes 14339else 14340 eval $cacheid=no 14341fi 14342rm -f core conftest.err conftest.$ac_objext \ 14343 conftest$ac_exeext conftest.$ac_ext 14344fi 14345 14346 14347 CFLAGS="$xorg_testset_save_CFLAGS" 14348 14349 eval supported=\$$cacheid 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14351$as_echo "$supported" >&6; } 14352 if test "$supported" = "yes" ; then 14353 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14354 found="yes" 14355 fi 14356 fi 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372xorg_testset_save_CFLAGS="$CFLAGS" 14373 14374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14379 $as_echo_n "(cached) " >&6 14380else 14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382/* end confdefs.h. */ 14383int i; 14384_ACEOF 14385if ac_fn_c_try_compile "$LINENO"; then : 14386 xorg_cv_cc_flag_unknown_warning_option=yes 14387else 14388 xorg_cv_cc_flag_unknown_warning_option=no 14389fi 14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14391fi 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14395 CFLAGS="$xorg_testset_save_CFLAGS" 14396fi 14397 14398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14401 fi 14402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14406 $as_echo_n "(cached) " >&6 14407else 14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14409/* end confdefs.h. */ 14410int i; 14411_ACEOF 14412if ac_fn_c_try_compile "$LINENO"; then : 14413 xorg_cv_cc_flag_unused_command_line_argument=yes 14414else 14415 xorg_cv_cc_flag_unused_command_line_argument=no 14416fi 14417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14418fi 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14422 CFLAGS="$xorg_testset_save_CFLAGS" 14423fi 14424 14425found="no" 14426 14427 if test $found = "no" ; then 14428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14430 fi 14431 14432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14434 fi 14435 14436 CFLAGS="$CFLAGS -Werror=init-self" 14437 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14439$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14440 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14441 if eval \${$cacheid+:} false; then : 14442 $as_echo_n "(cached) " >&6 14443else 14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14445/* end confdefs.h. */ 14446int i; 14447int 14448main () 14449{ 14450 14451 ; 14452 return 0; 14453} 14454_ACEOF 14455if ac_fn_c_try_link "$LINENO"; then : 14456 eval $cacheid=yes 14457else 14458 eval $cacheid=no 14459fi 14460rm -f core conftest.err conftest.$ac_objext \ 14461 conftest$ac_exeext conftest.$ac_ext 14462fi 14463 14464 14465 CFLAGS="$xorg_testset_save_CFLAGS" 14466 14467 eval supported=\$$cacheid 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14469$as_echo "$supported" >&6; } 14470 if test "$supported" = "yes" ; then 14471 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14472 found="yes" 14473 fi 14474 fi 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490xorg_testset_save_CFLAGS="$CFLAGS" 14491 14492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14497 $as_echo_n "(cached) " >&6 14498else 14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500/* end confdefs.h. */ 14501int i; 14502_ACEOF 14503if ac_fn_c_try_compile "$LINENO"; then : 14504 xorg_cv_cc_flag_unknown_warning_option=yes 14505else 14506 xorg_cv_cc_flag_unknown_warning_option=no 14507fi 14508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14509fi 14510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14513 CFLAGS="$xorg_testset_save_CFLAGS" 14514fi 14515 14516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14519 fi 14520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529_ACEOF 14530if ac_fn_c_try_compile "$LINENO"; then : 14531 xorg_cv_cc_flag_unused_command_line_argument=yes 14532else 14533 xorg_cv_cc_flag_unused_command_line_argument=no 14534fi 14535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14536fi 14537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14540 CFLAGS="$xorg_testset_save_CFLAGS" 14541fi 14542 14543found="no" 14544 14545 if test $found = "no" ; then 14546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14548 fi 14549 14550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14552 fi 14553 14554 CFLAGS="$CFLAGS -Werror=main" 14555 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14557$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14558 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14559 if eval \${$cacheid+:} false; then : 14560 $as_echo_n "(cached) " >&6 14561else 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564int i; 14565int 14566main () 14567{ 14568 14569 ; 14570 return 0; 14571} 14572_ACEOF 14573if ac_fn_c_try_link "$LINENO"; then : 14574 eval $cacheid=yes 14575else 14576 eval $cacheid=no 14577fi 14578rm -f core conftest.err conftest.$ac_objext \ 14579 conftest$ac_exeext conftest.$ac_ext 14580fi 14581 14582 14583 CFLAGS="$xorg_testset_save_CFLAGS" 14584 14585 eval supported=\$$cacheid 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14587$as_echo "$supported" >&6; } 14588 if test "$supported" = "yes" ; then 14589 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14590 found="yes" 14591 fi 14592 fi 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608xorg_testset_save_CFLAGS="$CFLAGS" 14609 14610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14615 $as_echo_n "(cached) " >&6 14616else 14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14618/* end confdefs.h. */ 14619int i; 14620_ACEOF 14621if ac_fn_c_try_compile "$LINENO"; then : 14622 xorg_cv_cc_flag_unknown_warning_option=yes 14623else 14624 xorg_cv_cc_flag_unknown_warning_option=no 14625fi 14626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14627fi 14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14631 CFLAGS="$xorg_testset_save_CFLAGS" 14632fi 14633 14634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14637 fi 14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647_ACEOF 14648if ac_fn_c_try_compile "$LINENO"; then : 14649 xorg_cv_cc_flag_unused_command_line_argument=yes 14650else 14651 xorg_cv_cc_flag_unused_command_line_argument=no 14652fi 14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14654fi 14655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14658 CFLAGS="$xorg_testset_save_CFLAGS" 14659fi 14660 14661found="no" 14662 14663 if test $found = "no" ; then 14664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14666 fi 14667 14668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14670 fi 14671 14672 CFLAGS="$CFLAGS -Werror=missing-braces" 14673 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14675$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14676 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14677 if eval \${$cacheid+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681/* end confdefs.h. */ 14682int i; 14683int 14684main () 14685{ 14686 14687 ; 14688 return 0; 14689} 14690_ACEOF 14691if ac_fn_c_try_link "$LINENO"; then : 14692 eval $cacheid=yes 14693else 14694 eval $cacheid=no 14695fi 14696rm -f core conftest.err conftest.$ac_objext \ 14697 conftest$ac_exeext conftest.$ac_ext 14698fi 14699 14700 14701 CFLAGS="$xorg_testset_save_CFLAGS" 14702 14703 eval supported=\$$cacheid 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14705$as_echo "$supported" >&6; } 14706 if test "$supported" = "yes" ; then 14707 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14708 found="yes" 14709 fi 14710 fi 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726xorg_testset_save_CFLAGS="$CFLAGS" 14727 14728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737int i; 14738_ACEOF 14739if ac_fn_c_try_compile "$LINENO"; then : 14740 xorg_cv_cc_flag_unknown_warning_option=yes 14741else 14742 xorg_cv_cc_flag_unknown_warning_option=no 14743fi 14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14745fi 14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14749 CFLAGS="$xorg_testset_save_CFLAGS" 14750fi 14751 14752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14755 fi 14756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14760 $as_echo_n "(cached) " >&6 14761else 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764int i; 14765_ACEOF 14766if ac_fn_c_try_compile "$LINENO"; then : 14767 xorg_cv_cc_flag_unused_command_line_argument=yes 14768else 14769 xorg_cv_cc_flag_unused_command_line_argument=no 14770fi 14771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14772fi 14773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14776 CFLAGS="$xorg_testset_save_CFLAGS" 14777fi 14778 14779found="no" 14780 14781 if test $found = "no" ; then 14782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14784 fi 14785 14786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14788 fi 14789 14790 CFLAGS="$CFLAGS -Werror=sequence-point" 14791 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14793$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14794 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14795 if eval \${$cacheid+:} false; then : 14796 $as_echo_n "(cached) " >&6 14797else 14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799/* end confdefs.h. */ 14800int i; 14801int 14802main () 14803{ 14804 14805 ; 14806 return 0; 14807} 14808_ACEOF 14809if ac_fn_c_try_link "$LINENO"; then : 14810 eval $cacheid=yes 14811else 14812 eval $cacheid=no 14813fi 14814rm -f core conftest.err conftest.$ac_objext \ 14815 conftest$ac_exeext conftest.$ac_ext 14816fi 14817 14818 14819 CFLAGS="$xorg_testset_save_CFLAGS" 14820 14821 eval supported=\$$cacheid 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14823$as_echo "$supported" >&6; } 14824 if test "$supported" = "yes" ; then 14825 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14826 found="yes" 14827 fi 14828 fi 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844xorg_testset_save_CFLAGS="$CFLAGS" 14845 14846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14851 $as_echo_n "(cached) " >&6 14852else 14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14854/* end confdefs.h. */ 14855int i; 14856_ACEOF 14857if ac_fn_c_try_compile "$LINENO"; then : 14858 xorg_cv_cc_flag_unknown_warning_option=yes 14859else 14860 xorg_cv_cc_flag_unknown_warning_option=no 14861fi 14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14863fi 14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14867 CFLAGS="$xorg_testset_save_CFLAGS" 14868fi 14869 14870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14873 fi 14874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14878 $as_echo_n "(cached) " >&6 14879else 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882int i; 14883_ACEOF 14884if ac_fn_c_try_compile "$LINENO"; then : 14885 xorg_cv_cc_flag_unused_command_line_argument=yes 14886else 14887 xorg_cv_cc_flag_unused_command_line_argument=no 14888fi 14889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14890fi 14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14894 CFLAGS="$xorg_testset_save_CFLAGS" 14895fi 14896 14897found="no" 14898 14899 if test $found = "no" ; then 14900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14902 fi 14903 14904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14906 fi 14907 14908 CFLAGS="$CFLAGS -Werror=return-type" 14909 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14911$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14912 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14913 if eval \${$cacheid+:} false; then : 14914 $as_echo_n "(cached) " >&6 14915else 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918int i; 14919int 14920main () 14921{ 14922 14923 ; 14924 return 0; 14925} 14926_ACEOF 14927if ac_fn_c_try_link "$LINENO"; then : 14928 eval $cacheid=yes 14929else 14930 eval $cacheid=no 14931fi 14932rm -f core conftest.err conftest.$ac_objext \ 14933 conftest$ac_exeext conftest.$ac_ext 14934fi 14935 14936 14937 CFLAGS="$xorg_testset_save_CFLAGS" 14938 14939 eval supported=\$$cacheid 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14941$as_echo "$supported" >&6; } 14942 if test "$supported" = "yes" ; then 14943 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14944 found="yes" 14945 fi 14946 fi 14947 14948 if test $found = "no" ; then 14949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14951 fi 14952 14953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14955 fi 14956 14957 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14958 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14960$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14961 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14962 if eval \${$cacheid+:} false; then : 14963 $as_echo_n "(cached) " >&6 14964else 14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14966/* end confdefs.h. */ 14967int i; 14968int 14969main () 14970{ 14971 14972 ; 14973 return 0; 14974} 14975_ACEOF 14976if ac_fn_c_try_link "$LINENO"; then : 14977 eval $cacheid=yes 14978else 14979 eval $cacheid=no 14980fi 14981rm -f core conftest.err conftest.$ac_objext \ 14982 conftest$ac_exeext conftest.$ac_ext 14983fi 14984 14985 14986 CFLAGS="$xorg_testset_save_CFLAGS" 14987 14988 eval supported=\$$cacheid 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14990$as_echo "$supported" >&6; } 14991 if test "$supported" = "yes" ; then 14992 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14993 found="yes" 14994 fi 14995 fi 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011xorg_testset_save_CFLAGS="$CFLAGS" 15012 15013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15018 $as_echo_n "(cached) " >&6 15019else 15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15021/* end confdefs.h. */ 15022int i; 15023_ACEOF 15024if ac_fn_c_try_compile "$LINENO"; then : 15025 xorg_cv_cc_flag_unknown_warning_option=yes 15026else 15027 xorg_cv_cc_flag_unknown_warning_option=no 15028fi 15029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15030fi 15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15034 CFLAGS="$xorg_testset_save_CFLAGS" 15035fi 15036 15037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15040 fi 15041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049int i; 15050_ACEOF 15051if ac_fn_c_try_compile "$LINENO"; then : 15052 xorg_cv_cc_flag_unused_command_line_argument=yes 15053else 15054 xorg_cv_cc_flag_unused_command_line_argument=no 15055fi 15056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15057fi 15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15061 CFLAGS="$xorg_testset_save_CFLAGS" 15062fi 15063 15064found="no" 15065 15066 if test $found = "no" ; then 15067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15069 fi 15070 15071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15073 fi 15074 15075 CFLAGS="$CFLAGS -Werror=trigraphs" 15076 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15078$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15079 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15080 if eval \${$cacheid+:} false; then : 15081 $as_echo_n "(cached) " >&6 15082else 15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15084/* end confdefs.h. */ 15085int i; 15086int 15087main () 15088{ 15089 15090 ; 15091 return 0; 15092} 15093_ACEOF 15094if ac_fn_c_try_link "$LINENO"; then : 15095 eval $cacheid=yes 15096else 15097 eval $cacheid=no 15098fi 15099rm -f core conftest.err conftest.$ac_objext \ 15100 conftest$ac_exeext conftest.$ac_ext 15101fi 15102 15103 15104 CFLAGS="$xorg_testset_save_CFLAGS" 15105 15106 eval supported=\$$cacheid 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15108$as_echo "$supported" >&6; } 15109 if test "$supported" = "yes" ; then 15110 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15111 found="yes" 15112 fi 15113 fi 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129xorg_testset_save_CFLAGS="$CFLAGS" 15130 15131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15136 $as_echo_n "(cached) " >&6 15137else 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140int i; 15141_ACEOF 15142if ac_fn_c_try_compile "$LINENO"; then : 15143 xorg_cv_cc_flag_unknown_warning_option=yes 15144else 15145 xorg_cv_cc_flag_unknown_warning_option=no 15146fi 15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15148fi 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15152 CFLAGS="$xorg_testset_save_CFLAGS" 15153fi 15154 15155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15158 fi 15159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164else 15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166/* end confdefs.h. */ 15167int i; 15168_ACEOF 15169if ac_fn_c_try_compile "$LINENO"; then : 15170 xorg_cv_cc_flag_unused_command_line_argument=yes 15171else 15172 xorg_cv_cc_flag_unused_command_line_argument=no 15173fi 15174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15175fi 15176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15179 CFLAGS="$xorg_testset_save_CFLAGS" 15180fi 15181 15182found="no" 15183 15184 if test $found = "no" ; then 15185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15187 fi 15188 15189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15191 fi 15192 15193 CFLAGS="$CFLAGS -Werror=array-bounds" 15194 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15196$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15197 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15198 if eval \${$cacheid+:} false; then : 15199 $as_echo_n "(cached) " >&6 15200else 15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15202/* end confdefs.h. */ 15203int i; 15204int 15205main () 15206{ 15207 15208 ; 15209 return 0; 15210} 15211_ACEOF 15212if ac_fn_c_try_link "$LINENO"; then : 15213 eval $cacheid=yes 15214else 15215 eval $cacheid=no 15216fi 15217rm -f core conftest.err conftest.$ac_objext \ 15218 conftest$ac_exeext conftest.$ac_ext 15219fi 15220 15221 15222 CFLAGS="$xorg_testset_save_CFLAGS" 15223 15224 eval supported=\$$cacheid 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15226$as_echo "$supported" >&6; } 15227 if test "$supported" = "yes" ; then 15228 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15229 found="yes" 15230 fi 15231 fi 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247xorg_testset_save_CFLAGS="$CFLAGS" 15248 15249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257/* end confdefs.h. */ 15258int i; 15259_ACEOF 15260if ac_fn_c_try_compile "$LINENO"; then : 15261 xorg_cv_cc_flag_unknown_warning_option=yes 15262else 15263 xorg_cv_cc_flag_unknown_warning_option=no 15264fi 15265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15266fi 15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15270 CFLAGS="$xorg_testset_save_CFLAGS" 15271fi 15272 15273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15276 fi 15277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286_ACEOF 15287if ac_fn_c_try_compile "$LINENO"; then : 15288 xorg_cv_cc_flag_unused_command_line_argument=yes 15289else 15290 xorg_cv_cc_flag_unused_command_line_argument=no 15291fi 15292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15293fi 15294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15297 CFLAGS="$xorg_testset_save_CFLAGS" 15298fi 15299 15300found="no" 15301 15302 if test $found = "no" ; then 15303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15305 fi 15306 15307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15309 fi 15310 15311 CFLAGS="$CFLAGS -Werror=write-strings" 15312 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15314$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15315 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15316 if eval \${$cacheid+:} false; then : 15317 $as_echo_n "(cached) " >&6 15318else 15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15320/* end confdefs.h. */ 15321int i; 15322int 15323main () 15324{ 15325 15326 ; 15327 return 0; 15328} 15329_ACEOF 15330if ac_fn_c_try_link "$LINENO"; then : 15331 eval $cacheid=yes 15332else 15333 eval $cacheid=no 15334fi 15335rm -f core conftest.err conftest.$ac_objext \ 15336 conftest$ac_exeext conftest.$ac_ext 15337fi 15338 15339 15340 CFLAGS="$xorg_testset_save_CFLAGS" 15341 15342 eval supported=\$$cacheid 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15344$as_echo "$supported" >&6; } 15345 if test "$supported" = "yes" ; then 15346 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15347 found="yes" 15348 fi 15349 fi 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365xorg_testset_save_CFLAGS="$CFLAGS" 15366 15367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15372 $as_echo_n "(cached) " >&6 15373else 15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15375/* end confdefs.h. */ 15376int i; 15377_ACEOF 15378if ac_fn_c_try_compile "$LINENO"; then : 15379 xorg_cv_cc_flag_unknown_warning_option=yes 15380else 15381 xorg_cv_cc_flag_unknown_warning_option=no 15382fi 15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15384fi 15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15388 CFLAGS="$xorg_testset_save_CFLAGS" 15389fi 15390 15391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15394 fi 15395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15399 $as_echo_n "(cached) " >&6 15400else 15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15402/* end confdefs.h. */ 15403int i; 15404_ACEOF 15405if ac_fn_c_try_compile "$LINENO"; then : 15406 xorg_cv_cc_flag_unused_command_line_argument=yes 15407else 15408 xorg_cv_cc_flag_unused_command_line_argument=no 15409fi 15410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15411fi 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15415 CFLAGS="$xorg_testset_save_CFLAGS" 15416fi 15417 15418found="no" 15419 15420 if test $found = "no" ; then 15421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 fi 15424 15425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15427 fi 15428 15429 CFLAGS="$CFLAGS -Werror=address" 15430 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15432$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15433 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15434 if eval \${$cacheid+:} false; then : 15435 $as_echo_n "(cached) " >&6 15436else 15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15438/* end confdefs.h. */ 15439int i; 15440int 15441main () 15442{ 15443 15444 ; 15445 return 0; 15446} 15447_ACEOF 15448if ac_fn_c_try_link "$LINENO"; then : 15449 eval $cacheid=yes 15450else 15451 eval $cacheid=no 15452fi 15453rm -f core conftest.err conftest.$ac_objext \ 15454 conftest$ac_exeext conftest.$ac_ext 15455fi 15456 15457 15458 CFLAGS="$xorg_testset_save_CFLAGS" 15459 15460 eval supported=\$$cacheid 15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15462$as_echo "$supported" >&6; } 15463 if test "$supported" = "yes" ; then 15464 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15465 found="yes" 15466 fi 15467 fi 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483xorg_testset_save_CFLAGS="$CFLAGS" 15484 15485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15490 $as_echo_n "(cached) " >&6 15491else 15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493/* end confdefs.h. */ 15494int i; 15495_ACEOF 15496if ac_fn_c_try_compile "$LINENO"; then : 15497 xorg_cv_cc_flag_unknown_warning_option=yes 15498else 15499 xorg_cv_cc_flag_unknown_warning_option=no 15500fi 15501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15502fi 15503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15506 CFLAGS="$xorg_testset_save_CFLAGS" 15507fi 15508 15509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15512 fi 15513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15517 $as_echo_n "(cached) " >&6 15518else 15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520/* end confdefs.h. */ 15521int i; 15522_ACEOF 15523if ac_fn_c_try_compile "$LINENO"; then : 15524 xorg_cv_cc_flag_unused_command_line_argument=yes 15525else 15526 xorg_cv_cc_flag_unused_command_line_argument=no 15527fi 15528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15529fi 15530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15533 CFLAGS="$xorg_testset_save_CFLAGS" 15534fi 15535 15536found="no" 15537 15538 if test $found = "no" ; then 15539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15541 fi 15542 15543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15545 fi 15546 15547 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15548 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15550$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15551 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15552 if eval \${$cacheid+:} false; then : 15553 $as_echo_n "(cached) " >&6 15554else 15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15556/* end confdefs.h. */ 15557int i; 15558int 15559main () 15560{ 15561 15562 ; 15563 return 0; 15564} 15565_ACEOF 15566if ac_fn_c_try_link "$LINENO"; then : 15567 eval $cacheid=yes 15568else 15569 eval $cacheid=no 15570fi 15571rm -f core conftest.err conftest.$ac_objext \ 15572 conftest$ac_exeext conftest.$ac_ext 15573fi 15574 15575 15576 CFLAGS="$xorg_testset_save_CFLAGS" 15577 15578 eval supported=\$$cacheid 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15580$as_echo "$supported" >&6; } 15581 if test "$supported" = "yes" ; then 15582 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15583 found="yes" 15584 fi 15585 fi 15586 15587 if test $found = "no" ; then 15588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15590 fi 15591 15592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15594 fi 15595 15596 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15597 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15599$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15600 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15601 if eval \${$cacheid+:} false; then : 15602 $as_echo_n "(cached) " >&6 15603else 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606int i; 15607int 15608main () 15609{ 15610 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_link "$LINENO"; then : 15616 eval $cacheid=yes 15617else 15618 eval $cacheid=no 15619fi 15620rm -f core conftest.err conftest.$ac_objext \ 15621 conftest$ac_exeext conftest.$ac_ext 15622fi 15623 15624 15625 CFLAGS="$xorg_testset_save_CFLAGS" 15626 15627 eval supported=\$$cacheid 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15629$as_echo "$supported" >&6; } 15630 if test "$supported" = "yes" ; then 15631 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15632 found="yes" 15633 fi 15634 fi 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650xorg_testset_save_CFLAGS="$CFLAGS" 15651 15652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15657 $as_echo_n "(cached) " >&6 15658else 15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660/* end confdefs.h. */ 15661int i; 15662_ACEOF 15663if ac_fn_c_try_compile "$LINENO"; then : 15664 xorg_cv_cc_flag_unknown_warning_option=yes 15665else 15666 xorg_cv_cc_flag_unknown_warning_option=no 15667fi 15668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15669fi 15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15673 CFLAGS="$xorg_testset_save_CFLAGS" 15674fi 15675 15676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15679 fi 15680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688int i; 15689_ACEOF 15690if ac_fn_c_try_compile "$LINENO"; then : 15691 xorg_cv_cc_flag_unused_command_line_argument=yes 15692else 15693 xorg_cv_cc_flag_unused_command_line_argument=no 15694fi 15695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15696fi 15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15700 CFLAGS="$xorg_testset_save_CFLAGS" 15701fi 15702 15703found="no" 15704 15705 if test $found = "no" ; then 15706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15708 fi 15709 15710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15712 fi 15713 15714 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15715 15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15717$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15718 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15719 if eval \${$cacheid+:} false; then : 15720 $as_echo_n "(cached) " >&6 15721else 15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723/* end confdefs.h. */ 15724int i; 15725int 15726main () 15727{ 15728 15729 ; 15730 return 0; 15731} 15732_ACEOF 15733if ac_fn_c_try_link "$LINENO"; then : 15734 eval $cacheid=yes 15735else 15736 eval $cacheid=no 15737fi 15738rm -f core conftest.err conftest.$ac_objext \ 15739 conftest$ac_exeext conftest.$ac_ext 15740fi 15741 15742 15743 CFLAGS="$xorg_testset_save_CFLAGS" 15744 15745 eval supported=\$$cacheid 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15747$as_echo "$supported" >&6; } 15748 if test "$supported" = "yes" ; then 15749 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15750 found="yes" 15751 fi 15752 fi 15753 15754 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15755else 15756{ $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 15757$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;} 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771xorg_testset_save_CFLAGS="$CFLAGS" 15772 15773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15778 $as_echo_n "(cached) " >&6 15779else 15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15781/* end confdefs.h. */ 15782int i; 15783_ACEOF 15784if ac_fn_c_try_compile "$LINENO"; then : 15785 xorg_cv_cc_flag_unknown_warning_option=yes 15786else 15787 xorg_cv_cc_flag_unknown_warning_option=no 15788fi 15789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15790fi 15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15794 CFLAGS="$xorg_testset_save_CFLAGS" 15795fi 15796 15797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15800 fi 15801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15805 $as_echo_n "(cached) " >&6 15806else 15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15808/* end confdefs.h. */ 15809int i; 15810_ACEOF 15811if ac_fn_c_try_compile "$LINENO"; then : 15812 xorg_cv_cc_flag_unused_command_line_argument=yes 15813else 15814 xorg_cv_cc_flag_unused_command_line_argument=no 15815fi 15816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15817fi 15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15821 CFLAGS="$xorg_testset_save_CFLAGS" 15822fi 15823 15824found="no" 15825 15826 if test $found = "no" ; then 15827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15829 fi 15830 15831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15833 fi 15834 15835 CFLAGS="$CFLAGS -Wimplicit" 15836 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15838$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15839 cacheid=xorg_cv_cc_flag__Wimplicit 15840 if eval \${$cacheid+:} false; then : 15841 $as_echo_n "(cached) " >&6 15842else 15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15844/* end confdefs.h. */ 15845int i; 15846int 15847main () 15848{ 15849 15850 ; 15851 return 0; 15852} 15853_ACEOF 15854if ac_fn_c_try_link "$LINENO"; then : 15855 eval $cacheid=yes 15856else 15857 eval $cacheid=no 15858fi 15859rm -f core conftest.err conftest.$ac_objext \ 15860 conftest$ac_exeext conftest.$ac_ext 15861fi 15862 15863 15864 CFLAGS="$xorg_testset_save_CFLAGS" 15865 15866 eval supported=\$$cacheid 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15868$as_echo "$supported" >&6; } 15869 if test "$supported" = "yes" ; then 15870 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15871 found="yes" 15872 fi 15873 fi 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889xorg_testset_save_CFLAGS="$CFLAGS" 15890 15891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15896 $as_echo_n "(cached) " >&6 15897else 15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900int i; 15901_ACEOF 15902if ac_fn_c_try_compile "$LINENO"; then : 15903 xorg_cv_cc_flag_unknown_warning_option=yes 15904else 15905 xorg_cv_cc_flag_unknown_warning_option=no 15906fi 15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15908fi 15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15912 CFLAGS="$xorg_testset_save_CFLAGS" 15913fi 15914 15915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15918 fi 15919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15923 $as_echo_n "(cached) " >&6 15924else 15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15926/* end confdefs.h. */ 15927int i; 15928_ACEOF 15929if ac_fn_c_try_compile "$LINENO"; then : 15930 xorg_cv_cc_flag_unused_command_line_argument=yes 15931else 15932 xorg_cv_cc_flag_unused_command_line_argument=no 15933fi 15934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15935fi 15936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15939 CFLAGS="$xorg_testset_save_CFLAGS" 15940fi 15941 15942found="no" 15943 15944 if test $found = "no" ; then 15945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15947 fi 15948 15949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15951 fi 15952 15953 CFLAGS="$CFLAGS -Wnonnull" 15954 15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15956$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15957 cacheid=xorg_cv_cc_flag__Wnonnull 15958 if eval \${$cacheid+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15962/* end confdefs.h. */ 15963int i; 15964int 15965main () 15966{ 15967 15968 ; 15969 return 0; 15970} 15971_ACEOF 15972if ac_fn_c_try_link "$LINENO"; then : 15973 eval $cacheid=yes 15974else 15975 eval $cacheid=no 15976fi 15977rm -f core conftest.err conftest.$ac_objext \ 15978 conftest$ac_exeext conftest.$ac_ext 15979fi 15980 15981 15982 CFLAGS="$xorg_testset_save_CFLAGS" 15983 15984 eval supported=\$$cacheid 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15986$as_echo "$supported" >&6; } 15987 if test "$supported" = "yes" ; then 15988 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15989 found="yes" 15990 fi 15991 fi 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007xorg_testset_save_CFLAGS="$CFLAGS" 16008 16009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16014 $as_echo_n "(cached) " >&6 16015else 16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16017/* end confdefs.h. */ 16018int i; 16019_ACEOF 16020if ac_fn_c_try_compile "$LINENO"; then : 16021 xorg_cv_cc_flag_unknown_warning_option=yes 16022else 16023 xorg_cv_cc_flag_unknown_warning_option=no 16024fi 16025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16026fi 16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16030 CFLAGS="$xorg_testset_save_CFLAGS" 16031fi 16032 16033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16036 fi 16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16041 $as_echo_n "(cached) " >&6 16042else 16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16044/* end confdefs.h. */ 16045int i; 16046_ACEOF 16047if ac_fn_c_try_compile "$LINENO"; then : 16048 xorg_cv_cc_flag_unused_command_line_argument=yes 16049else 16050 xorg_cv_cc_flag_unused_command_line_argument=no 16051fi 16052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16053fi 16054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16057 CFLAGS="$xorg_testset_save_CFLAGS" 16058fi 16059 16060found="no" 16061 16062 if test $found = "no" ; then 16063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16065 fi 16066 16067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16069 fi 16070 16071 CFLAGS="$CFLAGS -Winit-self" 16072 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16074$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16075 cacheid=xorg_cv_cc_flag__Winit_self 16076 if eval \${$cacheid+:} false; then : 16077 $as_echo_n "(cached) " >&6 16078else 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081int i; 16082int 16083main () 16084{ 16085 16086 ; 16087 return 0; 16088} 16089_ACEOF 16090if ac_fn_c_try_link "$LINENO"; then : 16091 eval $cacheid=yes 16092else 16093 eval $cacheid=no 16094fi 16095rm -f core conftest.err conftest.$ac_objext \ 16096 conftest$ac_exeext conftest.$ac_ext 16097fi 16098 16099 16100 CFLAGS="$xorg_testset_save_CFLAGS" 16101 16102 eval supported=\$$cacheid 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16104$as_echo "$supported" >&6; } 16105 if test "$supported" = "yes" ; then 16106 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16107 found="yes" 16108 fi 16109 fi 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125xorg_testset_save_CFLAGS="$CFLAGS" 16126 16127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16132 $as_echo_n "(cached) " >&6 16133else 16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135/* end confdefs.h. */ 16136int i; 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO"; then : 16139 xorg_cv_cc_flag_unknown_warning_option=yes 16140else 16141 xorg_cv_cc_flag_unknown_warning_option=no 16142fi 16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16144fi 16145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16148 CFLAGS="$xorg_testset_save_CFLAGS" 16149fi 16150 16151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16154 fi 16155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16159 $as_echo_n "(cached) " >&6 16160else 16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16162/* end confdefs.h. */ 16163int i; 16164_ACEOF 16165if ac_fn_c_try_compile "$LINENO"; then : 16166 xorg_cv_cc_flag_unused_command_line_argument=yes 16167else 16168 xorg_cv_cc_flag_unused_command_line_argument=no 16169fi 16170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16171fi 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16175 CFLAGS="$xorg_testset_save_CFLAGS" 16176fi 16177 16178found="no" 16179 16180 if test $found = "no" ; then 16181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16183 fi 16184 16185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16187 fi 16188 16189 CFLAGS="$CFLAGS -Wmain" 16190 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16192$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16193 cacheid=xorg_cv_cc_flag__Wmain 16194 if eval \${$cacheid+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199int i; 16200int 16201main () 16202{ 16203 16204 ; 16205 return 0; 16206} 16207_ACEOF 16208if ac_fn_c_try_link "$LINENO"; then : 16209 eval $cacheid=yes 16210else 16211 eval $cacheid=no 16212fi 16213rm -f core conftest.err conftest.$ac_objext \ 16214 conftest$ac_exeext conftest.$ac_ext 16215fi 16216 16217 16218 CFLAGS="$xorg_testset_save_CFLAGS" 16219 16220 eval supported=\$$cacheid 16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16222$as_echo "$supported" >&6; } 16223 if test "$supported" = "yes" ; then 16224 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16225 found="yes" 16226 fi 16227 fi 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243xorg_testset_save_CFLAGS="$CFLAGS" 16244 16245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16250 $as_echo_n "(cached) " >&6 16251else 16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16253/* end confdefs.h. */ 16254int i; 16255_ACEOF 16256if ac_fn_c_try_compile "$LINENO"; then : 16257 xorg_cv_cc_flag_unknown_warning_option=yes 16258else 16259 xorg_cv_cc_flag_unknown_warning_option=no 16260fi 16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16262fi 16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16266 CFLAGS="$xorg_testset_save_CFLAGS" 16267fi 16268 16269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16272 fi 16273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16277 $as_echo_n "(cached) " >&6 16278else 16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280/* end confdefs.h. */ 16281int i; 16282_ACEOF 16283if ac_fn_c_try_compile "$LINENO"; then : 16284 xorg_cv_cc_flag_unused_command_line_argument=yes 16285else 16286 xorg_cv_cc_flag_unused_command_line_argument=no 16287fi 16288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16289fi 16290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16293 CFLAGS="$xorg_testset_save_CFLAGS" 16294fi 16295 16296found="no" 16297 16298 if test $found = "no" ; then 16299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16301 fi 16302 16303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16305 fi 16306 16307 CFLAGS="$CFLAGS -Wmissing-braces" 16308 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16310$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16311 cacheid=xorg_cv_cc_flag__Wmissing_braces 16312 if eval \${$cacheid+:} false; then : 16313 $as_echo_n "(cached) " >&6 16314else 16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16316/* end confdefs.h. */ 16317int i; 16318int 16319main () 16320{ 16321 16322 ; 16323 return 0; 16324} 16325_ACEOF 16326if ac_fn_c_try_link "$LINENO"; then : 16327 eval $cacheid=yes 16328else 16329 eval $cacheid=no 16330fi 16331rm -f core conftest.err conftest.$ac_objext \ 16332 conftest$ac_exeext conftest.$ac_ext 16333fi 16334 16335 16336 CFLAGS="$xorg_testset_save_CFLAGS" 16337 16338 eval supported=\$$cacheid 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16340$as_echo "$supported" >&6; } 16341 if test "$supported" = "yes" ; then 16342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16343 found="yes" 16344 fi 16345 fi 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361xorg_testset_save_CFLAGS="$CFLAGS" 16362 16363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16368 $as_echo_n "(cached) " >&6 16369else 16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16371/* end confdefs.h. */ 16372int i; 16373_ACEOF 16374if ac_fn_c_try_compile "$LINENO"; then : 16375 xorg_cv_cc_flag_unknown_warning_option=yes 16376else 16377 xorg_cv_cc_flag_unknown_warning_option=no 16378fi 16379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16380fi 16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16384 CFLAGS="$xorg_testset_save_CFLAGS" 16385fi 16386 16387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16390 fi 16391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16395 $as_echo_n "(cached) " >&6 16396else 16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16398/* end confdefs.h. */ 16399int i; 16400_ACEOF 16401if ac_fn_c_try_compile "$LINENO"; then : 16402 xorg_cv_cc_flag_unused_command_line_argument=yes 16403else 16404 xorg_cv_cc_flag_unused_command_line_argument=no 16405fi 16406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16407fi 16408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16411 CFLAGS="$xorg_testset_save_CFLAGS" 16412fi 16413 16414found="no" 16415 16416 if test $found = "no" ; then 16417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16419 fi 16420 16421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16423 fi 16424 16425 CFLAGS="$CFLAGS -Wsequence-point" 16426 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16428$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16429 cacheid=xorg_cv_cc_flag__Wsequence_point 16430 if eval \${$cacheid+:} false; then : 16431 $as_echo_n "(cached) " >&6 16432else 16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434/* end confdefs.h. */ 16435int i; 16436int 16437main () 16438{ 16439 16440 ; 16441 return 0; 16442} 16443_ACEOF 16444if ac_fn_c_try_link "$LINENO"; then : 16445 eval $cacheid=yes 16446else 16447 eval $cacheid=no 16448fi 16449rm -f core conftest.err conftest.$ac_objext \ 16450 conftest$ac_exeext conftest.$ac_ext 16451fi 16452 16453 16454 CFLAGS="$xorg_testset_save_CFLAGS" 16455 16456 eval supported=\$$cacheid 16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16458$as_echo "$supported" >&6; } 16459 if test "$supported" = "yes" ; then 16460 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16461 found="yes" 16462 fi 16463 fi 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479xorg_testset_save_CFLAGS="$CFLAGS" 16480 16481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16486 $as_echo_n "(cached) " >&6 16487else 16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16489/* end confdefs.h. */ 16490int i; 16491_ACEOF 16492if ac_fn_c_try_compile "$LINENO"; then : 16493 xorg_cv_cc_flag_unknown_warning_option=yes 16494else 16495 xorg_cv_cc_flag_unknown_warning_option=no 16496fi 16497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16498fi 16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16502 CFLAGS="$xorg_testset_save_CFLAGS" 16503fi 16504 16505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16508 fi 16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16513 $as_echo_n "(cached) " >&6 16514else 16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16516/* end confdefs.h. */ 16517int i; 16518_ACEOF 16519if ac_fn_c_try_compile "$LINENO"; then : 16520 xorg_cv_cc_flag_unused_command_line_argument=yes 16521else 16522 xorg_cv_cc_flag_unused_command_line_argument=no 16523fi 16524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16525fi 16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16529 CFLAGS="$xorg_testset_save_CFLAGS" 16530fi 16531 16532found="no" 16533 16534 if test $found = "no" ; then 16535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16537 fi 16538 16539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16541 fi 16542 16543 CFLAGS="$CFLAGS -Wreturn-type" 16544 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16546$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16547 cacheid=xorg_cv_cc_flag__Wreturn_type 16548 if eval \${$cacheid+:} false; then : 16549 $as_echo_n "(cached) " >&6 16550else 16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16552/* end confdefs.h. */ 16553int i; 16554int 16555main () 16556{ 16557 16558 ; 16559 return 0; 16560} 16561_ACEOF 16562if ac_fn_c_try_link "$LINENO"; then : 16563 eval $cacheid=yes 16564else 16565 eval $cacheid=no 16566fi 16567rm -f core conftest.err conftest.$ac_objext \ 16568 conftest$ac_exeext conftest.$ac_ext 16569fi 16570 16571 16572 CFLAGS="$xorg_testset_save_CFLAGS" 16573 16574 eval supported=\$$cacheid 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16576$as_echo "$supported" >&6; } 16577 if test "$supported" = "yes" ; then 16578 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16579 found="yes" 16580 fi 16581 fi 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597xorg_testset_save_CFLAGS="$CFLAGS" 16598 16599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16604 $as_echo_n "(cached) " >&6 16605else 16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607/* end confdefs.h. */ 16608int i; 16609_ACEOF 16610if ac_fn_c_try_compile "$LINENO"; then : 16611 xorg_cv_cc_flag_unknown_warning_option=yes 16612else 16613 xorg_cv_cc_flag_unknown_warning_option=no 16614fi 16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16616fi 16617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16620 CFLAGS="$xorg_testset_save_CFLAGS" 16621fi 16622 16623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16626 fi 16627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16631 $as_echo_n "(cached) " >&6 16632else 16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16634/* end confdefs.h. */ 16635int i; 16636_ACEOF 16637if ac_fn_c_try_compile "$LINENO"; then : 16638 xorg_cv_cc_flag_unused_command_line_argument=yes 16639else 16640 xorg_cv_cc_flag_unused_command_line_argument=no 16641fi 16642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16643fi 16644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16647 CFLAGS="$xorg_testset_save_CFLAGS" 16648fi 16649 16650found="no" 16651 16652 if test $found = "no" ; then 16653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16655 fi 16656 16657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16659 fi 16660 16661 CFLAGS="$CFLAGS -Wtrigraphs" 16662 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16664$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16665 cacheid=xorg_cv_cc_flag__Wtrigraphs 16666 if eval \${$cacheid+:} false; then : 16667 $as_echo_n "(cached) " >&6 16668else 16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16670/* end confdefs.h. */ 16671int i; 16672int 16673main () 16674{ 16675 16676 ; 16677 return 0; 16678} 16679_ACEOF 16680if ac_fn_c_try_link "$LINENO"; then : 16681 eval $cacheid=yes 16682else 16683 eval $cacheid=no 16684fi 16685rm -f core conftest.err conftest.$ac_objext \ 16686 conftest$ac_exeext conftest.$ac_ext 16687fi 16688 16689 16690 CFLAGS="$xorg_testset_save_CFLAGS" 16691 16692 eval supported=\$$cacheid 16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16694$as_echo "$supported" >&6; } 16695 if test "$supported" = "yes" ; then 16696 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16697 found="yes" 16698 fi 16699 fi 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715xorg_testset_save_CFLAGS="$CFLAGS" 16716 16717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16722 $as_echo_n "(cached) " >&6 16723else 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726int i; 16727_ACEOF 16728if ac_fn_c_try_compile "$LINENO"; then : 16729 xorg_cv_cc_flag_unknown_warning_option=yes 16730else 16731 xorg_cv_cc_flag_unknown_warning_option=no 16732fi 16733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16734fi 16735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16738 CFLAGS="$xorg_testset_save_CFLAGS" 16739fi 16740 16741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16744 fi 16745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16749 $as_echo_n "(cached) " >&6 16750else 16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752/* end confdefs.h. */ 16753int i; 16754_ACEOF 16755if ac_fn_c_try_compile "$LINENO"; then : 16756 xorg_cv_cc_flag_unused_command_line_argument=yes 16757else 16758 xorg_cv_cc_flag_unused_command_line_argument=no 16759fi 16760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16761fi 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16765 CFLAGS="$xorg_testset_save_CFLAGS" 16766fi 16767 16768found="no" 16769 16770 if test $found = "no" ; then 16771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16773 fi 16774 16775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16777 fi 16778 16779 CFLAGS="$CFLAGS -Warray-bounds" 16780 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16782$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16783 cacheid=xorg_cv_cc_flag__Warray_bounds 16784 if eval \${$cacheid+:} false; then : 16785 $as_echo_n "(cached) " >&6 16786else 16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16788/* end confdefs.h. */ 16789int i; 16790int 16791main () 16792{ 16793 16794 ; 16795 return 0; 16796} 16797_ACEOF 16798if ac_fn_c_try_link "$LINENO"; then : 16799 eval $cacheid=yes 16800else 16801 eval $cacheid=no 16802fi 16803rm -f core conftest.err conftest.$ac_objext \ 16804 conftest$ac_exeext conftest.$ac_ext 16805fi 16806 16807 16808 CFLAGS="$xorg_testset_save_CFLAGS" 16809 16810 eval supported=\$$cacheid 16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16812$as_echo "$supported" >&6; } 16813 if test "$supported" = "yes" ; then 16814 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16815 found="yes" 16816 fi 16817 fi 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833xorg_testset_save_CFLAGS="$CFLAGS" 16834 16835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16840 $as_echo_n "(cached) " >&6 16841else 16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16843/* end confdefs.h. */ 16844int i; 16845_ACEOF 16846if ac_fn_c_try_compile "$LINENO"; then : 16847 xorg_cv_cc_flag_unknown_warning_option=yes 16848else 16849 xorg_cv_cc_flag_unknown_warning_option=no 16850fi 16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16852fi 16853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16856 CFLAGS="$xorg_testset_save_CFLAGS" 16857fi 16858 16859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16862 fi 16863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16867 $as_echo_n "(cached) " >&6 16868else 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871int i; 16872_ACEOF 16873if ac_fn_c_try_compile "$LINENO"; then : 16874 xorg_cv_cc_flag_unused_command_line_argument=yes 16875else 16876 xorg_cv_cc_flag_unused_command_line_argument=no 16877fi 16878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16879fi 16880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16883 CFLAGS="$xorg_testset_save_CFLAGS" 16884fi 16885 16886found="no" 16887 16888 if test $found = "no" ; then 16889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16891 fi 16892 16893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16895 fi 16896 16897 CFLAGS="$CFLAGS -Wwrite-strings" 16898 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16900$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16901 cacheid=xorg_cv_cc_flag__Wwrite_strings 16902 if eval \${$cacheid+:} false; then : 16903 $as_echo_n "(cached) " >&6 16904else 16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16906/* end confdefs.h. */ 16907int i; 16908int 16909main () 16910{ 16911 16912 ; 16913 return 0; 16914} 16915_ACEOF 16916if ac_fn_c_try_link "$LINENO"; then : 16917 eval $cacheid=yes 16918else 16919 eval $cacheid=no 16920fi 16921rm -f core conftest.err conftest.$ac_objext \ 16922 conftest$ac_exeext conftest.$ac_ext 16923fi 16924 16925 16926 CFLAGS="$xorg_testset_save_CFLAGS" 16927 16928 eval supported=\$$cacheid 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16930$as_echo "$supported" >&6; } 16931 if test "$supported" = "yes" ; then 16932 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16933 found="yes" 16934 fi 16935 fi 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951xorg_testset_save_CFLAGS="$CFLAGS" 16952 16953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16958 $as_echo_n "(cached) " >&6 16959else 16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16961/* end confdefs.h. */ 16962int i; 16963_ACEOF 16964if ac_fn_c_try_compile "$LINENO"; then : 16965 xorg_cv_cc_flag_unknown_warning_option=yes 16966else 16967 xorg_cv_cc_flag_unknown_warning_option=no 16968fi 16969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16970fi 16971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16974 CFLAGS="$xorg_testset_save_CFLAGS" 16975fi 16976 16977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16980 fi 16981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16985 $as_echo_n "(cached) " >&6 16986else 16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16988/* end confdefs.h. */ 16989int i; 16990_ACEOF 16991if ac_fn_c_try_compile "$LINENO"; then : 16992 xorg_cv_cc_flag_unused_command_line_argument=yes 16993else 16994 xorg_cv_cc_flag_unused_command_line_argument=no 16995fi 16996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16997fi 16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17001 CFLAGS="$xorg_testset_save_CFLAGS" 17002fi 17003 17004found="no" 17005 17006 if test $found = "no" ; then 17007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17009 fi 17010 17011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17013 fi 17014 17015 CFLAGS="$CFLAGS -Waddress" 17016 17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17018$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17019 cacheid=xorg_cv_cc_flag__Waddress 17020 if eval \${$cacheid+:} false; then : 17021 $as_echo_n "(cached) " >&6 17022else 17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17024/* end confdefs.h. */ 17025int i; 17026int 17027main () 17028{ 17029 17030 ; 17031 return 0; 17032} 17033_ACEOF 17034if ac_fn_c_try_link "$LINENO"; then : 17035 eval $cacheid=yes 17036else 17037 eval $cacheid=no 17038fi 17039rm -f core conftest.err conftest.$ac_objext \ 17040 conftest$ac_exeext conftest.$ac_ext 17041fi 17042 17043 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045 17046 eval supported=\$$cacheid 17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17048$as_echo "$supported" >&6; } 17049 if test "$supported" = "yes" ; then 17050 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17051 found="yes" 17052 fi 17053 fi 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069xorg_testset_save_CFLAGS="$CFLAGS" 17070 17071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17076 $as_echo_n "(cached) " >&6 17077else 17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17079/* end confdefs.h. */ 17080int i; 17081_ACEOF 17082if ac_fn_c_try_compile "$LINENO"; then : 17083 xorg_cv_cc_flag_unknown_warning_option=yes 17084else 17085 xorg_cv_cc_flag_unknown_warning_option=no 17086fi 17087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17088fi 17089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17092 CFLAGS="$xorg_testset_save_CFLAGS" 17093fi 17094 17095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17098 fi 17099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17103 $as_echo_n "(cached) " >&6 17104else 17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106/* end confdefs.h. */ 17107int i; 17108_ACEOF 17109if ac_fn_c_try_compile "$LINENO"; then : 17110 xorg_cv_cc_flag_unused_command_line_argument=yes 17111else 17112 xorg_cv_cc_flag_unused_command_line_argument=no 17113fi 17114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17115fi 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17119 CFLAGS="$xorg_testset_save_CFLAGS" 17120fi 17121 17122found="no" 17123 17124 if test $found = "no" ; then 17125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17127 fi 17128 17129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17131 fi 17132 17133 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17134 17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17136$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17137 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17138 if eval \${$cacheid+:} false; then : 17139 $as_echo_n "(cached) " >&6 17140else 17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17142/* end confdefs.h. */ 17143int i; 17144int 17145main () 17146{ 17147 17148 ; 17149 return 0; 17150} 17151_ACEOF 17152if ac_fn_c_try_link "$LINENO"; then : 17153 eval $cacheid=yes 17154else 17155 eval $cacheid=no 17156fi 17157rm -f core conftest.err conftest.$ac_objext \ 17158 conftest$ac_exeext conftest.$ac_ext 17159fi 17160 17161 17162 CFLAGS="$xorg_testset_save_CFLAGS" 17163 17164 eval supported=\$$cacheid 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17166$as_echo "$supported" >&6; } 17167 if test "$supported" = "yes" ; then 17168 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17169 found="yes" 17170 fi 17171 fi 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187xorg_testset_save_CFLAGS="$CFLAGS" 17188 17189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17194 $as_echo_n "(cached) " >&6 17195else 17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17197/* end confdefs.h. */ 17198int i; 17199_ACEOF 17200if ac_fn_c_try_compile "$LINENO"; then : 17201 xorg_cv_cc_flag_unknown_warning_option=yes 17202else 17203 xorg_cv_cc_flag_unknown_warning_option=no 17204fi 17205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17206fi 17207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17210 CFLAGS="$xorg_testset_save_CFLAGS" 17211fi 17212 17213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17216 fi 17217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17221 $as_echo_n "(cached) " >&6 17222else 17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224/* end confdefs.h. */ 17225int i; 17226_ACEOF 17227if ac_fn_c_try_compile "$LINENO"; then : 17228 xorg_cv_cc_flag_unused_command_line_argument=yes 17229else 17230 xorg_cv_cc_flag_unused_command_line_argument=no 17231fi 17232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17233fi 17234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17237 CFLAGS="$xorg_testset_save_CFLAGS" 17238fi 17239 17240found="no" 17241 17242 if test $found = "no" ; then 17243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17245 fi 17246 17247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17249 fi 17250 17251 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17252 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17254$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17255 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17256 if eval \${$cacheid+:} false; then : 17257 $as_echo_n "(cached) " >&6 17258else 17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17260/* end confdefs.h. */ 17261int i; 17262int 17263main () 17264{ 17265 17266 ; 17267 return 0; 17268} 17269_ACEOF 17270if ac_fn_c_try_link "$LINENO"; then : 17271 eval $cacheid=yes 17272else 17273 eval $cacheid=no 17274fi 17275rm -f core conftest.err conftest.$ac_objext \ 17276 conftest$ac_exeext conftest.$ac_ext 17277fi 17278 17279 17280 CFLAGS="$xorg_testset_save_CFLAGS" 17281 17282 eval supported=\$$cacheid 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17284$as_echo "$supported" >&6; } 17285 if test "$supported" = "yes" ; then 17286 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17287 found="yes" 17288 fi 17289 fi 17290 17291 17292fi 17293 17294 17295 17296 17297 17298 17299 17300 CWARNFLAGS="$BASE_CFLAGS" 17301 if test "x$GCC" = xyes ; then 17302 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17303 fi 17304 17305 17306 17307 17308 17309 17310 17311 17312# Check whether --enable-strict-compilation was given. 17313if test "${enable_strict_compilation+set}" = set; then : 17314 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17315else 17316 STRICT_COMPILE=no 17317fi 17318 17319 17320 17321 17322 17323 17324STRICT_CFLAGS="" 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338xorg_testset_save_CFLAGS="$CFLAGS" 17339 17340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17345 $as_echo_n "(cached) " >&6 17346else 17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17348/* end confdefs.h. */ 17349int i; 17350_ACEOF 17351if ac_fn_c_try_compile "$LINENO"; then : 17352 xorg_cv_cc_flag_unknown_warning_option=yes 17353else 17354 xorg_cv_cc_flag_unknown_warning_option=no 17355fi 17356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17357fi 17358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17361 CFLAGS="$xorg_testset_save_CFLAGS" 17362fi 17363 17364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17367 fi 17368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17372 $as_echo_n "(cached) " >&6 17373else 17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17375/* end confdefs.h. */ 17376int i; 17377_ACEOF 17378if ac_fn_c_try_compile "$LINENO"; then : 17379 xorg_cv_cc_flag_unused_command_line_argument=yes 17380else 17381 xorg_cv_cc_flag_unused_command_line_argument=no 17382fi 17383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17384fi 17385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17388 CFLAGS="$xorg_testset_save_CFLAGS" 17389fi 17390 17391found="no" 17392 17393 if test $found = "no" ; then 17394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17396 fi 17397 17398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17400 fi 17401 17402 CFLAGS="$CFLAGS -pedantic" 17403 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17405$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17406 cacheid=xorg_cv_cc_flag__pedantic 17407 if eval \${$cacheid+:} false; then : 17408 $as_echo_n "(cached) " >&6 17409else 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412int i; 17413int 17414main () 17415{ 17416 17417 ; 17418 return 0; 17419} 17420_ACEOF 17421if ac_fn_c_try_link "$LINENO"; then : 17422 eval $cacheid=yes 17423else 17424 eval $cacheid=no 17425fi 17426rm -f core conftest.err conftest.$ac_objext \ 17427 conftest$ac_exeext conftest.$ac_ext 17428fi 17429 17430 17431 CFLAGS="$xorg_testset_save_CFLAGS" 17432 17433 eval supported=\$$cacheid 17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17435$as_echo "$supported" >&6; } 17436 if test "$supported" = "yes" ; then 17437 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17438 found="yes" 17439 fi 17440 fi 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456xorg_testset_save_CFLAGS="$CFLAGS" 17457 17458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17463 $as_echo_n "(cached) " >&6 17464else 17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17466/* end confdefs.h. */ 17467int i; 17468_ACEOF 17469if ac_fn_c_try_compile "$LINENO"; then : 17470 xorg_cv_cc_flag_unknown_warning_option=yes 17471else 17472 xorg_cv_cc_flag_unknown_warning_option=no 17473fi 17474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17475fi 17476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17479 CFLAGS="$xorg_testset_save_CFLAGS" 17480fi 17481 17482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17485 fi 17486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17490 $as_echo_n "(cached) " >&6 17491else 17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17493/* end confdefs.h. */ 17494int i; 17495_ACEOF 17496if ac_fn_c_try_compile "$LINENO"; then : 17497 xorg_cv_cc_flag_unused_command_line_argument=yes 17498else 17499 xorg_cv_cc_flag_unused_command_line_argument=no 17500fi 17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17502fi 17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17506 CFLAGS="$xorg_testset_save_CFLAGS" 17507fi 17508 17509found="no" 17510 17511 if test $found = "no" ; then 17512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17514 fi 17515 17516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17518 fi 17519 17520 CFLAGS="$CFLAGS -Werror" 17521 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17523$as_echo_n "checking if $CC supports -Werror... " >&6; } 17524 cacheid=xorg_cv_cc_flag__Werror 17525 if eval \${$cacheid+:} false; then : 17526 $as_echo_n "(cached) " >&6 17527else 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531int 17532main () 17533{ 17534 17535 ; 17536 return 0; 17537} 17538_ACEOF 17539if ac_fn_c_try_link "$LINENO"; then : 17540 eval $cacheid=yes 17541else 17542 eval $cacheid=no 17543fi 17544rm -f core conftest.err conftest.$ac_objext \ 17545 conftest$ac_exeext conftest.$ac_ext 17546fi 17547 17548 17549 CFLAGS="$xorg_testset_save_CFLAGS" 17550 17551 eval supported=\$$cacheid 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17553$as_echo "$supported" >&6; } 17554 if test "$supported" = "yes" ; then 17555 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17556 found="yes" 17557 fi 17558 fi 17559 17560 if test $found = "no" ; then 17561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17563 fi 17564 17565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17567 fi 17568 17569 CFLAGS="$CFLAGS -errwarn" 17570 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17572$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17573 cacheid=xorg_cv_cc_flag__errwarn 17574 if eval \${$cacheid+:} false; then : 17575 $as_echo_n "(cached) " >&6 17576else 17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17578/* end confdefs.h. */ 17579int i; 17580int 17581main () 17582{ 17583 17584 ; 17585 return 0; 17586} 17587_ACEOF 17588if ac_fn_c_try_link "$LINENO"; then : 17589 eval $cacheid=yes 17590else 17591 eval $cacheid=no 17592fi 17593rm -f core conftest.err conftest.$ac_objext \ 17594 conftest$ac_exeext conftest.$ac_ext 17595fi 17596 17597 17598 CFLAGS="$xorg_testset_save_CFLAGS" 17599 17600 eval supported=\$$cacheid 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17602$as_echo "$supported" >&6; } 17603 if test "$supported" = "yes" ; then 17604 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17605 found="yes" 17606 fi 17607 fi 17608 17609 17610 17611# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17612# activate it with -Werror, so we add it here explicitly. 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626xorg_testset_save_CFLAGS="$CFLAGS" 17627 17628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17633 $as_echo_n "(cached) " >&6 17634else 17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636/* end confdefs.h. */ 17637int i; 17638_ACEOF 17639if ac_fn_c_try_compile "$LINENO"; then : 17640 xorg_cv_cc_flag_unknown_warning_option=yes 17641else 17642 xorg_cv_cc_flag_unknown_warning_option=no 17643fi 17644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17645fi 17646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17649 CFLAGS="$xorg_testset_save_CFLAGS" 17650fi 17651 17652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17655 fi 17656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17660 $as_echo_n "(cached) " >&6 17661else 17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17663/* end confdefs.h. */ 17664int i; 17665_ACEOF 17666if ac_fn_c_try_compile "$LINENO"; then : 17667 xorg_cv_cc_flag_unused_command_line_argument=yes 17668else 17669 xorg_cv_cc_flag_unused_command_line_argument=no 17670fi 17671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17672fi 17673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17676 CFLAGS="$xorg_testset_save_CFLAGS" 17677fi 17678 17679found="no" 17680 17681 if test $found = "no" ; then 17682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17684 fi 17685 17686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17688 fi 17689 17690 CFLAGS="$CFLAGS -Werror=attributes" 17691 17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17693$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17694 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17695 if eval \${$cacheid+:} false; then : 17696 $as_echo_n "(cached) " >&6 17697else 17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17699/* end confdefs.h. */ 17700int i; 17701int 17702main () 17703{ 17704 17705 ; 17706 return 0; 17707} 17708_ACEOF 17709if ac_fn_c_try_link "$LINENO"; then : 17710 eval $cacheid=yes 17711else 17712 eval $cacheid=no 17713fi 17714rm -f core conftest.err conftest.$ac_objext \ 17715 conftest$ac_exeext conftest.$ac_ext 17716fi 17717 17718 17719 CFLAGS="$xorg_testset_save_CFLAGS" 17720 17721 eval supported=\$$cacheid 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17723$as_echo "$supported" >&6; } 17724 if test "$supported" = "yes" ; then 17725 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17726 found="yes" 17727 fi 17728 fi 17729 17730 17731 17732if test "x$STRICT_COMPILE" = "xyes"; then 17733 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17734 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17735fi 17736 17737 17738 17739 17740 17741 17742cat >>confdefs.h <<_ACEOF 17743#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17744_ACEOF 17745 17746 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17747 if test "x$PVM" = "x"; then 17748 PVM="0" 17749 fi 17750 17751cat >>confdefs.h <<_ACEOF 17752#define PACKAGE_VERSION_MINOR $PVM 17753_ACEOF 17754 17755 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17756 if test "x$PVP" = "x"; then 17757 PVP="0" 17758 fi 17759 17760cat >>confdefs.h <<_ACEOF 17761#define PACKAGE_VERSION_PATCHLEVEL $PVP 17762_ACEOF 17763 17764 17765 17766CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17767mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17768|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17769echo 'git directory not found: installing possibly empty changelog.' >&2)" 17770 17771 17772 17773 17774macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17775INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17776mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17777|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17778echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17779 17780 17781 17782 17783 17784 17785if test x$APP_MAN_SUFFIX = x ; then 17786 APP_MAN_SUFFIX=1 17787fi 17788if test x$APP_MAN_DIR = x ; then 17789 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17790fi 17791 17792if test x$LIB_MAN_SUFFIX = x ; then 17793 LIB_MAN_SUFFIX=3 17794fi 17795if test x$LIB_MAN_DIR = x ; then 17796 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17797fi 17798 17799if test x$FILE_MAN_SUFFIX = x ; then 17800 case $host_os in 17801 solaris*) FILE_MAN_SUFFIX=4 ;; 17802 *) FILE_MAN_SUFFIX=5 ;; 17803 esac 17804fi 17805if test x$FILE_MAN_DIR = x ; then 17806 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17807fi 17808 17809if test x$MISC_MAN_SUFFIX = x ; then 17810 case $host_os in 17811 solaris*) MISC_MAN_SUFFIX=5 ;; 17812 *) MISC_MAN_SUFFIX=7 ;; 17813 esac 17814fi 17815if test x$MISC_MAN_DIR = x ; then 17816 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17817fi 17818 17819if test x$DRIVER_MAN_SUFFIX = x ; then 17820 case $host_os in 17821 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17822 *) DRIVER_MAN_SUFFIX=4 ;; 17823 esac 17824fi 17825if test x$DRIVER_MAN_DIR = x ; then 17826 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17827fi 17828 17829if test x$ADMIN_MAN_SUFFIX = x ; then 17830 case $host_os in 17831 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17832 *) ADMIN_MAN_SUFFIX=8 ;; 17833 esac 17834fi 17835if test x$ADMIN_MAN_DIR = x ; then 17836 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17837fi 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853XORG_MAN_PAGE="X Version 11" 17854 17855MAN_SUBSTS="\ 17856 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17857 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17858 -e 's|__xservername__|Xorg|g' \ 17859 -e 's|__xconfigfile__|xorg.conf|g' \ 17860 -e 's|__projectroot__|\$(prefix)|g' \ 17861 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17862 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17863 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17864 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17865 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17866 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17867 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17868 17869 17870 17871# Check whether --enable-silent-rules was given. 17872if test "${enable_silent_rules+set}" = set; then : 17873 enableval=$enable_silent_rules; 17874fi 17875 17876case $enable_silent_rules in # ((( 17877 yes) AM_DEFAULT_VERBOSITY=0;; 17878 no) AM_DEFAULT_VERBOSITY=1;; 17879 *) AM_DEFAULT_VERBOSITY=0;; 17880esac 17881am_make=${MAKE-make} 17882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17883$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17884if ${am_cv_make_support_nested_variables+:} false; then : 17885 $as_echo_n "(cached) " >&6 17886else 17887 if $as_echo 'TRUE=$(BAR$(V)) 17888BAR0=false 17889BAR1=true 17890V=1 17891am__doit: 17892 @$(TRUE) 17893.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17894 am_cv_make_support_nested_variables=yes 17895else 17896 am_cv_make_support_nested_variables=no 17897fi 17898fi 17899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17900$as_echo "$am_cv_make_support_nested_variables" >&6; } 17901if test $am_cv_make_support_nested_variables = yes; then 17902 AM_V='$(V)' 17903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17904else 17905 AM_V=$AM_DEFAULT_VERBOSITY 17906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17907fi 17908AM_BACKSLASH='\' 17909 17910 17911 17912 17913# Check whether --enable-specs was given. 17914if test "${enable_specs+set}" = set; then : 17915 enableval=$enable_specs; build_specs=$enableval 17916else 17917 build_specs=yes 17918fi 17919 17920 17921 if test x$build_specs = xyes; then 17922 ENABLE_SPECS_TRUE= 17923 ENABLE_SPECS_FALSE='#' 17924else 17925 ENABLE_SPECS_TRUE='#' 17926 ENABLE_SPECS_FALSE= 17927fi 17928 17929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17930$as_echo_n "checking whether to build functional specifications... " >&6; } 17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17932$as_echo "$build_specs" >&6; } 17933 17934 17935 17936 17937 17938# Check whether --with-xmlto was given. 17939if test "${with_xmlto+set}" = set; then : 17940 withval=$with_xmlto; use_xmlto=$withval 17941else 17942 use_xmlto=auto 17943fi 17944 17945 17946 17947if test "x$use_xmlto" = x"auto"; then 17948 # Extract the first word of "xmlto", so it can be a program name with args. 17949set dummy xmlto; ac_word=$2 17950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17951$as_echo_n "checking for $ac_word... " >&6; } 17952if ${ac_cv_path_XMLTO+:} false; then : 17953 $as_echo_n "(cached) " >&6 17954else 17955 case $XMLTO in 17956 [\\/]* | ?:[\\/]*) 17957 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17958 ;; 17959 *) 17960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17961for as_dir in $PATH 17962do 17963 IFS=$as_save_IFS 17964 test -z "$as_dir" && as_dir=. 17965 for ac_exec_ext in '' $ac_executable_extensions; do 17966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17967 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17969 break 2 17970 fi 17971done 17972 done 17973IFS=$as_save_IFS 17974 17975 ;; 17976esac 17977fi 17978XMLTO=$ac_cv_path_XMLTO 17979if test -n "$XMLTO"; then 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17981$as_echo "$XMLTO" >&6; } 17982else 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17984$as_echo "no" >&6; } 17985fi 17986 17987 17988 if test "x$XMLTO" = "x"; then 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17990$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17991 have_xmlto=no 17992 else 17993 have_xmlto=yes 17994 fi 17995elif test "x$use_xmlto" = x"yes" ; then 17996 # Extract the first word of "xmlto", so it can be a program name with args. 17997set dummy xmlto; ac_word=$2 17998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17999$as_echo_n "checking for $ac_word... " >&6; } 18000if ${ac_cv_path_XMLTO+:} false; then : 18001 $as_echo_n "(cached) " >&6 18002else 18003 case $XMLTO in 18004 [\\/]* | ?:[\\/]*) 18005 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18006 ;; 18007 *) 18008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18009for as_dir in $PATH 18010do 18011 IFS=$as_save_IFS 18012 test -z "$as_dir" && as_dir=. 18013 for ac_exec_ext in '' $ac_executable_extensions; do 18014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18015 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18017 break 2 18018 fi 18019done 18020 done 18021IFS=$as_save_IFS 18022 18023 ;; 18024esac 18025fi 18026XMLTO=$ac_cv_path_XMLTO 18027if test -n "$XMLTO"; then 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18029$as_echo "$XMLTO" >&6; } 18030else 18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18032$as_echo "no" >&6; } 18033fi 18034 18035 18036 if test "x$XMLTO" = "x"; then 18037 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18038 fi 18039 have_xmlto=yes 18040elif test "x$use_xmlto" = x"no" ; then 18041 if test "x$XMLTO" != "x"; then 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18043$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18044 fi 18045 have_xmlto=no 18046else 18047 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18048fi 18049 18050# Test for a minimum version of xmlto, if provided. 18051if test "$have_xmlto" = yes; then 18052 # scrape the xmlto version 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18054$as_echo_n "checking the xmlto version... " >&6; } 18055 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18057$as_echo "$xmlto_version" >&6; } 18058 as_arg_v1=$xmlto_version 18059as_arg_v2=0.0.22 18060awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18061case $? in #( 18062 1) : 18063 if test "x$use_xmlto" = xauto; then 18064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18065$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18066 have_xmlto=no 18067 else 18068 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18069 fi ;; #( 18070 0) : 18071 ;; #( 18072 2) : 18073 ;; #( 18074 *) : 18075 ;; 18076esac 18077fi 18078 18079# Test for the ability of xmlto to generate a text target 18080have_xmlto_text=no 18081cat > conftest.xml << "EOF" 18082EOF 18083if test "$have_xmlto" = yes; then : 18084 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18085 have_xmlto_text=yes 18086else 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18088$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18089fi 18090fi 18091rm -f conftest.xml 18092 if test $have_xmlto_text = yes; then 18093 HAVE_XMLTO_TEXT_TRUE= 18094 HAVE_XMLTO_TEXT_FALSE='#' 18095else 18096 HAVE_XMLTO_TEXT_TRUE='#' 18097 HAVE_XMLTO_TEXT_FALSE= 18098fi 18099 18100 if test "$have_xmlto" = yes; then 18101 HAVE_XMLTO_TRUE= 18102 HAVE_XMLTO_FALSE='#' 18103else 18104 HAVE_XMLTO_TRUE='#' 18105 HAVE_XMLTO_FALSE= 18106fi 18107 18108 18109 18110 18111 18112 18113# Check whether --with-fop was given. 18114if test "${with_fop+set}" = set; then : 18115 withval=$with_fop; use_fop=$withval 18116else 18117 use_fop=auto 18118fi 18119 18120 18121 18122if test "x$use_fop" = x"auto"; then 18123 # Extract the first word of "fop", so it can be a program name with args. 18124set dummy fop; ac_word=$2 18125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18126$as_echo_n "checking for $ac_word... " >&6; } 18127if ${ac_cv_path_FOP+:} false; then : 18128 $as_echo_n "(cached) " >&6 18129else 18130 case $FOP in 18131 [\\/]* | ?:[\\/]*) 18132 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18133 ;; 18134 *) 18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18136for as_dir in $PATH 18137do 18138 IFS=$as_save_IFS 18139 test -z "$as_dir" && as_dir=. 18140 for ac_exec_ext in '' $ac_executable_extensions; do 18141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18142 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18144 break 2 18145 fi 18146done 18147 done 18148IFS=$as_save_IFS 18149 18150 ;; 18151esac 18152fi 18153FOP=$ac_cv_path_FOP 18154if test -n "$FOP"; then 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18156$as_echo "$FOP" >&6; } 18157else 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18159$as_echo "no" >&6; } 18160fi 18161 18162 18163 if test "x$FOP" = "x"; then 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18165$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18166 have_fop=no 18167 else 18168 have_fop=yes 18169 fi 18170elif test "x$use_fop" = x"yes" ; then 18171 # Extract the first word of "fop", so it can be a program name with args. 18172set dummy fop; ac_word=$2 18173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18174$as_echo_n "checking for $ac_word... " >&6; } 18175if ${ac_cv_path_FOP+:} false; then : 18176 $as_echo_n "(cached) " >&6 18177else 18178 case $FOP in 18179 [\\/]* | ?:[\\/]*) 18180 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18181 ;; 18182 *) 18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18184for as_dir in $PATH 18185do 18186 IFS=$as_save_IFS 18187 test -z "$as_dir" && as_dir=. 18188 for ac_exec_ext in '' $ac_executable_extensions; do 18189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18190 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18192 break 2 18193 fi 18194done 18195 done 18196IFS=$as_save_IFS 18197 18198 ;; 18199esac 18200fi 18201FOP=$ac_cv_path_FOP 18202if test -n "$FOP"; then 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18204$as_echo "$FOP" >&6; } 18205else 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18207$as_echo "no" >&6; } 18208fi 18209 18210 18211 if test "x$FOP" = "x"; then 18212 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18213 fi 18214 have_fop=yes 18215elif test "x$use_fop" = x"no" ; then 18216 if test "x$FOP" != "x"; then 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18218$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18219 fi 18220 have_fop=no 18221else 18222 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18223fi 18224 18225# Test for a minimum version of fop, if provided. 18226 18227 if test "$have_fop" = yes; then 18228 HAVE_FOP_TRUE= 18229 HAVE_FOP_FALSE='#' 18230else 18231 HAVE_FOP_TRUE='#' 18232 HAVE_FOP_FALSE= 18233fi 18234 18235 18236 18237 18238# Preserves the interface, should it be implemented later 18239 18240 18241 18242# Check whether --with-xsltproc was given. 18243if test "${with_xsltproc+set}" = set; then : 18244 withval=$with_xsltproc; use_xsltproc=$withval 18245else 18246 use_xsltproc=auto 18247fi 18248 18249 18250 18251if test "x$use_xsltproc" = x"auto"; then 18252 # Extract the first word of "xsltproc", so it can be a program name with args. 18253set dummy xsltproc; ac_word=$2 18254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18255$as_echo_n "checking for $ac_word... " >&6; } 18256if ${ac_cv_path_XSLTPROC+:} false; then : 18257 $as_echo_n "(cached) " >&6 18258else 18259 case $XSLTPROC in 18260 [\\/]* | ?:[\\/]*) 18261 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18262 ;; 18263 *) 18264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18265for as_dir in $PATH 18266do 18267 IFS=$as_save_IFS 18268 test -z "$as_dir" && as_dir=. 18269 for ac_exec_ext in '' $ac_executable_extensions; do 18270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18271 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18273 break 2 18274 fi 18275done 18276 done 18277IFS=$as_save_IFS 18278 18279 ;; 18280esac 18281fi 18282XSLTPROC=$ac_cv_path_XSLTPROC 18283if test -n "$XSLTPROC"; then 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18285$as_echo "$XSLTPROC" >&6; } 18286else 18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18288$as_echo "no" >&6; } 18289fi 18290 18291 18292 if test "x$XSLTPROC" = "x"; then 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18294$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18295 have_xsltproc=no 18296 else 18297 have_xsltproc=yes 18298 fi 18299elif test "x$use_xsltproc" = x"yes" ; then 18300 # Extract the first word of "xsltproc", so it can be a program name with args. 18301set dummy xsltproc; ac_word=$2 18302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18303$as_echo_n "checking for $ac_word... " >&6; } 18304if ${ac_cv_path_XSLTPROC+:} false; then : 18305 $as_echo_n "(cached) " >&6 18306else 18307 case $XSLTPROC in 18308 [\\/]* | ?:[\\/]*) 18309 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18310 ;; 18311 *) 18312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18313for as_dir in $PATH 18314do 18315 IFS=$as_save_IFS 18316 test -z "$as_dir" && as_dir=. 18317 for ac_exec_ext in '' $ac_executable_extensions; do 18318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18319 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18321 break 2 18322 fi 18323done 18324 done 18325IFS=$as_save_IFS 18326 18327 ;; 18328esac 18329fi 18330XSLTPROC=$ac_cv_path_XSLTPROC 18331if test -n "$XSLTPROC"; then 18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18333$as_echo "$XSLTPROC" >&6; } 18334else 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18336$as_echo "no" >&6; } 18337fi 18338 18339 18340 if test "x$XSLTPROC" = "x"; then 18341 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18342 fi 18343 have_xsltproc=yes 18344elif test "x$use_xsltproc" = x"no" ; then 18345 if test "x$XSLTPROC" != "x"; then 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18347$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18348 fi 18349 have_xsltproc=no 18350else 18351 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18352fi 18353 18354 if test "$have_xsltproc" = yes; then 18355 HAVE_XSLTPROC_TRUE= 18356 HAVE_XSLTPROC_FALSE='#' 18357else 18358 HAVE_XSLTPROC_TRUE='#' 18359 HAVE_XSLTPROC_FALSE= 18360fi 18361 18362 18363 18364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18365$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18366XORG_SGML_PATH= 18367if test -n "$PKG_CONFIG" && \ 18368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18369 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18370 ac_status=$? 18371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18372 test $ac_status = 0; }; then 18373 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18374else 18375 : 18376 18377fi 18378 18379# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18380# the path and the name of the doc stylesheet 18381if test "x$XORG_SGML_PATH" != "x" ; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18383$as_echo "$XORG_SGML_PATH" >&6; } 18384 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18385 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18386else 18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18388$as_echo "no" >&6; } 18389fi 18390 18391 18392 18393 18394 if test "x$XSL_STYLESHEET" != "x"; then 18395 HAVE_STYLESHEETS_TRUE= 18396 HAVE_STYLESHEETS_FALSE='#' 18397else 18398 HAVE_STYLESHEETS_TRUE='#' 18399 HAVE_STYLESHEETS_FALSE= 18400fi 18401 18402 18403 18404# Some compilers do not support per target -c and -o flags 18405 18406 18407# Checks for programs. 18408for ac_prog in gawk mawk nawk awk 18409do 18410 # Extract the first word of "$ac_prog", so it can be a program name with args. 18411set dummy $ac_prog; ac_word=$2 18412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18413$as_echo_n "checking for $ac_word... " >&6; } 18414if ${ac_cv_prog_AWK+:} false; then : 18415 $as_echo_n "(cached) " >&6 18416else 18417 if test -n "$AWK"; then 18418 ac_cv_prog_AWK="$AWK" # Let the user override the test. 18419else 18420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18421for as_dir in $PATH 18422do 18423 IFS=$as_save_IFS 18424 test -z "$as_dir" && as_dir=. 18425 for ac_exec_ext in '' $ac_executable_extensions; do 18426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18427 ac_cv_prog_AWK="$ac_prog" 18428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18429 break 2 18430 fi 18431done 18432 done 18433IFS=$as_save_IFS 18434 18435fi 18436fi 18437AWK=$ac_cv_prog_AWK 18438if test -n "$AWK"; then 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 18440$as_echo "$AWK" >&6; } 18441else 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18443$as_echo "no" >&6; } 18444fi 18445 18446 18447 test -n "$AWK" && break 18448done 18449 18450 18451# Need to call this explicitly since the first call to PKG_CHECK_MODULES 18452# is in an if statement, and later calls would break if it's skipped. 18453 18454 18455if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18456 if test -n "$ac_tool_prefix"; then 18457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18458set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18460$as_echo_n "checking for $ac_word... " >&6; } 18461if ${ac_cv_path_PKG_CONFIG+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463else 18464 case $PKG_CONFIG in 18465 [\\/]* | ?:[\\/]*) 18466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18467 ;; 18468 *) 18469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18470for as_dir in $PATH 18471do 18472 IFS=$as_save_IFS 18473 test -z "$as_dir" && as_dir=. 18474 for ac_exec_ext in '' $ac_executable_extensions; do 18475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18478 break 2 18479 fi 18480done 18481 done 18482IFS=$as_save_IFS 18483 18484 ;; 18485esac 18486fi 18487PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18488if test -n "$PKG_CONFIG"; then 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18490$as_echo "$PKG_CONFIG" >&6; } 18491else 18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18493$as_echo "no" >&6; } 18494fi 18495 18496 18497fi 18498if test -z "$ac_cv_path_PKG_CONFIG"; then 18499 ac_pt_PKG_CONFIG=$PKG_CONFIG 18500 # Extract the first word of "pkg-config", so it can be a program name with args. 18501set dummy pkg-config; ac_word=$2 18502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18503$as_echo_n "checking for $ac_word... " >&6; } 18504if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18505 $as_echo_n "(cached) " >&6 18506else 18507 case $ac_pt_PKG_CONFIG in 18508 [\\/]* | ?:[\\/]*) 18509 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18510 ;; 18511 *) 18512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18513for as_dir in $PATH 18514do 18515 IFS=$as_save_IFS 18516 test -z "$as_dir" && as_dir=. 18517 for ac_exec_ext in '' $ac_executable_extensions; do 18518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18519 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18521 break 2 18522 fi 18523done 18524 done 18525IFS=$as_save_IFS 18526 18527 ;; 18528esac 18529fi 18530ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18531if test -n "$ac_pt_PKG_CONFIG"; then 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18533$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18534else 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18536$as_echo "no" >&6; } 18537fi 18538 18539 if test "x$ac_pt_PKG_CONFIG" = x; then 18540 PKG_CONFIG="" 18541 else 18542 case $cross_compiling:$ac_tool_warned in 18543yes:) 18544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18546ac_tool_warned=yes ;; 18547esac 18548 PKG_CONFIG=$ac_pt_PKG_CONFIG 18549 fi 18550else 18551 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18552fi 18553 18554fi 18555if test -n "$PKG_CONFIG"; then 18556 _pkg_min_version=0.9.0 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18558$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18559 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18561$as_echo "yes" >&6; } 18562 else 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18564$as_echo "no" >&6; } 18565 PKG_CONFIG="" 18566 fi 18567 18568fi 18569 18570# 18571# fix libtool to set SONAME to libXaw.so.$major 18572# 18573ac_config_commands="$ac_config_commands libtool_hack" 18574 18575 18576# OSX/Win32 rules are different. 18577platform_win32=no 18578platform_darwin=no 18579LIBEXT=so 18580case $host_os in 18581 cygwin*|mingw*) 18582 LIBEXT=dll.a 18583 platform_win32=yes 18584 ;; 18585 darwin*) 18586 LIBEXT=dylib 18587 platform_darwin=yes 18588 ;; 18589esac 18590 18591 if test "x$platform_win32" = "xyes"; then 18592 PLATFORM_WIN32_TRUE= 18593 PLATFORM_WIN32_FALSE='#' 18594else 18595 PLATFORM_WIN32_TRUE='#' 18596 PLATFORM_WIN32_FALSE= 18597fi 18598 18599 if test "x$platform_darwin" = "xyes"; then 18600 PLATFORM_DARWIN_TRUE= 18601 PLATFORM_DARWIN_FALSE='#' 18602else 18603 PLATFORM_DARWIN_TRUE='#' 18604 PLATFORM_DARWIN_FALSE= 18605fi 18606 18607 18608# Whether to build Xaw6 18609 18610# Check whether --enable-xaw6 was given. 18611if test "${enable_xaw6+set}" = set; then : 18612 enableval=$enable_xaw6; build_v6=$enableval 18613else 18614 build_v6=yes 18615fi 18616 18617 18618if test "x$build_v6" = xyes; then 18619 18620pkg_failed=no 18621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW6" >&5 18622$as_echo_n "checking for XAW6... " >&6; } 18623 18624if test -n "$XAW6_CFLAGS"; then 18625 pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS" 18626 elif test -n "$PKG_CONFIG"; then 18627 if test -n "$PKG_CONFIG" && \ 18628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5 18629 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5 18630 ac_status=$? 18631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18632 test $ac_status = 0; }; then 18633 pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null` 18634else 18635 pkg_failed=yes 18636fi 18637 else 18638 pkg_failed=untried 18639fi 18640if test -n "$XAW6_LIBS"; then 18641 pkg_cv_XAW6_LIBS="$XAW6_LIBS" 18642 elif test -n "$PKG_CONFIG"; then 18643 if test -n "$PKG_CONFIG" && \ 18644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\""; } >&5 18645 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5 18646 ac_status=$? 18647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18648 test $ac_status = 0; }; then 18649 pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null` 18650else 18651 pkg_failed=yes 18652fi 18653 else 18654 pkg_failed=untried 18655fi 18656 18657 18658 18659if test $pkg_failed = yes; then 18660 18661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18662 _pkg_short_errors_supported=yes 18663else 18664 _pkg_short_errors_supported=no 18665fi 18666 if test $_pkg_short_errors_supported = yes; then 18667 XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu" 2>&1` 18668 else 18669 XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu" 2>&1` 18670 fi 18671 # Put the nasty error message in config.log where it belongs 18672 echo "$XAW6_PKG_ERRORS" >&5 18673 18674 as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu) were not met: 18675 18676$XAW6_PKG_ERRORS 18677 18678Consider adjusting the PKG_CONFIG_PATH environment variable if you 18679installed software in a non-standard prefix. 18680 18681Alternatively, you may set the environment variables XAW6_CFLAGS 18682and XAW6_LIBS to avoid the need to call pkg-config. 18683See the pkg-config man page for more details. 18684" "$LINENO" 5 18685elif test $pkg_failed = untried; then 18686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18688as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18689is in your PATH or set the PKG_CONFIG environment variable to the full 18690path to pkg-config. 18691 18692Alternatively, you may set the environment variables XAW6_CFLAGS 18693and XAW6_LIBS to avoid the need to call pkg-config. 18694See the pkg-config man page for more details. 18695 18696To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18697See \`config.log' for more details" "$LINENO" 5; } 18698else 18699 XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS 18700 XAW6_LIBS=$pkg_cv_XAW6_LIBS 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18702$as_echo "yes" >&6; } 18703 : 18704fi 18705fi 18706 18707 18708# Whether to build Xaw7 18709 18710# Check whether --enable-xaw7 was given. 18711if test "${enable_xaw7+set}" = set; then : 18712 enableval=$enable_xaw7; build_v7=$enableval 18713else 18714 build_v7=yes 18715fi 18716 18717 18718if test "x$build_v7" = xyes; then 18719 18720pkg_failed=no 18721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW7" >&5 18722$as_echo_n "checking for XAW7... " >&6; } 18723 18724if test -n "$XAW7_CFLAGS"; then 18725 pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS" 18726 elif test -n "$PKG_CONFIG"; then 18727 if test -n "$PKG_CONFIG" && \ 18728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5 18729 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5 18730 ac_status=$? 18731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18732 test $ac_status = 0; }; then 18733 pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null` 18734else 18735 pkg_failed=yes 18736fi 18737 else 18738 pkg_failed=untried 18739fi 18740if test -n "$XAW7_LIBS"; then 18741 pkg_cv_XAW7_LIBS="$XAW7_LIBS" 18742 elif test -n "$PKG_CONFIG"; then 18743 if test -n "$PKG_CONFIG" && \ 18744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\""; } >&5 18745 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5 18746 ac_status=$? 18747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18748 test $ac_status = 0; }; then 18749 pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null` 18750else 18751 pkg_failed=yes 18752fi 18753 else 18754 pkg_failed=untried 18755fi 18756 18757 18758 18759if test $pkg_failed = yes; then 18760 18761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18762 _pkg_short_errors_supported=yes 18763else 18764 _pkg_short_errors_supported=no 18765fi 18766 if test $_pkg_short_errors_supported = yes; then 18767 XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1` 18768 else 18769 XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1` 18770 fi 18771 # Put the nasty error message in config.log where it belongs 18772 echo "$XAW7_PKG_ERRORS" >&5 18773 18774 as_fn_error $? "Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met: 18775 18776$XAW7_PKG_ERRORS 18777 18778Consider adjusting the PKG_CONFIG_PATH environment variable if you 18779installed software in a non-standard prefix. 18780 18781Alternatively, you may set the environment variables XAW7_CFLAGS 18782and XAW7_LIBS to avoid the need to call pkg-config. 18783See the pkg-config man page for more details. 18784" "$LINENO" 5 18785elif test $pkg_failed = untried; then 18786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18788as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18789is in your PATH or set the PKG_CONFIG environment variable to the full 18790path to pkg-config. 18791 18792Alternatively, you may set the environment variables XAW7_CFLAGS 18793and XAW7_LIBS to avoid the need to call pkg-config. 18794See the pkg-config man page for more details. 18795 18796To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18797See \`config.log' for more details" "$LINENO" 5; } 18798else 18799 XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS 18800 XAW7_LIBS=$pkg_cv_XAW7_LIBS 18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18802$as_echo "yes" >&6; } 18803 : 18804fi 18805fi 18806 18807 18808 if test x$build_v6 = xyes; then 18809 BUILD_XAW6_TRUE= 18810 BUILD_XAW6_FALSE='#' 18811else 18812 BUILD_XAW6_TRUE='#' 18813 BUILD_XAW6_FALSE= 18814fi 18815 18816 if test x$build_v7 = xyes; then 18817 BUILD_XAW7_TRUE= 18818 BUILD_XAW7_FALSE='#' 18819else 18820 BUILD_XAW7_TRUE='#' 18821 BUILD_XAW7_FALSE= 18822fi 18823 18824 18825# Checks for header files. 18826for ac_header in wctype.h wchar.h widec.h 18827do : 18828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18829ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18830if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18831 cat >>confdefs.h <<_ACEOF 18832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18833_ACEOF 18834 18835fi 18836 18837done 18838 18839 18840# Checks for functions 18841for ac_func in iswalnum getpagesize 18842do : 18843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18844ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18845if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18846 cat >>confdefs.h <<_ACEOF 18847#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18848_ACEOF 18849 18850fi 18851done 18852 18853 18854# Link with winsock if mingw target 18855case $host_os in 18856 *mingw*) 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18858$as_echo_n "checking for main in -lws2_32... " >&6; } 18859if ${ac_cv_lib_ws2_32_main+:} false; then : 18860 $as_echo_n "(cached) " >&6 18861else 18862 ac_check_lib_save_LIBS=$LIBS 18863LIBS="-lws2_32 $LIBS" 18864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18865/* end confdefs.h. */ 18866 18867 18868int 18869main () 18870{ 18871return main (); 18872 ; 18873 return 0; 18874} 18875_ACEOF 18876if ac_fn_c_try_link "$LINENO"; then : 18877 ac_cv_lib_ws2_32_main=yes 18878else 18879 ac_cv_lib_ws2_32_main=no 18880fi 18881rm -f core conftest.err conftest.$ac_objext \ 18882 conftest$ac_exeext conftest.$ac_ext 18883LIBS=$ac_check_lib_save_LIBS 18884fi 18885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18886$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18887if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18888 cat >>confdefs.h <<_ACEOF 18889#define HAVE_LIBWS2_32 1 18890_ACEOF 18891 18892 LIBS="-lws2_32 $LIBS" 18893 18894fi 18895 18896 ;; 18897 *) 18898 ;; 18899esac 18900 18901ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile src/Makefile" 18902 18903 18904if test "x$build_v6" = xyes; then 18905 ac_config_files="$ac_config_files xaw6.pc" 18906 18907fi 18908 18909if test "x$build_v7" = xyes; then 18910 ac_config_files="$ac_config_files xaw7.pc" 18911 18912fi 18913 18914cat >confcache <<\_ACEOF 18915# This file is a shell script that caches the results of configure 18916# tests run on this system so they can be shared between configure 18917# scripts and configure runs, see configure's option --config-cache. 18918# It is not useful on other systems. If it contains results you don't 18919# want to keep, you may remove or edit it. 18920# 18921# config.status only pays attention to the cache file if you give it 18922# the --recheck option to rerun configure. 18923# 18924# `ac_cv_env_foo' variables (set or unset) will be overridden when 18925# loading this file, other *unset* `ac_cv_foo' will be assigned the 18926# following values. 18927 18928_ACEOF 18929 18930# The following way of writing the cache mishandles newlines in values, 18931# but we know of no workaround that is simple, portable, and efficient. 18932# So, we kill variables containing newlines. 18933# Ultrix sh set writes to stderr and can't be redirected directly, 18934# and sets the high bit in the cache file unless we assign to the vars. 18935( 18936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18937 eval ac_val=\$$ac_var 18938 case $ac_val in #( 18939 *${as_nl}*) 18940 case $ac_var in #( 18941 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18942$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18943 esac 18944 case $ac_var in #( 18945 _ | IFS | as_nl) ;; #( 18946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18947 *) { eval $ac_var=; unset $ac_var;} ;; 18948 esac ;; 18949 esac 18950 done 18951 18952 (set) 2>&1 | 18953 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18954 *${as_nl}ac_space=\ *) 18955 # `set' does not quote correctly, so add quotes: double-quote 18956 # substitution turns \\\\ into \\, and sed turns \\ into \. 18957 sed -n \ 18958 "s/'/'\\\\''/g; 18959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18960 ;; #( 18961 *) 18962 # `set' quotes correctly as required by POSIX, so do not add quotes. 18963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18964 ;; 18965 esac | 18966 sort 18967) | 18968 sed ' 18969 /^ac_cv_env_/b end 18970 t clear 18971 :clear 18972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18973 t end 18974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18975 :end' >>confcache 18976if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18977 if test -w "$cache_file"; then 18978 if test "x$cache_file" != "x/dev/null"; then 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18980$as_echo "$as_me: updating cache $cache_file" >&6;} 18981 if test ! -f "$cache_file" || test -h "$cache_file"; then 18982 cat confcache >"$cache_file" 18983 else 18984 case $cache_file in #( 18985 */* | ?:*) 18986 mv -f confcache "$cache_file"$$ && 18987 mv -f "$cache_file"$$ "$cache_file" ;; #( 18988 *) 18989 mv -f confcache "$cache_file" ;; 18990 esac 18991 fi 18992 fi 18993 else 18994 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18995$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18996 fi 18997fi 18998rm -f confcache 18999 19000test "x$prefix" = xNONE && prefix=$ac_default_prefix 19001# Let make expand exec_prefix. 19002test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19003 19004DEFS=-DHAVE_CONFIG_H 19005 19006ac_libobjs= 19007ac_ltlibobjs= 19008U= 19009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19010 # 1. Remove the extension, and $U if already installed. 19011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19012 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19014 # will be set to the directory where LIBOBJS objects are built. 19015 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19016 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19017done 19018LIBOBJS=$ac_libobjs 19019 19020LTLIBOBJS=$ac_ltlibobjs 19021 19022 19023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19024$as_echo_n "checking that generated files are newer than configure... " >&6; } 19025 if test -n "$am_sleep_pid"; then 19026 # Hide warnings about reused PIDs. 19027 wait $am_sleep_pid 2>/dev/null 19028 fi 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19030$as_echo "done" >&6; } 19031 if test -n "$EXEEXT"; then 19032 am__EXEEXT_TRUE= 19033 am__EXEEXT_FALSE='#' 19034else 19035 am__EXEEXT_TRUE='#' 19036 am__EXEEXT_FALSE= 19037fi 19038 19039if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19040 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19041Usually this means the macro was only invoked conditionally." "$LINENO" 5 19042fi 19043if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19044 as_fn_error $? "conditional \"AMDEP\" was never defined. 19045Usually this means the macro was only invoked conditionally." "$LINENO" 5 19046fi 19047if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19048 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19049Usually this means the macro was only invoked conditionally." "$LINENO" 5 19050fi 19051if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 19052 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 19053Usually this means the macro was only invoked conditionally." "$LINENO" 5 19054fi 19055if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19056 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19057Usually this means the macro was only invoked conditionally." "$LINENO" 5 19058fi 19059if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19060 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19061Usually this means the macro was only invoked conditionally." "$LINENO" 5 19062fi 19063if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19064 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19065Usually this means the macro was only invoked conditionally." "$LINENO" 5 19066fi 19067if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19068 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19069Usually this means the macro was only invoked conditionally." "$LINENO" 5 19070fi 19071if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19072 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19073Usually this means the macro was only invoked conditionally." "$LINENO" 5 19074fi 19075if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then 19076 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined. 19077Usually this means the macro was only invoked conditionally." "$LINENO" 5 19078fi 19079if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then 19080 as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined. 19081Usually this means the macro was only invoked conditionally." "$LINENO" 5 19082fi 19083if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then 19084 as_fn_error $? "conditional \"BUILD_XAW6\" was never defined. 19085Usually this means the macro was only invoked conditionally." "$LINENO" 5 19086fi 19087if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then 19088 as_fn_error $? "conditional \"BUILD_XAW7\" was never defined. 19089Usually this means the macro was only invoked conditionally." "$LINENO" 5 19090fi 19091 19092: "${CONFIG_STATUS=./config.status}" 19093ac_write_fail=0 19094ac_clean_files_save=$ac_clean_files 19095ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19096{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19097$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19098as_write_fail=0 19099cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19100#! $SHELL 19101# Generated by $as_me. 19102# Run this file to recreate the current configuration. 19103# Compiler output produced by configure, useful for debugging 19104# configure, is in config.log if it exists. 19105 19106debug=false 19107ac_cs_recheck=false 19108ac_cs_silent=false 19109 19110SHELL=\${CONFIG_SHELL-$SHELL} 19111export SHELL 19112_ASEOF 19113cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19114## -------------------- ## 19115## M4sh Initialization. ## 19116## -------------------- ## 19117 19118# Be more Bourne compatible 19119DUALCASE=1; export DUALCASE # for MKS sh 19120if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19121 emulate sh 19122 NULLCMD=: 19123 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19124 # is contrary to our usage. Disable this feature. 19125 alias -g '${1+"$@"}'='"$@"' 19126 setopt NO_GLOB_SUBST 19127else 19128 case `(set -o) 2>/dev/null` in #( 19129 *posix*) : 19130 set -o posix ;; #( 19131 *) : 19132 ;; 19133esac 19134fi 19135 19136 19137as_nl=' 19138' 19139export as_nl 19140# Printing a long string crashes Solaris 7 /usr/bin/printf. 19141as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19142as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19143as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19144# Prefer a ksh shell builtin over an external printf program on Solaris, 19145# but without wasting forks for bash or zsh. 19146if test -z "$BASH_VERSION$ZSH_VERSION" \ 19147 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19148 as_echo='print -r --' 19149 as_echo_n='print -rn --' 19150elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19151 as_echo='printf %s\n' 19152 as_echo_n='printf %s' 19153else 19154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19155 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19156 as_echo_n='/usr/ucb/echo -n' 19157 else 19158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19159 as_echo_n_body='eval 19160 arg=$1; 19161 case $arg in #( 19162 *"$as_nl"*) 19163 expr "X$arg" : "X\\(.*\\)$as_nl"; 19164 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19165 esac; 19166 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19167 ' 19168 export as_echo_n_body 19169 as_echo_n='sh -c $as_echo_n_body as_echo' 19170 fi 19171 export as_echo_body 19172 as_echo='sh -c $as_echo_body as_echo' 19173fi 19174 19175# The user is always right. 19176if test "${PATH_SEPARATOR+set}" != set; then 19177 PATH_SEPARATOR=: 19178 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19179 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19180 PATH_SEPARATOR=';' 19181 } 19182fi 19183 19184 19185# IFS 19186# We need space, tab and new line, in precisely that order. Quoting is 19187# there to prevent editors from complaining about space-tab. 19188# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19189# splitting by setting IFS to empty value.) 19190IFS=" "" $as_nl" 19191 19192# Find who we are. Look in the path if we contain no directory separator. 19193as_myself= 19194case $0 in #(( 19195 *[\\/]* ) as_myself=$0 ;; 19196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19197for as_dir in $PATH 19198do 19199 IFS=$as_save_IFS 19200 test -z "$as_dir" && as_dir=. 19201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19202 done 19203IFS=$as_save_IFS 19204 19205 ;; 19206esac 19207# We did not find ourselves, most probably we were run as `sh COMMAND' 19208# in which case we are not to be found in the path. 19209if test "x$as_myself" = x; then 19210 as_myself=$0 19211fi 19212if test ! -f "$as_myself"; then 19213 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19214 exit 1 19215fi 19216 19217# Unset variables that we do not need and which cause bugs (e.g. in 19218# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19219# suppresses any "Segmentation fault" message there. '((' could 19220# trigger a bug in pdksh 5.2.14. 19221for as_var in BASH_ENV ENV MAIL MAILPATH 19222do eval test x\${$as_var+set} = xset \ 19223 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19224done 19225PS1='$ ' 19226PS2='> ' 19227PS4='+ ' 19228 19229# NLS nuisances. 19230LC_ALL=C 19231export LC_ALL 19232LANGUAGE=C 19233export LANGUAGE 19234 19235# CDPATH. 19236(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19237 19238 19239# as_fn_error STATUS ERROR [LINENO LOG_FD] 19240# ---------------------------------------- 19241# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19242# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19243# script with STATUS, using 1 if that was 0. 19244as_fn_error () 19245{ 19246 as_status=$1; test $as_status -eq 0 && as_status=1 19247 if test "$4"; then 19248 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19249 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19250 fi 19251 $as_echo "$as_me: error: $2" >&2 19252 as_fn_exit $as_status 19253} # as_fn_error 19254 19255 19256# as_fn_set_status STATUS 19257# ----------------------- 19258# Set $? to STATUS, without forking. 19259as_fn_set_status () 19260{ 19261 return $1 19262} # as_fn_set_status 19263 19264# as_fn_exit STATUS 19265# ----------------- 19266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19267as_fn_exit () 19268{ 19269 set +e 19270 as_fn_set_status $1 19271 exit $1 19272} # as_fn_exit 19273 19274# as_fn_unset VAR 19275# --------------- 19276# Portably unset VAR. 19277as_fn_unset () 19278{ 19279 { eval $1=; unset $1;} 19280} 19281as_unset=as_fn_unset 19282# as_fn_append VAR VALUE 19283# ---------------------- 19284# Append the text in VALUE to the end of the definition contained in VAR. Take 19285# advantage of any shell optimizations that allow amortized linear growth over 19286# repeated appends, instead of the typical quadratic growth present in naive 19287# implementations. 19288if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19289 eval 'as_fn_append () 19290 { 19291 eval $1+=\$2 19292 }' 19293else 19294 as_fn_append () 19295 { 19296 eval $1=\$$1\$2 19297 } 19298fi # as_fn_append 19299 19300# as_fn_arith ARG... 19301# ------------------ 19302# Perform arithmetic evaluation on the ARGs, and store the result in the 19303# global $as_val. Take advantage of shells that can avoid forks. The arguments 19304# must be portable across $(()) and expr. 19305if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19306 eval 'as_fn_arith () 19307 { 19308 as_val=$(( $* )) 19309 }' 19310else 19311 as_fn_arith () 19312 { 19313 as_val=`expr "$@" || test $? -eq 1` 19314 } 19315fi # as_fn_arith 19316 19317 19318if expr a : '\(a\)' >/dev/null 2>&1 && 19319 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19320 as_expr=expr 19321else 19322 as_expr=false 19323fi 19324 19325if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19326 as_basename=basename 19327else 19328 as_basename=false 19329fi 19330 19331if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19332 as_dirname=dirname 19333else 19334 as_dirname=false 19335fi 19336 19337as_me=`$as_basename -- "$0" || 19338$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19339 X"$0" : 'X\(//\)$' \| \ 19340 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19341$as_echo X/"$0" | 19342 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19343 s//\1/ 19344 q 19345 } 19346 /^X\/\(\/\/\)$/{ 19347 s//\1/ 19348 q 19349 } 19350 /^X\/\(\/\).*/{ 19351 s//\1/ 19352 q 19353 } 19354 s/.*/./; q'` 19355 19356# Avoid depending upon Character Ranges. 19357as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19358as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19359as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19360as_cr_digits='0123456789' 19361as_cr_alnum=$as_cr_Letters$as_cr_digits 19362 19363ECHO_C= ECHO_N= ECHO_T= 19364case `echo -n x` in #((((( 19365-n*) 19366 case `echo 'xy\c'` in 19367 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19368 xy) ECHO_C='\c';; 19369 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19370 ECHO_T=' ';; 19371 esac;; 19372*) 19373 ECHO_N='-n';; 19374esac 19375 19376rm -f conf$$ conf$$.exe conf$$.file 19377if test -d conf$$.dir; then 19378 rm -f conf$$.dir/conf$$.file 19379else 19380 rm -f conf$$.dir 19381 mkdir conf$$.dir 2>/dev/null 19382fi 19383if (echo >conf$$.file) 2>/dev/null; then 19384 if ln -s conf$$.file conf$$ 2>/dev/null; then 19385 as_ln_s='ln -s' 19386 # ... but there are two gotchas: 19387 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19388 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19389 # In both cases, we have to default to `cp -p'. 19390 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19391 as_ln_s='cp -p' 19392 elif ln conf$$.file conf$$ 2>/dev/null; then 19393 as_ln_s=ln 19394 else 19395 as_ln_s='cp -p' 19396 fi 19397else 19398 as_ln_s='cp -p' 19399fi 19400rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19401rmdir conf$$.dir 2>/dev/null 19402 19403 19404# as_fn_mkdir_p 19405# ------------- 19406# Create "$as_dir" as a directory, including parents if necessary. 19407as_fn_mkdir_p () 19408{ 19409 19410 case $as_dir in #( 19411 -*) as_dir=./$as_dir;; 19412 esac 19413 test -d "$as_dir" || eval $as_mkdir_p || { 19414 as_dirs= 19415 while :; do 19416 case $as_dir in #( 19417 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19418 *) as_qdir=$as_dir;; 19419 esac 19420 as_dirs="'$as_qdir' $as_dirs" 19421 as_dir=`$as_dirname -- "$as_dir" || 19422$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19423 X"$as_dir" : 'X\(//\)[^/]' \| \ 19424 X"$as_dir" : 'X\(//\)$' \| \ 19425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19426$as_echo X"$as_dir" | 19427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19428 s//\1/ 19429 q 19430 } 19431 /^X\(\/\/\)[^/].*/{ 19432 s//\1/ 19433 q 19434 } 19435 /^X\(\/\/\)$/{ 19436 s//\1/ 19437 q 19438 } 19439 /^X\(\/\).*/{ 19440 s//\1/ 19441 q 19442 } 19443 s/.*/./; q'` 19444 test -d "$as_dir" && break 19445 done 19446 test -z "$as_dirs" || eval "mkdir $as_dirs" 19447 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19448 19449 19450} # as_fn_mkdir_p 19451if mkdir -p . 2>/dev/null; then 19452 as_mkdir_p='mkdir -p "$as_dir"' 19453else 19454 test -d ./-p && rmdir ./-p 19455 as_mkdir_p=false 19456fi 19457 19458if test -x / >/dev/null 2>&1; then 19459 as_test_x='test -x' 19460else 19461 if ls -dL / >/dev/null 2>&1; then 19462 as_ls_L_option=L 19463 else 19464 as_ls_L_option= 19465 fi 19466 as_test_x=' 19467 eval sh -c '\'' 19468 if test -d "$1"; then 19469 test -d "$1/."; 19470 else 19471 case $1 in #( 19472 -*)set "./$1";; 19473 esac; 19474 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19475 ???[sx]*):;;*)false;;esac;fi 19476 '\'' sh 19477 ' 19478fi 19479as_executable_p=$as_test_x 19480 19481# Sed expression to map a string onto a valid CPP name. 19482as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19483 19484# Sed expression to map a string onto a valid variable name. 19485as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19486 19487 19488exec 6>&1 19489## ----------------------------------- ## 19490## Main body of $CONFIG_STATUS script. ## 19491## ----------------------------------- ## 19492_ASEOF 19493test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19494 19495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19496# Save the log message, to keep $0 and so on meaningful, and to 19497# report actual input values of CONFIG_FILES etc. instead of their 19498# values after options handling. 19499ac_log=" 19500This file was extended by libXaw $as_me 1.0.12, which was 19501generated by GNU Autoconf 2.68. Invocation command line was 19502 19503 CONFIG_FILES = $CONFIG_FILES 19504 CONFIG_HEADERS = $CONFIG_HEADERS 19505 CONFIG_LINKS = $CONFIG_LINKS 19506 CONFIG_COMMANDS = $CONFIG_COMMANDS 19507 $ $0 $@ 19508 19509on `(hostname || uname -n) 2>/dev/null | sed 1q` 19510" 19511 19512_ACEOF 19513 19514case $ac_config_files in *" 19515"*) set x $ac_config_files; shift; ac_config_files=$*;; 19516esac 19517 19518case $ac_config_headers in *" 19519"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19520esac 19521 19522 19523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19524# Files that config.status was made for. 19525config_files="$ac_config_files" 19526config_headers="$ac_config_headers" 19527config_commands="$ac_config_commands" 19528 19529_ACEOF 19530 19531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19532ac_cs_usage="\ 19533\`$as_me' instantiates files and other configuration actions 19534from templates according to the current configuration. Unless the files 19535and actions are specified as TAGs, all are instantiated by default. 19536 19537Usage: $0 [OPTION]... [TAG]... 19538 19539 -h, --help print this help, then exit 19540 -V, --version print version number and configuration settings, then exit 19541 --config print configuration, then exit 19542 -q, --quiet, --silent 19543 do not print progress messages 19544 -d, --debug don't remove temporary files 19545 --recheck update $as_me by reconfiguring in the same conditions 19546 --file=FILE[:TEMPLATE] 19547 instantiate the configuration file FILE 19548 --header=FILE[:TEMPLATE] 19549 instantiate the configuration header FILE 19550 19551Configuration files: 19552$config_files 19553 19554Configuration headers: 19555$config_headers 19556 19557Configuration commands: 19558$config_commands 19559 19560Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19561 19562_ACEOF 19563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19564ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19565ac_cs_version="\\ 19566libXaw config.status 1.0.12 19567configured by $0, generated by GNU Autoconf 2.68, 19568 with options \\"\$ac_cs_config\\" 19569 19570Copyright (C) 2010 Free Software Foundation, Inc. 19571This config.status script is free software; the Free Software Foundation 19572gives unlimited permission to copy, distribute and modify it." 19573 19574ac_pwd='$ac_pwd' 19575srcdir='$srcdir' 19576INSTALL='$INSTALL' 19577MKDIR_P='$MKDIR_P' 19578AWK='$AWK' 19579test -n "\$AWK" || AWK=awk 19580_ACEOF 19581 19582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19583# The default lists apply if the user does not specify any file. 19584ac_need_defaults=: 19585while test $# != 0 19586do 19587 case $1 in 19588 --*=?*) 19589 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19590 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19591 ac_shift=: 19592 ;; 19593 --*=) 19594 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19595 ac_optarg= 19596 ac_shift=: 19597 ;; 19598 *) 19599 ac_option=$1 19600 ac_optarg=$2 19601 ac_shift=shift 19602 ;; 19603 esac 19604 19605 case $ac_option in 19606 # Handling of the options. 19607 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19608 ac_cs_recheck=: ;; 19609 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19610 $as_echo "$ac_cs_version"; exit ;; 19611 --config | --confi | --conf | --con | --co | --c ) 19612 $as_echo "$ac_cs_config"; exit ;; 19613 --debug | --debu | --deb | --de | --d | -d ) 19614 debug=: ;; 19615 --file | --fil | --fi | --f ) 19616 $ac_shift 19617 case $ac_optarg in 19618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19619 '') as_fn_error $? "missing file argument" ;; 19620 esac 19621 as_fn_append CONFIG_FILES " '$ac_optarg'" 19622 ac_need_defaults=false;; 19623 --header | --heade | --head | --hea ) 19624 $ac_shift 19625 case $ac_optarg in 19626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19627 esac 19628 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19629 ac_need_defaults=false;; 19630 --he | --h) 19631 # Conflict between --help and --header 19632 as_fn_error $? "ambiguous option: \`$1' 19633Try \`$0 --help' for more information.";; 19634 --help | --hel | -h ) 19635 $as_echo "$ac_cs_usage"; exit ;; 19636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19637 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19638 ac_cs_silent=: ;; 19639 19640 # This is an error. 19641 -*) as_fn_error $? "unrecognized option: \`$1' 19642Try \`$0 --help' for more information." ;; 19643 19644 *) as_fn_append ac_config_targets " $1" 19645 ac_need_defaults=false ;; 19646 19647 esac 19648 shift 19649done 19650 19651ac_configure_extra_args= 19652 19653if $ac_cs_silent; then 19654 exec 6>/dev/null 19655 ac_configure_extra_args="$ac_configure_extra_args --silent" 19656fi 19657 19658_ACEOF 19659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19660if \$ac_cs_recheck; then 19661 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19662 shift 19663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19664 CONFIG_SHELL='$SHELL' 19665 export CONFIG_SHELL 19666 exec "\$@" 19667fi 19668 19669_ACEOF 19670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19671exec 5>>config.log 19672{ 19673 echo 19674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19675## Running $as_me. ## 19676_ASBOX 19677 $as_echo "$ac_log" 19678} >&5 19679 19680_ACEOF 19681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19682# 19683# INIT-COMMANDS 19684# 19685AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19686 19687 19688# The HP-UX ksh and POSIX shell print the target directory to stdout 19689# if CDPATH is set. 19690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19691 19692sed_quote_subst='$sed_quote_subst' 19693double_quote_subst='$double_quote_subst' 19694delay_variable_subst='$delay_variable_subst' 19695macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19696macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19697enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19698enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19699pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19700enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19701SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19702ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19703PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19704host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19705host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19706host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19707build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19708build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19709build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19710SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19711Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19712GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19713EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19714FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19715LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19716NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19717LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19718max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19719ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19720exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19721lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19722lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19723lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19724lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19725lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19726reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19727reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19728OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19729deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19730file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19731file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19732want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19733DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19734sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19735AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19736AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19737archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19738STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19739RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19740old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19741old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19742old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19743lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19744CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19745CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19746compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19747GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19748lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19749lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19750lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19751lt_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"`' 19752nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19753lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19754objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19755MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19756lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19757lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19758lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19759lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19760lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19761need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19762MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19763DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19764NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19765LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19766OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19767OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19768libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19769shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19770extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19771archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19772enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19773export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19774whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19775compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19776old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19777old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19778archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19779archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19780module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19781module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19782with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19783allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19784no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19785hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19786hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19787hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19788hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19789hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19790hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19791hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19792inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19793link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19794always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19795export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19796exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19797include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19798prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19799postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19800file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19801variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19802need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19803need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19804version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19805runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19806shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19807shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19808libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19809library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19810soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19811install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19812postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19813postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19814finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19815finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19816hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19817sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19818sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19819hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19820enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19821enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19822enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19823old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19824striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19825 19826LTCC='$LTCC' 19827LTCFLAGS='$LTCFLAGS' 19828compiler='$compiler_DEFAULT' 19829 19830# A function that is used when there is no print builtin or printf. 19831func_fallback_echo () 19832{ 19833 eval 'cat <<_LTECHO_EOF 19834\$1 19835_LTECHO_EOF' 19836} 19837 19838# Quote evaled strings. 19839for var in SHELL \ 19840ECHO \ 19841PATH_SEPARATOR \ 19842SED \ 19843GREP \ 19844EGREP \ 19845FGREP \ 19846LD \ 19847NM \ 19848LN_S \ 19849lt_SP2NL \ 19850lt_NL2SP \ 19851reload_flag \ 19852OBJDUMP \ 19853deplibs_check_method \ 19854file_magic_cmd \ 19855file_magic_glob \ 19856want_nocaseglob \ 19857DLLTOOL \ 19858sharedlib_from_linklib_cmd \ 19859AR \ 19860AR_FLAGS \ 19861archiver_list_spec \ 19862STRIP \ 19863RANLIB \ 19864CC \ 19865CFLAGS \ 19866compiler \ 19867lt_cv_sys_global_symbol_pipe \ 19868lt_cv_sys_global_symbol_to_cdecl \ 19869lt_cv_sys_global_symbol_to_c_name_address \ 19870lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19871nm_file_list_spec \ 19872lt_prog_compiler_no_builtin_flag \ 19873lt_prog_compiler_pic \ 19874lt_prog_compiler_wl \ 19875lt_prog_compiler_static \ 19876lt_cv_prog_compiler_c_o \ 19877need_locks \ 19878MANIFEST_TOOL \ 19879DSYMUTIL \ 19880NMEDIT \ 19881LIPO \ 19882OTOOL \ 19883OTOOL64 \ 19884shrext_cmds \ 19885export_dynamic_flag_spec \ 19886whole_archive_flag_spec \ 19887compiler_needs_object \ 19888with_gnu_ld \ 19889allow_undefined_flag \ 19890no_undefined_flag \ 19891hardcode_libdir_flag_spec \ 19892hardcode_libdir_separator \ 19893exclude_expsyms \ 19894include_expsyms \ 19895file_list_spec \ 19896variables_saved_for_relink \ 19897libname_spec \ 19898library_names_spec \ 19899soname_spec \ 19900install_override_mode \ 19901finish_eval \ 19902old_striplib \ 19903striplib; do 19904 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19905 *[\\\\\\\`\\"\\\$]*) 19906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19907 ;; 19908 *) 19909 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19910 ;; 19911 esac 19912done 19913 19914# Double-quote double-evaled strings. 19915for var in reload_cmds \ 19916old_postinstall_cmds \ 19917old_postuninstall_cmds \ 19918old_archive_cmds \ 19919extract_expsyms_cmds \ 19920old_archive_from_new_cmds \ 19921old_archive_from_expsyms_cmds \ 19922archive_cmds \ 19923archive_expsym_cmds \ 19924module_cmds \ 19925module_expsym_cmds \ 19926export_symbols_cmds \ 19927prelink_cmds \ 19928postlink_cmds \ 19929postinstall_cmds \ 19930postuninstall_cmds \ 19931finish_cmds \ 19932sys_lib_search_path_spec \ 19933sys_lib_dlsearch_path_spec; do 19934 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19935 *[\\\\\\\`\\"\\\$]*) 19936 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19937 ;; 19938 *) 19939 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19940 ;; 19941 esac 19942done 19943 19944ac_aux_dir='$ac_aux_dir' 19945xsi_shell='$xsi_shell' 19946lt_shell_append='$lt_shell_append' 19947 19948# See if we are running on zsh, and set the options which allow our 19949# commands through without removal of \ escapes INIT. 19950if test -n "\${ZSH_VERSION+set}" ; then 19951 setopt NO_GLOB_SUBST 19952fi 19953 19954 19955 PACKAGE='$PACKAGE' 19956 VERSION='$VERSION' 19957 TIMESTAMP='$TIMESTAMP' 19958 RM='$RM' 19959 ofile='$ofile' 19960 19961 19962 19963 19964_ACEOF 19965 19966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19967 19968# Handling of arguments. 19969for ac_config_target in $ac_config_targets 19970do 19971 case $ac_config_target in 19972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19973 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19974 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19975 "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;; 19976 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19977 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19978 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19979 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19980 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19981 "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;; 19982 "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;; 19983 19984 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19985 esac 19986done 19987 19988 19989# If the user did not use the arguments to specify the items to instantiate, 19990# then the envvar interface is used. Set only those that are not. 19991# We use the long form for the default assignment because of an extremely 19992# bizarre bug on SunOS 4.1.3. 19993if $ac_need_defaults; then 19994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19996 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19997fi 19998 19999# Have a temporary directory for convenience. Make it in the build tree 20000# simply because there is no reason against having it here, and in addition, 20001# creating and moving files from /tmp can sometimes cause problems. 20002# Hook for its removal unless debugging. 20003# Note that there is a small window in which the directory will not be cleaned: 20004# after its creation but before its name has been assigned to `$tmp'. 20005$debug || 20006{ 20007 tmp= ac_tmp= 20008 trap 'exit_status=$? 20009 : "${ac_tmp:=$tmp}" 20010 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20011' 0 20012 trap 'as_fn_exit 1' 1 2 13 15 20013} 20014# Create a (secure) tmp directory for tmp files. 20015 20016{ 20017 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20018 test -d "$tmp" 20019} || 20020{ 20021 tmp=./conf$$-$RANDOM 20022 (umask 077 && mkdir "$tmp") 20023} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20024ac_tmp=$tmp 20025 20026# Set up the scripts for CONFIG_FILES section. 20027# No need to generate them if there are no CONFIG_FILES. 20028# This happens for instance with `./config.status config.h'. 20029if test -n "$CONFIG_FILES"; then 20030 20031 20032ac_cr=`echo X | tr X '\015'` 20033# On cygwin, bash can eat \r inside `` if the user requested igncr. 20034# But we know of no other shell where ac_cr would be empty at this 20035# point, so we can use a bashism as a fallback. 20036if test "x$ac_cr" = x; then 20037 eval ac_cr=\$\'\\r\' 20038fi 20039ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20040if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20041 ac_cs_awk_cr='\\r' 20042else 20043 ac_cs_awk_cr=$ac_cr 20044fi 20045 20046echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20047_ACEOF 20048 20049 20050{ 20051 echo "cat >conf$$subs.awk <<_ACEOF" && 20052 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20053 echo "_ACEOF" 20054} >conf$$subs.sh || 20055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20056ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20057ac_delim='%!_!# ' 20058for ac_last_try in false false false false false :; do 20059 . ./conf$$subs.sh || 20060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20061 20062 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20063 if test $ac_delim_n = $ac_delim_num; then 20064 break 20065 elif $ac_last_try; then 20066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20067 else 20068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20069 fi 20070done 20071rm -f conf$$subs.sh 20072 20073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20074cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20075_ACEOF 20076sed -n ' 20077h 20078s/^/S["/; s/!.*/"]=/ 20079p 20080g 20081s/^[^!]*!// 20082:repl 20083t repl 20084s/'"$ac_delim"'$// 20085t delim 20086:nl 20087h 20088s/\(.\{148\}\)..*/\1/ 20089t more1 20090s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20091p 20092n 20093b repl 20094:more1 20095s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20096p 20097g 20098s/.\{148\}// 20099t nl 20100:delim 20101h 20102s/\(.\{148\}\)..*/\1/ 20103t more2 20104s/["\\]/\\&/g; s/^/"/; s/$/"/ 20105p 20106b 20107:more2 20108s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20109p 20110g 20111s/.\{148\}// 20112t delim 20113' <conf$$subs.awk | sed ' 20114/^[^""]/{ 20115 N 20116 s/\n// 20117} 20118' >>$CONFIG_STATUS || ac_write_fail=1 20119rm -f conf$$subs.awk 20120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20121_ACAWK 20122cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20123 for (key in S) S_is_set[key] = 1 20124 FS = "" 20125 20126} 20127{ 20128 line = $ 0 20129 nfields = split(line, field, "@") 20130 substed = 0 20131 len = length(field[1]) 20132 for (i = 2; i < nfields; i++) { 20133 key = field[i] 20134 keylen = length(key) 20135 if (S_is_set[key]) { 20136 value = S[key] 20137 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20138 len += length(value) + length(field[++i]) 20139 substed = 1 20140 } else 20141 len += 1 + keylen 20142 } 20143 20144 print line 20145} 20146 20147_ACAWK 20148_ACEOF 20149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20150if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20151 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20152else 20153 cat 20154fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20155 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20156_ACEOF 20157 20158# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20159# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20160# trailing colons and then remove the whole line if VPATH becomes empty 20161# (actually we leave an empty line to preserve line numbers). 20162if test "x$srcdir" = x.; then 20163 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20164h 20165s/// 20166s/^/:/ 20167s/[ ]*$/:/ 20168s/:\$(srcdir):/:/g 20169s/:\${srcdir}:/:/g 20170s/:@srcdir@:/:/g 20171s/^:*// 20172s/:*$// 20173x 20174s/\(=[ ]*\).*/\1/ 20175G 20176s/\n// 20177s/^[^=]*=[ ]*$// 20178}' 20179fi 20180 20181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20182fi # test -n "$CONFIG_FILES" 20183 20184# Set up the scripts for CONFIG_HEADERS section. 20185# No need to generate them if there are no CONFIG_HEADERS. 20186# This happens for instance with `./config.status Makefile'. 20187if test -n "$CONFIG_HEADERS"; then 20188cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20189BEGIN { 20190_ACEOF 20191 20192# Transform confdefs.h into an awk script `defines.awk', embedded as 20193# here-document in config.status, that substitutes the proper values into 20194# config.h.in to produce config.h. 20195 20196# Create a delimiter string that does not exist in confdefs.h, to ease 20197# handling of long lines. 20198ac_delim='%!_!# ' 20199for ac_last_try in false false :; do 20200 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20201 if test -z "$ac_tt"; then 20202 break 20203 elif $ac_last_try; then 20204 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20205 else 20206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20207 fi 20208done 20209 20210# For the awk script, D is an array of macro values keyed by name, 20211# likewise P contains macro parameters if any. Preserve backslash 20212# newline sequences. 20213 20214ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20215sed -n ' 20216s/.\{148\}/&'"$ac_delim"'/g 20217t rset 20218:rset 20219s/^[ ]*#[ ]*define[ ][ ]*/ / 20220t def 20221d 20222:def 20223s/\\$// 20224t bsnl 20225s/["\\]/\\&/g 20226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20227D["\1"]=" \3"/p 20228s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20229d 20230:bsnl 20231s/["\\]/\\&/g 20232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20233D["\1"]=" \3\\\\\\n"\\/p 20234t cont 20235s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20236t cont 20237d 20238:cont 20239n 20240s/.\{148\}/&'"$ac_delim"'/g 20241t clear 20242:clear 20243s/\\$// 20244t bsnlc 20245s/["\\]/\\&/g; s/^/"/; s/$/"/p 20246d 20247:bsnlc 20248s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20249b cont 20250' <confdefs.h | sed ' 20251s/'"$ac_delim"'/"\\\ 20252"/g' >>$CONFIG_STATUS || ac_write_fail=1 20253 20254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20255 for (key in D) D_is_set[key] = 1 20256 FS = "" 20257} 20258/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20259 line = \$ 0 20260 split(line, arg, " ") 20261 if (arg[1] == "#") { 20262 defundef = arg[2] 20263 mac1 = arg[3] 20264 } else { 20265 defundef = substr(arg[1], 2) 20266 mac1 = arg[2] 20267 } 20268 split(mac1, mac2, "(") #) 20269 macro = mac2[1] 20270 prefix = substr(line, 1, index(line, defundef) - 1) 20271 if (D_is_set[macro]) { 20272 # Preserve the white space surrounding the "#". 20273 print prefix "define", macro P[macro] D[macro] 20274 next 20275 } else { 20276 # Replace #undef with comments. This is necessary, for example, 20277 # in the case of _POSIX_SOURCE, which is predefined and required 20278 # on some systems where configure will not decide to define it. 20279 if (defundef == "undef") { 20280 print "/*", prefix defundef, macro, "*/" 20281 next 20282 } 20283 } 20284} 20285{ print } 20286_ACAWK 20287_ACEOF 20288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20289 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20290fi # test -n "$CONFIG_HEADERS" 20291 20292 20293eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20294shift 20295for ac_tag 20296do 20297 case $ac_tag in 20298 :[FHLC]) ac_mode=$ac_tag; continue;; 20299 esac 20300 case $ac_mode$ac_tag in 20301 :[FHL]*:*);; 20302 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20303 :[FH]-) ac_tag=-:-;; 20304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20305 esac 20306 ac_save_IFS=$IFS 20307 IFS=: 20308 set x $ac_tag 20309 IFS=$ac_save_IFS 20310 shift 20311 ac_file=$1 20312 shift 20313 20314 case $ac_mode in 20315 :L) ac_source=$1;; 20316 :[FH]) 20317 ac_file_inputs= 20318 for ac_f 20319 do 20320 case $ac_f in 20321 -) ac_f="$ac_tmp/stdin";; 20322 *) # Look for the file first in the build tree, then in the source tree 20323 # (if the path is not absolute). The absolute path cannot be DOS-style, 20324 # because $ac_f cannot contain `:'. 20325 test -f "$ac_f" || 20326 case $ac_f in 20327 [\\/$]*) false;; 20328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20329 esac || 20330 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20331 esac 20332 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20333 as_fn_append ac_file_inputs " '$ac_f'" 20334 done 20335 20336 # Let's still pretend it is `configure' which instantiates (i.e., don't 20337 # use $as_me), people would be surprised to read: 20338 # /* config.h. Generated by config.status. */ 20339 configure_input='Generated from '` 20340 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20341 `' by configure.' 20342 if test x"$ac_file" != x-; then 20343 configure_input="$ac_file. $configure_input" 20344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20345$as_echo "$as_me: creating $ac_file" >&6;} 20346 fi 20347 # Neutralize special characters interpreted by sed in replacement strings. 20348 case $configure_input in #( 20349 *\&* | *\|* | *\\* ) 20350 ac_sed_conf_input=`$as_echo "$configure_input" | 20351 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20352 *) ac_sed_conf_input=$configure_input;; 20353 esac 20354 20355 case $ac_tag in 20356 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20358 esac 20359 ;; 20360 esac 20361 20362 ac_dir=`$as_dirname -- "$ac_file" || 20363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20364 X"$ac_file" : 'X\(//\)[^/]' \| \ 20365 X"$ac_file" : 'X\(//\)$' \| \ 20366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20367$as_echo X"$ac_file" | 20368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20369 s//\1/ 20370 q 20371 } 20372 /^X\(\/\/\)[^/].*/{ 20373 s//\1/ 20374 q 20375 } 20376 /^X\(\/\/\)$/{ 20377 s//\1/ 20378 q 20379 } 20380 /^X\(\/\).*/{ 20381 s//\1/ 20382 q 20383 } 20384 s/.*/./; q'` 20385 as_dir="$ac_dir"; as_fn_mkdir_p 20386 ac_builddir=. 20387 20388case "$ac_dir" in 20389.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20390*) 20391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20392 # A ".." for each directory in $ac_dir_suffix. 20393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20394 case $ac_top_builddir_sub in 20395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20397 esac ;; 20398esac 20399ac_abs_top_builddir=$ac_pwd 20400ac_abs_builddir=$ac_pwd$ac_dir_suffix 20401# for backward compatibility: 20402ac_top_builddir=$ac_top_build_prefix 20403 20404case $srcdir in 20405 .) # We are building in place. 20406 ac_srcdir=. 20407 ac_top_srcdir=$ac_top_builddir_sub 20408 ac_abs_top_srcdir=$ac_pwd ;; 20409 [\\/]* | ?:[\\/]* ) # Absolute name. 20410 ac_srcdir=$srcdir$ac_dir_suffix; 20411 ac_top_srcdir=$srcdir 20412 ac_abs_top_srcdir=$srcdir ;; 20413 *) # Relative name. 20414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20415 ac_top_srcdir=$ac_top_build_prefix$srcdir 20416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20417esac 20418ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20419 20420 20421 case $ac_mode in 20422 :F) 20423 # 20424 # CONFIG_FILE 20425 # 20426 20427 case $INSTALL in 20428 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20429 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20430 esac 20431 ac_MKDIR_P=$MKDIR_P 20432 case $MKDIR_P in 20433 [\\/$]* | ?:[\\/]* ) ;; 20434 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20435 esac 20436_ACEOF 20437 20438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20439# If the template does not know about datarootdir, expand it. 20440# FIXME: This hack should be removed a few years after 2.60. 20441ac_datarootdir_hack=; ac_datarootdir_seen= 20442ac_sed_dataroot=' 20443/datarootdir/ { 20444 p 20445 q 20446} 20447/@datadir@/p 20448/@docdir@/p 20449/@infodir@/p 20450/@localedir@/p 20451/@mandir@/p' 20452case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20453*datarootdir*) ac_datarootdir_seen=yes;; 20454*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20456$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20457_ACEOF 20458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20459 ac_datarootdir_hack=' 20460 s&@datadir@&$datadir&g 20461 s&@docdir@&$docdir&g 20462 s&@infodir@&$infodir&g 20463 s&@localedir@&$localedir&g 20464 s&@mandir@&$mandir&g 20465 s&\\\${datarootdir}&$datarootdir&g' ;; 20466esac 20467_ACEOF 20468 20469# Neutralize VPATH when `$srcdir' = `.'. 20470# Shell code in configure.ac might set extrasub. 20471# FIXME: do we really want to maintain this feature? 20472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20473ac_sed_extra="$ac_vpsub 20474$extrasub 20475_ACEOF 20476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20477:t 20478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20479s|@configure_input@|$ac_sed_conf_input|;t t 20480s&@top_builddir@&$ac_top_builddir_sub&;t t 20481s&@top_build_prefix@&$ac_top_build_prefix&;t t 20482s&@srcdir@&$ac_srcdir&;t t 20483s&@abs_srcdir@&$ac_abs_srcdir&;t t 20484s&@top_srcdir@&$ac_top_srcdir&;t t 20485s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20486s&@builddir@&$ac_builddir&;t t 20487s&@abs_builddir@&$ac_abs_builddir&;t t 20488s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20489s&@INSTALL@&$ac_INSTALL&;t t 20490s&@MKDIR_P@&$ac_MKDIR_P&;t t 20491$ac_datarootdir_hack 20492" 20493eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20494 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20495 20496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20497 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20499 "$ac_tmp/out"`; test -z "$ac_out"; } && 20500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20501which seems to be undefined. Please make sure it is defined" >&5 20502$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20503which seems to be undefined. Please make sure it is defined" >&2;} 20504 20505 rm -f "$ac_tmp/stdin" 20506 case $ac_file in 20507 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20508 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20509 esac \ 20510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20511 ;; 20512 :H) 20513 # 20514 # CONFIG_HEADER 20515 # 20516 if test x"$ac_file" != x-; then 20517 { 20518 $as_echo "/* $configure_input */" \ 20519 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20520 } >"$ac_tmp/config.h" \ 20521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20522 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20524$as_echo "$as_me: $ac_file is unchanged" >&6;} 20525 else 20526 rm -f "$ac_file" 20527 mv "$ac_tmp/config.h" "$ac_file" \ 20528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20529 fi 20530 else 20531 $as_echo "/* $configure_input */" \ 20532 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20533 || as_fn_error $? "could not create -" "$LINENO" 5 20534 fi 20535# Compute "$ac_file"'s index in $config_headers. 20536_am_arg="$ac_file" 20537_am_stamp_count=1 20538for _am_header in $config_headers :; do 20539 case $_am_header in 20540 $_am_arg | $_am_arg:* ) 20541 break ;; 20542 * ) 20543 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20544 esac 20545done 20546echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20547$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20548 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20549 X"$_am_arg" : 'X\(//\)$' \| \ 20550 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20551$as_echo X"$_am_arg" | 20552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20553 s//\1/ 20554 q 20555 } 20556 /^X\(\/\/\)[^/].*/{ 20557 s//\1/ 20558 q 20559 } 20560 /^X\(\/\/\)$/{ 20561 s//\1/ 20562 q 20563 } 20564 /^X\(\/\).*/{ 20565 s//\1/ 20566 q 20567 } 20568 s/.*/./; q'`/stamp-h$_am_stamp_count 20569 ;; 20570 20571 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20572$as_echo "$as_me: executing $ac_file commands" >&6;} 20573 ;; 20574 esac 20575 20576 20577 case $ac_file$ac_mode in 20578 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20579 # Older Autoconf quotes --file arguments for eval, but not when files 20580 # are listed without --file. Let's play safe and only enable the eval 20581 # if we detect the quoting. 20582 case $CONFIG_FILES in 20583 *\'*) eval set x "$CONFIG_FILES" ;; 20584 *) set x $CONFIG_FILES ;; 20585 esac 20586 shift 20587 for mf 20588 do 20589 # Strip MF so we end up with the name of the file. 20590 mf=`echo "$mf" | sed -e 's/:.*$//'` 20591 # Check whether this is an Automake generated Makefile or not. 20592 # We used to match only the files named 'Makefile.in', but 20593 # some people rename them; so instead we look at the file content. 20594 # Grep'ing the first line is not enough: some people post-process 20595 # each Makefile.in and add a new line on top of each file to say so. 20596 # Grep'ing the whole file is not good either: AIX grep has a line 20597 # limit of 2048, but all sed's we know have understand at least 4000. 20598 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20599 dirpart=`$as_dirname -- "$mf" || 20600$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20601 X"$mf" : 'X\(//\)[^/]' \| \ 20602 X"$mf" : 'X\(//\)$' \| \ 20603 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20604$as_echo X"$mf" | 20605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20606 s//\1/ 20607 q 20608 } 20609 /^X\(\/\/\)[^/].*/{ 20610 s//\1/ 20611 q 20612 } 20613 /^X\(\/\/\)$/{ 20614 s//\1/ 20615 q 20616 } 20617 /^X\(\/\).*/{ 20618 s//\1/ 20619 q 20620 } 20621 s/.*/./; q'` 20622 else 20623 continue 20624 fi 20625 # Extract the definition of DEPDIR, am__include, and am__quote 20626 # from the Makefile without running 'make'. 20627 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20628 test -z "$DEPDIR" && continue 20629 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20630 test -z "$am__include" && continue 20631 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20632 # Find all dependency output files, they are included files with 20633 # $(DEPDIR) in their names. We invoke sed twice because it is the 20634 # simplest approach to changing $(DEPDIR) to its actual value in the 20635 # expansion. 20636 for file in `sed -n " 20637 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20638 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20639 # Make sure the directory exists. 20640 test -f "$dirpart/$file" && continue 20641 fdir=`$as_dirname -- "$file" || 20642$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20643 X"$file" : 'X\(//\)[^/]' \| \ 20644 X"$file" : 'X\(//\)$' \| \ 20645 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20646$as_echo X"$file" | 20647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20648 s//\1/ 20649 q 20650 } 20651 /^X\(\/\/\)[^/].*/{ 20652 s//\1/ 20653 q 20654 } 20655 /^X\(\/\/\)$/{ 20656 s//\1/ 20657 q 20658 } 20659 /^X\(\/\).*/{ 20660 s//\1/ 20661 q 20662 } 20663 s/.*/./; q'` 20664 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20665 # echo "creating $dirpart/$file" 20666 echo '# dummy' > "$dirpart/$file" 20667 done 20668 done 20669} 20670 ;; 20671 "libtool":C) 20672 20673 # See if we are running on zsh, and set the options which allow our 20674 # commands through without removal of \ escapes. 20675 if test -n "${ZSH_VERSION+set}" ; then 20676 setopt NO_GLOB_SUBST 20677 fi 20678 20679 cfgfile="${ofile}T" 20680 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20681 $RM "$cfgfile" 20682 20683 cat <<_LT_EOF >> "$cfgfile" 20684#! $SHELL 20685 20686# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20687# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20688# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20689# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20690# 20691# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20692# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20693# Foundation, Inc. 20694# Written by Gordon Matzigkeit, 1996 20695# 20696# This file is part of GNU Libtool. 20697# 20698# GNU Libtool is free software; you can redistribute it and/or 20699# modify it under the terms of the GNU General Public License as 20700# published by the Free Software Foundation; either version 2 of 20701# the License, or (at your option) any later version. 20702# 20703# As a special exception to the GNU General Public License, 20704# if you distribute this file as part of a program or library that 20705# is built using GNU Libtool, you may include this file under the 20706# same distribution terms that you use for the rest of that program. 20707# 20708# GNU Libtool is distributed in the hope that it will be useful, 20709# but WITHOUT ANY WARRANTY; without even the implied warranty of 20710# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20711# GNU General Public License for more details. 20712# 20713# You should have received a copy of the GNU General Public License 20714# along with GNU Libtool; see the file COPYING. If not, a copy 20715# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20716# obtained by writing to the Free Software Foundation, Inc., 20717# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20718 20719 20720# The names of the tagged configurations supported by this script. 20721available_tags="" 20722 20723# ### BEGIN LIBTOOL CONFIG 20724 20725# Which release of libtool.m4 was used? 20726macro_version=$macro_version 20727macro_revision=$macro_revision 20728 20729# Whether or not to build shared libraries. 20730build_libtool_libs=$enable_shared 20731 20732# Whether or not to build static libraries. 20733build_old_libs=$enable_static 20734 20735# What type of objects to build. 20736pic_mode=$pic_mode 20737 20738# Whether or not to optimize for fast installation. 20739fast_install=$enable_fast_install 20740 20741# Shell to use when invoking shell scripts. 20742SHELL=$lt_SHELL 20743 20744# An echo program that protects backslashes. 20745ECHO=$lt_ECHO 20746 20747# The PATH separator for the build system. 20748PATH_SEPARATOR=$lt_PATH_SEPARATOR 20749 20750# The host system. 20751host_alias=$host_alias 20752host=$host 20753host_os=$host_os 20754 20755# The build system. 20756build_alias=$build_alias 20757build=$build 20758build_os=$build_os 20759 20760# A sed program that does not truncate output. 20761SED=$lt_SED 20762 20763# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20764Xsed="\$SED -e 1s/^X//" 20765 20766# A grep program that handles long lines. 20767GREP=$lt_GREP 20768 20769# An ERE matcher. 20770EGREP=$lt_EGREP 20771 20772# A literal string matcher. 20773FGREP=$lt_FGREP 20774 20775# A BSD- or MS-compatible name lister. 20776NM=$lt_NM 20777 20778# Whether we need soft or hard links. 20779LN_S=$lt_LN_S 20780 20781# What is the maximum length of a command? 20782max_cmd_len=$max_cmd_len 20783 20784# Object file suffix (normally "o"). 20785objext=$ac_objext 20786 20787# Executable file suffix (normally ""). 20788exeext=$exeext 20789 20790# whether the shell understands "unset". 20791lt_unset=$lt_unset 20792 20793# turn spaces into newlines. 20794SP2NL=$lt_lt_SP2NL 20795 20796# turn newlines into spaces. 20797NL2SP=$lt_lt_NL2SP 20798 20799# convert \$build file names to \$host format. 20800to_host_file_cmd=$lt_cv_to_host_file_cmd 20801 20802# convert \$build files to toolchain format. 20803to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20804 20805# An object symbol dumper. 20806OBJDUMP=$lt_OBJDUMP 20807 20808# Method to check whether dependent libraries are shared objects. 20809deplibs_check_method=$lt_deplibs_check_method 20810 20811# Command to use when deplibs_check_method = "file_magic". 20812file_magic_cmd=$lt_file_magic_cmd 20813 20814# How to find potential files when deplibs_check_method = "file_magic". 20815file_magic_glob=$lt_file_magic_glob 20816 20817# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20818want_nocaseglob=$lt_want_nocaseglob 20819 20820# DLL creation program. 20821DLLTOOL=$lt_DLLTOOL 20822 20823# Command to associate shared and link libraries. 20824sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20825 20826# The archiver. 20827AR=$lt_AR 20828 20829# Flags to create an archive. 20830AR_FLAGS=$lt_AR_FLAGS 20831 20832# How to feed a file listing to the archiver. 20833archiver_list_spec=$lt_archiver_list_spec 20834 20835# A symbol stripping program. 20836STRIP=$lt_STRIP 20837 20838# Commands used to install an old-style archive. 20839RANLIB=$lt_RANLIB 20840old_postinstall_cmds=$lt_old_postinstall_cmds 20841old_postuninstall_cmds=$lt_old_postuninstall_cmds 20842 20843# Whether to use a lock for old archive extraction. 20844lock_old_archive_extraction=$lock_old_archive_extraction 20845 20846# A C compiler. 20847LTCC=$lt_CC 20848 20849# LTCC compiler flags. 20850LTCFLAGS=$lt_CFLAGS 20851 20852# Take the output of nm and produce a listing of raw symbols and C names. 20853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20854 20855# Transform the output of nm in a proper C declaration. 20856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20857 20858# Transform the output of nm in a C name address pair. 20859global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20860 20861# Transform the output of nm in a C name address pair when lib prefix is needed. 20862global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20863 20864# Specify filename containing input files for \$NM. 20865nm_file_list_spec=$lt_nm_file_list_spec 20866 20867# The root where to search for dependent libraries,and in which our libraries should be installed. 20868lt_sysroot=$lt_sysroot 20869 20870# The name of the directory that contains temporary libtool files. 20871objdir=$objdir 20872 20873# Used to examine libraries when file_magic_cmd begins with "file". 20874MAGIC_CMD=$MAGIC_CMD 20875 20876# Must we lock files when doing compilation? 20877need_locks=$lt_need_locks 20878 20879# Manifest tool. 20880MANIFEST_TOOL=$lt_MANIFEST_TOOL 20881 20882# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20883DSYMUTIL=$lt_DSYMUTIL 20884 20885# Tool to change global to local symbols on Mac OS X. 20886NMEDIT=$lt_NMEDIT 20887 20888# Tool to manipulate fat objects and archives on Mac OS X. 20889LIPO=$lt_LIPO 20890 20891# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20892OTOOL=$lt_OTOOL 20893 20894# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20895OTOOL64=$lt_OTOOL64 20896 20897# Old archive suffix (normally "a"). 20898libext=$libext 20899 20900# Shared library suffix (normally ".so"). 20901shrext_cmds=$lt_shrext_cmds 20902 20903# The commands to extract the exported symbol list from a shared archive. 20904extract_expsyms_cmds=$lt_extract_expsyms_cmds 20905 20906# Variables whose values should be saved in libtool wrapper scripts and 20907# restored at link time. 20908variables_saved_for_relink=$lt_variables_saved_for_relink 20909 20910# Do we need the "lib" prefix for modules? 20911need_lib_prefix=$need_lib_prefix 20912 20913# Do we need a version for libraries? 20914need_version=$need_version 20915 20916# Library versioning type. 20917version_type=$version_type 20918 20919# Shared library runtime path variable. 20920runpath_var=$runpath_var 20921 20922# Shared library path variable. 20923shlibpath_var=$shlibpath_var 20924 20925# Is shlibpath searched before the hard-coded library search path? 20926shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20927 20928# Format of library name prefix. 20929libname_spec=$lt_libname_spec 20930 20931# List of archive names. First name is the real one, the rest are links. 20932# The last name is the one that the linker finds with -lNAME 20933library_names_spec=$lt_library_names_spec 20934 20935# The coded name of the library, if different from the real name. 20936soname_spec=$lt_soname_spec 20937 20938# Permission mode override for installation of shared libraries. 20939install_override_mode=$lt_install_override_mode 20940 20941# Command to use after installation of a shared archive. 20942postinstall_cmds=$lt_postinstall_cmds 20943 20944# Command to use after uninstallation of a shared archive. 20945postuninstall_cmds=$lt_postuninstall_cmds 20946 20947# Commands used to finish a libtool library installation in a directory. 20948finish_cmds=$lt_finish_cmds 20949 20950# As "finish_cmds", except a single script fragment to be evaled but 20951# not shown. 20952finish_eval=$lt_finish_eval 20953 20954# Whether we should hardcode library paths into libraries. 20955hardcode_into_libs=$hardcode_into_libs 20956 20957# Compile-time system search path for libraries. 20958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20959 20960# Run-time system search path for libraries. 20961sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20962 20963# Whether dlopen is supported. 20964dlopen_support=$enable_dlopen 20965 20966# Whether dlopen of programs is supported. 20967dlopen_self=$enable_dlopen_self 20968 20969# Whether dlopen of statically linked programs is supported. 20970dlopen_self_static=$enable_dlopen_self_static 20971 20972# Commands to strip libraries. 20973old_striplib=$lt_old_striplib 20974striplib=$lt_striplib 20975 20976 20977# The linker used to build libraries. 20978LD=$lt_LD 20979 20980# How to create reloadable object files. 20981reload_flag=$lt_reload_flag 20982reload_cmds=$lt_reload_cmds 20983 20984# Commands used to build an old-style archive. 20985old_archive_cmds=$lt_old_archive_cmds 20986 20987# A language specific compiler. 20988CC=$lt_compiler 20989 20990# Is the compiler the GNU compiler? 20991with_gcc=$GCC 20992 20993# Compiler flag to turn off builtin functions. 20994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20995 20996# Additional compiler flags for building library objects. 20997pic_flag=$lt_lt_prog_compiler_pic 20998 20999# How to pass a linker flag through the compiler. 21000wl=$lt_lt_prog_compiler_wl 21001 21002# Compiler flag to prevent dynamic linking. 21003link_static_flag=$lt_lt_prog_compiler_static 21004 21005# Does compiler simultaneously support -c and -o options? 21006compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21007 21008# Whether or not to add -lc for building shared libraries. 21009build_libtool_need_lc=$archive_cmds_need_lc 21010 21011# Whether or not to disallow shared libs when runtime libs are static. 21012allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21013 21014# Compiler flag to allow reflexive dlopens. 21015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21016 21017# Compiler flag to generate shared objects directly from archives. 21018whole_archive_flag_spec=$lt_whole_archive_flag_spec 21019 21020# Whether the compiler copes with passing no objects directly. 21021compiler_needs_object=$lt_compiler_needs_object 21022 21023# Create an old-style archive from a shared archive. 21024old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21025 21026# Create a temporary old-style archive to link instead of a shared archive. 21027old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21028 21029# Commands used to build a shared archive. 21030archive_cmds=$lt_archive_cmds 21031archive_expsym_cmds=$lt_archive_expsym_cmds 21032 21033# Commands used to build a loadable module if different from building 21034# a shared archive. 21035module_cmds=$lt_module_cmds 21036module_expsym_cmds=$lt_module_expsym_cmds 21037 21038# Whether we are building with GNU ld or not. 21039with_gnu_ld=$lt_with_gnu_ld 21040 21041# Flag that allows shared libraries with undefined symbols to be built. 21042allow_undefined_flag=$lt_allow_undefined_flag 21043 21044# Flag that enforces no undefined symbols. 21045no_undefined_flag=$lt_no_undefined_flag 21046 21047# Flag to hardcode \$libdir into a binary during linking. 21048# This must work even if \$libdir does not exist 21049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21050 21051# Whether we need a single "-rpath" flag with a separated argument. 21052hardcode_libdir_separator=$lt_hardcode_libdir_separator 21053 21054# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21055# DIR into the resulting binary. 21056hardcode_direct=$hardcode_direct 21057 21058# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21059# DIR into the resulting binary and the resulting library dependency is 21060# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21061# library is relocated. 21062hardcode_direct_absolute=$hardcode_direct_absolute 21063 21064# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21065# into the resulting binary. 21066hardcode_minus_L=$hardcode_minus_L 21067 21068# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21069# into the resulting binary. 21070hardcode_shlibpath_var=$hardcode_shlibpath_var 21071 21072# Set to "yes" if building a shared library automatically hardcodes DIR 21073# into the library and all subsequent libraries and executables linked 21074# against it. 21075hardcode_automatic=$hardcode_automatic 21076 21077# Set to yes if linker adds runtime paths of dependent libraries 21078# to runtime path list. 21079inherit_rpath=$inherit_rpath 21080 21081# Whether libtool must link a program against all its dependency libraries. 21082link_all_deplibs=$link_all_deplibs 21083 21084# Set to "yes" if exported symbols are required. 21085always_export_symbols=$always_export_symbols 21086 21087# The commands to list exported symbols. 21088export_symbols_cmds=$lt_export_symbols_cmds 21089 21090# Symbols that should not be listed in the preloaded symbols. 21091exclude_expsyms=$lt_exclude_expsyms 21092 21093# Symbols that must always be exported. 21094include_expsyms=$lt_include_expsyms 21095 21096# Commands necessary for linking programs (against libraries) with templates. 21097prelink_cmds=$lt_prelink_cmds 21098 21099# Commands necessary for finishing linking programs. 21100postlink_cmds=$lt_postlink_cmds 21101 21102# Specify filename containing input files. 21103file_list_spec=$lt_file_list_spec 21104 21105# How to hardcode a shared library path into an executable. 21106hardcode_action=$hardcode_action 21107 21108# ### END LIBTOOL CONFIG 21109 21110_LT_EOF 21111 21112 case $host_os in 21113 aix3*) 21114 cat <<\_LT_EOF >> "$cfgfile" 21115# AIX sometimes has problems with the GCC collect2 program. For some 21116# reason, if we set the COLLECT_NAMES environment variable, the problems 21117# vanish in a puff of smoke. 21118if test "X${COLLECT_NAMES+set}" != Xset; then 21119 COLLECT_NAMES= 21120 export COLLECT_NAMES 21121fi 21122_LT_EOF 21123 ;; 21124 esac 21125 21126 21127ltmain="$ac_aux_dir/ltmain.sh" 21128 21129 21130 # We use sed instead of cat because bash on DJGPP gets confused if 21131 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21132 # text mode, it properly converts lines to CR/LF. This bash problem 21133 # is reportedly fixed, but why not run on old versions too? 21134 sed '$q' "$ltmain" >> "$cfgfile" \ 21135 || (rm -f "$cfgfile"; exit 1) 21136 21137 if test x"$xsi_shell" = xyes; then 21138 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21139func_dirname ()\ 21140{\ 21141\ case ${1} in\ 21142\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21143\ * ) func_dirname_result="${3}" ;;\ 21144\ esac\ 21145} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21146 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21148test 0 -eq $? || _lt_function_replace_fail=: 21149 21150 21151 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21152func_basename ()\ 21153{\ 21154\ func_basename_result="${1##*/}"\ 21155} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21156 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21158test 0 -eq $? || _lt_function_replace_fail=: 21159 21160 21161 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21162func_dirname_and_basename ()\ 21163{\ 21164\ case ${1} in\ 21165\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21166\ * ) func_dirname_result="${3}" ;;\ 21167\ esac\ 21168\ func_basename_result="${1##*/}"\ 21169} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21170 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21172test 0 -eq $? || _lt_function_replace_fail=: 21173 21174 21175 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21176func_stripname ()\ 21177{\ 21178\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21179\ # positional parameters, so assign one to ordinary parameter first.\ 21180\ func_stripname_result=${3}\ 21181\ func_stripname_result=${func_stripname_result#"${1}"}\ 21182\ func_stripname_result=${func_stripname_result%"${2}"}\ 21183} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21184 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21186test 0 -eq $? || _lt_function_replace_fail=: 21187 21188 21189 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21190func_split_long_opt ()\ 21191{\ 21192\ func_split_long_opt_name=${1%%=*}\ 21193\ func_split_long_opt_arg=${1#*=}\ 21194} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21195 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21197test 0 -eq $? || _lt_function_replace_fail=: 21198 21199 21200 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21201func_split_short_opt ()\ 21202{\ 21203\ func_split_short_opt_arg=${1#??}\ 21204\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21205} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21206 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21208test 0 -eq $? || _lt_function_replace_fail=: 21209 21210 21211 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21212func_lo2o ()\ 21213{\ 21214\ case ${1} in\ 21215\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21216\ *) func_lo2o_result=${1} ;;\ 21217\ esac\ 21218} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21219 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21221test 0 -eq $? || _lt_function_replace_fail=: 21222 21223 21224 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21225func_xform ()\ 21226{\ 21227 func_xform_result=${1%.*}.lo\ 21228} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21229 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21231test 0 -eq $? || _lt_function_replace_fail=: 21232 21233 21234 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21235func_arith ()\ 21236{\ 21237 func_arith_result=$(( $* ))\ 21238} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21239 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21241test 0 -eq $? || _lt_function_replace_fail=: 21242 21243 21244 sed -e '/^func_len ()$/,/^} # func_len /c\ 21245func_len ()\ 21246{\ 21247 func_len_result=${#1}\ 21248} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21249 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21251test 0 -eq $? || _lt_function_replace_fail=: 21252 21253fi 21254 21255if test x"$lt_shell_append" = xyes; then 21256 sed -e '/^func_append ()$/,/^} # func_append /c\ 21257func_append ()\ 21258{\ 21259 eval "${1}+=\\${2}"\ 21260} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21261 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21263test 0 -eq $? || _lt_function_replace_fail=: 21264 21265 21266 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21267func_append_quoted ()\ 21268{\ 21269\ func_quote_for_eval "${2}"\ 21270\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21271} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21272 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21274test 0 -eq $? || _lt_function_replace_fail=: 21275 21276 21277 # Save a `func_append' function call where possible by direct use of '+=' 21278 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21279 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21281 test 0 -eq $? || _lt_function_replace_fail=: 21282else 21283 # Save a `func_append' function call even when '+=' is not available 21284 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21285 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21287 test 0 -eq $? || _lt_function_replace_fail=: 21288fi 21289 21290if test x"$_lt_function_replace_fail" = x":"; then 21291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21292$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21293fi 21294 21295 21296 mv -f "$cfgfile" "$ofile" || 21297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21298 chmod +x "$ofile" 21299 21300 ;; 21301 "libtool_hack":C) 21302 cp -f libtool libtool_ 21303 test -z "$SED" && SED=sed 21304 $SED '1,/^soname_spec/{ 21305/^soname_spec/i\ 21306# X.Org hack to match monolithic Xaw SONAME\ 21307xorglibxawname="libXaw" 21308/^soname_spec/s/libname/xorglibxawname/ 21309}' libtool_ > libtool 21310 rm -f libtool_ 21311 ;; 21312 21313 esac 21314done # for ac_tag 21315 21316 21317as_fn_exit 0 21318_ACEOF 21319ac_clean_files=$ac_clean_files_save 21320 21321test $ac_write_fail = 0 || 21322 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21323 21324 21325# configure is writing to config.log, and then calls config.status. 21326# config.status does its own redirection, appending to config.log. 21327# Unfortunately, on DOS this fails, as config.log is still kept open 21328# by configure, so config.status won't be able to write to it; its 21329# output is simply discarded. So we exec the FD to /dev/null, 21330# effectively closing config.log, so it can be properly (re)opened and 21331# appended to by config.status. When coming back to configure, we 21332# need to make the FD available again. 21333if test "$no_create" != yes; then 21334 ac_cs_success=: 21335 ac_config_status_args= 21336 test "$silent" = yes && 21337 ac_config_status_args="$ac_config_status_args --quiet" 21338 exec 5>/dev/null 21339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21340 exec 5>>config.log 21341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21342 # would make configure fail if this is the last instruction. 21343 $ac_cs_success || as_fn_exit 1 21344fi 21345if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21347$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21348fi 21349 21350