configure revision 0a6b08f8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libSM 1.2.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libSM' 633PACKAGE_TARNAME='libSM' 634PACKAGE_VERSION='1.2.2' 635PACKAGE_STRING='libSM 1.2.2' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639ac_unique_file="Makefile.am" 640# Factoring default headers for most tests. 641ac_includes_default="\ 642#include <stdio.h> 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef STDC_HEADERS 650# include <stdlib.h> 651# include <stddef.h> 652#else 653# ifdef HAVE_STDLIB_H 654# include <stdlib.h> 655# endif 656#endif 657#ifdef HAVE_STRING_H 658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659# include <memory.h> 660# endif 661# include <string.h> 662#endif 663#ifdef HAVE_STRINGS_H 664# include <strings.h> 665#endif 666#ifdef HAVE_INTTYPES_H 667# include <inttypes.h> 668#endif 669#ifdef HAVE_STDINT_H 670# include <stdint.h> 671#endif 672#ifdef HAVE_UNISTD_H 673# include <unistd.h> 674#endif" 675 676ac_subst_vars='am__EXEEXT_FALSE 677am__EXEEXT_TRUE 678LTLIBOBJS 679LIBOBJS 680WITH_LIBUUID_FALSE 681WITH_LIBUUID_TRUE 682LIBUUID_LIBS 683LIBUUID_CFLAGS 684SM_LIBS 685SM_CFLAGS 686HAVE_STYLESHEETS_FALSE 687HAVE_STYLESHEETS_TRUE 688XSL_STYLESHEET 689STYLESHEET_SRCDIR 690XORG_SGML_PATH 691HAVE_XSLTPROC_FALSE 692HAVE_XSLTPROC_TRUE 693XSLTPROC 694HAVE_FOP_FALSE 695HAVE_FOP_TRUE 696FOP 697HAVE_XMLTO_FALSE 698HAVE_XMLTO_TRUE 699HAVE_XMLTO_TEXT_FALSE 700HAVE_XMLTO_TEXT_TRUE 701XMLTO 702ENABLE_DOCS_FALSE 703ENABLE_DOCS_TRUE 704MAN_SUBSTS 705XORG_MAN_PAGE 706ADMIN_MAN_DIR 707DRIVER_MAN_DIR 708MISC_MAN_DIR 709FILE_MAN_DIR 710LIB_MAN_DIR 711APP_MAN_DIR 712ADMIN_MAN_SUFFIX 713DRIVER_MAN_SUFFIX 714MISC_MAN_SUFFIX 715FILE_MAN_SUFFIX 716LIB_MAN_SUFFIX 717APP_MAN_SUFFIX 718INSTALL_CMD 719PKG_CONFIG 720CHANGELOG_CMD 721STRICT_CFLAGS 722CWARNFLAGS 723BASE_CFLAGS 724CPP 725OTOOL64 726OTOOL 727LIPO 728NMEDIT 729DSYMUTIL 730MANIFEST_TOOL 731RANLIB 732ac_ct_AR 733AR 734DLLTOOL 735OBJDUMP 736LN_S 737NM 738ac_ct_DUMPBIN 739DUMPBIN 740LD 741FGREP 742EGREP 743GREP 744SED 745am__fastdepCC_FALSE 746am__fastdepCC_TRUE 747CCDEPMODE 748am__nodep 749AMDEPBACKSLASH 750AMDEP_FALSE 751AMDEP_TRUE 752am__quote 753am__include 754DEPDIR 755OBJEXT 756EXEEXT 757ac_ct_CC 758CPPFLAGS 759LDFLAGS 760CFLAGS 761CC 762host_os 763host_vendor 764host_cpu 765host 766build_os 767build_vendor 768build_cpu 769build 770LIBTOOL 771AM_BACKSLASH 772AM_DEFAULT_VERBOSITY 773AM_DEFAULT_V 774AM_V 775am__untar 776am__tar 777AMTAR 778am__leading_dot 779SET_MAKE 780AWK 781mkdir_p 782MKDIR_P 783INSTALL_STRIP_PROGRAM 784STRIP 785install_sh 786MAKEINFO 787AUTOHEADER 788AUTOMAKE 789AUTOCONF 790ACLOCAL 791VERSION 792PACKAGE 793CYGPATH_W 794am__isrc 795INSTALL_DATA 796INSTALL_SCRIPT 797INSTALL_PROGRAM 798target_alias 799host_alias 800build_alias 801LIBS 802ECHO_T 803ECHO_N 804ECHO_C 805DEFS 806mandir 807localedir 808libdir 809psdir 810pdfdir 811dvidir 812htmldir 813infodir 814docdir 815oldincludedir 816includedir 817localstatedir 818sharedstatedir 819sysconfdir 820datadir 821datarootdir 822libexecdir 823sbindir 824bindir 825program_transform_name 826prefix 827exec_prefix 828PACKAGE_URL 829PACKAGE_BUGREPORT 830PACKAGE_STRING 831PACKAGE_VERSION 832PACKAGE_TARNAME 833PACKAGE_NAME 834PATH_SEPARATOR 835SHELL' 836ac_subst_files='' 837ac_user_opts=' 838enable_option_checking 839enable_silent_rules 840enable_shared 841enable_static 842with_pic 843enable_fast_install 844enable_dependency_tracking 845with_gnu_ld 846with_sysroot 847enable_libtool_lock 848enable_selective_werror 849enable_strict_compilation 850enable_docs 851with_xmlto 852with_fop 853with_xsltproc 854enable_unix_transport 855enable_tcp_transport 856enable_ipv6 857enable_local_transport 858with_libuuid 859' 860 ac_precious_vars='build_alias 861host_alias 862target_alias 863CC 864CFLAGS 865LDFLAGS 866LIBS 867CPPFLAGS 868CPP 869PKG_CONFIG 870XMLTO 871FOP 872XSLTPROC 873SM_CFLAGS 874SM_LIBS 875LIBUUID_CFLAGS 876LIBUUID_LIBS' 877 878 879# Initialize some variables set by options. 880ac_init_help= 881ac_init_version=false 882ac_unrecognized_opts= 883ac_unrecognized_sep= 884# The variables have the same names as the options, with 885# dashes changed to underlines. 886cache_file=/dev/null 887exec_prefix=NONE 888no_create= 889no_recursion= 890prefix=NONE 891program_prefix=NONE 892program_suffix=NONE 893program_transform_name=s,x,x, 894silent= 895site= 896srcdir= 897verbose= 898x_includes=NONE 899x_libraries=NONE 900 901# Installation directory options. 902# These are left unexpanded so users can "make install exec_prefix=/foo" 903# and all the variables that are supposed to be based on exec_prefix 904# by default will actually change. 905# Use braces instead of parens because sh, perl, etc. also accept them. 906# (The list follows the same order as the GNU Coding Standards.) 907bindir='${exec_prefix}/bin' 908sbindir='${exec_prefix}/sbin' 909libexecdir='${exec_prefix}/libexec' 910datarootdir='${prefix}/share' 911datadir='${datarootdir}' 912sysconfdir='${prefix}/etc' 913sharedstatedir='${prefix}/com' 914localstatedir='${prefix}/var' 915includedir='${prefix}/include' 916oldincludedir='/usr/include' 917docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 918infodir='${datarootdir}/info' 919htmldir='${docdir}' 920dvidir='${docdir}' 921pdfdir='${docdir}' 922psdir='${docdir}' 923libdir='${exec_prefix}/lib' 924localedir='${datarootdir}/locale' 925mandir='${datarootdir}/man' 926 927ac_prev= 928ac_dashdash= 929for ac_option 930do 931 # If the previous option needs an argument, assign it. 932 if test -n "$ac_prev"; then 933 eval $ac_prev=\$ac_option 934 ac_prev= 935 continue 936 fi 937 938 case $ac_option in 939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 940 *=) ac_optarg= ;; 941 *) ac_optarg=yes ;; 942 esac 943 944 # Accept the important Cygnus configure options, so we can diagnose typos. 945 946 case $ac_dashdash$ac_option in 947 --) 948 ac_dashdash=yes ;; 949 950 -bindir | --bindir | --bindi | --bind | --bin | --bi) 951 ac_prev=bindir ;; 952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 953 bindir=$ac_optarg ;; 954 955 -build | --build | --buil | --bui | --bu) 956 ac_prev=build_alias ;; 957 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 958 build_alias=$ac_optarg ;; 959 960 -cache-file | --cache-file | --cache-fil | --cache-fi \ 961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 962 ac_prev=cache_file ;; 963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 965 cache_file=$ac_optarg ;; 966 967 --config-cache | -C) 968 cache_file=config.cache ;; 969 970 -datadir | --datadir | --datadi | --datad) 971 ac_prev=datadir ;; 972 -datadir=* | --datadir=* | --datadi=* | --datad=*) 973 datadir=$ac_optarg ;; 974 975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 976 | --dataroo | --dataro | --datar) 977 ac_prev=datarootdir ;; 978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 980 datarootdir=$ac_optarg ;; 981 982 -disable-* | --disable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: $ac_useropt" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991"enable_$ac_useropt" 992"*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=no ;; 997 998 -docdir | --docdir | --docdi | --doc | --do) 999 ac_prev=docdir ;; 1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1001 docdir=$ac_optarg ;; 1002 1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1004 ac_prev=dvidir ;; 1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1006 dvidir=$ac_optarg ;; 1007 1008 -enable-* | --enable-*) 1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1010 # Reject names that are not valid shell variable names. 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1012 as_fn_error $? "invalid feature name: $ac_useropt" 1013 ac_useropt_orig=$ac_useropt 1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1015 case $ac_user_opts in 1016 *" 1017"enable_$ac_useropt" 1018"*) ;; 1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1020 ac_unrecognized_sep=', ';; 1021 esac 1022 eval enable_$ac_useropt=\$ac_optarg ;; 1023 1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1026 | --exec | --exe | --ex) 1027 ac_prev=exec_prefix ;; 1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1030 | --exec=* | --exe=* | --ex=*) 1031 exec_prefix=$ac_optarg ;; 1032 1033 -gas | --gas | --ga | --g) 1034 # Obsolete; use --with-gas. 1035 with_gas=yes ;; 1036 1037 -help | --help | --hel | --he | -h) 1038 ac_init_help=long ;; 1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1040 ac_init_help=recursive ;; 1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1042 ac_init_help=short ;; 1043 1044 -host | --host | --hos | --ho) 1045 ac_prev=host_alias ;; 1046 -host=* | --host=* | --hos=* | --ho=*) 1047 host_alias=$ac_optarg ;; 1048 1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1050 ac_prev=htmldir ;; 1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1052 | --ht=*) 1053 htmldir=$ac_optarg ;; 1054 1055 -includedir | --includedir | --includedi | --included | --include \ 1056 | --includ | --inclu | --incl | --inc) 1057 ac_prev=includedir ;; 1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1059 | --includ=* | --inclu=* | --incl=* | --inc=*) 1060 includedir=$ac_optarg ;; 1061 1062 -infodir | --infodir | --infodi | --infod | --info | --inf) 1063 ac_prev=infodir ;; 1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1065 infodir=$ac_optarg ;; 1066 1067 -libdir | --libdir | --libdi | --libd) 1068 ac_prev=libdir ;; 1069 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1070 libdir=$ac_optarg ;; 1071 1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1073 | --libexe | --libex | --libe) 1074 ac_prev=libexecdir ;; 1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1076 | --libexe=* | --libex=* | --libe=*) 1077 libexecdir=$ac_optarg ;; 1078 1079 -localedir | --localedir | --localedi | --localed | --locale) 1080 ac_prev=localedir ;; 1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1082 localedir=$ac_optarg ;; 1083 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1085 | --localstate | --localstat | --localsta | --localst | --locals) 1086 ac_prev=localstatedir ;; 1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1089 localstatedir=$ac_optarg ;; 1090 1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1092 ac_prev=mandir ;; 1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1094 mandir=$ac_optarg ;; 1095 1096 -nfp | --nfp | --nf) 1097 # Obsolete; use --without-fp. 1098 with_fp=no ;; 1099 1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1101 | --no-cr | --no-c | -n) 1102 no_create=yes ;; 1103 1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1106 no_recursion=yes ;; 1107 1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1110 | --oldin | --oldi | --old | --ol | --o) 1111 ac_prev=oldincludedir ;; 1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1115 oldincludedir=$ac_optarg ;; 1116 1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1118 ac_prev=prefix ;; 1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1120 prefix=$ac_optarg ;; 1121 1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1123 | --program-pre | --program-pr | --program-p) 1124 ac_prev=program_prefix ;; 1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1127 program_prefix=$ac_optarg ;; 1128 1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1130 | --program-suf | --program-su | --program-s) 1131 ac_prev=program_suffix ;; 1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1134 program_suffix=$ac_optarg ;; 1135 1136 -program-transform-name | --program-transform-name \ 1137 | --program-transform-nam | --program-transform-na \ 1138 | --program-transform-n | --program-transform- \ 1139 | --program-transform | --program-transfor \ 1140 | --program-transfo | --program-transf \ 1141 | --program-trans | --program-tran \ 1142 | --progr-tra | --program-tr | --program-t) 1143 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1152 1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1154 ac_prev=pdfdir ;; 1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1156 pdfdir=$ac_optarg ;; 1157 1158 -psdir | --psdir | --psdi | --psd | --ps) 1159 ac_prev=psdir ;; 1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1161 psdir=$ac_optarg ;; 1162 1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1164 | -silent | --silent | --silen | --sile | --sil) 1165 silent=yes ;; 1166 1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1168 ac_prev=sbindir ;; 1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1170 | --sbi=* | --sb=*) 1171 sbindir=$ac_optarg ;; 1172 1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1175 | --sharedst | --shareds | --shared | --share | --shar \ 1176 | --sha | --sh) 1177 ac_prev=sharedstatedir ;; 1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1181 | --sha=* | --sh=*) 1182 sharedstatedir=$ac_optarg ;; 1183 1184 -site | --site | --sit) 1185 ac_prev=site ;; 1186 -site=* | --site=* | --sit=*) 1187 site=$ac_optarg ;; 1188 1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1190 ac_prev=srcdir ;; 1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1192 srcdir=$ac_optarg ;; 1193 1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1195 | --syscon | --sysco | --sysc | --sys | --sy) 1196 ac_prev=sysconfdir ;; 1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1199 sysconfdir=$ac_optarg ;; 1200 1201 -target | --target | --targe | --targ | --tar | --ta | --t) 1202 ac_prev=target_alias ;; 1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1204 target_alias=$ac_optarg ;; 1205 1206 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1207 verbose=yes ;; 1208 1209 -version | --version | --versio | --versi | --vers | -V) 1210 ac_init_version=: ;; 1211 1212 -with-* | --with-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: $ac_useropt" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221"with_$ac_useropt" 1222"*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=\$ac_optarg ;; 1227 1228 -without-* | --without-*) 1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1230 # Reject names that are not valid shell variable names. 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1232 as_fn_error $? "invalid package name: $ac_useropt" 1233 ac_useropt_orig=$ac_useropt 1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1235 case $ac_user_opts in 1236 *" 1237"with_$ac_useropt" 1238"*) ;; 1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1240 ac_unrecognized_sep=', ';; 1241 esac 1242 eval with_$ac_useropt=no ;; 1243 1244 --x) 1245 # Obsolete; use --with-x. 1246 with_x=yes ;; 1247 1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1249 | --x-incl | --x-inc | --x-in | --x-i) 1250 ac_prev=x_includes ;; 1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1253 x_includes=$ac_optarg ;; 1254 1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1257 ac_prev=x_libraries ;; 1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1260 x_libraries=$ac_optarg ;; 1261 1262 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1263Try \`$0 --help' for more information" 1264 ;; 1265 1266 *=*) 1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1268 # Reject names that are not valid shell variable names. 1269 case $ac_envvar in #( 1270 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1272 esac 1273 eval $ac_envvar=\$ac_optarg 1274 export $ac_envvar ;; 1275 1276 *) 1277 # FIXME: should be removed in autoconf 3.0. 1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1282 ;; 1283 1284 esac 1285done 1286 1287if test -n "$ac_prev"; then 1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1289 as_fn_error $? "missing argument to $ac_option" 1290fi 1291 1292if test -n "$ac_unrecognized_opts"; then 1293 case $enable_option_checking in 1294 no) ;; 1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1297 esac 1298fi 1299 1300# Check all directory arguments for consistency. 1301for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1302 datadir sysconfdir sharedstatedir localstatedir includedir \ 1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1304 libdir localedir mandir 1305do 1306 eval ac_val=\$$ac_var 1307 # Remove trailing slashes. 1308 case $ac_val in 1309 */ ) 1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1311 eval $ac_var=\$ac_val;; 1312 esac 1313 # Be sure to have absolute directory names. 1314 case $ac_val in 1315 [\\/$]* | ?:[\\/]* ) continue;; 1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1317 esac 1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1319done 1320 1321# There might be people who depend on the old broken behavior: `$host' 1322# used to hold the argument of --host etc. 1323# FIXME: To remove some day. 1324build=$build_alias 1325host=$host_alias 1326target=$target_alias 1327 1328# FIXME: To remove some day. 1329if test "x$host_alias" != x; then 1330 if test "x$build_alias" = x; then 1331 cross_compiling=maybe 1332 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1333 If a cross compiler is detected then cross compile mode will be used" >&2 1334 elif test "x$build_alias" != "x$host_alias"; then 1335 cross_compiling=yes 1336 fi 1337fi 1338 1339ac_tool_prefix= 1340test -n "$host_alias" && ac_tool_prefix=$host_alias- 1341 1342test "$silent" = yes && exec 6>/dev/null 1343 1344 1345ac_pwd=`pwd` && test -n "$ac_pwd" && 1346ac_ls_di=`ls -di .` && 1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1348 as_fn_error $? "working directory cannot be determined" 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1350 as_fn_error $? "pwd does not report name of working directory" 1351 1352 1353# Find the source files, if location was not specified. 1354if test -z "$srcdir"; then 1355 ac_srcdir_defaulted=yes 1356 # Try the directory containing this script, then the parent directory. 1357 ac_confdir=`$as_dirname -- "$as_myself" || 1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1359 X"$as_myself" : 'X\(//\)[^/]' \| \ 1360 X"$as_myself" : 'X\(//\)$' \| \ 1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1362$as_echo X"$as_myself" | 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\/\)[^/].*/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\).*/{ 1376 s//\1/ 1377 q 1378 } 1379 s/.*/./; q'` 1380 srcdir=$ac_confdir 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 srcdir=.. 1383 fi 1384else 1385 ac_srcdir_defaulted=no 1386fi 1387if test ! -r "$srcdir/$ac_unique_file"; then 1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1390fi 1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1392ac_abs_confdir=`( 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1394 pwd)` 1395# When building in place, set srcdir=. 1396if test "$ac_abs_confdir" = "$ac_pwd"; then 1397 srcdir=. 1398fi 1399# Remove unnecessary trailing slashes from srcdir. 1400# Double slashes in file names in object file debugging info 1401# mess up M-x gdb in Emacs. 1402case $srcdir in 1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1404esac 1405for ac_var in $ac_precious_vars; do 1406 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1407 eval ac_env_${ac_var}_value=\$${ac_var} 1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1410done 1411 1412# 1413# Report the --help message. 1414# 1415if test "$ac_init_help" = "long"; then 1416 # Omit some internal or obsolete options to make the list less imposing. 1417 # This message is too long to be a string in the A/UX 3.1 sh. 1418 cat <<_ACEOF 1419\`configure' configures libSM 1.2.2 to adapt to many kinds of systems. 1420 1421Usage: $0 [OPTION]... [VAR=VALUE]... 1422 1423To assign environment variables (e.g., CC, CFLAGS...), specify them as 1424VAR=VALUE. See below for descriptions of some of the useful variables. 1425 1426Defaults for the options are specified in brackets. 1427 1428Configuration: 1429 -h, --help display this help and exit 1430 --help=short display options specific to this package 1431 --help=recursive display the short help of all the included packages 1432 -V, --version display version information and exit 1433 -q, --quiet, --silent do not print \`checking ...' messages 1434 --cache-file=FILE cache test results in FILE [disabled] 1435 -C, --config-cache alias for \`--cache-file=config.cache' 1436 -n, --no-create do not create output files 1437 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1438 1439Installation directories: 1440 --prefix=PREFIX install architecture-independent files in PREFIX 1441 [$ac_default_prefix] 1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1443 [PREFIX] 1444 1445By default, \`make install' will install all the files in 1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1447an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1448for instance \`--prefix=\$HOME'. 1449 1450For better control, use the options below. 1451 1452Fine tuning of the installation directories: 1453 --bindir=DIR user executables [EPREFIX/bin] 1454 --sbindir=DIR system admin executables [EPREFIX/sbin] 1455 --libexecdir=DIR program executables [EPREFIX/libexec] 1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1459 --libdir=DIR object code libraries [EPREFIX/lib] 1460 --includedir=DIR C header files [PREFIX/include] 1461 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1464 --infodir=DIR info documentation [DATAROOTDIR/info] 1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1466 --mandir=DIR man documentation [DATAROOTDIR/man] 1467 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM] 1468 --htmldir=DIR html documentation [DOCDIR] 1469 --dvidir=DIR dvi documentation [DOCDIR] 1470 --pdfdir=DIR pdf documentation [DOCDIR] 1471 --psdir=DIR ps documentation [DOCDIR] 1472_ACEOF 1473 1474 cat <<\_ACEOF 1475 1476Program names: 1477 --program-prefix=PREFIX prepend PREFIX to installed program names 1478 --program-suffix=SUFFIX append SUFFIX to installed program names 1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1480 1481System types: 1482 --build=BUILD configure for building on BUILD [guessed] 1483 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1484_ACEOF 1485fi 1486 1487if test -n "$ac_init_help"; then 1488 case $ac_init_help in 1489 short | recursive ) echo "Configuration of libSM 1.2.2:";; 1490 esac 1491 cat <<\_ACEOF 1492 1493Optional Features: 1494 --disable-option-checking ignore unrecognized --enable/--with options 1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1497 --enable-silent-rules less verbose build output (undo: "make V=1") 1498 --disable-silent-rules verbose build output (undo: "make V=0") 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-static[=PKGS] build static libraries [default=yes] 1501 --enable-fast-install[=PKGS] 1502 optimize for fast installation [default=yes] 1503 --enable-dependency-tracking 1504 do not reject slow dependency extractors 1505 --disable-dependency-tracking 1506 speeds up one-time build 1507 --disable-libtool-lock avoid locking (might break parallel builds) 1508 --disable-selective-werror 1509 Turn off selective compiler errors. (default: 1510 enabled) 1511 --enable-strict-compilation 1512 Enable all warnings from compiler and make them 1513 errors (default: disabled) 1514 --enable-docs Enable building the documentation (default: yes) 1515 --enable-unix-transport Enable UNIX domain socket transport 1516 --enable-tcp-transport Enable TCP socket transport 1517 --enable-ipv6 Enable IPv6 support 1518 --enable-local-transport 1519 Enable os-specific local transport 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1527 --with-sysroot=DIR Search for dependent libraries within DIR 1528 (or the compiler's sysroot if not specified). 1529 --with-xmlto Use xmlto to regenerate documentation (default: 1530 auto) 1531 --with-fop Use fop to regenerate documentation (default: auto) 1532 --with-xsltproc Use xsltproc for the transformation of XML documents 1533 (default: auto) 1534 --with-libuuid Build with libuuid support for client IDs 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 PKG_CONFIG path to pkg-config utility 1546 XMLTO Path to xmlto command 1547 FOP Path to fop command 1548 XSLTPROC Path to xsltproc command 1549 SM_CFLAGS C compiler flags for SM, overriding pkg-config 1550 SM_LIBS linker flags for SM, overriding pkg-config 1551 LIBUUID_CFLAGS 1552 C compiler flags for LIBUUID, overriding pkg-config 1553 LIBUUID_LIBS 1554 linker flags for LIBUUID, overriding pkg-config 1555 1556Use these variables to override the choices made by `configure' or to help 1557it to find libraries and programs with nonstandard names/locations. 1558 1559Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1560_ACEOF 1561ac_status=$? 1562fi 1563 1564if test "$ac_init_help" = "recursive"; then 1565 # If there are subdirs, report their specific --help. 1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1567 test -d "$ac_dir" || 1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1569 continue 1570 ac_builddir=. 1571 1572case "$ac_dir" in 1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1574*) 1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1576 # A ".." for each directory in $ac_dir_suffix. 1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1578 case $ac_top_builddir_sub in 1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1581 esac ;; 1582esac 1583ac_abs_top_builddir=$ac_pwd 1584ac_abs_builddir=$ac_pwd$ac_dir_suffix 1585# for backward compatibility: 1586ac_top_builddir=$ac_top_build_prefix 1587 1588case $srcdir in 1589 .) # We are building in place. 1590 ac_srcdir=. 1591 ac_top_srcdir=$ac_top_builddir_sub 1592 ac_abs_top_srcdir=$ac_pwd ;; 1593 [\\/]* | ?:[\\/]* ) # Absolute name. 1594 ac_srcdir=$srcdir$ac_dir_suffix; 1595 ac_top_srcdir=$srcdir 1596 ac_abs_top_srcdir=$srcdir ;; 1597 *) # Relative name. 1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1599 ac_top_srcdir=$ac_top_build_prefix$srcdir 1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1601esac 1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1603 1604 cd "$ac_dir" || { ac_status=$?; continue; } 1605 # Check for guested configure. 1606 if test -f "$ac_srcdir/configure.gnu"; then 1607 echo && 1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1609 elif test -f "$ac_srcdir/configure"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure" --help=recursive 1612 else 1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1614 fi || ac_status=$? 1615 cd "$ac_pwd" || { ac_status=$?; break; } 1616 done 1617fi 1618 1619test -n "$ac_init_help" && exit $ac_status 1620if $ac_init_version; then 1621 cat <<\_ACEOF 1622libSM configure 1.2.2 1623generated by GNU Autoconf 2.68 1624 1625Copyright (C) 2010 Free Software Foundation, Inc. 1626This configure script is free software; the Free Software Foundation 1627gives unlimited permission to copy, distribute and modify it. 1628_ACEOF 1629 exit 1630fi 1631 1632## ------------------------ ## 1633## Autoconf initialization. ## 1634## ------------------------ ## 1635 1636# ac_fn_c_try_compile LINENO 1637# -------------------------- 1638# Try to compile conftest.$ac_ext, and return whether this succeeded. 1639ac_fn_c_try_compile () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 rm -f conftest.$ac_objext 1643 if { { ac_try="$ac_compile" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_compile") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { 1659 test -z "$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 } && test -s conftest.$ac_objext; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_compile 1673 1674# ac_fn_c_try_link LINENO 1675# ----------------------- 1676# Try to link conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_link () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext conftest$ac_exeext 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest$ac_exeext && { 1700 test "$cross_compiling" = yes || 1701 $as_test_x conftest$ac_exeext 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1712 # interfere with the next link command; also delete a directory that is 1713 # left behind by Apple's compiler. We do this before executing the actions. 1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_link 1719 1720# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists and can be compiled using the include files in 1723# INCLUDES, setting the cache variable VAR accordingly. 1724ac_fn_c_check_header_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734$4 1735#include <$2> 1736_ACEOF 1737if ac_fn_c_try_compile "$LINENO"; then : 1738 eval "$3=yes" 1739else 1740 eval "$3=no" 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_header_compile 1750 1751# ac_fn_c_try_cpp LINENO 1752# ---------------------- 1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1754ac_fn_c_try_cpp () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_cpp conftest.$ac_ext" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } > conftest.i && { 1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 }; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_cpp 1787 1788# ac_fn_c_try_run LINENO 1789# ---------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1791# that executables *can* be run. 1792ac_fn_c_try_run () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>&5 1803 ac_status=$? 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1806 { { case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_try") 2>&5 1813 ac_status=$? 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; }; }; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: program exited with status $ac_status" >&5 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=$ac_status 1823fi 1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_c_try_run 1829 1830# ac_fn_c_check_func LINENO FUNC VAR 1831# ---------------------------------- 1832# Tests whether FUNC exists, setting the cache variable VAR accordingly 1833ac_fn_c_check_func () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837$as_echo_n "checking for $2... " >&6; } 1838if eval \${$3+:} false; then : 1839 $as_echo_n "(cached) " >&6 1840else 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1845#define $2 innocuous_$2 1846 1847/* System header to define __stub macros and hopefully few prototypes, 1848 which can conflict with char $2 (); below. 1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1850 <limits.h> exists even on freestanding compilers. */ 1851 1852#ifdef __STDC__ 1853# include <limits.h> 1854#else 1855# include <assert.h> 1856#endif 1857 1858#undef $2 1859 1860/* Override any GCC internal prototype to avoid an error. 1861 Use char because int might match the return type of a GCC 1862 builtin and then its argument prototype would still apply. */ 1863#ifdef __cplusplus 1864extern "C" 1865#endif 1866char $2 (); 1867/* The GNU C library defines this for functions which it implements 1868 to always fail with ENOSYS. Some functions are actually named 1869 something starting with __ and the normal name is an alias. */ 1870#if defined __stub_$2 || defined __stub___$2 1871choke me 1872#endif 1873 1874int 1875main () 1876{ 1877return $2 (); 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882if ac_fn_c_try_link "$LINENO"; then : 1883 eval "$3=yes" 1884else 1885 eval "$3=no" 1886fi 1887rm -f core conftest.err conftest.$ac_objext \ 1888 conftest$ac_exeext conftest.$ac_ext 1889fi 1890eval ac_res=\$$3 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1892$as_echo "$ac_res" >&6; } 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_func 1896 1897# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1898# --------------------------------------------- 1899# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1900# accordingly. 1901ac_fn_c_check_decl () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 as_decl_name=`echo $2|sed 's/ *(.*//'` 1905 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1907$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1908if eval \${$3+:} false; then : 1909 $as_echo_n "(cached) " >&6 1910else 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913$4 1914int 1915main () 1916{ 1917#ifndef $as_decl_name 1918#ifdef __cplusplus 1919 (void) $as_decl_use; 1920#else 1921 (void) $as_decl_name; 1922#endif 1923#endif 1924 1925 ; 1926 return 0; 1927} 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 eval "$3=yes" 1931else 1932 eval "$3=no" 1933fi 1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1935fi 1936eval ac_res=\$$3 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1938$as_echo "$ac_res" >&6; } 1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1940 1941} # ac_fn_c_check_decl 1942 1943# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1944# ---------------------------------------------------- 1945# Tries to find if the field MEMBER exists in type AGGR, after including 1946# INCLUDES, setting cache variable VAR accordingly. 1947ac_fn_c_check_member () 1948{ 1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1951$as_echo_n "checking for $2.$3... " >&6; } 1952if eval \${$4+:} false; then : 1953 $as_echo_n "(cached) " >&6 1954else 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$5 1958int 1959main () 1960{ 1961static $2 ac_aggr; 1962if (ac_aggr.$3) 1963return 0; 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_compile "$LINENO"; then : 1969 eval "$4=yes" 1970else 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973$5 1974int 1975main () 1976{ 1977static $2 ac_aggr; 1978if (sizeof ac_aggr.$3) 1979return 0; 1980 ; 1981 return 0; 1982} 1983_ACEOF 1984if ac_fn_c_try_compile "$LINENO"; then : 1985 eval "$4=yes" 1986else 1987 eval "$4=no" 1988fi 1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1990fi 1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1992fi 1993eval ac_res=\$$4 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1995$as_echo "$ac_res" >&6; } 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1997 1998} # ac_fn_c_check_member 1999 2000# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2001# ------------------------------------------- 2002# Tests whether TYPE exists after having included INCLUDES, setting cache 2003# variable VAR accordingly. 2004ac_fn_c_check_type () 2005{ 2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2008$as_echo_n "checking for $2... " >&6; } 2009if eval \${$3+:} false; then : 2010 $as_echo_n "(cached) " >&6 2011else 2012 eval "$3=no" 2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015$4 2016int 2017main () 2018{ 2019if (sizeof ($2)) 2020 return 0; 2021 ; 2022 return 0; 2023} 2024_ACEOF 2025if ac_fn_c_try_compile "$LINENO"; then : 2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027/* end confdefs.h. */ 2028$4 2029int 2030main () 2031{ 2032if (sizeof (($2))) 2033 return 0; 2034 ; 2035 return 0; 2036} 2037_ACEOF 2038if ac_fn_c_try_compile "$LINENO"; then : 2039 2040else 2041 eval "$3=yes" 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2044fi 2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2046fi 2047eval ac_res=\$$3 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2049$as_echo "$ac_res" >&6; } 2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2051 2052} # ac_fn_c_check_type 2053cat >config.log <<_ACEOF 2054This file contains any messages produced by compilers while 2055running configure, to aid debugging if configure makes a mistake. 2056 2057It was created by libSM $as_me 1.2.2, which was 2058generated by GNU Autoconf 2.68. Invocation command line was 2059 2060 $ $0 $@ 2061 2062_ACEOF 2063exec 5>>config.log 2064{ 2065cat <<_ASUNAME 2066## --------- ## 2067## Platform. ## 2068## --------- ## 2069 2070hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2071uname -m = `(uname -m) 2>/dev/null || echo unknown` 2072uname -r = `(uname -r) 2>/dev/null || echo unknown` 2073uname -s = `(uname -s) 2>/dev/null || echo unknown` 2074uname -v = `(uname -v) 2>/dev/null || echo unknown` 2075 2076/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2077/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2078 2079/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2080/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2081/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2082/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2083/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2084/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2085/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2086 2087_ASUNAME 2088 2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2090for as_dir in $PATH 2091do 2092 IFS=$as_save_IFS 2093 test -z "$as_dir" && as_dir=. 2094 $as_echo "PATH: $as_dir" 2095 done 2096IFS=$as_save_IFS 2097 2098} >&5 2099 2100cat >&5 <<_ACEOF 2101 2102 2103## ----------- ## 2104## Core tests. ## 2105## ----------- ## 2106 2107_ACEOF 2108 2109 2110# Keep a trace of the command line. 2111# Strip out --no-create and --no-recursion so they do not pile up. 2112# Strip out --silent because we don't want to record it for future runs. 2113# Also quote any args containing shell meta-characters. 2114# Make two passes to allow for proper duplicate-argument suppression. 2115ac_configure_args= 2116ac_configure_args0= 2117ac_configure_args1= 2118ac_must_keep_next=false 2119for ac_pass in 1 2 2120do 2121 for ac_arg 2122 do 2123 case $ac_arg in 2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2126 | -silent | --silent | --silen | --sile | --sil) 2127 continue ;; 2128 *\'*) 2129 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2130 esac 2131 case $ac_pass in 2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2133 2) 2134 as_fn_append ac_configure_args1 " '$ac_arg'" 2135 if test $ac_must_keep_next = true; then 2136 ac_must_keep_next=false # Got value, back to normal. 2137 else 2138 case $ac_arg in 2139 *=* | --config-cache | -C | -disable-* | --disable-* \ 2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2142 | -with-* | --with-* | -without-* | --without-* | --x) 2143 case "$ac_configure_args0 " in 2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2145 esac 2146 ;; 2147 -* ) ac_must_keep_next=true ;; 2148 esac 2149 fi 2150 as_fn_append ac_configure_args " '$ac_arg'" 2151 ;; 2152 esac 2153 done 2154done 2155{ ac_configure_args0=; unset ac_configure_args0;} 2156{ ac_configure_args1=; unset ac_configure_args1;} 2157 2158# When interrupted or exit'd, cleanup temporary files, and complete 2159# config.log. We remove comments because anyway the quotes in there 2160# would cause problems or look ugly. 2161# WARNING: Use '\'' to represent an apostrophe within the trap. 2162# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2163trap 'exit_status=$? 2164 # Save into config.log some information that might help in debugging. 2165 { 2166 echo 2167 2168 $as_echo "## ---------------- ## 2169## Cache variables. ## 2170## ---------------- ##" 2171 echo 2172 # The following way of writing the cache mishandles newlines in values, 2173( 2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in #( 2177 *${as_nl}*) 2178 case $ac_var in #( 2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2180$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2181 esac 2182 case $ac_var in #( 2183 _ | IFS | as_nl) ;; #( 2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2185 *) { eval $ac_var=; unset $ac_var;} ;; 2186 esac ;; 2187 esac 2188 done 2189 (set) 2>&1 | 2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2191 *${as_nl}ac_space=\ *) 2192 sed -n \ 2193 "s/'\''/'\''\\\\'\'''\''/g; 2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2195 ;; #( 2196 *) 2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2198 ;; 2199 esac | 2200 sort 2201) 2202 echo 2203 2204 $as_echo "## ----------------- ## 2205## Output variables. ## 2206## ----------------- ##" 2207 echo 2208 for ac_var in $ac_subst_vars 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 2218 if test -n "$ac_subst_files"; then 2219 $as_echo "## ------------------- ## 2220## File substitutions. ## 2221## ------------------- ##" 2222 echo 2223 for ac_var in $ac_subst_files 2224 do 2225 eval ac_val=\$$ac_var 2226 case $ac_val in 2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2228 esac 2229 $as_echo "$ac_var='\''$ac_val'\''" 2230 done | sort 2231 echo 2232 fi 2233 2234 if test -s confdefs.h; then 2235 $as_echo "## ----------- ## 2236## confdefs.h. ## 2237## ----------- ##" 2238 echo 2239 cat confdefs.h 2240 echo 2241 fi 2242 test "$ac_signal" != 0 && 2243 $as_echo "$as_me: caught signal $ac_signal" 2244 $as_echo "$as_me: exit $exit_status" 2245 } >&5 2246 rm -f core *.core core.conftest.* && 2247 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2248 exit $exit_status 2249' 0 2250for ac_signal in 1 2 13 15; do 2251 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2252done 2253ac_signal=0 2254 2255# confdefs.h avoids OS command line length limits that DEFS can exceed. 2256rm -f -r conftest* confdefs.h 2257 2258$as_echo "/* confdefs.h */" > confdefs.h 2259 2260# Predefined preprocessor variables. 2261 2262cat >>confdefs.h <<_ACEOF 2263#define PACKAGE_NAME "$PACKAGE_NAME" 2264_ACEOF 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2268_ACEOF 2269 2270cat >>confdefs.h <<_ACEOF 2271#define PACKAGE_VERSION "$PACKAGE_VERSION" 2272_ACEOF 2273 2274cat >>confdefs.h <<_ACEOF 2275#define PACKAGE_STRING "$PACKAGE_STRING" 2276_ACEOF 2277 2278cat >>confdefs.h <<_ACEOF 2279#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2280_ACEOF 2281 2282cat >>confdefs.h <<_ACEOF 2283#define PACKAGE_URL "$PACKAGE_URL" 2284_ACEOF 2285 2286 2287# Let the site file select an alternate cache file if it wants to. 2288# Prefer an explicitly selected file to automatically selected ones. 2289ac_site_file1=NONE 2290ac_site_file2=NONE 2291if test -n "$CONFIG_SITE"; then 2292 # We do not want a PATH search for config.site. 2293 case $CONFIG_SITE in #(( 2294 -*) ac_site_file1=./$CONFIG_SITE;; 2295 */*) ac_site_file1=$CONFIG_SITE;; 2296 *) ac_site_file1=./$CONFIG_SITE;; 2297 esac 2298elif test "x$prefix" != xNONE; then 2299 ac_site_file1=$prefix/share/config.site 2300 ac_site_file2=$prefix/etc/config.site 2301else 2302 ac_site_file1=$ac_default_prefix/share/config.site 2303 ac_site_file2=$ac_default_prefix/etc/config.site 2304fi 2305for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2306do 2307 test "x$ac_site_file" = xNONE && continue 2308 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2310$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2311 sed 's/^/| /' "$ac_site_file" >&5 2312 . "$ac_site_file" \ 2313 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2315as_fn_error $? "failed to load site script $ac_site_file 2316See \`config.log' for more details" "$LINENO" 5; } 2317 fi 2318done 2319 2320if test -r "$cache_file"; then 2321 # Some versions of bash will fail to source /dev/null (special files 2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2325$as_echo "$as_me: loading cache $cache_file" >&6;} 2326 case $cache_file in 2327 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2328 *) . "./$cache_file";; 2329 esac 2330 fi 2331else 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2333$as_echo "$as_me: creating cache $cache_file" >&6;} 2334 >$cache_file 2335fi 2336 2337# Check that the precious variables saved in the cache have kept the same 2338# value. 2339ac_cache_corrupted=false 2340for ac_var in $ac_precious_vars; do 2341 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2342 eval ac_new_set=\$ac_env_${ac_var}_set 2343 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2344 eval ac_new_val=\$ac_env_${ac_var}_value 2345 case $ac_old_set,$ac_new_set in 2346 set,) 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2348$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2349 ac_cache_corrupted=: ;; 2350 ,set) 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2352$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2353 ac_cache_corrupted=: ;; 2354 ,);; 2355 *) 2356 if test "x$ac_old_val" != "x$ac_new_val"; then 2357 # differences in whitespace do not lead to failure. 2358 ac_old_val_w=`echo x $ac_old_val` 2359 ac_new_val_w=`echo x $ac_new_val` 2360 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2362$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2363 ac_cache_corrupted=: 2364 else 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2366$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2367 eval $ac_var=\$ac_old_val 2368 fi 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2370$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2372$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2373 fi;; 2374 esac 2375 # Pass precious variables to config.status. 2376 if test "$ac_new_set" = set; then 2377 case $ac_new_val in 2378 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2379 *) ac_arg=$ac_var=$ac_new_val ;; 2380 esac 2381 case " $ac_configure_args " in 2382 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2383 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2384 esac 2385 fi 2386done 2387if $ac_cache_corrupted; then 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2391$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2392 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2393fi 2394## -------------------- ## 2395## Main body of script. ## 2396## -------------------- ## 2397 2398ac_ext=c 2399ac_cpp='$CPP $CPPFLAGS' 2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2402ac_compiler_gnu=$ac_cv_c_compiler_gnu 2403 2404 2405 2406ac_config_headers="$ac_config_headers config.h" 2407 2408 2409# Initialize Automake 2410am__api_version='1.14' 2411 2412ac_aux_dir= 2413for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2414 if test -f "$ac_dir/install-sh"; then 2415 ac_aux_dir=$ac_dir 2416 ac_install_sh="$ac_aux_dir/install-sh -c" 2417 break 2418 elif test -f "$ac_dir/install.sh"; then 2419 ac_aux_dir=$ac_dir 2420 ac_install_sh="$ac_aux_dir/install.sh -c" 2421 break 2422 elif test -f "$ac_dir/shtool"; then 2423 ac_aux_dir=$ac_dir 2424 ac_install_sh="$ac_aux_dir/shtool install -c" 2425 break 2426 fi 2427done 2428if test -z "$ac_aux_dir"; then 2429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2430fi 2431 2432# These three variables are undocumented and unsupported, 2433# and are intended to be withdrawn in a future Autoconf release. 2434# They can cause serious problems if a builder's source tree is in a directory 2435# whose full name contains unusual characters. 2436ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2437ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2438ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2439 2440 2441# Find a good install program. We prefer a C program (faster), 2442# so one script is as good as another. But avoid the broken or 2443# incompatible versions: 2444# SysV /etc/install, /usr/sbin/install 2445# SunOS /usr/etc/install 2446# IRIX /sbin/install 2447# AIX /bin/install 2448# AmigaOS /C/install, which installs bootblocks on floppy discs 2449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2450# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2452# OS/2's system install, which has a completely different semantic 2453# ./install, which can be erroneously created by make from ./install.sh. 2454# Reject install programs that cannot install multiple files. 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2456$as_echo_n "checking for a BSD-compatible install... " >&6; } 2457if test -z "$INSTALL"; then 2458if ${ac_cv_path_install+:} false; then : 2459 $as_echo_n "(cached) " >&6 2460else 2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 # Account for people who put trailing slashes in PATH elements. 2467case $as_dir/ in #(( 2468 ./ | .// | /[cC]/* | \ 2469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2471 /usr/ucb/* ) ;; 2472 *) 2473 # OSF1 and SCO ODT 3.0 have their own names for install. 2474 # Don't use installbsd from OSF since it installs stuff as root 2475 # by default. 2476 for ac_prog in ginstall scoinst install; do 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2479 if test $ac_prog = install && 2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2481 # AIX install. It has an incompatible calling convention. 2482 : 2483 elif test $ac_prog = install && 2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2485 # program-specific install script used by HP pwplus--don't use. 2486 : 2487 else 2488 rm -rf conftest.one conftest.two conftest.dir 2489 echo one > conftest.one 2490 echo two > conftest.two 2491 mkdir conftest.dir 2492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2493 test -s conftest.one && test -s conftest.two && 2494 test -s conftest.dir/conftest.one && 2495 test -s conftest.dir/conftest.two 2496 then 2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2498 break 3 2499 fi 2500 fi 2501 fi 2502 done 2503 done 2504 ;; 2505esac 2506 2507 done 2508IFS=$as_save_IFS 2509 2510rm -rf conftest.one conftest.two conftest.dir 2511 2512fi 2513 if test "${ac_cv_path_install+set}" = set; then 2514 INSTALL=$ac_cv_path_install 2515 else 2516 # As a last resort, use the slow shell script. Don't cache a 2517 # value for INSTALL within a source directory, because that will 2518 # break other packages using the cache if that directory is 2519 # removed, or if the value is a relative name. 2520 INSTALL=$ac_install_sh 2521 fi 2522fi 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2524$as_echo "$INSTALL" >&6; } 2525 2526# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2527# It thinks the first close brace ends the variable substitution. 2528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2529 2530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2531 2532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2533 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2535$as_echo_n "checking whether build environment is sane... " >&6; } 2536# Reject unsafe characters in $srcdir or the absolute working directory 2537# name. Accept space and tab only in the latter. 2538am_lf=' 2539' 2540case `pwd` in 2541 *[\\\"\#\$\&\'\`$am_lf]*) 2542 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2543esac 2544case $srcdir in 2545 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2546 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2547esac 2548 2549# Do 'set' in a subshell so we don't clobber the current shell's 2550# arguments. Must try -L first in case configure is actually a 2551# symlink; some systems play weird games with the mod time of symlinks 2552# (eg FreeBSD returns the mod time of the symlink's containing 2553# directory). 2554if ( 2555 am_has_slept=no 2556 for am_try in 1 2; do 2557 echo "timestamp, slept: $am_has_slept" > conftest.file 2558 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2559 if test "$*" = "X"; then 2560 # -L didn't work. 2561 set X `ls -t "$srcdir/configure" conftest.file` 2562 fi 2563 if test "$*" != "X $srcdir/configure conftest.file" \ 2564 && test "$*" != "X conftest.file $srcdir/configure"; then 2565 2566 # If neither matched, then we have a broken ls. This can happen 2567 # if, for instance, CONFIG_SHELL is bash and it inherits a 2568 # broken ls alias from the environment. This has actually 2569 # happened. Such a system could not be considered "sane". 2570 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2571 alias in your environment" "$LINENO" 5 2572 fi 2573 if test "$2" = conftest.file || test $am_try -eq 2; then 2574 break 2575 fi 2576 # Just in case. 2577 sleep 1 2578 am_has_slept=yes 2579 done 2580 test "$2" = conftest.file 2581 ) 2582then 2583 # Ok. 2584 : 2585else 2586 as_fn_error $? "newly created file is older than distributed files! 2587Check your system clock" "$LINENO" 5 2588fi 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2590$as_echo "yes" >&6; } 2591# If we didn't sleep, we still need to ensure time stamps of config.status and 2592# generated files are strictly newer. 2593am_sleep_pid= 2594if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2595 ( sleep 1 ) & 2596 am_sleep_pid=$! 2597fi 2598 2599rm -f conftest.file 2600 2601test "$program_prefix" != NONE && 2602 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2603# Use a double $ so make ignores it. 2604test "$program_suffix" != NONE && 2605 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2606# Double any \ or $. 2607# By default was `s,x,x', remove it if useless. 2608ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2609program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2610 2611# expand $ac_aux_dir to an absolute path 2612am_aux_dir=`cd $ac_aux_dir && pwd` 2613 2614if test x"${MISSING+set}" != xset; then 2615 case $am_aux_dir in 2616 *\ * | *\ *) 2617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2618 *) 2619 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2620 esac 2621fi 2622# Use eval to expand $SHELL 2623if eval "$MISSING --is-lightweight"; then 2624 am_missing_run="$MISSING " 2625else 2626 am_missing_run= 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2628$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2629fi 2630 2631if test x"${install_sh}" != xset; then 2632 case $am_aux_dir in 2633 *\ * | *\ *) 2634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2635 *) 2636 install_sh="\${SHELL} $am_aux_dir/install-sh" 2637 esac 2638fi 2639 2640# Installed binaries are usually stripped using 'strip' when the user 2641# run "make install-strip". However 'strip' might not be the right 2642# tool to use in cross-compilation environments, therefore Automake 2643# will honor the 'STRIP' environment variable to overrule this program. 2644if test "$cross_compiling" != no; then 2645 if test -n "$ac_tool_prefix"; then 2646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2647set dummy ${ac_tool_prefix}strip; ac_word=$2 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2649$as_echo_n "checking for $ac_word... " >&6; } 2650if ${ac_cv_prog_STRIP+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 if test -n "$STRIP"; then 2654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2663 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668 done 2669IFS=$as_save_IFS 2670 2671fi 2672fi 2673STRIP=$ac_cv_prog_STRIP 2674if test -n "$STRIP"; then 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2676$as_echo "$STRIP" >&6; } 2677else 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679$as_echo "no" >&6; } 2680fi 2681 2682 2683fi 2684if test -z "$ac_cv_prog_STRIP"; then 2685 ac_ct_STRIP=$STRIP 2686 # Extract the first word of "strip", so it can be a program name with args. 2687set dummy strip; ac_word=$2 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2689$as_echo_n "checking for $ac_word... " >&6; } 2690if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if test -n "$ac_ct_STRIP"; then 2694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2695else 2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2703 ac_cv_prog_ac_ct_STRIP="strip" 2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708 done 2709IFS=$as_save_IFS 2710 2711fi 2712fi 2713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2714if test -n "$ac_ct_STRIP"; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2716$as_echo "$ac_ct_STRIP" >&6; } 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720fi 2721 2722 if test "x$ac_ct_STRIP" = x; then 2723 STRIP=":" 2724 else 2725 case $cross_compiling:$ac_tool_warned in 2726yes:) 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2729ac_tool_warned=yes ;; 2730esac 2731 STRIP=$ac_ct_STRIP 2732 fi 2733else 2734 STRIP="$ac_cv_prog_STRIP" 2735fi 2736 2737fi 2738INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2739 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2741$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2742if test -z "$MKDIR_P"; then 2743 if ${ac_cv_path_mkdir+:} false; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_prog in mkdir gmkdir; do 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2755 'mkdir (GNU coreutils) '* | \ 2756 'mkdir (coreutils) '* | \ 2757 'mkdir (fileutils) '4.1*) 2758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2759 break 3;; 2760 esac 2761 done 2762 done 2763 done 2764IFS=$as_save_IFS 2765 2766fi 2767 2768 test -d ./--version && rmdir ./--version 2769 if test "${ac_cv_path_mkdir+set}" = set; then 2770 MKDIR_P="$ac_cv_path_mkdir -p" 2771 else 2772 # As a last resort, use the slow shell script. Don't cache a 2773 # value for MKDIR_P within a source directory, because that will 2774 # break other packages using the cache if that directory is 2775 # removed, or if the value is a relative name. 2776 MKDIR_P="$ac_install_sh -d" 2777 fi 2778fi 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2780$as_echo "$MKDIR_P" >&6; } 2781 2782for ac_prog in gawk mawk nawk awk 2783do 2784 # Extract the first word of "$ac_prog", so it can be a program name with args. 2785set dummy $ac_prog; ac_word=$2 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2787$as_echo_n "checking for $ac_word... " >&6; } 2788if ${ac_cv_prog_AWK+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 if test -n "$AWK"; then 2792 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2793else 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2801 ac_cv_prog_AWK="$ac_prog" 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811AWK=$ac_cv_prog_AWK 2812if test -n "$AWK"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2814$as_echo "$AWK" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 2821 test -n "$AWK" && break 2822done 2823 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2825$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2826set x ${MAKE-make} 2827ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2828if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 cat >conftest.make <<\_ACEOF 2832SHELL = /bin/sh 2833all: 2834 @echo '@@@%%%=$(MAKE)=@@@%%%' 2835_ACEOF 2836# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2837case `${MAKE-make} -f conftest.make 2>/dev/null` in 2838 *@@@%%%=?*=@@@%%%*) 2839 eval ac_cv_prog_make_${ac_make}_set=yes;; 2840 *) 2841 eval ac_cv_prog_make_${ac_make}_set=no;; 2842esac 2843rm -f conftest.make 2844fi 2845if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2847$as_echo "yes" >&6; } 2848 SET_MAKE= 2849else 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851$as_echo "no" >&6; } 2852 SET_MAKE="MAKE=${MAKE-make}" 2853fi 2854 2855rm -rf .tst 2>/dev/null 2856mkdir .tst 2>/dev/null 2857if test -d .tst; then 2858 am__leading_dot=. 2859else 2860 am__leading_dot=_ 2861fi 2862rmdir .tst 2>/dev/null 2863 2864# Check whether --enable-silent-rules was given. 2865if test "${enable_silent_rules+set}" = set; then : 2866 enableval=$enable_silent_rules; 2867fi 2868 2869case $enable_silent_rules in # ((( 2870 yes) AM_DEFAULT_VERBOSITY=0;; 2871 no) AM_DEFAULT_VERBOSITY=1;; 2872 *) AM_DEFAULT_VERBOSITY=1;; 2873esac 2874am_make=${MAKE-make} 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2876$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2877if ${am_cv_make_support_nested_variables+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if $as_echo 'TRUE=$(BAR$(V)) 2881BAR0=false 2882BAR1=true 2883V=1 2884am__doit: 2885 @$(TRUE) 2886.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2887 am_cv_make_support_nested_variables=yes 2888else 2889 am_cv_make_support_nested_variables=no 2890fi 2891fi 2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2893$as_echo "$am_cv_make_support_nested_variables" >&6; } 2894if test $am_cv_make_support_nested_variables = yes; then 2895 AM_V='$(V)' 2896 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2897else 2898 AM_V=$AM_DEFAULT_VERBOSITY 2899 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2900fi 2901AM_BACKSLASH='\' 2902 2903if test "`cd $srcdir && pwd`" != "`pwd`"; then 2904 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2905 # is not polluted with repeated "-I." 2906 am__isrc=' -I$(srcdir)' 2907 # test to see if srcdir already configured 2908 if test -f $srcdir/config.status; then 2909 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2910 fi 2911fi 2912 2913# test whether we have cygpath 2914if test -z "$CYGPATH_W"; then 2915 if (cygpath --version) >/dev/null 2>/dev/null; then 2916 CYGPATH_W='cygpath -w' 2917 else 2918 CYGPATH_W=echo 2919 fi 2920fi 2921 2922 2923# Define the identity of the package. 2924 PACKAGE='libSM' 2925 VERSION='1.2.2' 2926 2927 2928cat >>confdefs.h <<_ACEOF 2929#define PACKAGE "$PACKAGE" 2930_ACEOF 2931 2932 2933cat >>confdefs.h <<_ACEOF 2934#define VERSION "$VERSION" 2935_ACEOF 2936 2937# Some tools Automake needs. 2938 2939ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2940 2941 2942AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2943 2944 2945AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2946 2947 2948AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2949 2950 2951MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2952 2953# For better backward compatibility. To be removed once Automake 1.9.x 2954# dies out for good. For more background, see: 2955# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2956# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2957mkdir_p='$(MKDIR_P)' 2958 2959# We need awk for the "check" target. The system "awk" is bad on 2960# some platforms. 2961# Always define AMTAR for backward compatibility. Yes, it's still used 2962# in the wild :-( We should find a proper way to deprecate it ... 2963AMTAR='$${TAR-tar}' 2964 2965 2966# We'll loop over all known methods to create a tar archive until one works. 2967_am_tools='gnutar pax cpio none' 2968 2969am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2970 2971 2972 2973 2974 2975 2976# POSIX will say in a future version that running "rm -f" with no argument 2977# is OK; and we want to be able to make that assumption in our Makefile 2978# recipes. So use an aggressive probe to check that the usage we want is 2979# actually supported "in the wild" to an acceptable degree. 2980# See automake bug#10828. 2981# To make any issue more visible, cause the running configure to be aborted 2982# by default if the 'rm' program in use doesn't match our expectations; the 2983# user can still override this though. 2984if rm -f && rm -fr && rm -rf; then : OK; else 2985 cat >&2 <<'END' 2986Oops! 2987 2988Your 'rm' program seems unable to run without file operands specified 2989on the command line, even when the '-f' option is present. This is contrary 2990to the behaviour of most rm programs out there, and not conforming with 2991the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2992 2993Please tell bug-automake@gnu.org about your system, including the value 2994of your $PATH and any error possibly output before this message. This 2995can help us improve future automake versions. 2996 2997END 2998 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2999 echo 'Configuration will proceed anyway, since you have set the' >&2 3000 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3001 echo >&2 3002 else 3003 cat >&2 <<'END' 3004Aborting the configuration process, to ensure you take notice of the issue. 3005 3006You can download and install GNU coreutils to get an 'rm' implementation 3007that behaves properly: <http://www.gnu.org/software/coreutils/>. 3008 3009If you want to complete the configuration process using your problematic 3010'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3011to "yes", and re-run configure. 3012 3013END 3014 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3015 fi 3016fi 3017 3018# Initialize libtool 3019case `pwd` in 3020 *\ * | *\ *) 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3022$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3023esac 3024 3025 3026 3027macro_version='2.4.2' 3028macro_revision='1.3337' 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042ltmain="$ac_aux_dir/ltmain.sh" 3043 3044# Make sure we can run config.sub. 3045$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3046 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3047 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3049$as_echo_n "checking build system type... " >&6; } 3050if ${ac_cv_build+:} false; then : 3051 $as_echo_n "(cached) " >&6 3052else 3053 ac_build_alias=$build_alias 3054test "x$ac_build_alias" = x && 3055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3056test "x$ac_build_alias" = x && 3057 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3058ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3060 3061fi 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3063$as_echo "$ac_cv_build" >&6; } 3064case $ac_cv_build in 3065*-*-*) ;; 3066*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3067esac 3068build=$ac_cv_build 3069ac_save_IFS=$IFS; IFS='-' 3070set x $ac_cv_build 3071shift 3072build_cpu=$1 3073build_vendor=$2 3074shift; shift 3075# Remember, the first character of IFS is used to create $*, 3076# except with old shells: 3077build_os=$* 3078IFS=$ac_save_IFS 3079case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3080 3081 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3083$as_echo_n "checking host system type... " >&6; } 3084if ${ac_cv_host+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 if test "x$host_alias" = x; then 3088 ac_cv_host=$ac_cv_build 3089else 3090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3091 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3092fi 3093 3094fi 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3096$as_echo "$ac_cv_host" >&6; } 3097case $ac_cv_host in 3098*-*-*) ;; 3099*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3100esac 3101host=$ac_cv_host 3102ac_save_IFS=$IFS; IFS='-' 3103set x $ac_cv_host 3104shift 3105host_cpu=$1 3106host_vendor=$2 3107shift; shift 3108# Remember, the first character of IFS is used to create $*, 3109# except with old shells: 3110host_os=$* 3111IFS=$ac_save_IFS 3112case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3113 3114 3115# Backslashify metacharacters that are still active within 3116# double-quoted strings. 3117sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3118 3119# Same as above, but do not quote variable references. 3120double_quote_subst='s/\(["`\\]\)/\\\1/g' 3121 3122# Sed substitution to delay expansion of an escaped shell variable in a 3123# double_quote_subst'ed string. 3124delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3125 3126# Sed substitution to delay expansion of an escaped single quote. 3127delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3128 3129# Sed substitution to avoid accidental globbing in evaled expressions 3130no_glob_subst='s/\*/\\\*/g' 3131 3132ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3133ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3134ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3135 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3137$as_echo_n "checking how to print strings... " >&6; } 3138# Test print first, because it will be a builtin if present. 3139if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3140 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3141 ECHO='print -r --' 3142elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3143 ECHO='printf %s\n' 3144else 3145 # Use this function as a fallback that always works. 3146 func_fallback_echo () 3147 { 3148 eval 'cat <<_LTECHO_EOF 3149$1 3150_LTECHO_EOF' 3151 } 3152 ECHO='func_fallback_echo' 3153fi 3154 3155# func_echo_all arg... 3156# Invoke $ECHO with all args, space-separated. 3157func_echo_all () 3158{ 3159 $ECHO "" 3160} 3161 3162case "$ECHO" in 3163 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3164$as_echo "printf" >&6; } ;; 3165 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3166$as_echo "print -r" >&6; } ;; 3167 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3168$as_echo "cat" >&6; } ;; 3169esac 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184DEPDIR="${am__leading_dot}deps" 3185 3186ac_config_commands="$ac_config_commands depfiles" 3187 3188 3189am_make=${MAKE-make} 3190cat > confinc << 'END' 3191am__doit: 3192 @echo this is the am__doit target 3193.PHONY: am__doit 3194END 3195# If we don't find an include directive, just comment out the code. 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3197$as_echo_n "checking for style of include used by $am_make... " >&6; } 3198am__include="#" 3199am__quote= 3200_am_result=none 3201# First try GNU make style include. 3202echo "include confinc" > confmf 3203# Ignore all kinds of additional output from 'make'. 3204case `$am_make -s -f confmf 2> /dev/null` in #( 3205*the\ am__doit\ target*) 3206 am__include=include 3207 am__quote= 3208 _am_result=GNU 3209 ;; 3210esac 3211# Now try BSD make style include. 3212if test "$am__include" = "#"; then 3213 echo '.include "confinc"' > confmf 3214 case `$am_make -s -f confmf 2> /dev/null` in #( 3215 *the\ am__doit\ target*) 3216 am__include=.include 3217 am__quote="\"" 3218 _am_result=BSD 3219 ;; 3220 esac 3221fi 3222 3223 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3225$as_echo "$_am_result" >&6; } 3226rm -f confinc confmf 3227 3228# Check whether --enable-dependency-tracking was given. 3229if test "${enable_dependency_tracking+set}" = set; then : 3230 enableval=$enable_dependency_tracking; 3231fi 3232 3233if test "x$enable_dependency_tracking" != xno; then 3234 am_depcomp="$ac_aux_dir/depcomp" 3235 AMDEPBACKSLASH='\' 3236 am__nodep='_no' 3237fi 3238 if test "x$enable_dependency_tracking" != xno; then 3239 AMDEP_TRUE= 3240 AMDEP_FALSE='#' 3241else 3242 AMDEP_TRUE='#' 3243 AMDEP_FALSE= 3244fi 3245 3246 3247ac_ext=c 3248ac_cpp='$CPP $CPPFLAGS' 3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3251ac_compiler_gnu=$ac_cv_c_compiler_gnu 3252if test -n "$ac_tool_prefix"; then 3253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3254set dummy ${ac_tool_prefix}gcc; ac_word=$2 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256$as_echo_n "checking for $ac_word... " >&6; } 3257if ${ac_cv_prog_CC+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if test -n "$CC"; then 3261 ac_cv_prog_CC="$CC" # Let the user override the test. 3262else 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3270 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280CC=$ac_cv_prog_CC 3281if test -n "$CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3283$as_echo "$CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290fi 3291if test -z "$ac_cv_prog_CC"; then 3292 ac_ct_CC=$CC 3293 # Extract the first word of "gcc", so it can be a program name with args. 3294set dummy gcc; ac_word=$2 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296$as_echo_n "checking for $ac_word... " >&6; } 3297if ${ac_cv_prog_ac_ct_CC+:} false; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 if test -n "$ac_ct_CC"; then 3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3302else 3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304for as_dir in $PATH 3305do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3310 ac_cv_prog_ac_ct_CC="gcc" 3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3312 break 2 3313 fi 3314done 3315 done 3316IFS=$as_save_IFS 3317 3318fi 3319fi 3320ac_ct_CC=$ac_cv_prog_ac_ct_CC 3321if test -n "$ac_ct_CC"; then 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3323$as_echo "$ac_ct_CC" >&6; } 3324else 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3326$as_echo "no" >&6; } 3327fi 3328 3329 if test "x$ac_ct_CC" = x; then 3330 CC="" 3331 else 3332 case $cross_compiling:$ac_tool_warned in 3333yes:) 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3336ac_tool_warned=yes ;; 3337esac 3338 CC=$ac_ct_CC 3339 fi 3340else 3341 CC="$ac_cv_prog_CC" 3342fi 3343 3344if test -z "$CC"; then 3345 if test -n "$ac_tool_prefix"; then 3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3347set dummy ${ac_tool_prefix}cc; ac_word=$2 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3349$as_echo_n "checking for $ac_word... " >&6; } 3350if ${ac_cv_prog_CC+:} false; then : 3351 $as_echo_n "(cached) " >&6 3352else 3353 if test -n "$CC"; then 3354 ac_cv_prog_CC="$CC" # Let the user override the test. 3355else 3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3363 ac_cv_prog_CC="${ac_tool_prefix}cc" 3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3365 break 2 3366 fi 3367done 3368 done 3369IFS=$as_save_IFS 3370 3371fi 3372fi 3373CC=$ac_cv_prog_CC 3374if test -n "$CC"; then 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3376$as_echo "$CC" >&6; } 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379$as_echo "no" >&6; } 3380fi 3381 3382 3383 fi 3384fi 3385if test -z "$CC"; then 3386 # Extract the first word of "cc", so it can be a program name with args. 3387set dummy cc; ac_word=$2 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389$as_echo_n "checking for $ac_word... " >&6; } 3390if ${ac_cv_prog_CC+:} false; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 if test -n "$CC"; then 3394 ac_cv_prog_CC="$CC" # Let the user override the test. 3395else 3396 ac_prog_rejected=no 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 test -z "$as_dir" && as_dir=. 3402 for ac_exec_ext in '' $ac_executable_extensions; do 3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3404 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3405 ac_prog_rejected=yes 3406 continue 3407 fi 3408 ac_cv_prog_CC="cc" 3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3410 break 2 3411 fi 3412done 3413 done 3414IFS=$as_save_IFS 3415 3416if test $ac_prog_rejected = yes; then 3417 # We found a bogon in the path, so make sure we never use it. 3418 set dummy $ac_cv_prog_CC 3419 shift 3420 if test $# != 0; then 3421 # We chose a different compiler from the bogus one. 3422 # However, it has the same basename, so the bogon will be chosen 3423 # first if we set CC to just the basename; use the full file name. 3424 shift 3425 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3426 fi 3427fi 3428fi 3429fi 3430CC=$ac_cv_prog_CC 3431if test -n "$CC"; then 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3433$as_echo "$CC" >&6; } 3434else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3436$as_echo "no" >&6; } 3437fi 3438 3439 3440fi 3441if test -z "$CC"; then 3442 if test -n "$ac_tool_prefix"; then 3443 for ac_prog in cl.exe 3444 do 3445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3446set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3448$as_echo_n "checking for $ac_word... " >&6; } 3449if ${ac_cv_prog_CC+:} false; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 if test -n "$CC"; then 3453 ac_cv_prog_CC="$CC" # Let the user override the test. 3454else 3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3456for as_dir in $PATH 3457do 3458 IFS=$as_save_IFS 3459 test -z "$as_dir" && as_dir=. 3460 for ac_exec_ext in '' $ac_executable_extensions; do 3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3462 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3464 break 2 3465 fi 3466done 3467 done 3468IFS=$as_save_IFS 3469 3470fi 3471fi 3472CC=$ac_cv_prog_CC 3473if test -n "$CC"; then 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3475$as_echo "$CC" >&6; } 3476else 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3478$as_echo "no" >&6; } 3479fi 3480 3481 3482 test -n "$CC" && break 3483 done 3484fi 3485if test -z "$CC"; then 3486 ac_ct_CC=$CC 3487 for ac_prog in cl.exe 3488do 3489 # Extract the first word of "$ac_prog", so it can be a program name with args. 3490set dummy $ac_prog; ac_word=$2 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3492$as_echo_n "checking for $ac_word... " >&6; } 3493if ${ac_cv_prog_ac_ct_CC+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 if test -n "$ac_ct_CC"; then 3497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3498else 3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3500for as_dir in $PATH 3501do 3502 IFS=$as_save_IFS 3503 test -z "$as_dir" && as_dir=. 3504 for ac_exec_ext in '' $ac_executable_extensions; do 3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3506 ac_cv_prog_ac_ct_CC="$ac_prog" 3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3508 break 2 3509 fi 3510done 3511 done 3512IFS=$as_save_IFS 3513 3514fi 3515fi 3516ac_ct_CC=$ac_cv_prog_ac_ct_CC 3517if test -n "$ac_ct_CC"; then 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3519$as_echo "$ac_ct_CC" >&6; } 3520else 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522$as_echo "no" >&6; } 3523fi 3524 3525 3526 test -n "$ac_ct_CC" && break 3527done 3528 3529 if test "x$ac_ct_CC" = x; then 3530 CC="" 3531 else 3532 case $cross_compiling:$ac_tool_warned in 3533yes:) 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3536ac_tool_warned=yes ;; 3537esac 3538 CC=$ac_ct_CC 3539 fi 3540fi 3541 3542fi 3543 3544 3545test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3547as_fn_error $? "no acceptable C compiler found in \$PATH 3548See \`config.log' for more details" "$LINENO" 5; } 3549 3550# Provide some information about the compiler. 3551$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3552set X $ac_compile 3553ac_compiler=$2 3554for ac_option in --version -v -V -qversion; do 3555 { { ac_try="$ac_compiler $ac_option >&5" 3556case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3563 ac_status=$? 3564 if test -s conftest.err; then 3565 sed '10a\ 3566... rest of stderr output deleted ... 3567 10q' conftest.err >conftest.er1 3568 cat conftest.er1 >&5 3569 fi 3570 rm -f conftest.er1 conftest.err 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3572 test $ac_status = 0; } 3573done 3574 3575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586ac_clean_files_save=$ac_clean_files 3587ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3588# Try to create an executable without -o first, disregard a.out. 3589# It will help us diagnose broken compilers, and finding out an intuition 3590# of exeext. 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3592$as_echo_n "checking whether the C compiler works... " >&6; } 3593ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3594 3595# The possible output files: 3596ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3597 3598ac_rmfiles= 3599for ac_file in $ac_files 3600do 3601 case $ac_file in 3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3603 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3604 esac 3605done 3606rm -f $ac_rmfiles 3607 3608if { { ac_try="$ac_link_default" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_link_default") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; then : 3619 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3620# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3621# in a Makefile. We should not override ac_cv_exeext if it was cached, 3622# so that the user can short-circuit this test for compilers unknown to 3623# Autoconf. 3624for ac_file in $ac_files '' 3625do 3626 test -f "$ac_file" || continue 3627 case $ac_file in 3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3629 ;; 3630 [ab].out ) 3631 # We found the default executable, but exeext='' is most 3632 # certainly right. 3633 break;; 3634 *.* ) 3635 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3636 then :; else 3637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3638 fi 3639 # We set ac_cv_exeext here because the later test for it is not 3640 # safe: cross compilers may not add the suffix if given an `-o' 3641 # argument, so we may need to know it at that point already. 3642 # Even if this section looks crufty: it has the advantage of 3643 # actually working. 3644 break;; 3645 * ) 3646 break;; 3647 esac 3648done 3649test "$ac_cv_exeext" = no && ac_cv_exeext= 3650 3651else 3652 ac_file='' 3653fi 3654if test -z "$ac_file"; then : 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3656$as_echo "no" >&6; } 3657$as_echo "$as_me: failed program was:" >&5 3658sed 's/^/| /' conftest.$ac_ext >&5 3659 3660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3662as_fn_error 77 "C compiler cannot create executables 3663See \`config.log' for more details" "$LINENO" 5; } 3664else 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3666$as_echo "yes" >&6; } 3667fi 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3669$as_echo_n "checking for C compiler default output file name... " >&6; } 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3671$as_echo "$ac_file" >&6; } 3672ac_exeext=$ac_cv_exeext 3673 3674rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3675ac_clean_files=$ac_clean_files_save 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3677$as_echo_n "checking for suffix of executables... " >&6; } 3678if { { ac_try="$ac_link" 3679case "(($ac_try" in 3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3681 *) ac_try_echo=$ac_try;; 3682esac 3683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3684$as_echo "$ac_try_echo"; } >&5 3685 (eval "$ac_link") 2>&5 3686 ac_status=$? 3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3688 test $ac_status = 0; }; then : 3689 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3690# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3691# work properly (i.e., refer to `conftest.exe'), while it won't with 3692# `rm'. 3693for ac_file in conftest.exe conftest conftest.*; do 3694 test -f "$ac_file" || continue 3695 case $ac_file in 3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3697 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3698 break;; 3699 * ) break;; 3700 esac 3701done 3702else 3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3705as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3706See \`config.log' for more details" "$LINENO" 5; } 3707fi 3708rm -f conftest conftest$ac_cv_exeext 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3710$as_echo "$ac_cv_exeext" >&6; } 3711 3712rm -f conftest.$ac_ext 3713EXEEXT=$ac_cv_exeext 3714ac_exeext=$EXEEXT 3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716/* end confdefs.h. */ 3717#include <stdio.h> 3718int 3719main () 3720{ 3721FILE *f = fopen ("conftest.out", "w"); 3722 return ferror (f) || fclose (f) != 0; 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728ac_clean_files="$ac_clean_files conftest.out" 3729# Check that the compiler produces executables we can run. If not, either 3730# the compiler is broken, or we cross compile. 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3732$as_echo_n "checking whether we are cross compiling... " >&6; } 3733if test "$cross_compiling" != yes; then 3734 { { ac_try="$ac_link" 3735case "(($ac_try" in 3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3737 *) ac_try_echo=$ac_try;; 3738esac 3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3740$as_echo "$ac_try_echo"; } >&5 3741 (eval "$ac_link") 2>&5 3742 ac_status=$? 3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3744 test $ac_status = 0; } 3745 if { ac_try='./conftest$ac_cv_exeext' 3746 { { case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749esac 3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3751$as_echo "$ac_try_echo"; } >&5 3752 (eval "$ac_try") 2>&5 3753 ac_status=$? 3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3755 test $ac_status = 0; }; }; then 3756 cross_compiling=no 3757 else 3758 if test "$cross_compiling" = maybe; then 3759 cross_compiling=yes 3760 else 3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3763as_fn_error $? "cannot run C compiled programs. 3764If you meant to cross compile, use \`--host'. 3765See \`config.log' for more details" "$LINENO" 5; } 3766 fi 3767 fi 3768fi 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3770$as_echo "$cross_compiling" >&6; } 3771 3772rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3773ac_clean_files=$ac_clean_files_save 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3775$as_echo_n "checking for suffix of object files... " >&6; } 3776if ${ac_cv_objext+:} false; then : 3777 $as_echo_n "(cached) " >&6 3778else 3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790rm -f conftest.o conftest.obj 3791if { { ac_try="$ac_compile" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3797$as_echo "$ac_try_echo"; } >&5 3798 (eval "$ac_compile") 2>&5 3799 ac_status=$? 3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; }; then : 3802 for ac_file in conftest.o conftest.obj conftest.*; do 3803 test -f "$ac_file" || continue; 3804 case $ac_file in 3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3807 break;; 3808 esac 3809done 3810else 3811 $as_echo "$as_me: failed program was:" >&5 3812sed 's/^/| /' conftest.$ac_ext >&5 3813 3814{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3816as_fn_error $? "cannot compute suffix of object files: cannot compile 3817See \`config.log' for more details" "$LINENO" 5; } 3818fi 3819rm -f conftest.$ac_cv_objext conftest.$ac_ext 3820fi 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3822$as_echo "$ac_cv_objext" >&6; } 3823OBJEXT=$ac_cv_objext 3824ac_objext=$OBJEXT 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3826$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3827if ${ac_cv_c_compiler_gnu+:} false; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832 3833int 3834main () 3835{ 3836#ifndef __GNUC__ 3837 choke me 3838#endif 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844if ac_fn_c_try_compile "$LINENO"; then : 3845 ac_compiler_gnu=yes 3846else 3847 ac_compiler_gnu=no 3848fi 3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3850ac_cv_c_compiler_gnu=$ac_compiler_gnu 3851 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3854$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3855if test $ac_compiler_gnu = yes; then 3856 GCC=yes 3857else 3858 GCC= 3859fi 3860ac_test_CFLAGS=${CFLAGS+set} 3861ac_save_CFLAGS=$CFLAGS 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3863$as_echo_n "checking whether $CC accepts -g... " >&6; } 3864if ${ac_cv_prog_cc_g+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 ac_save_c_werror_flag=$ac_c_werror_flag 3868 ac_c_werror_flag=yes 3869 ac_cv_prog_cc_g=no 3870 CFLAGS="-g" 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872/* end confdefs.h. */ 3873 3874int 3875main () 3876{ 3877 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882if ac_fn_c_try_compile "$LINENO"; then : 3883 ac_cv_prog_cc_g=yes 3884else 3885 CFLAGS="" 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888 3889int 3890main () 3891{ 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897if ac_fn_c_try_compile "$LINENO"; then : 3898 3899else 3900 ac_c_werror_flag=$ac_save_c_werror_flag 3901 CFLAGS="-g" 3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3903/* end confdefs.h. */ 3904 3905int 3906main () 3907{ 3908 3909 ; 3910 return 0; 3911} 3912_ACEOF 3913if ac_fn_c_try_compile "$LINENO"; then : 3914 ac_cv_prog_cc_g=yes 3915fi 3916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3917fi 3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3919fi 3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3921 ac_c_werror_flag=$ac_save_c_werror_flag 3922fi 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3924$as_echo "$ac_cv_prog_cc_g" >&6; } 3925if test "$ac_test_CFLAGS" = set; then 3926 CFLAGS=$ac_save_CFLAGS 3927elif test $ac_cv_prog_cc_g = yes; then 3928 if test "$GCC" = yes; then 3929 CFLAGS="-g -O2" 3930 else 3931 CFLAGS="-g" 3932 fi 3933else 3934 if test "$GCC" = yes; then 3935 CFLAGS="-O2" 3936 else 3937 CFLAGS= 3938 fi 3939fi 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3941$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3942if ${ac_cv_prog_cc_c89+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 ac_cv_prog_cc_c89=no 3946ac_save_CC=$CC 3947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3948/* end confdefs.h. */ 3949#include <stdarg.h> 3950#include <stdio.h> 3951#include <sys/types.h> 3952#include <sys/stat.h> 3953/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3954struct buf { int x; }; 3955FILE * (*rcsopen) (struct buf *, struct stat *, int); 3956static char *e (p, i) 3957 char **p; 3958 int i; 3959{ 3960 return p[i]; 3961} 3962static char *f (char * (*g) (char **, int), char **p, ...) 3963{ 3964 char *s; 3965 va_list v; 3966 va_start (v,p); 3967 s = g (p, va_arg (v,int)); 3968 va_end (v); 3969 return s; 3970} 3971 3972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3973 function prototypes and stuff, but not '\xHH' hex character constants. 3974 These don't provoke an error unfortunately, instead are silently treated 3975 as 'x'. The following induces an error, until -std is added to get 3976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3977 array size at least. It's necessary to write '\x00'==0 to get something 3978 that's true only with -std. */ 3979int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3980 3981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3982 inside strings and character constants. */ 3983#define FOO(x) 'x' 3984int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3985 3986int test (int i, double x); 3987struct s1 {int (*f) (int a);}; 3988struct s2 {int (*f) (double a);}; 3989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3990int argc; 3991char **argv; 3992int 3993main () 3994{ 3995return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4002do 4003 CC="$ac_save_CC $ac_arg" 4004 if ac_fn_c_try_compile "$LINENO"; then : 4005 ac_cv_prog_cc_c89=$ac_arg 4006fi 4007rm -f core conftest.err conftest.$ac_objext 4008 test "x$ac_cv_prog_cc_c89" != "xno" && break 4009done 4010rm -f conftest.$ac_ext 4011CC=$ac_save_CC 4012 4013fi 4014# AC_CACHE_VAL 4015case "x$ac_cv_prog_cc_c89" in 4016 x) 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4018$as_echo "none needed" >&6; } ;; 4019 xno) 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4021$as_echo "unsupported" >&6; } ;; 4022 *) 4023 CC="$CC $ac_cv_prog_cc_c89" 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4025$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4026esac 4027if test "x$ac_cv_prog_cc_c89" != xno; then : 4028 4029fi 4030 4031ac_ext=c 4032ac_cpp='$CPP $CPPFLAGS' 4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4035ac_compiler_gnu=$ac_cv_c_compiler_gnu 4036 4037ac_ext=c 4038ac_cpp='$CPP $CPPFLAGS' 4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4041ac_compiler_gnu=$ac_cv_c_compiler_gnu 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4043$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4044if ${am_cv_prog_cc_c_o+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049 4050int 4051main () 4052{ 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058 # Make sure it works both with $CC and with simple cc. 4059 # Following AC_PROG_CC_C_O, we do the test twice because some 4060 # compilers refuse to overwrite an existing .o file with -o, 4061 # though they will create one. 4062 am_cv_prog_cc_c_o=yes 4063 for am_i in 1 2; do 4064 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4065 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4066 ac_status=$? 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); } \ 4069 && test -f conftest2.$ac_objext; then 4070 : OK 4071 else 4072 am_cv_prog_cc_c_o=no 4073 break 4074 fi 4075 done 4076 rm -f core conftest* 4077 unset am_i 4078fi 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4080$as_echo "$am_cv_prog_cc_c_o" >&6; } 4081if test "$am_cv_prog_cc_c_o" != yes; then 4082 # Losing compiler, so override with the script. 4083 # FIXME: It is wrong to rewrite CC. 4084 # But if we don't then we get into trouble of one sort or another. 4085 # A longer-term fix would be to have automake use am__CC in this case, 4086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4087 CC="$am_aux_dir/compile $CC" 4088fi 4089ac_ext=c 4090ac_cpp='$CPP $CPPFLAGS' 4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4093ac_compiler_gnu=$ac_cv_c_compiler_gnu 4094 4095 4096depcc="$CC" am_compiler_list= 4097 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4099$as_echo_n "checking dependency style of $depcc... " >&6; } 4100if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4104 # We make a subdir and do the tests there. Otherwise we can end up 4105 # making bogus files that we don't know about and never remove. For 4106 # instance it was reported that on HP-UX the gcc test will end up 4107 # making a dummy file named 'D' -- because '-MD' means "put the output 4108 # in D". 4109 rm -rf conftest.dir 4110 mkdir conftest.dir 4111 # Copy depcomp to subdir because otherwise we won't find it if we're 4112 # using a relative directory. 4113 cp "$am_depcomp" conftest.dir 4114 cd conftest.dir 4115 # We will build objects and dependencies in a subdirectory because 4116 # it helps to detect inapplicable dependency modes. For instance 4117 # both Tru64's cc and ICC support -MD to output dependencies as a 4118 # side effect of compilation, but ICC will put the dependencies in 4119 # the current directory while Tru64 will put them in the object 4120 # directory. 4121 mkdir sub 4122 4123 am_cv_CC_dependencies_compiler_type=none 4124 if test "$am_compiler_list" = ""; then 4125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4126 fi 4127 am__universal=false 4128 case " $depcc " in #( 4129 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4130 esac 4131 4132 for depmode in $am_compiler_list; do 4133 # Setup a source with many dependencies, because some compilers 4134 # like to wrap large dependency lists on column 80 (with \), and 4135 # we should not choose a depcomp mode which is confused by this. 4136 # 4137 # We need to recreate these files for each test, as the compiler may 4138 # overwrite some of them when testing with obscure command lines. 4139 # This happens at least with the AIX C compiler. 4140 : > sub/conftest.c 4141 for i in 1 2 3 4 5 6; do 4142 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4143 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4144 # Solaris 10 /bin/sh. 4145 echo '/* dummy */' > sub/conftst$i.h 4146 done 4147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4148 4149 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4150 # mode. It turns out that the SunPro C++ compiler does not properly 4151 # handle '-M -o', and we need to detect this. Also, some Intel 4152 # versions had trouble with output in subdirs. 4153 am__obj=sub/conftest.${OBJEXT-o} 4154 am__minus_obj="-o $am__obj" 4155 case $depmode in 4156 gcc) 4157 # This depmode causes a compiler race in universal mode. 4158 test "$am__universal" = false || continue 4159 ;; 4160 nosideeffect) 4161 # After this tag, mechanisms are not by side-effect, so they'll 4162 # only be used when explicitly requested. 4163 if test "x$enable_dependency_tracking" = xyes; then 4164 continue 4165 else 4166 break 4167 fi 4168 ;; 4169 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4170 # This compiler won't grok '-c -o', but also, the minuso test has 4171 # not run yet. These depmodes are late enough in the game, and 4172 # so weak that their functioning should not be impacted. 4173 am__obj=conftest.${OBJEXT-o} 4174 am__minus_obj= 4175 ;; 4176 none) break ;; 4177 esac 4178 if depmode=$depmode \ 4179 source=sub/conftest.c object=$am__obj \ 4180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4181 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4182 >/dev/null 2>conftest.err && 4183 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4185 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4187 # icc doesn't choke on unknown options, it will just issue warnings 4188 # or remarks (even with -Werror). So we grep stderr for any message 4189 # that says an option was ignored or not supported. 4190 # When given -MP, icc 7.0 and 7.1 complain thusly: 4191 # icc: Command line warning: ignoring option '-M'; no argument required 4192 # The diagnosis changed in icc 8.0: 4193 # icc: Command line remark: option '-MP' not supported 4194 if (grep 'ignoring option' conftest.err || 4195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4196 am_cv_CC_dependencies_compiler_type=$depmode 4197 break 4198 fi 4199 fi 4200 done 4201 4202 cd .. 4203 rm -rf conftest.dir 4204else 4205 am_cv_CC_dependencies_compiler_type=none 4206fi 4207 4208fi 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4210$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4212 4213 if 4214 test "x$enable_dependency_tracking" != xno \ 4215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4216 am__fastdepCC_TRUE= 4217 am__fastdepCC_FALSE='#' 4218else 4219 am__fastdepCC_TRUE='#' 4220 am__fastdepCC_FALSE= 4221fi 4222 4223 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4225$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4226if ${ac_cv_path_SED+:} false; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4230 for ac_i in 1 2 3 4 5 6 7; do 4231 ac_script="$ac_script$as_nl$ac_script" 4232 done 4233 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4234 { ac_script=; unset ac_script;} 4235 if test -z "$SED"; then 4236 ac_path_SED_found=false 4237 # Loop through the user's path and test for each of PROGNAME-LIST 4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4239for as_dir in $PATH 4240do 4241 IFS=$as_save_IFS 4242 test -z "$as_dir" && as_dir=. 4243 for ac_prog in sed gsed; do 4244 for ac_exec_ext in '' $ac_executable_extensions; do 4245 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4246 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4247# Check for GNU ac_path_SED and select it if it is found. 4248 # Check for GNU $ac_path_SED 4249case `"$ac_path_SED" --version 2>&1` in 4250*GNU*) 4251 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4252*) 4253 ac_count=0 4254 $as_echo_n 0123456789 >"conftest.in" 4255 while : 4256 do 4257 cat "conftest.in" "conftest.in" >"conftest.tmp" 4258 mv "conftest.tmp" "conftest.in" 4259 cp "conftest.in" "conftest.nl" 4260 $as_echo '' >> "conftest.nl" 4261 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4263 as_fn_arith $ac_count + 1 && ac_count=$as_val 4264 if test $ac_count -gt ${ac_path_SED_max-0}; then 4265 # Best one so far, save it but keep looking for a better one 4266 ac_cv_path_SED="$ac_path_SED" 4267 ac_path_SED_max=$ac_count 4268 fi 4269 # 10*(2^10) chars as input seems more than enough 4270 test $ac_count -gt 10 && break 4271 done 4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4273esac 4274 4275 $ac_path_SED_found && break 3 4276 done 4277 done 4278 done 4279IFS=$as_save_IFS 4280 if test -z "$ac_cv_path_SED"; then 4281 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4282 fi 4283else 4284 ac_cv_path_SED=$SED 4285fi 4286 4287fi 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4289$as_echo "$ac_cv_path_SED" >&6; } 4290 SED="$ac_cv_path_SED" 4291 rm -f conftest.sed 4292 4293test -z "$SED" && SED=sed 4294Xsed="$SED -e 1s/^X//" 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4307$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4308if ${ac_cv_path_GREP+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 if test -z "$GREP"; then 4312 ac_path_GREP_found=false 4313 # Loop through the user's path and test for each of PROGNAME-LIST 4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4315for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4316do 4317 IFS=$as_save_IFS 4318 test -z "$as_dir" && as_dir=. 4319 for ac_prog in grep ggrep; do 4320 for ac_exec_ext in '' $ac_executable_extensions; do 4321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4323# Check for GNU ac_path_GREP and select it if it is found. 4324 # Check for GNU $ac_path_GREP 4325case `"$ac_path_GREP" --version 2>&1` in 4326*GNU*) 4327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4328*) 4329 ac_count=0 4330 $as_echo_n 0123456789 >"conftest.in" 4331 while : 4332 do 4333 cat "conftest.in" "conftest.in" >"conftest.tmp" 4334 mv "conftest.tmp" "conftest.in" 4335 cp "conftest.in" "conftest.nl" 4336 $as_echo 'GREP' >> "conftest.nl" 4337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4339 as_fn_arith $ac_count + 1 && ac_count=$as_val 4340 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4341 # Best one so far, save it but keep looking for a better one 4342 ac_cv_path_GREP="$ac_path_GREP" 4343 ac_path_GREP_max=$ac_count 4344 fi 4345 # 10*(2^10) chars as input seems more than enough 4346 test $ac_count -gt 10 && break 4347 done 4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4349esac 4350 4351 $ac_path_GREP_found && break 3 4352 done 4353 done 4354 done 4355IFS=$as_save_IFS 4356 if test -z "$ac_cv_path_GREP"; then 4357 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4358 fi 4359else 4360 ac_cv_path_GREP=$GREP 4361fi 4362 4363fi 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4365$as_echo "$ac_cv_path_GREP" >&6; } 4366 GREP="$ac_cv_path_GREP" 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4370$as_echo_n "checking for egrep... " >&6; } 4371if ${ac_cv_path_EGREP+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4375 then ac_cv_path_EGREP="$GREP -E" 4376 else 4377 if test -z "$EGREP"; then 4378 ac_path_EGREP_found=false 4379 # Loop through the user's path and test for each of PROGNAME-LIST 4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4382do 4383 IFS=$as_save_IFS 4384 test -z "$as_dir" && as_dir=. 4385 for ac_prog in egrep; do 4386 for ac_exec_ext in '' $ac_executable_extensions; do 4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4389# Check for GNU ac_path_EGREP and select it if it is found. 4390 # Check for GNU $ac_path_EGREP 4391case `"$ac_path_EGREP" --version 2>&1` in 4392*GNU*) 4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4394*) 4395 ac_count=0 4396 $as_echo_n 0123456789 >"conftest.in" 4397 while : 4398 do 4399 cat "conftest.in" "conftest.in" >"conftest.tmp" 4400 mv "conftest.tmp" "conftest.in" 4401 cp "conftest.in" "conftest.nl" 4402 $as_echo 'EGREP' >> "conftest.nl" 4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4405 as_fn_arith $ac_count + 1 && ac_count=$as_val 4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4407 # Best one so far, save it but keep looking for a better one 4408 ac_cv_path_EGREP="$ac_path_EGREP" 4409 ac_path_EGREP_max=$ac_count 4410 fi 4411 # 10*(2^10) chars as input seems more than enough 4412 test $ac_count -gt 10 && break 4413 done 4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4415esac 4416 4417 $ac_path_EGREP_found && break 3 4418 done 4419 done 4420 done 4421IFS=$as_save_IFS 4422 if test -z "$ac_cv_path_EGREP"; then 4423 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4424 fi 4425else 4426 ac_cv_path_EGREP=$EGREP 4427fi 4428 4429 fi 4430fi 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4432$as_echo "$ac_cv_path_EGREP" >&6; } 4433 EGREP="$ac_cv_path_EGREP" 4434 4435 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4437$as_echo_n "checking for fgrep... " >&6; } 4438if ${ac_cv_path_FGREP+:} false; then : 4439 $as_echo_n "(cached) " >&6 4440else 4441 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4442 then ac_cv_path_FGREP="$GREP -F" 4443 else 4444 if test -z "$FGREP"; then 4445 ac_path_FGREP_found=false 4446 # Loop through the user's path and test for each of PROGNAME-LIST 4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4448for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4449do 4450 IFS=$as_save_IFS 4451 test -z "$as_dir" && as_dir=. 4452 for ac_prog in fgrep; do 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4455 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4456# Check for GNU ac_path_FGREP and select it if it is found. 4457 # Check for GNU $ac_path_FGREP 4458case `"$ac_path_FGREP" --version 2>&1` in 4459*GNU*) 4460 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4461*) 4462 ac_count=0 4463 $as_echo_n 0123456789 >"conftest.in" 4464 while : 4465 do 4466 cat "conftest.in" "conftest.in" >"conftest.tmp" 4467 mv "conftest.tmp" "conftest.in" 4468 cp "conftest.in" "conftest.nl" 4469 $as_echo 'FGREP' >> "conftest.nl" 4470 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4472 as_fn_arith $ac_count + 1 && ac_count=$as_val 4473 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4474 # Best one so far, save it but keep looking for a better one 4475 ac_cv_path_FGREP="$ac_path_FGREP" 4476 ac_path_FGREP_max=$ac_count 4477 fi 4478 # 10*(2^10) chars as input seems more than enough 4479 test $ac_count -gt 10 && break 4480 done 4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4482esac 4483 4484 $ac_path_FGREP_found && break 3 4485 done 4486 done 4487 done 4488IFS=$as_save_IFS 4489 if test -z "$ac_cv_path_FGREP"; then 4490 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4491 fi 4492else 4493 ac_cv_path_FGREP=$FGREP 4494fi 4495 4496 fi 4497fi 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4499$as_echo "$ac_cv_path_FGREP" >&6; } 4500 FGREP="$ac_cv_path_FGREP" 4501 4502 4503test -z "$GREP" && GREP=grep 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523# Check whether --with-gnu-ld was given. 4524if test "${with_gnu_ld+set}" = set; then : 4525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4526else 4527 with_gnu_ld=no 4528fi 4529 4530ac_prog=ld 4531if test "$GCC" = yes; then 4532 # Check if gcc -print-prog-name=ld gives a path. 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4534$as_echo_n "checking for ld used by $CC... " >&6; } 4535 case $host in 4536 *-*-mingw*) 4537 # gcc leaves a trailing carriage return which upsets mingw 4538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4539 *) 4540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4541 esac 4542 case $ac_prog in 4543 # Accept absolute paths. 4544 [\\/]* | ?:[\\/]*) 4545 re_direlt='/[^/][^/]*/\.\./' 4546 # Canonicalize the pathname of ld 4547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4550 done 4551 test -z "$LD" && LD="$ac_prog" 4552 ;; 4553 "") 4554 # If it fails, then pretend we aren't using GCC. 4555 ac_prog=ld 4556 ;; 4557 *) 4558 # If it is relative, then search for the first ld in PATH. 4559 with_gnu_ld=unknown 4560 ;; 4561 esac 4562elif test "$with_gnu_ld" = yes; then 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4564$as_echo_n "checking for GNU ld... " >&6; } 4565else 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4567$as_echo_n "checking for non-GNU ld... " >&6; } 4568fi 4569if ${lt_cv_path_LD+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 if test -z "$LD"; then 4573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4574 for ac_dir in $PATH; do 4575 IFS="$lt_save_ifs" 4576 test -z "$ac_dir" && ac_dir=. 4577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4578 lt_cv_path_LD="$ac_dir/$ac_prog" 4579 # Check to see if the program is GNU ld. I'd rather use --version, 4580 # but apparently some variants of GNU ld only accept -v. 4581 # Break only if it was the GNU/non-GNU ld that we prefer. 4582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4583 *GNU* | *'with BFD'*) 4584 test "$with_gnu_ld" != no && break 4585 ;; 4586 *) 4587 test "$with_gnu_ld" != yes && break 4588 ;; 4589 esac 4590 fi 4591 done 4592 IFS="$lt_save_ifs" 4593else 4594 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4595fi 4596fi 4597 4598LD="$lt_cv_path_LD" 4599if test -n "$LD"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4601$as_echo "$LD" >&6; } 4602else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604$as_echo "no" >&6; } 4605fi 4606test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4608$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4609if ${lt_cv_prog_gnu_ld+:} false; then : 4610 $as_echo_n "(cached) " >&6 4611else 4612 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4613case `$LD -v 2>&1 </dev/null` in 4614*GNU* | *'with BFD'*) 4615 lt_cv_prog_gnu_ld=yes 4616 ;; 4617*) 4618 lt_cv_prog_gnu_ld=no 4619 ;; 4620esac 4621fi 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4623$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4624with_gnu_ld=$lt_cv_prog_gnu_ld 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4635$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4636if ${lt_cv_path_NM+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -n "$NM"; then 4640 # Let the user override the test. 4641 lt_cv_path_NM="$NM" 4642else 4643 lt_nm_to_check="${ac_tool_prefix}nm" 4644 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4645 lt_nm_to_check="$lt_nm_to_check nm" 4646 fi 4647 for lt_tmp_nm in $lt_nm_to_check; do 4648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4649 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4650 IFS="$lt_save_ifs" 4651 test -z "$ac_dir" && ac_dir=. 4652 tmp_nm="$ac_dir/$lt_tmp_nm" 4653 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4654 # Check to see if the nm accepts a BSD-compat flag. 4655 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4656 # nm: unknown option "B" ignored 4657 # Tru64's nm complains that /dev/null is an invalid object file 4658 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4659 */dev/null* | *'Invalid file or object type'*) 4660 lt_cv_path_NM="$tmp_nm -B" 4661 break 4662 ;; 4663 *) 4664 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4665 */dev/null*) 4666 lt_cv_path_NM="$tmp_nm -p" 4667 break 4668 ;; 4669 *) 4670 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4671 continue # so that we can try to find one that supports BSD flags 4672 ;; 4673 esac 4674 ;; 4675 esac 4676 fi 4677 done 4678 IFS="$lt_save_ifs" 4679 done 4680 : ${lt_cv_path_NM=no} 4681fi 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4684$as_echo "$lt_cv_path_NM" >&6; } 4685if test "$lt_cv_path_NM" != "no"; then 4686 NM="$lt_cv_path_NM" 4687else 4688 # Didn't find any BSD compatible name lister, look for dumpbin. 4689 if test -n "$DUMPBIN"; then : 4690 # Let the user override the test. 4691 else 4692 if test -n "$ac_tool_prefix"; then 4693 for ac_prog in dumpbin "link -dump" 4694 do 4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4696set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4698$as_echo_n "checking for $ac_word... " >&6; } 4699if ${ac_cv_prog_DUMPBIN+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701else 4702 if test -n "$DUMPBIN"; then 4703 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4704else 4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4706for as_dir in $PATH 4707do 4708 IFS=$as_save_IFS 4709 test -z "$as_dir" && as_dir=. 4710 for ac_exec_ext in '' $ac_executable_extensions; do 4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4712 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4714 break 2 4715 fi 4716done 4717 done 4718IFS=$as_save_IFS 4719 4720fi 4721fi 4722DUMPBIN=$ac_cv_prog_DUMPBIN 4723if test -n "$DUMPBIN"; then 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4725$as_echo "$DUMPBIN" >&6; } 4726else 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4728$as_echo "no" >&6; } 4729fi 4730 4731 4732 test -n "$DUMPBIN" && break 4733 done 4734fi 4735if test -z "$DUMPBIN"; then 4736 ac_ct_DUMPBIN=$DUMPBIN 4737 for ac_prog in dumpbin "link -dump" 4738do 4739 # Extract the first word of "$ac_prog", so it can be a program name with args. 4740set dummy $ac_prog; ac_word=$2 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4742$as_echo_n "checking for $ac_word... " >&6; } 4743if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 if test -n "$ac_ct_DUMPBIN"; then 4747 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4748else 4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4750for as_dir in $PATH 4751do 4752 IFS=$as_save_IFS 4753 test -z "$as_dir" && as_dir=. 4754 for ac_exec_ext in '' $ac_executable_extensions; do 4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4756 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4758 break 2 4759 fi 4760done 4761 done 4762IFS=$as_save_IFS 4763 4764fi 4765fi 4766ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4767if test -n "$ac_ct_DUMPBIN"; then 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4769$as_echo "$ac_ct_DUMPBIN" >&6; } 4770else 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4772$as_echo "no" >&6; } 4773fi 4774 4775 4776 test -n "$ac_ct_DUMPBIN" && break 4777done 4778 4779 if test "x$ac_ct_DUMPBIN" = x; then 4780 DUMPBIN=":" 4781 else 4782 case $cross_compiling:$ac_tool_warned in 4783yes:) 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4786ac_tool_warned=yes ;; 4787esac 4788 DUMPBIN=$ac_ct_DUMPBIN 4789 fi 4790fi 4791 4792 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4793 *COFF*) 4794 DUMPBIN="$DUMPBIN -symbols" 4795 ;; 4796 *) 4797 DUMPBIN=: 4798 ;; 4799 esac 4800 fi 4801 4802 if test "$DUMPBIN" != ":"; then 4803 NM="$DUMPBIN" 4804 fi 4805fi 4806test -z "$NM" && NM=nm 4807 4808 4809 4810 4811 4812 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4814$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4815if ${lt_cv_nm_interface+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 lt_cv_nm_interface="BSD nm" 4819 echo "int some_variable = 0;" > conftest.$ac_ext 4820 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4821 (eval "$ac_compile" 2>conftest.err) 4822 cat conftest.err >&5 4823 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4825 cat conftest.err >&5 4826 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4827 cat conftest.out >&5 4828 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4829 lt_cv_nm_interface="MS dumpbin" 4830 fi 4831 rm -f conftest* 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4834$as_echo "$lt_cv_nm_interface" >&6; } 4835 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4837$as_echo_n "checking whether ln -s works... " >&6; } 4838LN_S=$as_ln_s 4839if test "$LN_S" = "ln -s"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4841$as_echo "yes" >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4844$as_echo "no, using $LN_S" >&6; } 4845fi 4846 4847# find the maximum length of command line arguments 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4849$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4850if ${lt_cv_sys_max_cmd_len+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 i=0 4854 teststring="ABCD" 4855 4856 case $build_os in 4857 msdosdjgpp*) 4858 # On DJGPP, this test can blow up pretty badly due to problems in libc 4859 # (any single argument exceeding 2000 bytes causes a buffer overrun 4860 # during glob expansion). Even if it were fixed, the result of this 4861 # check would be larger than it should be. 4862 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4863 ;; 4864 4865 gnu*) 4866 # Under GNU Hurd, this test is not required because there is 4867 # no limit to the length of command line arguments. 4868 # Libtool will interpret -1 as no limit whatsoever 4869 lt_cv_sys_max_cmd_len=-1; 4870 ;; 4871 4872 cygwin* | mingw* | cegcc*) 4873 # On Win9x/ME, this test blows up -- it succeeds, but takes 4874 # about 5 minutes as the teststring grows exponentially. 4875 # Worse, since 9x/ME are not pre-emptively multitasking, 4876 # you end up with a "frozen" computer, even though with patience 4877 # the test eventually succeeds (with a max line length of 256k). 4878 # Instead, let's just punt: use the minimum linelength reported by 4879 # all of the supported platforms: 8192 (on NT/2K/XP). 4880 lt_cv_sys_max_cmd_len=8192; 4881 ;; 4882 4883 mint*) 4884 # On MiNT this can take a long time and run out of memory. 4885 lt_cv_sys_max_cmd_len=8192; 4886 ;; 4887 4888 amigaos*) 4889 # On AmigaOS with pdksh, this test takes hours, literally. 4890 # So we just punt and use a minimum line length of 8192. 4891 lt_cv_sys_max_cmd_len=8192; 4892 ;; 4893 4894 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4895 # This has been around since 386BSD, at least. Likely further. 4896 if test -x /sbin/sysctl; then 4897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4898 elif test -x /usr/sbin/sysctl; then 4899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4900 else 4901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4902 fi 4903 # And add a safety zone 4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4906 ;; 4907 4908 interix*) 4909 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4910 lt_cv_sys_max_cmd_len=196608 4911 ;; 4912 4913 os2*) 4914 # The test takes a long time on OS/2. 4915 lt_cv_sys_max_cmd_len=8192 4916 ;; 4917 4918 osf*) 4919 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4920 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4921 # nice to cause kernel panics so lets avoid the loop below. 4922 # First set a reasonable default. 4923 lt_cv_sys_max_cmd_len=16384 4924 # 4925 if test -x /sbin/sysconfig; then 4926 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4927 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4928 esac 4929 fi 4930 ;; 4931 sco3.2v5*) 4932 lt_cv_sys_max_cmd_len=102400 4933 ;; 4934 sysv5* | sco5v6* | sysv4.2uw2*) 4935 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4936 if test -n "$kargmax"; then 4937 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4938 else 4939 lt_cv_sys_max_cmd_len=32768 4940 fi 4941 ;; 4942 *) 4943 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4944 if test -n "$lt_cv_sys_max_cmd_len"; then 4945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4947 else 4948 # Make teststring a little bigger before we do anything with it. 4949 # a 1K string should be a reasonable start. 4950 for i in 1 2 3 4 5 6 7 8 ; do 4951 teststring=$teststring$teststring 4952 done 4953 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4954 # If test is not a shell built-in, we'll probably end up computing a 4955 # maximum length that is only half of the actual maximum length, but 4956 # we can't tell. 4957 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4958 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4959 test $i != 17 # 1/2 MB should be enough 4960 do 4961 i=`expr $i + 1` 4962 teststring=$teststring$teststring 4963 done 4964 # Only check the string length outside the loop. 4965 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4966 teststring= 4967 # Add a significant safety factor because C++ compilers can tack on 4968 # massive amounts of additional arguments before passing them to the 4969 # linker. It appears as though 1/2 is a usable value. 4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4971 fi 4972 ;; 4973 esac 4974 4975fi 4976 4977if test -n $lt_cv_sys_max_cmd_len ; then 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4979$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4980else 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4982$as_echo "none" >&6; } 4983fi 4984max_cmd_len=$lt_cv_sys_max_cmd_len 4985 4986 4987 4988 4989 4990 4991: ${CP="cp -f"} 4992: ${MV="mv -f"} 4993: ${RM="rm -f"} 4994 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4996$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4997# Try some XSI features 4998xsi_shell=no 4999( _lt_dummy="a/b/c" 5000 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5001 = c,a/b,b/c, \ 5002 && eval 'test $(( 1 + 1 )) -eq 2 \ 5003 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5004 && xsi_shell=yes 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5006$as_echo "$xsi_shell" >&6; } 5007 5008 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5010$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5011lt_shell_append=no 5012( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5013 >/dev/null 2>&1 \ 5014 && lt_shell_append=yes 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5016$as_echo "$lt_shell_append" >&6; } 5017 5018 5019if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5020 lt_unset=unset 5021else 5022 lt_unset=false 5023fi 5024 5025 5026 5027 5028 5029# test EBCDIC or ASCII 5030case `echo X|tr X '\101'` in 5031 A) # ASCII based system 5032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5033 lt_SP2NL='tr \040 \012' 5034 lt_NL2SP='tr \015\012 \040\040' 5035 ;; 5036 *) # EBCDIC based system 5037 lt_SP2NL='tr \100 \n' 5038 lt_NL2SP='tr \r\n \100\100' 5039 ;; 5040esac 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5051$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5052if ${lt_cv_to_host_file_cmd+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 case $host in 5056 *-*-mingw* ) 5057 case $build in 5058 *-*-mingw* ) # actually msys 5059 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5060 ;; 5061 *-*-cygwin* ) 5062 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5063 ;; 5064 * ) # otherwise, assume *nix 5065 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5066 ;; 5067 esac 5068 ;; 5069 *-*-cygwin* ) 5070 case $build in 5071 *-*-mingw* ) # actually msys 5072 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5073 ;; 5074 *-*-cygwin* ) 5075 lt_cv_to_host_file_cmd=func_convert_file_noop 5076 ;; 5077 * ) # otherwise, assume *nix 5078 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5079 ;; 5080 esac 5081 ;; 5082 * ) # unhandled hosts (and "normal" native builds) 5083 lt_cv_to_host_file_cmd=func_convert_file_noop 5084 ;; 5085esac 5086 5087fi 5088 5089to_host_file_cmd=$lt_cv_to_host_file_cmd 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5091$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5092 5093 5094 5095 5096 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5098$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5099if ${lt_cv_to_tool_file_cmd+:} false; then : 5100 $as_echo_n "(cached) " >&6 5101else 5102 #assume ordinary cross tools, or native build. 5103lt_cv_to_tool_file_cmd=func_convert_file_noop 5104case $host in 5105 *-*-mingw* ) 5106 case $build in 5107 *-*-mingw* ) # actually msys 5108 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5109 ;; 5110 esac 5111 ;; 5112esac 5113 5114fi 5115 5116to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5118$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5119 5120 5121 5122 5123 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5125$as_echo_n "checking for $LD option to reload object files... " >&6; } 5126if ${lt_cv_ld_reload_flag+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 lt_cv_ld_reload_flag='-r' 5130fi 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5132$as_echo "$lt_cv_ld_reload_flag" >&6; } 5133reload_flag=$lt_cv_ld_reload_flag 5134case $reload_flag in 5135"" | " "*) ;; 5136*) reload_flag=" $reload_flag" ;; 5137esac 5138reload_cmds='$LD$reload_flag -o $output$reload_objs' 5139case $host_os in 5140 cygwin* | mingw* | pw32* | cegcc*) 5141 if test "$GCC" != yes; then 5142 reload_cmds=false 5143 fi 5144 ;; 5145 darwin*) 5146 if test "$GCC" = yes; then 5147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5148 else 5149 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5150 fi 5151 ;; 5152esac 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162if test -n "$ac_tool_prefix"; then 5163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5164set dummy ${ac_tool_prefix}objdump; ac_word=$2 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5166$as_echo_n "checking for $ac_word... " >&6; } 5167if ${ac_cv_prog_OBJDUMP+:} false; then : 5168 $as_echo_n "(cached) " >&6 5169else 5170 if test -n "$OBJDUMP"; then 5171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5172else 5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5174for as_dir in $PATH 5175do 5176 IFS=$as_save_IFS 5177 test -z "$as_dir" && as_dir=. 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5182 break 2 5183 fi 5184done 5185 done 5186IFS=$as_save_IFS 5187 5188fi 5189fi 5190OBJDUMP=$ac_cv_prog_OBJDUMP 5191if test -n "$OBJDUMP"; then 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5193$as_echo "$OBJDUMP" >&6; } 5194else 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5196$as_echo "no" >&6; } 5197fi 5198 5199 5200fi 5201if test -z "$ac_cv_prog_OBJDUMP"; then 5202 ac_ct_OBJDUMP=$OBJDUMP 5203 # Extract the first word of "objdump", so it can be a program name with args. 5204set dummy objdump; ac_word=$2 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5206$as_echo_n "checking for $ac_word... " >&6; } 5207if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 if test -n "$ac_ct_OBJDUMP"; then 5211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5212else 5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214for as_dir in $PATH 5215do 5216 IFS=$as_save_IFS 5217 test -z "$as_dir" && as_dir=. 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5220 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224done 5225 done 5226IFS=$as_save_IFS 5227 5228fi 5229fi 5230ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5231if test -n "$ac_ct_OBJDUMP"; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5233$as_echo "$ac_ct_OBJDUMP" >&6; } 5234else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5236$as_echo "no" >&6; } 5237fi 5238 5239 if test "x$ac_ct_OBJDUMP" = x; then 5240 OBJDUMP="false" 5241 else 5242 case $cross_compiling:$ac_tool_warned in 5243yes:) 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5246ac_tool_warned=yes ;; 5247esac 5248 OBJDUMP=$ac_ct_OBJDUMP 5249 fi 5250else 5251 OBJDUMP="$ac_cv_prog_OBJDUMP" 5252fi 5253 5254test -z "$OBJDUMP" && OBJDUMP=objdump 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5265$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5266if ${lt_cv_deplibs_check_method+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 lt_cv_file_magic_cmd='$MAGIC_CMD' 5270lt_cv_file_magic_test_file= 5271lt_cv_deplibs_check_method='unknown' 5272# Need to set the preceding variable on all platforms that support 5273# interlibrary dependencies. 5274# 'none' -- dependencies not supported. 5275# `unknown' -- same as none, but documents that we really don't know. 5276# 'pass_all' -- all dependencies passed with no checks. 5277# 'test_compile' -- check by making test program. 5278# 'file_magic [[regex]]' -- check by looking for files in library path 5279# which responds to the $file_magic_cmd with a given extended regex. 5280# If you have `file' or equivalent on your system and you're not sure 5281# whether `pass_all' will *always* work, you probably want this one. 5282 5283case $host_os in 5284aix[4-9]*) 5285 lt_cv_deplibs_check_method=pass_all 5286 ;; 5287 5288beos*) 5289 lt_cv_deplibs_check_method=pass_all 5290 ;; 5291 5292bsdi[45]*) 5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5294 lt_cv_file_magic_cmd='/usr/bin/file -L' 5295 lt_cv_file_magic_test_file=/shlib/libc.so 5296 ;; 5297 5298cygwin*) 5299 # func_win32_libid is a shell function defined in ltmain.sh 5300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5301 lt_cv_file_magic_cmd='func_win32_libid' 5302 ;; 5303 5304mingw* | pw32*) 5305 # Base MSYS/MinGW do not provide the 'file' command needed by 5306 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5307 # unless we find 'file', for example because we are cross-compiling. 5308 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5309 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5311 lt_cv_file_magic_cmd='func_win32_libid' 5312 else 5313 # Keep this pattern in sync with the one in func_win32_libid. 5314 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5315 lt_cv_file_magic_cmd='$OBJDUMP -f' 5316 fi 5317 ;; 5318 5319cegcc*) 5320 # use the weaker test based on 'objdump'. See mingw*. 5321 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5322 lt_cv_file_magic_cmd='$OBJDUMP -f' 5323 ;; 5324 5325darwin* | rhapsody*) 5326 lt_cv_deplibs_check_method=pass_all 5327 ;; 5328 5329freebsd* | dragonfly*) 5330 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5331 case $host_cpu in 5332 i*86 ) 5333 # Not sure whether the presence of OpenBSD here was a mistake. 5334 # Let's accept both of them until this is cleared up. 5335 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5336 lt_cv_file_magic_cmd=/usr/bin/file 5337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5338 ;; 5339 esac 5340 else 5341 lt_cv_deplibs_check_method=pass_all 5342 fi 5343 ;; 5344 5345gnu*) 5346 lt_cv_deplibs_check_method=pass_all 5347 ;; 5348 5349haiku*) 5350 lt_cv_deplibs_check_method=pass_all 5351 ;; 5352 5353hpux10.20* | hpux11*) 5354 lt_cv_file_magic_cmd=/usr/bin/file 5355 case $host_cpu in 5356 ia64*) 5357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5358 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5359 ;; 5360 hppa*64*) 5361 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]' 5362 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5363 ;; 5364 *) 5365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5366 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5367 ;; 5368 esac 5369 ;; 5370 5371interix[3-9]*) 5372 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5374 ;; 5375 5376irix5* | irix6* | nonstopux*) 5377 case $LD in 5378 *-32|*"-32 ") libmagic=32-bit;; 5379 *-n32|*"-n32 ") libmagic=N32;; 5380 *-64|*"-64 ") libmagic=64-bit;; 5381 *) libmagic=never-match;; 5382 esac 5383 lt_cv_deplibs_check_method=pass_all 5384 ;; 5385 5386# This must be glibc/ELF. 5387linux* | k*bsd*-gnu | kopensolaris*-gnu) 5388 lt_cv_deplibs_check_method=pass_all 5389 ;; 5390 5391netbsd*) 5392 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5394 else 5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5396 fi 5397 ;; 5398 5399newos6*) 5400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5401 lt_cv_file_magic_cmd=/usr/bin/file 5402 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5403 ;; 5404 5405*nto* | *qnx*) 5406 lt_cv_deplibs_check_method=pass_all 5407 ;; 5408 5409openbsd*) 5410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5412 else 5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5414 fi 5415 ;; 5416 5417osf3* | osf4* | osf5*) 5418 lt_cv_deplibs_check_method=pass_all 5419 ;; 5420 5421rdos*) 5422 lt_cv_deplibs_check_method=pass_all 5423 ;; 5424 5425solaris*) 5426 lt_cv_deplibs_check_method=pass_all 5427 ;; 5428 5429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5430 lt_cv_deplibs_check_method=pass_all 5431 ;; 5432 5433sysv4 | sysv4.3*) 5434 case $host_vendor in 5435 motorola) 5436 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]' 5437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5438 ;; 5439 ncr) 5440 lt_cv_deplibs_check_method=pass_all 5441 ;; 5442 sequent) 5443 lt_cv_file_magic_cmd='/bin/file' 5444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5445 ;; 5446 sni) 5447 lt_cv_file_magic_cmd='/bin/file' 5448 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5449 lt_cv_file_magic_test_file=/lib/libc.so 5450 ;; 5451 siemens) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 pc) 5455 lt_cv_deplibs_check_method=pass_all 5456 ;; 5457 esac 5458 ;; 5459 5460tpf*) 5461 lt_cv_deplibs_check_method=pass_all 5462 ;; 5463esac 5464 5465fi 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5467$as_echo "$lt_cv_deplibs_check_method" >&6; } 5468 5469file_magic_glob= 5470want_nocaseglob=no 5471if test "$build" = "$host"; then 5472 case $host_os in 5473 mingw* | pw32*) 5474 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5475 want_nocaseglob=yes 5476 else 5477 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5478 fi 5479 ;; 5480 esac 5481fi 5482 5483file_magic_cmd=$lt_cv_file_magic_cmd 5484deplibs_check_method=$lt_cv_deplibs_check_method 5485test -z "$deplibs_check_method" && deplibs_check_method=unknown 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508if test -n "$ac_tool_prefix"; then 5509 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5510set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5512$as_echo_n "checking for $ac_word... " >&6; } 5513if ${ac_cv_prog_DLLTOOL+:} false; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 if test -n "$DLLTOOL"; then 5517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5518else 5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5520for as_dir in $PATH 5521do 5522 IFS=$as_save_IFS 5523 test -z "$as_dir" && as_dir=. 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5526 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5528 break 2 5529 fi 5530done 5531 done 5532IFS=$as_save_IFS 5533 5534fi 5535fi 5536DLLTOOL=$ac_cv_prog_DLLTOOL 5537if test -n "$DLLTOOL"; then 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5539$as_echo "$DLLTOOL" >&6; } 5540else 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5542$as_echo "no" >&6; } 5543fi 5544 5545 5546fi 5547if test -z "$ac_cv_prog_DLLTOOL"; then 5548 ac_ct_DLLTOOL=$DLLTOOL 5549 # Extract the first word of "dlltool", so it can be a program name with args. 5550set dummy dlltool; ac_word=$2 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5552$as_echo_n "checking for $ac_word... " >&6; } 5553if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -n "$ac_ct_DLLTOOL"; then 5557 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5558else 5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5560for as_dir in $PATH 5561do 5562 IFS=$as_save_IFS 5563 test -z "$as_dir" && as_dir=. 5564 for ac_exec_ext in '' $ac_executable_extensions; do 5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5566 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570done 5571 done 5572IFS=$as_save_IFS 5573 5574fi 5575fi 5576ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5577if test -n "$ac_ct_DLLTOOL"; then 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5579$as_echo "$ac_ct_DLLTOOL" >&6; } 5580else 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5582$as_echo "no" >&6; } 5583fi 5584 5585 if test "x$ac_ct_DLLTOOL" = x; then 5586 DLLTOOL="false" 5587 else 5588 case $cross_compiling:$ac_tool_warned in 5589yes:) 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5592ac_tool_warned=yes ;; 5593esac 5594 DLLTOOL=$ac_ct_DLLTOOL 5595 fi 5596else 5597 DLLTOOL="$ac_cv_prog_DLLTOOL" 5598fi 5599 5600test -z "$DLLTOOL" && DLLTOOL=dlltool 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5612$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5613if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 lt_cv_sharedlib_from_linklib_cmd='unknown' 5617 5618case $host_os in 5619cygwin* | mingw* | pw32* | cegcc*) 5620 # two different shell functions defined in ltmain.sh 5621 # decide which to use based on capabilities of $DLLTOOL 5622 case `$DLLTOOL --help 2>&1` in 5623 *--identify-strict*) 5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5625 ;; 5626 *) 5627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5628 ;; 5629 esac 5630 ;; 5631*) 5632 # fallback: assume linklib IS sharedlib 5633 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5634 ;; 5635esac 5636 5637fi 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5639$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5640sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5641test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5642 5643 5644 5645 5646 5647 5648 5649 5650if test -n "$ac_tool_prefix"; then 5651 for ac_prog in ar 5652 do 5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5654set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5656$as_echo_n "checking for $ac_word... " >&6; } 5657if ${ac_cv_prog_AR+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 if test -n "$AR"; then 5661 ac_cv_prog_AR="$AR" # Let the user override the test. 5662else 5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5664for as_dir in $PATH 5665do 5666 IFS=$as_save_IFS 5667 test -z "$as_dir" && as_dir=. 5668 for ac_exec_ext in '' $ac_executable_extensions; do 5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5670 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5672 break 2 5673 fi 5674done 5675 done 5676IFS=$as_save_IFS 5677 5678fi 5679fi 5680AR=$ac_cv_prog_AR 5681if test -n "$AR"; then 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5683$as_echo "$AR" >&6; } 5684else 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5686$as_echo "no" >&6; } 5687fi 5688 5689 5690 test -n "$AR" && break 5691 done 5692fi 5693if test -z "$AR"; then 5694 ac_ct_AR=$AR 5695 for ac_prog in ar 5696do 5697 # Extract the first word of "$ac_prog", so it can be a program name with args. 5698set dummy $ac_prog; ac_word=$2 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5700$as_echo_n "checking for $ac_word... " >&6; } 5701if ${ac_cv_prog_ac_ct_AR+:} false; then : 5702 $as_echo_n "(cached) " >&6 5703else 5704 if test -n "$ac_ct_AR"; then 5705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5706else 5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708for as_dir in $PATH 5709do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5714 ac_cv_prog_ac_ct_AR="$ac_prog" 5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5716 break 2 5717 fi 5718done 5719 done 5720IFS=$as_save_IFS 5721 5722fi 5723fi 5724ac_ct_AR=$ac_cv_prog_ac_ct_AR 5725if test -n "$ac_ct_AR"; then 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5727$as_echo "$ac_ct_AR" >&6; } 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730$as_echo "no" >&6; } 5731fi 5732 5733 5734 test -n "$ac_ct_AR" && break 5735done 5736 5737 if test "x$ac_ct_AR" = x; then 5738 AR="false" 5739 else 5740 case $cross_compiling:$ac_tool_warned in 5741yes:) 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5744ac_tool_warned=yes ;; 5745esac 5746 AR=$ac_ct_AR 5747 fi 5748fi 5749 5750: ${AR=ar} 5751: ${AR_FLAGS=cru} 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5764$as_echo_n "checking for archiver @FILE support... " >&6; } 5765if ${lt_cv_ar_at_file+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 lt_cv_ar_at_file=no 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5770/* end confdefs.h. */ 5771 5772int 5773main () 5774{ 5775 5776 ; 5777 return 0; 5778} 5779_ACEOF 5780if ac_fn_c_try_compile "$LINENO"; then : 5781 echo conftest.$ac_objext > conftest.lst 5782 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5784 (eval $lt_ar_try) 2>&5 5785 ac_status=$? 5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5787 test $ac_status = 0; } 5788 if test "$ac_status" -eq 0; then 5789 # Ensure the archiver fails upon bogus file names. 5790 rm -f conftest.$ac_objext libconftest.a 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" -ne 0; then 5797 lt_cv_ar_at_file=@ 5798 fi 5799 fi 5800 rm -f conftest.* libconftest.a 5801 5802fi 5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5804 5805fi 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5807$as_echo "$lt_cv_ar_at_file" >&6; } 5808 5809if test "x$lt_cv_ar_at_file" = xno; then 5810 archiver_list_spec= 5811else 5812 archiver_list_spec=$lt_cv_ar_at_file 5813fi 5814 5815 5816 5817 5818 5819 5820 5821if test -n "$ac_tool_prefix"; then 5822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5823set dummy ${ac_tool_prefix}strip; ac_word=$2 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5825$as_echo_n "checking for $ac_word... " >&6; } 5826if ${ac_cv_prog_STRIP+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 if test -n "$STRIP"; then 5830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5839 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844 done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849STRIP=$ac_cv_prog_STRIP 5850if test -n "$STRIP"; then 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5852$as_echo "$STRIP" >&6; } 5853else 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855$as_echo "no" >&6; } 5856fi 5857 5858 5859fi 5860if test -z "$ac_cv_prog_STRIP"; then 5861 ac_ct_STRIP=$STRIP 5862 # Extract the first word of "strip", so it can be a program name with args. 5863set dummy strip; ac_word=$2 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5865$as_echo_n "checking for $ac_word... " >&6; } 5866if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 if test -n "$ac_ct_STRIP"; then 5870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5871else 5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5873for as_dir in $PATH 5874do 5875 IFS=$as_save_IFS 5876 test -z "$as_dir" && as_dir=. 5877 for ac_exec_ext in '' $ac_executable_extensions; do 5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5879 ac_cv_prog_ac_ct_STRIP="strip" 5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5881 break 2 5882 fi 5883done 5884 done 5885IFS=$as_save_IFS 5886 5887fi 5888fi 5889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5890if test -n "$ac_ct_STRIP"; then 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5892$as_echo "$ac_ct_STRIP" >&6; } 5893else 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5895$as_echo "no" >&6; } 5896fi 5897 5898 if test "x$ac_ct_STRIP" = x; then 5899 STRIP=":" 5900 else 5901 case $cross_compiling:$ac_tool_warned in 5902yes:) 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5905ac_tool_warned=yes ;; 5906esac 5907 STRIP=$ac_ct_STRIP 5908 fi 5909else 5910 STRIP="$ac_cv_prog_STRIP" 5911fi 5912 5913test -z "$STRIP" && STRIP=: 5914 5915 5916 5917 5918 5919 5920if test -n "$ac_tool_prefix"; then 5921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5922set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5924$as_echo_n "checking for $ac_word... " >&6; } 5925if ${ac_cv_prog_RANLIB+:} false; then : 5926 $as_echo_n "(cached) " >&6 5927else 5928 if test -n "$RANLIB"; then 5929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942done 5943 done 5944IFS=$as_save_IFS 5945 5946fi 5947fi 5948RANLIB=$ac_cv_prog_RANLIB 5949if test -n "$RANLIB"; then 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5951$as_echo "$RANLIB" >&6; } 5952else 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954$as_echo "no" >&6; } 5955fi 5956 5957 5958fi 5959if test -z "$ac_cv_prog_RANLIB"; then 5960 ac_ct_RANLIB=$RANLIB 5961 # Extract the first word of "ranlib", so it can be a program name with args. 5962set dummy ranlib; ac_word=$2 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5964$as_echo_n "checking for $ac_word... " >&6; } 5965if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 if test -n "$ac_ct_RANLIB"; then 5969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5970else 5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5972for as_dir in $PATH 5973do 5974 IFS=$as_save_IFS 5975 test -z "$as_dir" && as_dir=. 5976 for ac_exec_ext in '' $ac_executable_extensions; do 5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5978 ac_cv_prog_ac_ct_RANLIB="ranlib" 5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5980 break 2 5981 fi 5982done 5983 done 5984IFS=$as_save_IFS 5985 5986fi 5987fi 5988ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5989if test -n "$ac_ct_RANLIB"; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5991$as_echo "$ac_ct_RANLIB" >&6; } 5992else 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5994$as_echo "no" >&6; } 5995fi 5996 5997 if test "x$ac_ct_RANLIB" = x; then 5998 RANLIB=":" 5999 else 6000 case $cross_compiling:$ac_tool_warned in 6001yes:) 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6004ac_tool_warned=yes ;; 6005esac 6006 RANLIB=$ac_ct_RANLIB 6007 fi 6008else 6009 RANLIB="$ac_cv_prog_RANLIB" 6010fi 6011 6012test -z "$RANLIB" && RANLIB=: 6013 6014 6015 6016 6017 6018 6019# Determine commands to create old-style static archives. 6020old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6021old_postinstall_cmds='chmod 644 $oldlib' 6022old_postuninstall_cmds= 6023 6024if test -n "$RANLIB"; then 6025 case $host_os in 6026 openbsd*) 6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6028 ;; 6029 *) 6030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6031 ;; 6032 esac 6033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6034fi 6035 6036case $host_os in 6037 darwin*) 6038 lock_old_archive_extraction=yes ;; 6039 *) 6040 lock_old_archive_extraction=no ;; 6041esac 6042 6043 6044 6045 6046 6047 6048 6049 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# If no C compiler was specified, use CC. 6082LTCC=${LTCC-"$CC"} 6083 6084# If no C compiler flags were specified, use CFLAGS. 6085LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6086 6087# Allow CC to be a program name with arguments. 6088compiler=$CC 6089 6090 6091# Check for command to grab the raw symbol name followed by C symbol from nm. 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6093$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6094if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 6098# These are sane defaults that work on at least a few old systems. 6099# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6100 6101# Character class describing NM global symbol codes. 6102symcode='[BCDEGRST]' 6103 6104# Regexp to match symbols that can be accessed directly from C. 6105sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6106 6107# Define system-specific variables. 6108case $host_os in 6109aix*) 6110 symcode='[BCDT]' 6111 ;; 6112cygwin* | mingw* | pw32* | cegcc*) 6113 symcode='[ABCDGISTW]' 6114 ;; 6115hpux*) 6116 if test "$host_cpu" = ia64; then 6117 symcode='[ABCDEGRST]' 6118 fi 6119 ;; 6120irix* | nonstopux*) 6121 symcode='[BCDEGRST]' 6122 ;; 6123osf*) 6124 symcode='[BCDEGQRST]' 6125 ;; 6126solaris*) 6127 symcode='[BDRT]' 6128 ;; 6129sco3.2v5*) 6130 symcode='[DT]' 6131 ;; 6132sysv4.2uw2*) 6133 symcode='[DT]' 6134 ;; 6135sysv5* | sco5v6* | unixware* | OpenUNIX*) 6136 symcode='[ABDT]' 6137 ;; 6138sysv4) 6139 symcode='[DFNSTU]' 6140 ;; 6141esac 6142 6143# If we're using GNU nm, then use its standard symbol codes. 6144case `$NM -V 2>&1` in 6145*GNU* | *'with BFD'*) 6146 symcode='[ABCDGIRSTW]' ;; 6147esac 6148 6149# Transform an extracted symbol line into a proper C declaration. 6150# Some systems (esp. on ia64) link data and code symbols differently, 6151# so use this general approach. 6152lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6153 6154# Transform an extracted symbol line into symbol name and symbol address 6155lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6156lt_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'" 6157 6158# Handle CRLF in mingw tool chain 6159opt_cr= 6160case $build_os in 6161mingw*) 6162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6163 ;; 6164esac 6165 6166# Try without a prefix underscore, then with it. 6167for ac_symprfx in "" "_"; do 6168 6169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6170 symxfrm="\\1 $ac_symprfx\\2 \\2" 6171 6172 # Write the raw and C identifiers. 6173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6174 # Fake it for dumpbin and say T for any non-static function 6175 # and D for any global variable. 6176 # Also find C++ and __fastcall symbols from MSVC++, 6177 # which start with @ or ?. 6178 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6179" {last_section=section; section=\$ 3};"\ 6180" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6181" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6182" \$ 0!~/External *\|/{next};"\ 6183" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6184" {if(hide[section]) next};"\ 6185" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6186" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6187" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6188" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6189" ' prfx=^$ac_symprfx" 6190 else 6191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6192 fi 6193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6194 6195 # Check to see that the pipe works correctly. 6196 pipe_works=no 6197 6198 rm -f conftest* 6199 cat > conftest.$ac_ext <<_LT_EOF 6200#ifdef __cplusplus 6201extern "C" { 6202#endif 6203char nm_test_var; 6204void nm_test_func(void); 6205void nm_test_func(void){} 6206#ifdef __cplusplus 6207} 6208#endif 6209int main(){nm_test_var='a';nm_test_func();return(0);} 6210_LT_EOF 6211 6212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6213 (eval $ac_compile) 2>&5 6214 ac_status=$? 6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6216 test $ac_status = 0; }; then 6217 # Now try to grab the symbols. 6218 nlist=conftest.nm 6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6220 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6221 ac_status=$? 6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6223 test $ac_status = 0; } && test -s "$nlist"; then 6224 # Try sorting and uniquifying the output. 6225 if sort "$nlist" | uniq > "$nlist"T; then 6226 mv -f "$nlist"T "$nlist" 6227 else 6228 rm -f "$nlist"T 6229 fi 6230 6231 # Make sure that we snagged all the symbols we need. 6232 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6233 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6234 cat <<_LT_EOF > conftest.$ac_ext 6235/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6236#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6237/* DATA imports from DLLs on WIN32 con't be const, because runtime 6238 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6239# define LT_DLSYM_CONST 6240#elif defined(__osf__) 6241/* This system does not cope well with relocations in const data. */ 6242# define LT_DLSYM_CONST 6243#else 6244# define LT_DLSYM_CONST const 6245#endif 6246 6247#ifdef __cplusplus 6248extern "C" { 6249#endif 6250 6251_LT_EOF 6252 # Now generate the symbol file. 6253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6254 6255 cat <<_LT_EOF >> conftest.$ac_ext 6256 6257/* The mapping between symbol names and symbols. */ 6258LT_DLSYM_CONST struct { 6259 const char *name; 6260 void *address; 6261} 6262lt__PROGRAM__LTX_preloaded_symbols[] = 6263{ 6264 { "@PROGRAM@", (void *) 0 }, 6265_LT_EOF 6266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6267 cat <<\_LT_EOF >> conftest.$ac_ext 6268 {0, (void *) 0} 6269}; 6270 6271/* This works around a problem in FreeBSD linker */ 6272#ifdef FREEBSD_WORKAROUND 6273static const void *lt_preloaded_setup() { 6274 return lt__PROGRAM__LTX_preloaded_symbols; 6275} 6276#endif 6277 6278#ifdef __cplusplus 6279} 6280#endif 6281_LT_EOF 6282 # Now try linking the two files. 6283 mv conftest.$ac_objext conftstm.$ac_objext 6284 lt_globsym_save_LIBS=$LIBS 6285 lt_globsym_save_CFLAGS=$CFLAGS 6286 LIBS="conftstm.$ac_objext" 6287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6289 (eval $ac_link) 2>&5 6290 ac_status=$? 6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6293 pipe_works=yes 6294 fi 6295 LIBS=$lt_globsym_save_LIBS 6296 CFLAGS=$lt_globsym_save_CFLAGS 6297 else 6298 echo "cannot find nm_test_func in $nlist" >&5 6299 fi 6300 else 6301 echo "cannot find nm_test_var in $nlist" >&5 6302 fi 6303 else 6304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6305 fi 6306 else 6307 echo "$progname: failed program was:" >&5 6308 cat conftest.$ac_ext >&5 6309 fi 6310 rm -rf conftest* conftst* 6311 6312 # Do not use the global_symbol_pipe unless it works. 6313 if test "$pipe_works" = yes; then 6314 break 6315 else 6316 lt_cv_sys_global_symbol_pipe= 6317 fi 6318done 6319 6320fi 6321 6322if test -z "$lt_cv_sys_global_symbol_pipe"; then 6323 lt_cv_sys_global_symbol_to_cdecl= 6324fi 6325if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6327$as_echo "failed" >&6; } 6328else 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6330$as_echo "ok" >&6; } 6331fi 6332 6333# Response file support. 6334if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6335 nm_file_list_spec='@' 6336elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6337 nm_file_list_spec='@' 6338fi 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6367$as_echo_n "checking for sysroot... " >&6; } 6368 6369# Check whether --with-sysroot was given. 6370if test "${with_sysroot+set}" = set; then : 6371 withval=$with_sysroot; 6372else 6373 with_sysroot=no 6374fi 6375 6376 6377lt_sysroot= 6378case ${with_sysroot} in #( 6379 yes) 6380 if test "$GCC" = yes; then 6381 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6382 fi 6383 ;; #( 6384 /*) 6385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6386 ;; #( 6387 no|'') 6388 ;; #( 6389 *) 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6391$as_echo "${with_sysroot}" >&6; } 6392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6393 ;; 6394esac 6395 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6397$as_echo "${lt_sysroot:-no}" >&6; } 6398 6399 6400 6401 6402 6403# Check whether --enable-libtool-lock was given. 6404if test "${enable_libtool_lock+set}" = set; then : 6405 enableval=$enable_libtool_lock; 6406fi 6407 6408test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6409 6410# Some flags need to be propagated to the compiler or linker for good 6411# libtool support. 6412case $host in 6413ia64-*-hpux*) 6414 # Find out which ABI we are using. 6415 echo 'int i;' > conftest.$ac_ext 6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6417 (eval $ac_compile) 2>&5 6418 ac_status=$? 6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; }; then 6421 case `/usr/bin/file conftest.$ac_objext` in 6422 *ELF-32*) 6423 HPUX_IA64_MODE="32" 6424 ;; 6425 *ELF-64*) 6426 HPUX_IA64_MODE="64" 6427 ;; 6428 esac 6429 fi 6430 rm -rf conftest* 6431 ;; 6432*-*-irix6*) 6433 # Find out which ABI we are using. 6434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6436 (eval $ac_compile) 2>&5 6437 ac_status=$? 6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6439 test $ac_status = 0; }; then 6440 if test "$lt_cv_prog_gnu_ld" = yes; then 6441 case `/usr/bin/file conftest.$ac_objext` in 6442 *32-bit*) 6443 LD="${LD-ld} -melf32bsmip" 6444 ;; 6445 *N32*) 6446 LD="${LD-ld} -melf32bmipn32" 6447 ;; 6448 *64-bit*) 6449 LD="${LD-ld} -melf64bmip" 6450 ;; 6451 esac 6452 else 6453 case `/usr/bin/file conftest.$ac_objext` in 6454 *32-bit*) 6455 LD="${LD-ld} -32" 6456 ;; 6457 *N32*) 6458 LD="${LD-ld} -n32" 6459 ;; 6460 *64-bit*) 6461 LD="${LD-ld} -64" 6462 ;; 6463 esac 6464 fi 6465 fi 6466 rm -rf conftest* 6467 ;; 6468 6469x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6470s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6471 # Find out which ABI we are using. 6472 echo 'int i;' > conftest.$ac_ext 6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6474 (eval $ac_compile) 2>&5 6475 ac_status=$? 6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6477 test $ac_status = 0; }; then 6478 case `/usr/bin/file conftest.o` in 6479 *32-bit*) 6480 case $host in 6481 x86_64-*kfreebsd*-gnu) 6482 LD="${LD-ld} -m elf_i386_fbsd" 6483 ;; 6484 x86_64-*linux*) 6485 LD="${LD-ld} -m elf_i386" 6486 ;; 6487 ppc64-*linux*|powerpc64-*linux*) 6488 LD="${LD-ld} -m elf32ppclinux" 6489 ;; 6490 s390x-*linux*) 6491 LD="${LD-ld} -m elf_s390" 6492 ;; 6493 sparc64-*linux*) 6494 LD="${LD-ld} -m elf32_sparc" 6495 ;; 6496 esac 6497 ;; 6498 *64-bit*) 6499 case $host in 6500 x86_64-*kfreebsd*-gnu) 6501 LD="${LD-ld} -m elf_x86_64_fbsd" 6502 ;; 6503 x86_64-*linux*) 6504 LD="${LD-ld} -m elf_x86_64" 6505 ;; 6506 ppc*-*linux*|powerpc*-*linux*) 6507 LD="${LD-ld} -m elf64ppc" 6508 ;; 6509 s390*-*linux*|s390*-*tpf*) 6510 LD="${LD-ld} -m elf64_s390" 6511 ;; 6512 sparc*-*linux*) 6513 LD="${LD-ld} -m elf64_sparc" 6514 ;; 6515 esac 6516 ;; 6517 esac 6518 fi 6519 rm -rf conftest* 6520 ;; 6521 6522*-*-sco3.2v5*) 6523 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6524 SAVE_CFLAGS="$CFLAGS" 6525 CFLAGS="$CFLAGS -belf" 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6527$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6528if ${lt_cv_cc_needs_belf+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 ac_ext=c 6532ac_cpp='$CPP $CPPFLAGS' 6533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6535ac_compiler_gnu=$ac_cv_c_compiler_gnu 6536 6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6538/* end confdefs.h. */ 6539 6540int 6541main () 6542{ 6543 6544 ; 6545 return 0; 6546} 6547_ACEOF 6548if ac_fn_c_try_link "$LINENO"; then : 6549 lt_cv_cc_needs_belf=yes 6550else 6551 lt_cv_cc_needs_belf=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext \ 6554 conftest$ac_exeext conftest.$ac_ext 6555 ac_ext=c 6556ac_cpp='$CPP $CPPFLAGS' 6557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6559ac_compiler_gnu=$ac_cv_c_compiler_gnu 6560 6561fi 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6563$as_echo "$lt_cv_cc_needs_belf" >&6; } 6564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6566 CFLAGS="$SAVE_CFLAGS" 6567 fi 6568 ;; 6569*-*solaris*) 6570 # Find out which ABI we are using. 6571 echo 'int i;' > conftest.$ac_ext 6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6573 (eval $ac_compile) 2>&5 6574 ac_status=$? 6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6576 test $ac_status = 0; }; then 6577 case `/usr/bin/file conftest.o` in 6578 *64-bit*) 6579 case $lt_cv_prog_gnu_ld in 6580 yes*) 6581 case $host in 6582 i?86-*-solaris*) 6583 LD="${LD-ld} -m elf_x86_64" 6584 ;; 6585 sparc*-*-solaris*) 6586 LD="${LD-ld} -m elf64_sparc" 6587 ;; 6588 esac 6589 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6590 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6591 LD="${LD-ld}_sol2" 6592 fi 6593 ;; 6594 *) 6595 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6596 LD="${LD-ld} -64" 6597 fi 6598 ;; 6599 esac 6600 ;; 6601 esac 6602 fi 6603 rm -rf conftest* 6604 ;; 6605esac 6606 6607need_locks="$enable_libtool_lock" 6608 6609if test -n "$ac_tool_prefix"; then 6610 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6611set dummy ${ac_tool_prefix}mt; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$MANIFEST_TOOL"; then 6618 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6627 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6638if test -n "$MANIFEST_TOOL"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6640$as_echo "$MANIFEST_TOOL" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647fi 6648if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6649 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6650 # Extract the first word of "mt", so it can be a program name with args. 6651set dummy mt; ac_word=$2 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653$as_echo_n "checking for $ac_word... " >&6; } 6654if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 if test -n "$ac_ct_MANIFEST_TOOL"; then 6658 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6659else 6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661for as_dir in $PATH 6662do 6663 IFS=$as_save_IFS 6664 test -z "$as_dir" && as_dir=. 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6667 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6669 break 2 6670 fi 6671done 6672 done 6673IFS=$as_save_IFS 6674 6675fi 6676fi 6677ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6678if test -n "$ac_ct_MANIFEST_TOOL"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6680$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6681else 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6683$as_echo "no" >&6; } 6684fi 6685 6686 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6687 MANIFEST_TOOL=":" 6688 else 6689 case $cross_compiling:$ac_tool_warned in 6690yes:) 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6693ac_tool_warned=yes ;; 6694esac 6695 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6696 fi 6697else 6698 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6699fi 6700 6701test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6703$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6704if ${lt_cv_path_mainfest_tool+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 lt_cv_path_mainfest_tool=no 6708 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6709 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6710 cat conftest.err >&5 6711 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6712 lt_cv_path_mainfest_tool=yes 6713 fi 6714 rm -f conftest* 6715fi 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6717$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6718if test "x$lt_cv_path_mainfest_tool" != xyes; then 6719 MANIFEST_TOOL=: 6720fi 6721 6722 6723 6724 6725 6726 6727 case $host_os in 6728 rhapsody* | darwin*) 6729 if test -n "$ac_tool_prefix"; then 6730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6731set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6733$as_echo_n "checking for $ac_word... " >&6; } 6734if ${ac_cv_prog_DSYMUTIL+:} false; then : 6735 $as_echo_n "(cached) " >&6 6736else 6737 if test -n "$DSYMUTIL"; then 6738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6739else 6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741for as_dir in $PATH 6742do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751done 6752 done 6753IFS=$as_save_IFS 6754 6755fi 6756fi 6757DSYMUTIL=$ac_cv_prog_DSYMUTIL 6758if test -n "$DSYMUTIL"; then 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6760$as_echo "$DSYMUTIL" >&6; } 6761else 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763$as_echo "no" >&6; } 6764fi 6765 6766 6767fi 6768if test -z "$ac_cv_prog_DSYMUTIL"; then 6769 ac_ct_DSYMUTIL=$DSYMUTIL 6770 # Extract the first word of "dsymutil", so it can be a program name with args. 6771set dummy dsymutil; ac_word=$2 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773$as_echo_n "checking for $ac_word... " >&6; } 6774if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 if test -n "$ac_ct_DSYMUTIL"; then 6778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6779else 6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781for as_dir in $PATH 6782do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791done 6792 done 6793IFS=$as_save_IFS 6794 6795fi 6796fi 6797ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6798if test -n "$ac_ct_DSYMUTIL"; then 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6800$as_echo "$ac_ct_DSYMUTIL" >&6; } 6801else 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6803$as_echo "no" >&6; } 6804fi 6805 6806 if test "x$ac_ct_DSYMUTIL" = x; then 6807 DSYMUTIL=":" 6808 else 6809 case $cross_compiling:$ac_tool_warned in 6810yes:) 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6813ac_tool_warned=yes ;; 6814esac 6815 DSYMUTIL=$ac_ct_DSYMUTIL 6816 fi 6817else 6818 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6819fi 6820 6821 if test -n "$ac_tool_prefix"; then 6822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6823set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825$as_echo_n "checking for $ac_word... " >&6; } 6826if ${ac_cv_prog_NMEDIT+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 if test -n "$NMEDIT"; then 6830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6831else 6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843done 6844 done 6845IFS=$as_save_IFS 6846 6847fi 6848fi 6849NMEDIT=$ac_cv_prog_NMEDIT 6850if test -n "$NMEDIT"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6852$as_echo "$NMEDIT" >&6; } 6853else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855$as_echo "no" >&6; } 6856fi 6857 6858 6859fi 6860if test -z "$ac_cv_prog_NMEDIT"; then 6861 ac_ct_NMEDIT=$NMEDIT 6862 # Extract the first word of "nmedit", so it can be a program name with args. 6863set dummy nmedit; ac_word=$2 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865$as_echo_n "checking for $ac_word... " >&6; } 6866if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 if test -n "$ac_ct_NMEDIT"; then 6870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6871else 6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873for as_dir in $PATH 6874do 6875 IFS=$as_save_IFS 6876 test -z "$as_dir" && as_dir=. 6877 for ac_exec_ext in '' $ac_executable_extensions; do 6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6879 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6881 break 2 6882 fi 6883done 6884 done 6885IFS=$as_save_IFS 6886 6887fi 6888fi 6889ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6890if test -n "$ac_ct_NMEDIT"; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6892$as_echo "$ac_ct_NMEDIT" >&6; } 6893else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895$as_echo "no" >&6; } 6896fi 6897 6898 if test "x$ac_ct_NMEDIT" = x; then 6899 NMEDIT=":" 6900 else 6901 case $cross_compiling:$ac_tool_warned in 6902yes:) 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6905ac_tool_warned=yes ;; 6906esac 6907 NMEDIT=$ac_ct_NMEDIT 6908 fi 6909else 6910 NMEDIT="$ac_cv_prog_NMEDIT" 6911fi 6912 6913 if test -n "$ac_tool_prefix"; then 6914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6915set dummy ${ac_tool_prefix}lipo; ac_word=$2 6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6917$as_echo_n "checking for $ac_word... " >&6; } 6918if ${ac_cv_prog_LIPO+:} false; then : 6919 $as_echo_n "(cached) " >&6 6920else 6921 if test -n "$LIPO"; then 6922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6923else 6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925for as_dir in $PATH 6926do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935done 6936 done 6937IFS=$as_save_IFS 6938 6939fi 6940fi 6941LIPO=$ac_cv_prog_LIPO 6942if test -n "$LIPO"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6944$as_echo "$LIPO" >&6; } 6945else 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947$as_echo "no" >&6; } 6948fi 6949 6950 6951fi 6952if test -z "$ac_cv_prog_LIPO"; then 6953 ac_ct_LIPO=$LIPO 6954 # Extract the first word of "lipo", so it can be a program name with args. 6955set dummy lipo; ac_word=$2 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6957$as_echo_n "checking for $ac_word... " >&6; } 6958if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 if test -n "$ac_ct_LIPO"; then 6962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6963else 6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965for as_dir in $PATH 6966do 6967 IFS=$as_save_IFS 6968 test -z "$as_dir" && as_dir=. 6969 for ac_exec_ext in '' $ac_executable_extensions; do 6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6971 ac_cv_prog_ac_ct_LIPO="lipo" 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6973 break 2 6974 fi 6975done 6976 done 6977IFS=$as_save_IFS 6978 6979fi 6980fi 6981ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6982if test -n "$ac_ct_LIPO"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6984$as_echo "$ac_ct_LIPO" >&6; } 6985else 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6987$as_echo "no" >&6; } 6988fi 6989 6990 if test "x$ac_ct_LIPO" = x; then 6991 LIPO=":" 6992 else 6993 case $cross_compiling:$ac_tool_warned in 6994yes:) 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6997ac_tool_warned=yes ;; 6998esac 6999 LIPO=$ac_ct_LIPO 7000 fi 7001else 7002 LIPO="$ac_cv_prog_LIPO" 7003fi 7004 7005 if test -n "$ac_tool_prefix"; then 7006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7007set dummy ${ac_tool_prefix}otool; ac_word=$2 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009$as_echo_n "checking for $ac_word... " >&6; } 7010if ${ac_cv_prog_OTOOL+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 if test -n "$OTOOL"; then 7014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7015else 7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7017for as_dir in $PATH 7018do 7019 IFS=$as_save_IFS 7020 test -z "$as_dir" && as_dir=. 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033OTOOL=$ac_cv_prog_OTOOL 7034if test -n "$OTOOL"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7036$as_echo "$OTOOL" >&6; } 7037else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039$as_echo "no" >&6; } 7040fi 7041 7042 7043fi 7044if test -z "$ac_cv_prog_OTOOL"; then 7045 ac_ct_OTOOL=$OTOOL 7046 # Extract the first word of "otool", so it can be a program name with args. 7047set dummy otool; ac_word=$2 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7049$as_echo_n "checking for $ac_word... " >&6; } 7050if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 if test -n "$ac_ct_OTOOL"; then 7054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7055else 7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057for as_dir in $PATH 7058do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7063 ac_cv_prog_ac_ct_OTOOL="otool" 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067done 7068 done 7069IFS=$as_save_IFS 7070 7071fi 7072fi 7073ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7074if test -n "$ac_ct_OTOOL"; then 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7076$as_echo "$ac_ct_OTOOL" >&6; } 7077else 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7079$as_echo "no" >&6; } 7080fi 7081 7082 if test "x$ac_ct_OTOOL" = x; then 7083 OTOOL=":" 7084 else 7085 case $cross_compiling:$ac_tool_warned in 7086yes:) 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7089ac_tool_warned=yes ;; 7090esac 7091 OTOOL=$ac_ct_OTOOL 7092 fi 7093else 7094 OTOOL="$ac_cv_prog_OTOOL" 7095fi 7096 7097 if test -n "$ac_tool_prefix"; then 7098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7099set dummy ${ac_tool_prefix}otool64; ac_word=$2 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101$as_echo_n "checking for $ac_word... " >&6; } 7102if ${ac_cv_prog_OTOOL64+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 if test -n "$OTOOL64"; then 7106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7107else 7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7109for as_dir in $PATH 7110do 7111 IFS=$as_save_IFS 7112 test -z "$as_dir" && as_dir=. 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7117 break 2 7118 fi 7119done 7120 done 7121IFS=$as_save_IFS 7122 7123fi 7124fi 7125OTOOL64=$ac_cv_prog_OTOOL64 7126if test -n "$OTOOL64"; then 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7128$as_echo "$OTOOL64" >&6; } 7129else 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7131$as_echo "no" >&6; } 7132fi 7133 7134 7135fi 7136if test -z "$ac_cv_prog_OTOOL64"; then 7137 ac_ct_OTOOL64=$OTOOL64 7138 # Extract the first word of "otool64", so it can be a program name with args. 7139set dummy otool64; ac_word=$2 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7141$as_echo_n "checking for $ac_word... " >&6; } 7142if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 if test -n "$ac_ct_OTOOL64"; then 7146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7147else 7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7149for as_dir in $PATH 7150do 7151 IFS=$as_save_IFS 7152 test -z "$as_dir" && as_dir=. 7153 for ac_exec_ext in '' $ac_executable_extensions; do 7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7155 ac_cv_prog_ac_ct_OTOOL64="otool64" 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7157 break 2 7158 fi 7159done 7160 done 7161IFS=$as_save_IFS 7162 7163fi 7164fi 7165ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7166if test -n "$ac_ct_OTOOL64"; then 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7168$as_echo "$ac_ct_OTOOL64" >&6; } 7169else 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171$as_echo "no" >&6; } 7172fi 7173 7174 if test "x$ac_ct_OTOOL64" = x; then 7175 OTOOL64=":" 7176 else 7177 case $cross_compiling:$ac_tool_warned in 7178yes:) 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7181ac_tool_warned=yes ;; 7182esac 7183 OTOOL64=$ac_ct_OTOOL64 7184 fi 7185else 7186 OTOOL64="$ac_cv_prog_OTOOL64" 7187fi 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7216$as_echo_n "checking for -single_module linker flag... " >&6; } 7217if ${lt_cv_apple_cc_single_mod+:} false; then : 7218 $as_echo_n "(cached) " >&6 7219else 7220 lt_cv_apple_cc_single_mod=no 7221 if test -z "${LT_MULTI_MODULE}"; then 7222 # By default we will add the -single_module flag. You can override 7223 # by either setting the environment variable LT_MULTI_MODULE 7224 # non-empty at configure time, or by adding -multi_module to the 7225 # link flags. 7226 rm -rf libconftest.dylib* 7227 echo "int foo(void){return 1;}" > conftest.c 7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7229-dynamiclib -Wl,-single_module conftest.c" >&5 7230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7232 _lt_result=$? 7233 # If there is a non-empty error log, and "single_module" 7234 # appears in it, assume the flag caused a linker warning 7235 if test -s conftest.err && $GREP single_module conftest.err; then 7236 cat conftest.err >&5 7237 # Otherwise, if the output was created with a 0 exit code from 7238 # the compiler, it worked. 7239 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7240 lt_cv_apple_cc_single_mod=yes 7241 else 7242 cat conftest.err >&5 7243 fi 7244 rm -rf libconftest.dylib* 7245 rm -f conftest.* 7246 fi 7247fi 7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7249$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7250 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7252$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7253if ${lt_cv_ld_exported_symbols_list+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 lt_cv_ld_exported_symbols_list=no 7257 save_LDFLAGS=$LDFLAGS 7258 echo "_main" > conftest.sym 7259 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262 7263int 7264main () 7265{ 7266 7267 ; 7268 return 0; 7269} 7270_ACEOF 7271if ac_fn_c_try_link "$LINENO"; then : 7272 lt_cv_ld_exported_symbols_list=yes 7273else 7274 lt_cv_ld_exported_symbols_list=no 7275fi 7276rm -f core conftest.err conftest.$ac_objext \ 7277 conftest$ac_exeext conftest.$ac_ext 7278 LDFLAGS="$save_LDFLAGS" 7279 7280fi 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7282$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7283 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7285$as_echo_n "checking for -force_load linker flag... " >&6; } 7286if ${lt_cv_ld_force_load+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 lt_cv_ld_force_load=no 7290 cat > conftest.c << _LT_EOF 7291int forced_loaded() { return 2;} 7292_LT_EOF 7293 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7294 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7295 echo "$AR cru libconftest.a conftest.o" >&5 7296 $AR cru libconftest.a conftest.o 2>&5 7297 echo "$RANLIB libconftest.a" >&5 7298 $RANLIB libconftest.a 2>&5 7299 cat > conftest.c << _LT_EOF 7300int main() { return 0;} 7301_LT_EOF 7302 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7303 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7304 _lt_result=$? 7305 if test -s conftest.err && $GREP force_load conftest.err; then 7306 cat conftest.err >&5 7307 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7308 lt_cv_ld_force_load=yes 7309 else 7310 cat conftest.err >&5 7311 fi 7312 rm -f conftest.err libconftest.a conftest conftest.c 7313 rm -rf conftest.dSYM 7314 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7317$as_echo "$lt_cv_ld_force_load" >&6; } 7318 case $host_os in 7319 rhapsody* | darwin1.[012]) 7320 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7321 darwin1.*) 7322 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7323 darwin*) # darwin 5.x on 7324 # if running on 10.5 or later, the deployment target defaults 7325 # to the OS version, if on x86, and 10.4, the deployment 7326 # target defaults to 10.4. Don't you love it? 7327 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7328 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7329 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7330 10.[012]*) 7331 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7332 10.*) 7333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7334 esac 7335 ;; 7336 esac 7337 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7338 _lt_dar_single_mod='$single_module' 7339 fi 7340 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7341 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7342 else 7343 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7344 fi 7345 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7346 _lt_dsymutil='~$DSYMUTIL $lib || :' 7347 else 7348 _lt_dsymutil= 7349 fi 7350 ;; 7351 esac 7352 7353ac_ext=c 7354ac_cpp='$CPP $CPPFLAGS' 7355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7357ac_compiler_gnu=$ac_cv_c_compiler_gnu 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7359$as_echo_n "checking how to run the C preprocessor... " >&6; } 7360# On Suns, sometimes $CPP names a directory. 7361if test -n "$CPP" && test -d "$CPP"; then 7362 CPP= 7363fi 7364if test -z "$CPP"; then 7365 if ${ac_cv_prog_CPP+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 # Double quotes because CPP needs to be expanded 7369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7370 do 7371 ac_preproc_ok=false 7372for ac_c_preproc_warn_flag in '' yes 7373do 7374 # Use a header file that comes with gcc, so configuring glibc 7375 # with a fresh cross-compiler works. 7376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7377 # <limits.h> exists even on freestanding compilers. 7378 # On the NeXT, cc -E runs the code through the compiler's parser, 7379 # not just through cpp. "Syntax error" is here to catch this case. 7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7381/* end confdefs.h. */ 7382#ifdef __STDC__ 7383# include <limits.h> 7384#else 7385# include <assert.h> 7386#endif 7387 Syntax error 7388_ACEOF 7389if ac_fn_c_try_cpp "$LINENO"; then : 7390 7391else 7392 # Broken: fails on valid input. 7393continue 7394fi 7395rm -f conftest.err conftest.i conftest.$ac_ext 7396 7397 # OK, works on sane cases. Now check whether nonexistent headers 7398 # can be detected and how. 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401#include <ac_nonexistent.h> 7402_ACEOF 7403if ac_fn_c_try_cpp "$LINENO"; then : 7404 # Broken: success on invalid input. 7405continue 7406else 7407 # Passes both tests. 7408ac_preproc_ok=: 7409break 7410fi 7411rm -f conftest.err conftest.i conftest.$ac_ext 7412 7413done 7414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7415rm -f conftest.i conftest.err conftest.$ac_ext 7416if $ac_preproc_ok; then : 7417 break 7418fi 7419 7420 done 7421 ac_cv_prog_CPP=$CPP 7422 7423fi 7424 CPP=$ac_cv_prog_CPP 7425else 7426 ac_cv_prog_CPP=$CPP 7427fi 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7429$as_echo "$CPP" >&6; } 7430ac_preproc_ok=false 7431for ac_c_preproc_warn_flag in '' yes 7432do 7433 # Use a header file that comes with gcc, so configuring glibc 7434 # with a fresh cross-compiler works. 7435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7436 # <limits.h> exists even on freestanding compilers. 7437 # On the NeXT, cc -E runs the code through the compiler's parser, 7438 # not just through cpp. "Syntax error" is here to catch this case. 7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440/* end confdefs.h. */ 7441#ifdef __STDC__ 7442# include <limits.h> 7443#else 7444# include <assert.h> 7445#endif 7446 Syntax error 7447_ACEOF 7448if ac_fn_c_try_cpp "$LINENO"; then : 7449 7450else 7451 # Broken: fails on valid input. 7452continue 7453fi 7454rm -f conftest.err conftest.i conftest.$ac_ext 7455 7456 # OK, works on sane cases. Now check whether nonexistent headers 7457 # can be detected and how. 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460#include <ac_nonexistent.h> 7461_ACEOF 7462if ac_fn_c_try_cpp "$LINENO"; then : 7463 # Broken: success on invalid input. 7464continue 7465else 7466 # Passes both tests. 7467ac_preproc_ok=: 7468break 7469fi 7470rm -f conftest.err conftest.i conftest.$ac_ext 7471 7472done 7473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7474rm -f conftest.i conftest.err conftest.$ac_ext 7475if $ac_preproc_ok; then : 7476 7477else 7478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7480as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7481See \`config.log' for more details" "$LINENO" 5; } 7482fi 7483 7484ac_ext=c 7485ac_cpp='$CPP $CPPFLAGS' 7486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7488ac_compiler_gnu=$ac_cv_c_compiler_gnu 7489 7490 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7492$as_echo_n "checking for ANSI C header files... " >&6; } 7493if ${ac_cv_header_stdc+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498#include <stdlib.h> 7499#include <stdarg.h> 7500#include <string.h> 7501#include <float.h> 7502 7503int 7504main () 7505{ 7506 7507 ; 7508 return 0; 7509} 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO"; then : 7512 ac_cv_header_stdc=yes 7513else 7514 ac_cv_header_stdc=no 7515fi 7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7517 7518if test $ac_cv_header_stdc = yes; then 7519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522#include <string.h> 7523 7524_ACEOF 7525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7526 $EGREP "memchr" >/dev/null 2>&1; then : 7527 7528else 7529 ac_cv_header_stdc=no 7530fi 7531rm -f conftest* 7532 7533fi 7534 7535if test $ac_cv_header_stdc = yes; then 7536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538/* end confdefs.h. */ 7539#include <stdlib.h> 7540 7541_ACEOF 7542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7543 $EGREP "free" >/dev/null 2>&1; then : 7544 7545else 7546 ac_cv_header_stdc=no 7547fi 7548rm -f conftest* 7549 7550fi 7551 7552if test $ac_cv_header_stdc = yes; then 7553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7554 if test "$cross_compiling" = yes; then : 7555 : 7556else 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559#include <ctype.h> 7560#include <stdlib.h> 7561#if ((' ' & 0x0FF) == 0x020) 7562# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7563# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7564#else 7565# define ISLOWER(c) \ 7566 (('a' <= (c) && (c) <= 'i') \ 7567 || ('j' <= (c) && (c) <= 'r') \ 7568 || ('s' <= (c) && (c) <= 'z')) 7569# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7570#endif 7571 7572#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7573int 7574main () 7575{ 7576 int i; 7577 for (i = 0; i < 256; i++) 7578 if (XOR (islower (i), ISLOWER (i)) 7579 || toupper (i) != TOUPPER (i)) 7580 return 2; 7581 return 0; 7582} 7583_ACEOF 7584if ac_fn_c_try_run "$LINENO"; then : 7585 7586else 7587 ac_cv_header_stdc=no 7588fi 7589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7590 conftest.$ac_objext conftest.beam conftest.$ac_ext 7591fi 7592 7593fi 7594fi 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7596$as_echo "$ac_cv_header_stdc" >&6; } 7597if test $ac_cv_header_stdc = yes; then 7598 7599$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7600 7601fi 7602 7603# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7604for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7605 inttypes.h stdint.h unistd.h 7606do : 7607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7608ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7609" 7610if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7611 cat >>confdefs.h <<_ACEOF 7612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7613_ACEOF 7614 7615fi 7616 7617done 7618 7619 7620for ac_header in dlfcn.h 7621do : 7622 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7623" 7624if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7625 cat >>confdefs.h <<_ACEOF 7626#define HAVE_DLFCN_H 1 7627_ACEOF 7628 7629fi 7630 7631done 7632 7633 7634 7635 7636 7637# Set options 7638 7639 7640 7641 enable_dlopen=no 7642 7643 7644 enable_win32_dll=no 7645 7646 7647 # Check whether --enable-shared was given. 7648if test "${enable_shared+set}" = set; then : 7649 enableval=$enable_shared; p=${PACKAGE-default} 7650 case $enableval in 7651 yes) enable_shared=yes ;; 7652 no) enable_shared=no ;; 7653 *) 7654 enable_shared=no 7655 # Look at the argument we got. We use all the common list separators. 7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7657 for pkg in $enableval; do 7658 IFS="$lt_save_ifs" 7659 if test "X$pkg" = "X$p"; then 7660 enable_shared=yes 7661 fi 7662 done 7663 IFS="$lt_save_ifs" 7664 ;; 7665 esac 7666else 7667 enable_shared=yes 7668fi 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 # Check whether --enable-static was given. 7679if test "${enable_static+set}" = set; then : 7680 enableval=$enable_static; p=${PACKAGE-default} 7681 case $enableval in 7682 yes) enable_static=yes ;; 7683 no) enable_static=no ;; 7684 *) 7685 enable_static=no 7686 # Look at the argument we got. We use all the common list separators. 7687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7688 for pkg in $enableval; do 7689 IFS="$lt_save_ifs" 7690 if test "X$pkg" = "X$p"; then 7691 enable_static=yes 7692 fi 7693 done 7694 IFS="$lt_save_ifs" 7695 ;; 7696 esac 7697else 7698 enable_static=yes 7699fi 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710# Check whether --with-pic was given. 7711if test "${with_pic+set}" = set; then : 7712 withval=$with_pic; lt_p=${PACKAGE-default} 7713 case $withval in 7714 yes|no) pic_mode=$withval ;; 7715 *) 7716 pic_mode=default 7717 # Look at the argument we got. We use all the common list separators. 7718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7719 for lt_pkg in $withval; do 7720 IFS="$lt_save_ifs" 7721 if test "X$lt_pkg" = "X$lt_p"; then 7722 pic_mode=yes 7723 fi 7724 done 7725 IFS="$lt_save_ifs" 7726 ;; 7727 esac 7728else 7729 pic_mode=default 7730fi 7731 7732 7733test -z "$pic_mode" && pic_mode=default 7734 7735 7736 7737 7738 7739 7740 7741 # Check whether --enable-fast-install was given. 7742if test "${enable_fast_install+set}" = set; then : 7743 enableval=$enable_fast_install; p=${PACKAGE-default} 7744 case $enableval in 7745 yes) enable_fast_install=yes ;; 7746 no) enable_fast_install=no ;; 7747 *) 7748 enable_fast_install=no 7749 # Look at the argument we got. We use all the common list separators. 7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7751 for pkg in $enableval; do 7752 IFS="$lt_save_ifs" 7753 if test "X$pkg" = "X$p"; then 7754 enable_fast_install=yes 7755 fi 7756 done 7757 IFS="$lt_save_ifs" 7758 ;; 7759 esac 7760else 7761 enable_fast_install=yes 7762fi 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774# This can be used to rebuild libtool when needed 7775LIBTOOL_DEPS="$ltmain" 7776 7777# Always use our own libtool. 7778LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809test -z "$LN_S" && LN_S="ln -s" 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824if test -n "${ZSH_VERSION+set}" ; then 7825 setopt NO_GLOB_SUBST 7826fi 7827 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7829$as_echo_n "checking for objdir... " >&6; } 7830if ${lt_cv_objdir+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 rm -f .libs 2>/dev/null 7834mkdir .libs 2>/dev/null 7835if test -d .libs; then 7836 lt_cv_objdir=.libs 7837else 7838 # MS-DOS does not allow filenames that begin with a dot. 7839 lt_cv_objdir=_libs 7840fi 7841rmdir .libs 2>/dev/null 7842fi 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7844$as_echo "$lt_cv_objdir" >&6; } 7845objdir=$lt_cv_objdir 7846 7847 7848 7849 7850 7851cat >>confdefs.h <<_ACEOF 7852#define LT_OBJDIR "$lt_cv_objdir/" 7853_ACEOF 7854 7855 7856 7857 7858case $host_os in 7859aix3*) 7860 # AIX sometimes has problems with the GCC collect2 program. For some 7861 # reason, if we set the COLLECT_NAMES environment variable, the problems 7862 # vanish in a puff of smoke. 7863 if test "X${COLLECT_NAMES+set}" != Xset; then 7864 COLLECT_NAMES= 7865 export COLLECT_NAMES 7866 fi 7867 ;; 7868esac 7869 7870# Global variables: 7871ofile=libtool 7872can_build_shared=yes 7873 7874# All known linkers require a `.a' archive for static linking (except MSVC, 7875# which needs '.lib'). 7876libext=a 7877 7878with_gnu_ld="$lt_cv_prog_gnu_ld" 7879 7880old_CC="$CC" 7881old_CFLAGS="$CFLAGS" 7882 7883# Set sane defaults for various variables 7884test -z "$CC" && CC=cc 7885test -z "$LTCC" && LTCC=$CC 7886test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7887test -z "$LD" && LD=ld 7888test -z "$ac_objext" && ac_objext=o 7889 7890for cc_temp in $compiler""; do 7891 case $cc_temp in 7892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7894 \-*) ;; 7895 *) break;; 7896 esac 7897done 7898cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7899 7900 7901# Only perform the check for file, if the check method requires it 7902test -z "$MAGIC_CMD" && MAGIC_CMD=file 7903case $deplibs_check_method in 7904file_magic*) 7905 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7907$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7908if ${lt_cv_path_MAGIC_CMD+:} false; then : 7909 $as_echo_n "(cached) " >&6 7910else 7911 case $MAGIC_CMD in 7912[\\/*] | ?:[\\/]*) 7913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7914 ;; 7915*) 7916 lt_save_MAGIC_CMD="$MAGIC_CMD" 7917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7919 for ac_dir in $ac_dummy; do 7920 IFS="$lt_save_ifs" 7921 test -z "$ac_dir" && ac_dir=. 7922 if test -f $ac_dir/${ac_tool_prefix}file; then 7923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7924 if test -n "$file_magic_test_file"; then 7925 case $deplibs_check_method in 7926 "file_magic "*) 7927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7930 $EGREP "$file_magic_regex" > /dev/null; then 7931 : 7932 else 7933 cat <<_LT_EOF 1>&2 7934 7935*** Warning: the command libtool uses to detect shared libraries, 7936*** $file_magic_cmd, produces output that libtool cannot recognize. 7937*** The result is that libtool may fail to recognize shared libraries 7938*** as such. This will affect the creation of libtool libraries that 7939*** depend on shared libraries, but programs linked with such libtool 7940*** libraries will work regardless of this problem. Nevertheless, you 7941*** may want to report the problem to your system manager and/or to 7942*** bug-libtool@gnu.org 7943 7944_LT_EOF 7945 fi ;; 7946 esac 7947 fi 7948 break 7949 fi 7950 done 7951 IFS="$lt_save_ifs" 7952 MAGIC_CMD="$lt_save_MAGIC_CMD" 7953 ;; 7954esac 7955fi 7956 7957MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7958if test -n "$MAGIC_CMD"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7960$as_echo "$MAGIC_CMD" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 7967 7968 7969 7970if test -z "$lt_cv_path_MAGIC_CMD"; then 7971 if test -n "$ac_tool_prefix"; then 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7973$as_echo_n "checking for file... " >&6; } 7974if ${lt_cv_path_MAGIC_CMD+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 case $MAGIC_CMD in 7978[\\/*] | ?:[\\/]*) 7979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7980 ;; 7981*) 7982 lt_save_MAGIC_CMD="$MAGIC_CMD" 7983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7985 for ac_dir in $ac_dummy; do 7986 IFS="$lt_save_ifs" 7987 test -z "$ac_dir" && ac_dir=. 7988 if test -f $ac_dir/file; then 7989 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7990 if test -n "$file_magic_test_file"; then 7991 case $deplibs_check_method in 7992 "file_magic "*) 7993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7996 $EGREP "$file_magic_regex" > /dev/null; then 7997 : 7998 else 7999 cat <<_LT_EOF 1>&2 8000 8001*** Warning: the command libtool uses to detect shared libraries, 8002*** $file_magic_cmd, produces output that libtool cannot recognize. 8003*** The result is that libtool may fail to recognize shared libraries 8004*** as such. This will affect the creation of libtool libraries that 8005*** depend on shared libraries, but programs linked with such libtool 8006*** libraries will work regardless of this problem. Nevertheless, you 8007*** may want to report the problem to your system manager and/or to 8008*** bug-libtool@gnu.org 8009 8010_LT_EOF 8011 fi ;; 8012 esac 8013 fi 8014 break 8015 fi 8016 done 8017 IFS="$lt_save_ifs" 8018 MAGIC_CMD="$lt_save_MAGIC_CMD" 8019 ;; 8020esac 8021fi 8022 8023MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8024if test -n "$MAGIC_CMD"; then 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8026$as_echo "$MAGIC_CMD" >&6; } 8027else 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8029$as_echo "no" >&6; } 8030fi 8031 8032 8033 else 8034 MAGIC_CMD=: 8035 fi 8036fi 8037 8038 fi 8039 ;; 8040esac 8041 8042# Use C for the default configuration in the libtool script 8043 8044lt_save_CC="$CC" 8045ac_ext=c 8046ac_cpp='$CPP $CPPFLAGS' 8047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8049ac_compiler_gnu=$ac_cv_c_compiler_gnu 8050 8051 8052# Source file extension for C test sources. 8053ac_ext=c 8054 8055# Object file extension for compiled C test sources. 8056objext=o 8057objext=$objext 8058 8059# Code to be used in simple compile tests 8060lt_simple_compile_test_code="int some_variable = 0;" 8061 8062# Code to be used in simple link tests 8063lt_simple_link_test_code='int main(){return(0);}' 8064 8065 8066 8067 8068 8069 8070 8071# If no C compiler was specified, use CC. 8072LTCC=${LTCC-"$CC"} 8073 8074# If no C compiler flags were specified, use CFLAGS. 8075LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8076 8077# Allow CC to be a program name with arguments. 8078compiler=$CC 8079 8080# Save the default compiler, since it gets overwritten when the other 8081# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8082compiler_DEFAULT=$CC 8083 8084# save warnings/boilerplate of simple test code 8085ac_outfile=conftest.$ac_objext 8086echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8088_lt_compiler_boilerplate=`cat conftest.err` 8089$RM conftest* 8090 8091ac_outfile=conftest.$ac_objext 8092echo "$lt_simple_link_test_code" >conftest.$ac_ext 8093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8094_lt_linker_boilerplate=`cat conftest.err` 8095$RM -r conftest* 8096 8097 8098if test -n "$compiler"; then 8099 8100lt_prog_compiler_no_builtin_flag= 8101 8102if test "$GCC" = yes; then 8103 case $cc_basename in 8104 nvcc*) 8105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8106 *) 8107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8108 esac 8109 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8111$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8112if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8113 $as_echo_n "(cached) " >&6 8114else 8115 lt_cv_prog_compiler_rtti_exceptions=no 8116 ac_outfile=conftest.$ac_objext 8117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8118 lt_compiler_flag="-fno-rtti -fno-exceptions" 8119 # Insert the option either (1) after the last *FLAGS variable, or 8120 # (2) before a word containing "conftest.", or (3) at the end. 8121 # Note that $ac_compile itself does not contain backslashes and begins 8122 # with a dollar sign (not a hyphen), so the echo should work correctly. 8123 # The option is referenced via a variable to avoid confusing sed. 8124 lt_compile=`echo "$ac_compile" | $SED \ 8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8127 -e 's:$: $lt_compiler_flag:'` 8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8129 (eval "$lt_compile" 2>conftest.err) 8130 ac_status=$? 8131 cat conftest.err >&5 8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 if (exit $ac_status) && test -s "$ac_outfile"; then 8134 # The compiler can only warn and ignore the option if not recognized 8135 # So say no if there are warnings other than the usual output. 8136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8139 lt_cv_prog_compiler_rtti_exceptions=yes 8140 fi 8141 fi 8142 $RM conftest* 8143 8144fi 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8146$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8147 8148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8150else 8151 : 8152fi 8153 8154fi 8155 8156 8157 8158 8159 8160 8161 lt_prog_compiler_wl= 8162lt_prog_compiler_pic= 8163lt_prog_compiler_static= 8164 8165 8166 if test "$GCC" = yes; then 8167 lt_prog_compiler_wl='-Wl,' 8168 lt_prog_compiler_static='-static' 8169 8170 case $host_os in 8171 aix*) 8172 # All AIX code is PIC. 8173 if test "$host_cpu" = ia64; then 8174 # AIX 5 now supports IA64 processor 8175 lt_prog_compiler_static='-Bstatic' 8176 fi 8177 ;; 8178 8179 amigaos*) 8180 case $host_cpu in 8181 powerpc) 8182 # see comment about AmigaOS4 .so support 8183 lt_prog_compiler_pic='-fPIC' 8184 ;; 8185 m68k) 8186 # FIXME: we need at least 68020 code to build shared libraries, but 8187 # adding the `-m68020' flag to GCC prevents building anything better, 8188 # like `-m68040'. 8189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8190 ;; 8191 esac 8192 ;; 8193 8194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8195 # PIC is the default for these OSes. 8196 ;; 8197 8198 mingw* | cygwin* | pw32* | os2* | cegcc*) 8199 # This hack is so that the source file can tell whether it is being 8200 # built for inclusion in a dll (and should export symbols for example). 8201 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8202 # (--disable-auto-import) libraries 8203 lt_prog_compiler_pic='-DDLL_EXPORT' 8204 ;; 8205 8206 darwin* | rhapsody*) 8207 # PIC is the default on this platform 8208 # Common symbols not allowed in MH_DYLIB files 8209 lt_prog_compiler_pic='-fno-common' 8210 ;; 8211 8212 haiku*) 8213 # PIC is the default for Haiku. 8214 # The "-static" flag exists, but is broken. 8215 lt_prog_compiler_static= 8216 ;; 8217 8218 hpux*) 8219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8221 # sets the default TLS model and affects inlining. 8222 case $host_cpu in 8223 hppa*64*) 8224 # +Z the default 8225 ;; 8226 *) 8227 lt_prog_compiler_pic='-fPIC' 8228 ;; 8229 esac 8230 ;; 8231 8232 interix[3-9]*) 8233 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8234 # Instead, we relocate shared libraries at runtime. 8235 ;; 8236 8237 msdosdjgpp*) 8238 # Just because we use GCC doesn't mean we suddenly get shared libraries 8239 # on systems that don't support them. 8240 lt_prog_compiler_can_build_shared=no 8241 enable_shared=no 8242 ;; 8243 8244 *nto* | *qnx*) 8245 # QNX uses GNU C++, but need to define -shared option too, otherwise 8246 # it will coredump. 8247 lt_prog_compiler_pic='-fPIC -shared' 8248 ;; 8249 8250 sysv4*MP*) 8251 if test -d /usr/nec; then 8252 lt_prog_compiler_pic=-Kconform_pic 8253 fi 8254 ;; 8255 8256 *) 8257 lt_prog_compiler_pic='-fPIC' 8258 ;; 8259 esac 8260 8261 case $cc_basename in 8262 nvcc*) # Cuda Compiler Driver 2.2 8263 lt_prog_compiler_wl='-Xlinker ' 8264 if test -n "$lt_prog_compiler_pic"; then 8265 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8266 fi 8267 ;; 8268 esac 8269 else 8270 # PORTME Check for flag to pass linker flags through the system compiler. 8271 case $host_os in 8272 aix*) 8273 lt_prog_compiler_wl='-Wl,' 8274 if test "$host_cpu" = ia64; then 8275 # AIX 5 now supports IA64 processor 8276 lt_prog_compiler_static='-Bstatic' 8277 else 8278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8279 fi 8280 ;; 8281 8282 mingw* | cygwin* | pw32* | os2* | cegcc*) 8283 # This hack is so that the source file can tell whether it is being 8284 # built for inclusion in a dll (and should export symbols for example). 8285 lt_prog_compiler_pic='-DDLL_EXPORT' 8286 ;; 8287 8288 hpux9* | hpux10* | hpux11*) 8289 lt_prog_compiler_wl='-Wl,' 8290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8291 # not for PA HP-UX. 8292 case $host_cpu in 8293 hppa*64*|ia64*) 8294 # +Z the default 8295 ;; 8296 *) 8297 lt_prog_compiler_pic='+Z' 8298 ;; 8299 esac 8300 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8301 lt_prog_compiler_static='${wl}-a ${wl}archive' 8302 ;; 8303 8304 irix5* | irix6* | nonstopux*) 8305 lt_prog_compiler_wl='-Wl,' 8306 # PIC (with -KPIC) is the default. 8307 lt_prog_compiler_static='-non_shared' 8308 ;; 8309 8310 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8311 case $cc_basename in 8312 # old Intel for x86_64 which still supported -KPIC. 8313 ecc*) 8314 lt_prog_compiler_wl='-Wl,' 8315 lt_prog_compiler_pic='-KPIC' 8316 lt_prog_compiler_static='-static' 8317 ;; 8318 # icc used to be incompatible with GCC. 8319 # ICC 10 doesn't accept -KPIC any more. 8320 icc* | ifort*) 8321 lt_prog_compiler_wl='-Wl,' 8322 lt_prog_compiler_pic='-fPIC' 8323 lt_prog_compiler_static='-static' 8324 ;; 8325 # Lahey Fortran 8.1. 8326 lf95*) 8327 lt_prog_compiler_wl='-Wl,' 8328 lt_prog_compiler_pic='--shared' 8329 lt_prog_compiler_static='--static' 8330 ;; 8331 nagfor*) 8332 # NAG Fortran compiler 8333 lt_prog_compiler_wl='-Wl,-Wl,,' 8334 lt_prog_compiler_pic='-PIC' 8335 lt_prog_compiler_static='-Bstatic' 8336 ;; 8337 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8338 # Portland Group compilers (*not* the Pentium gcc compiler, 8339 # which looks to be a dead project) 8340 lt_prog_compiler_wl='-Wl,' 8341 lt_prog_compiler_pic='-fpic' 8342 lt_prog_compiler_static='-Bstatic' 8343 ;; 8344 ccc*) 8345 lt_prog_compiler_wl='-Wl,' 8346 # All Alpha code is PIC. 8347 lt_prog_compiler_static='-non_shared' 8348 ;; 8349 xl* | bgxl* | bgf* | mpixl*) 8350 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8351 lt_prog_compiler_wl='-Wl,' 8352 lt_prog_compiler_pic='-qpic' 8353 lt_prog_compiler_static='-qstaticlink' 8354 ;; 8355 *) 8356 case `$CC -V 2>&1 | sed 5q` in 8357 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8358 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8359 lt_prog_compiler_pic='-KPIC' 8360 lt_prog_compiler_static='-Bstatic' 8361 lt_prog_compiler_wl='' 8362 ;; 8363 *Sun\ F* | *Sun*Fortran*) 8364 lt_prog_compiler_pic='-KPIC' 8365 lt_prog_compiler_static='-Bstatic' 8366 lt_prog_compiler_wl='-Qoption ld ' 8367 ;; 8368 *Sun\ C*) 8369 # Sun C 5.9 8370 lt_prog_compiler_pic='-KPIC' 8371 lt_prog_compiler_static='-Bstatic' 8372 lt_prog_compiler_wl='-Wl,' 8373 ;; 8374 *Intel*\ [CF]*Compiler*) 8375 lt_prog_compiler_wl='-Wl,' 8376 lt_prog_compiler_pic='-fPIC' 8377 lt_prog_compiler_static='-static' 8378 ;; 8379 *Portland\ Group*) 8380 lt_prog_compiler_wl='-Wl,' 8381 lt_prog_compiler_pic='-fpic' 8382 lt_prog_compiler_static='-Bstatic' 8383 ;; 8384 esac 8385 ;; 8386 esac 8387 ;; 8388 8389 newsos6) 8390 lt_prog_compiler_pic='-KPIC' 8391 lt_prog_compiler_static='-Bstatic' 8392 ;; 8393 8394 *nto* | *qnx*) 8395 # QNX uses GNU C++, but need to define -shared option too, otherwise 8396 # it will coredump. 8397 lt_prog_compiler_pic='-fPIC -shared' 8398 ;; 8399 8400 osf3* | osf4* | osf5*) 8401 lt_prog_compiler_wl='-Wl,' 8402 # All OSF/1 code is PIC. 8403 lt_prog_compiler_static='-non_shared' 8404 ;; 8405 8406 rdos*) 8407 lt_prog_compiler_static='-non_shared' 8408 ;; 8409 8410 solaris*) 8411 lt_prog_compiler_pic='-KPIC' 8412 lt_prog_compiler_static='-Bstatic' 8413 case $cc_basename in 8414 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8415 lt_prog_compiler_wl='-Qoption ld ';; 8416 *) 8417 lt_prog_compiler_wl='-Wl,';; 8418 esac 8419 ;; 8420 8421 sunos4*) 8422 lt_prog_compiler_wl='-Qoption ld ' 8423 lt_prog_compiler_pic='-PIC' 8424 lt_prog_compiler_static='-Bstatic' 8425 ;; 8426 8427 sysv4 | sysv4.2uw2* | sysv4.3*) 8428 lt_prog_compiler_wl='-Wl,' 8429 lt_prog_compiler_pic='-KPIC' 8430 lt_prog_compiler_static='-Bstatic' 8431 ;; 8432 8433 sysv4*MP*) 8434 if test -d /usr/nec ;then 8435 lt_prog_compiler_pic='-Kconform_pic' 8436 lt_prog_compiler_static='-Bstatic' 8437 fi 8438 ;; 8439 8440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_pic='-KPIC' 8443 lt_prog_compiler_static='-Bstatic' 8444 ;; 8445 8446 unicos*) 8447 lt_prog_compiler_wl='-Wl,' 8448 lt_prog_compiler_can_build_shared=no 8449 ;; 8450 8451 uts4*) 8452 lt_prog_compiler_pic='-pic' 8453 lt_prog_compiler_static='-Bstatic' 8454 ;; 8455 8456 *) 8457 lt_prog_compiler_can_build_shared=no 8458 ;; 8459 esac 8460 fi 8461 8462case $host_os in 8463 # For platforms which do not support PIC, -DPIC is meaningless: 8464 *djgpp*) 8465 lt_prog_compiler_pic= 8466 ;; 8467 *) 8468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8469 ;; 8470esac 8471 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8473$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8474if ${lt_cv_prog_compiler_pic+:} false; then : 8475 $as_echo_n "(cached) " >&6 8476else 8477 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8478fi 8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8480$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8481lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8482 8483# 8484# Check to make sure the PIC flag actually works. 8485# 8486if test -n "$lt_prog_compiler_pic"; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8488$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8489if ${lt_cv_prog_compiler_pic_works+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 lt_cv_prog_compiler_pic_works=no 8493 ac_outfile=conftest.$ac_objext 8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8496 # Insert the option either (1) after the last *FLAGS variable, or 8497 # (2) before a word containing "conftest.", or (3) at the end. 8498 # Note that $ac_compile itself does not contain backslashes and begins 8499 # with a dollar sign (not a hyphen), so the echo should work correctly. 8500 # The option is referenced via a variable to avoid confusing sed. 8501 lt_compile=`echo "$ac_compile" | $SED \ 8502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8504 -e 's:$: $lt_compiler_flag:'` 8505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8506 (eval "$lt_compile" 2>conftest.err) 8507 ac_status=$? 8508 cat conftest.err >&5 8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8510 if (exit $ac_status) && test -s "$ac_outfile"; then 8511 # The compiler can only warn and ignore the option if not recognized 8512 # So say no if there are warnings other than the usual output. 8513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8516 lt_cv_prog_compiler_pic_works=yes 8517 fi 8518 fi 8519 $RM conftest* 8520 8521fi 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8523$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8524 8525if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8526 case $lt_prog_compiler_pic in 8527 "" | " "*) ;; 8528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8529 esac 8530else 8531 lt_prog_compiler_pic= 8532 lt_prog_compiler_can_build_shared=no 8533fi 8534 8535fi 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547# 8548# Check to make sure the static flag actually works. 8549# 8550wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8552$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8553if ${lt_cv_prog_compiler_static_works+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555else 8556 lt_cv_prog_compiler_static_works=no 8557 save_LDFLAGS="$LDFLAGS" 8558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8559 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8561 # The linker can only warn and ignore the option if not recognized 8562 # So say no if there are warnings 8563 if test -s conftest.err; then 8564 # Append any errors to the config.log. 8565 cat conftest.err 1>&5 8566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8568 if diff conftest.exp conftest.er2 >/dev/null; then 8569 lt_cv_prog_compiler_static_works=yes 8570 fi 8571 else 8572 lt_cv_prog_compiler_static_works=yes 8573 fi 8574 fi 8575 $RM -r conftest* 8576 LDFLAGS="$save_LDFLAGS" 8577 8578fi 8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8580$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8581 8582if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8583 : 8584else 8585 lt_prog_compiler_static= 8586fi 8587 8588 8589 8590 8591 8592 8593 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8595$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8596if ${lt_cv_prog_compiler_c_o+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 lt_cv_prog_compiler_c_o=no 8600 $RM -r conftest 2>/dev/null 8601 mkdir conftest 8602 cd conftest 8603 mkdir out 8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8605 8606 lt_compiler_flag="-o out/conftest2.$ac_objext" 8607 # Insert the option either (1) after the last *FLAGS variable, or 8608 # (2) before a word containing "conftest.", or (3) at the end. 8609 # Note that $ac_compile itself does not contain backslashes and begins 8610 # with a dollar sign (not a hyphen), so the echo should work correctly. 8611 lt_compile=`echo "$ac_compile" | $SED \ 8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8614 -e 's:$: $lt_compiler_flag:'` 8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8616 (eval "$lt_compile" 2>out/conftest.err) 8617 ac_status=$? 8618 cat out/conftest.err >&5 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8621 then 8622 # The compiler can only warn and ignore the option if not recognized 8623 # So say no if there are warnings 8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8627 lt_cv_prog_compiler_c_o=yes 8628 fi 8629 fi 8630 chmod u+w . 2>&5 8631 $RM conftest* 8632 # SGI C++ compiler will create directory out/ii_files/ for 8633 # template instantiation 8634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8635 $RM out/* && rmdir out 8636 cd .. 8637 $RM -r conftest 8638 $RM conftest* 8639 8640fi 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8642$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8643 8644 8645 8646 8647 8648 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8650$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8651if ${lt_cv_prog_compiler_c_o+:} false; then : 8652 $as_echo_n "(cached) " >&6 8653else 8654 lt_cv_prog_compiler_c_o=no 8655 $RM -r conftest 2>/dev/null 8656 mkdir conftest 8657 cd conftest 8658 mkdir out 8659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8660 8661 lt_compiler_flag="-o out/conftest2.$ac_objext" 8662 # Insert the option either (1) after the last *FLAGS variable, or 8663 # (2) before a word containing "conftest.", or (3) at the end. 8664 # Note that $ac_compile itself does not contain backslashes and begins 8665 # with a dollar sign (not a hyphen), so the echo should work correctly. 8666 lt_compile=`echo "$ac_compile" | $SED \ 8667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8669 -e 's:$: $lt_compiler_flag:'` 8670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8671 (eval "$lt_compile" 2>out/conftest.err) 8672 ac_status=$? 8673 cat out/conftest.err >&5 8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8675 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8676 then 8677 # The compiler can only warn and ignore the option if not recognized 8678 # So say no if there are warnings 8679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8682 lt_cv_prog_compiler_c_o=yes 8683 fi 8684 fi 8685 chmod u+w . 2>&5 8686 $RM conftest* 8687 # SGI C++ compiler will create directory out/ii_files/ for 8688 # template instantiation 8689 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8690 $RM out/* && rmdir out 8691 cd .. 8692 $RM -r conftest 8693 $RM conftest* 8694 8695fi 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8697$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8698 8699 8700 8701 8702hard_links="nottested" 8703if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8704 # do not overwrite the value of need_locks provided by the user 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8706$as_echo_n "checking if we can lock with hard links... " >&6; } 8707 hard_links=yes 8708 $RM conftest* 8709 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8710 touch conftest.a 8711 ln conftest.a conftest.b 2>&5 || hard_links=no 8712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8714$as_echo "$hard_links" >&6; } 8715 if test "$hard_links" = no; then 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8717$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8718 need_locks=warn 8719 fi 8720else 8721 need_locks=no 8722fi 8723 8724 8725 8726 8727 8728 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8730$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8731 8732 runpath_var= 8733 allow_undefined_flag= 8734 always_export_symbols=no 8735 archive_cmds= 8736 archive_expsym_cmds= 8737 compiler_needs_object=no 8738 enable_shared_with_static_runtimes=no 8739 export_dynamic_flag_spec= 8740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8741 hardcode_automatic=no 8742 hardcode_direct=no 8743 hardcode_direct_absolute=no 8744 hardcode_libdir_flag_spec= 8745 hardcode_libdir_separator= 8746 hardcode_minus_L=no 8747 hardcode_shlibpath_var=unsupported 8748 inherit_rpath=no 8749 link_all_deplibs=unknown 8750 module_cmds= 8751 module_expsym_cmds= 8752 old_archive_from_new_cmds= 8753 old_archive_from_expsyms_cmds= 8754 thread_safe_flag_spec= 8755 whole_archive_flag_spec= 8756 # include_expsyms should be a list of space-separated symbols to be *always* 8757 # included in the symbol list 8758 include_expsyms= 8759 # exclude_expsyms can be an extended regexp of symbols to exclude 8760 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8762 # as well as any symbol that contains `d'. 8763 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8765 # platforms (ab)use it in PIC code, but their linkers get confused if 8766 # the symbol is explicitly referenced. Since portable code cannot 8767 # rely on this symbol name, it's probably fine to never include it in 8768 # preloaded symbol tables. 8769 # Exclude shared library initialization/finalization symbols. 8770 extract_expsyms_cmds= 8771 8772 case $host_os in 8773 cygwin* | mingw* | pw32* | cegcc*) 8774 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8775 # When not using gcc, we currently assume that we are using 8776 # Microsoft Visual C++. 8777 if test "$GCC" != yes; then 8778 with_gnu_ld=no 8779 fi 8780 ;; 8781 interix*) 8782 # we just hope/assume this is gcc and not c89 (= MSVC++) 8783 with_gnu_ld=yes 8784 ;; 8785 openbsd*) 8786 with_gnu_ld=no 8787 ;; 8788 esac 8789 8790 ld_shlibs=yes 8791 8792 # On some targets, GNU ld is compatible enough with the native linker 8793 # that we're better off using the native interface for both. 8794 lt_use_gnu_ld_interface=no 8795 if test "$with_gnu_ld" = yes; then 8796 case $host_os in 8797 aix*) 8798 # The AIX port of GNU ld has always aspired to compatibility 8799 # with the native linker. However, as the warning in the GNU ld 8800 # block says, versions before 2.19.5* couldn't really create working 8801 # shared libraries, regardless of the interface used. 8802 case `$LD -v 2>&1` in 8803 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8804 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8805 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8806 *) 8807 lt_use_gnu_ld_interface=yes 8808 ;; 8809 esac 8810 ;; 8811 *) 8812 lt_use_gnu_ld_interface=yes 8813 ;; 8814 esac 8815 fi 8816 8817 if test "$lt_use_gnu_ld_interface" = yes; then 8818 # If archive_cmds runs LD, not CC, wlarc should be empty 8819 wlarc='${wl}' 8820 8821 # Set some defaults for GNU ld with shared library support. These 8822 # are reset later if shared libraries are not supported. Putting them 8823 # here allows them to be overridden if necessary. 8824 runpath_var=LD_RUN_PATH 8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8826 export_dynamic_flag_spec='${wl}--export-dynamic' 8827 # ancient GNU ld didn't support --whole-archive et. al. 8828 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8829 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8830 else 8831 whole_archive_flag_spec= 8832 fi 8833 supports_anon_versioning=no 8834 case `$LD -v 2>&1` in 8835 *GNU\ gold*) supports_anon_versioning=yes ;; 8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8839 *\ 2.11.*) ;; # other 2.11 versions 8840 *) supports_anon_versioning=yes ;; 8841 esac 8842 8843 # See if GNU ld supports shared libraries. 8844 case $host_os in 8845 aix[3-9]*) 8846 # On AIX/PPC, the GNU linker is very broken 8847 if test "$host_cpu" != ia64; then 8848 ld_shlibs=no 8849 cat <<_LT_EOF 1>&2 8850 8851*** Warning: the GNU linker, at least up to release 2.19, is reported 8852*** to be unable to reliably create shared libraries on AIX. 8853*** Therefore, libtool is disabling shared libraries support. If you 8854*** really care for shared libraries, you may want to install binutils 8855*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8856*** You will then need to restart the configuration process. 8857 8858_LT_EOF 8859 fi 8860 ;; 8861 8862 amigaos*) 8863 case $host_cpu in 8864 powerpc) 8865 # see comment about AmigaOS4 .so support 8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8867 archive_expsym_cmds='' 8868 ;; 8869 m68k) 8870 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)' 8871 hardcode_libdir_flag_spec='-L$libdir' 8872 hardcode_minus_L=yes 8873 ;; 8874 esac 8875 ;; 8876 8877 beos*) 8878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8879 allow_undefined_flag=unsupported 8880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8881 # support --undefined. This deserves some investigation. FIXME 8882 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8883 else 8884 ld_shlibs=no 8885 fi 8886 ;; 8887 8888 cygwin* | mingw* | pw32* | cegcc*) 8889 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8890 # as there is no search path for DLLs. 8891 hardcode_libdir_flag_spec='-L$libdir' 8892 export_dynamic_flag_spec='${wl}--export-all-symbols' 8893 allow_undefined_flag=unsupported 8894 always_export_symbols=no 8895 enable_shared_with_static_runtimes=yes 8896 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' 8897 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8898 8899 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8901 # If the export-symbols file already is a .def file (1st line 8902 # is EXPORTS), use it as is; otherwise, prepend... 8903 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8904 cp $export_symbols $output_objdir/$soname.def; 8905 else 8906 echo EXPORTS > $output_objdir/$soname.def; 8907 cat $export_symbols >> $output_objdir/$soname.def; 8908 fi~ 8909 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8910 else 8911 ld_shlibs=no 8912 fi 8913 ;; 8914 8915 haiku*) 8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8917 link_all_deplibs=yes 8918 ;; 8919 8920 interix[3-9]*) 8921 hardcode_direct=no 8922 hardcode_shlibpath_var=no 8923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8924 export_dynamic_flag_spec='${wl}-E' 8925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8926 # Instead, shared libraries are loaded at an image base (0x10000000 by 8927 # default) and relocated if they conflict, which is a slow very memory 8928 # consuming and fragmenting process. To avoid this, we pick a random, 8929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8930 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8932 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' 8933 ;; 8934 8935 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8936 tmp_diet=no 8937 if test "$host_os" = linux-dietlibc; then 8938 case $cc_basename in 8939 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8940 esac 8941 fi 8942 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8943 && test "$tmp_diet" = no 8944 then 8945 tmp_addflag=' $pic_flag' 8946 tmp_sharedflag='-shared' 8947 case $cc_basename,$host_cpu in 8948 pgcc*) # Portland Group C compiler 8949 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' 8950 tmp_addflag=' $pic_flag' 8951 ;; 8952 pgf77* | pgf90* | pgf95* | pgfortran*) 8953 # Portland Group f77 and f90 compilers 8954 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' 8955 tmp_addflag=' $pic_flag -Mnomain' ;; 8956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8957 tmp_addflag=' -i_dynamic' ;; 8958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8959 tmp_addflag=' -i_dynamic -nofor_main' ;; 8960 ifc* | ifort*) # Intel Fortran compiler 8961 tmp_addflag=' -nofor_main' ;; 8962 lf95*) # Lahey Fortran 8.1 8963 whole_archive_flag_spec= 8964 tmp_sharedflag='--shared' ;; 8965 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8966 tmp_sharedflag='-qmkshrobj' 8967 tmp_addflag= ;; 8968 nvcc*) # Cuda Compiler Driver 2.2 8969 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' 8970 compiler_needs_object=yes 8971 ;; 8972 esac 8973 case `$CC -V 2>&1 | sed 5q` in 8974 *Sun\ C*) # Sun C 5.9 8975 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' 8976 compiler_needs_object=yes 8977 tmp_sharedflag='-G' ;; 8978 *Sun\ F*) # Sun Fortran 8.3 8979 tmp_sharedflag='-G' ;; 8980 esac 8981 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8982 8983 if test "x$supports_anon_versioning" = xyes; then 8984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8986 echo "local: *; };" >> $output_objdir/$libname.ver~ 8987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8988 fi 8989 8990 case $cc_basename in 8991 xlf* | bgf* | bgxlf* | mpixlf*) 8992 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8993 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8995 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8996 if test "x$supports_anon_versioning" = xyes; then 8997 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8999 echo "local: *; };" >> $output_objdir/$libname.ver~ 9000 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9001 fi 9002 ;; 9003 esac 9004 else 9005 ld_shlibs=no 9006 fi 9007 ;; 9008 9009 netbsd*) 9010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9011 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9012 wlarc= 9013 else 9014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9015 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9016 fi 9017 ;; 9018 9019 solaris*) 9020 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9021 ld_shlibs=no 9022 cat <<_LT_EOF 1>&2 9023 9024*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9025*** create shared libraries on Solaris systems. Therefore, libtool 9026*** is disabling shared libraries support. We urge you to upgrade GNU 9027*** binutils to release 2.9.1 or newer. Another option is to modify 9028*** your PATH or compiler configuration so that the native linker is 9029*** used, and then restart. 9030 9031_LT_EOF 9032 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9035 else 9036 ld_shlibs=no 9037 fi 9038 ;; 9039 9040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9041 case `$LD -v 2>&1` in 9042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9043 ld_shlibs=no 9044 cat <<_LT_EOF 1>&2 9045 9046*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9047*** reliably create shared libraries on SCO systems. Therefore, libtool 9048*** is disabling shared libraries support. We urge you to upgrade GNU 9049*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9050*** your PATH or compiler configuration so that the native linker is 9051*** used, and then restart. 9052 9053_LT_EOF 9054 ;; 9055 *) 9056 # For security reasons, it is highly recommended that you always 9057 # use absolute paths for naming shared libraries, and exclude the 9058 # DT_RUNPATH tag from executables and libraries. But doing so 9059 # requires that you compile everything twice, which is a pain. 9060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9064 else 9065 ld_shlibs=no 9066 fi 9067 ;; 9068 esac 9069 ;; 9070 9071 sunos4*) 9072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9073 wlarc= 9074 hardcode_direct=yes 9075 hardcode_shlibpath_var=no 9076 ;; 9077 9078 *) 9079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9081 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9082 else 9083 ld_shlibs=no 9084 fi 9085 ;; 9086 esac 9087 9088 if test "$ld_shlibs" = no; then 9089 runpath_var= 9090 hardcode_libdir_flag_spec= 9091 export_dynamic_flag_spec= 9092 whole_archive_flag_spec= 9093 fi 9094 else 9095 # PORTME fill in a description of your system's linker (not GNU ld) 9096 case $host_os in 9097 aix3*) 9098 allow_undefined_flag=unsupported 9099 always_export_symbols=yes 9100 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' 9101 # Note: this linker hardcodes the directories in LIBPATH if there 9102 # are no directories specified by -L. 9103 hardcode_minus_L=yes 9104 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9105 # Neither direct hardcoding nor static linking is supported with a 9106 # broken collect2. 9107 hardcode_direct=unsupported 9108 fi 9109 ;; 9110 9111 aix[4-9]*) 9112 if test "$host_cpu" = ia64; then 9113 # On IA64, the linker does run time linking by default, so we don't 9114 # have to do anything special. 9115 aix_use_runtimelinking=no 9116 exp_sym_flag='-Bexport' 9117 no_entry_flag="" 9118 else 9119 # If we're using GNU nm, then we don't want the "-C" option. 9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9121 # Also, AIX nm treats weak defined symbols like other global 9122 # defined symbols, whereas GNU nm marks them as "W". 9123 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9124 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' 9125 else 9126 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' 9127 fi 9128 aix_use_runtimelinking=no 9129 9130 # Test if we are trying to use run time linking or normal 9131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9132 # need to do runtime linking. 9133 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9134 for ld_flag in $LDFLAGS; do 9135 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9136 aix_use_runtimelinking=yes 9137 break 9138 fi 9139 done 9140 ;; 9141 esac 9142 9143 exp_sym_flag='-bexport' 9144 no_entry_flag='-bnoentry' 9145 fi 9146 9147 # When large executables or shared objects are built, AIX ld can 9148 # have problems creating the table of contents. If linking a library 9149 # or program results in "error TOC overflow" add -mminimal-toc to 9150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9152 9153 archive_cmds='' 9154 hardcode_direct=yes 9155 hardcode_direct_absolute=yes 9156 hardcode_libdir_separator=':' 9157 link_all_deplibs=yes 9158 file_list_spec='${wl}-f,' 9159 9160 if test "$GCC" = yes; then 9161 case $host_os in aix4.[012]|aix4.[012].*) 9162 # We only want to do this on AIX 4.2 and lower, the check 9163 # below for broken collect2 doesn't work under 4.3+ 9164 collect2name=`${CC} -print-prog-name=collect2` 9165 if test -f "$collect2name" && 9166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9167 then 9168 # We have reworked collect2 9169 : 9170 else 9171 # We have old collect2 9172 hardcode_direct=unsupported 9173 # It fails to find uninstalled libraries when the uninstalled 9174 # path is not listed in the libpath. Setting hardcode_minus_L 9175 # to unsupported forces relinking 9176 hardcode_minus_L=yes 9177 hardcode_libdir_flag_spec='-L$libdir' 9178 hardcode_libdir_separator= 9179 fi 9180 ;; 9181 esac 9182 shared_flag='-shared' 9183 if test "$aix_use_runtimelinking" = yes; then 9184 shared_flag="$shared_flag "'${wl}-G' 9185 fi 9186 else 9187 # not using gcc 9188 if test "$host_cpu" = ia64; then 9189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9190 # chokes on -Wl,-G. The following line is correct: 9191 shared_flag='-G' 9192 else 9193 if test "$aix_use_runtimelinking" = yes; then 9194 shared_flag='${wl}-G' 9195 else 9196 shared_flag='${wl}-bM:SRE' 9197 fi 9198 fi 9199 fi 9200 9201 export_dynamic_flag_spec='${wl}-bexpall' 9202 # It seems that -bexpall does not export symbols beginning with 9203 # underscore (_), so it is better to generate a list of symbols to export. 9204 always_export_symbols=yes 9205 if test "$aix_use_runtimelinking" = yes; then 9206 # Warning - without using the other runtime loading flags (-brtl), 9207 # -berok will link without error, but may produce a broken library. 9208 allow_undefined_flag='-berok' 9209 # Determine the default libpath from the value encoded in an 9210 # empty executable. 9211 if test "${lt_cv_aix_libpath+set}" = set; then 9212 aix_libpath=$lt_cv_aix_libpath 9213else 9214 if ${lt_cv_aix_libpath_+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219 9220int 9221main () 9222{ 9223 9224 ; 9225 return 0; 9226} 9227_ACEOF 9228if ac_fn_c_try_link "$LINENO"; then : 9229 9230 lt_aix_libpath_sed=' 9231 /Import File Strings/,/^$/ { 9232 /^0/ { 9233 s/^0 *\([^ ]*\) *$/\1/ 9234 p 9235 } 9236 }' 9237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9238 # Check for a 64-bit object if we didn't find anything. 9239 if test -z "$lt_cv_aix_libpath_"; then 9240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9241 fi 9242fi 9243rm -f core conftest.err conftest.$ac_objext \ 9244 conftest$ac_exeext conftest.$ac_ext 9245 if test -z "$lt_cv_aix_libpath_"; then 9246 lt_cv_aix_libpath_="/usr/lib:/lib" 9247 fi 9248 9249fi 9250 9251 aix_libpath=$lt_cv_aix_libpath_ 9252fi 9253 9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9255 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" 9256 else 9257 if test "$host_cpu" = ia64; then 9258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9259 allow_undefined_flag="-z nodefs" 9260 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" 9261 else 9262 # Determine the default libpath from the value encoded in an 9263 # empty executable. 9264 if test "${lt_cv_aix_libpath+set}" = set; then 9265 aix_libpath=$lt_cv_aix_libpath 9266else 9267 if ${lt_cv_aix_libpath_+:} false; then : 9268 $as_echo_n "(cached) " >&6 9269else 9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9271/* end confdefs.h. */ 9272 9273int 9274main () 9275{ 9276 9277 ; 9278 return 0; 9279} 9280_ACEOF 9281if ac_fn_c_try_link "$LINENO"; then : 9282 9283 lt_aix_libpath_sed=' 9284 /Import File Strings/,/^$/ { 9285 /^0/ { 9286 s/^0 *\([^ ]*\) *$/\1/ 9287 p 9288 } 9289 }' 9290 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9291 # Check for a 64-bit object if we didn't find anything. 9292 if test -z "$lt_cv_aix_libpath_"; then 9293 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9294 fi 9295fi 9296rm -f core conftest.err conftest.$ac_objext \ 9297 conftest$ac_exeext conftest.$ac_ext 9298 if test -z "$lt_cv_aix_libpath_"; then 9299 lt_cv_aix_libpath_="/usr/lib:/lib" 9300 fi 9301 9302fi 9303 9304 aix_libpath=$lt_cv_aix_libpath_ 9305fi 9306 9307 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9308 # Warning - without using the other run time loading flags, 9309 # -berok will link without error, but may produce a broken library. 9310 no_undefined_flag=' ${wl}-bernotok' 9311 allow_undefined_flag=' ${wl}-berok' 9312 if test "$with_gnu_ld" = yes; then 9313 # We only use this code for GNU lds that support --whole-archive. 9314 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9315 else 9316 # Exported symbols can be pulled into shared objects from archives 9317 whole_archive_flag_spec='$convenience' 9318 fi 9319 archive_cmds_need_lc=yes 9320 # This is similar to how AIX traditionally builds its shared libraries. 9321 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' 9322 fi 9323 fi 9324 ;; 9325 9326 amigaos*) 9327 case $host_cpu in 9328 powerpc) 9329 # see comment about AmigaOS4 .so support 9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9331 archive_expsym_cmds='' 9332 ;; 9333 m68k) 9334 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)' 9335 hardcode_libdir_flag_spec='-L$libdir' 9336 hardcode_minus_L=yes 9337 ;; 9338 esac 9339 ;; 9340 9341 bsdi[45]*) 9342 export_dynamic_flag_spec=-rdynamic 9343 ;; 9344 9345 cygwin* | mingw* | pw32* | cegcc*) 9346 # When not using gcc, we currently assume that we are using 9347 # Microsoft Visual C++. 9348 # hardcode_libdir_flag_spec is actually meaningless, as there is 9349 # no search path for DLLs. 9350 case $cc_basename in 9351 cl*) 9352 # Native MSVC 9353 hardcode_libdir_flag_spec=' ' 9354 allow_undefined_flag=unsupported 9355 always_export_symbols=yes 9356 file_list_spec='@' 9357 # Tell ltmain to make .lib files, not .a files. 9358 libext=lib 9359 # Tell ltmain to make .dll files, not .so files. 9360 shrext_cmds=".dll" 9361 # FIXME: Setting linknames here is a bad hack. 9362 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9363 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9364 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9365 else 9366 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9367 fi~ 9368 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9369 linknames=' 9370 # The linker will not automatically build a static lib if we build a DLL. 9371 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9372 enable_shared_with_static_runtimes=yes 9373 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9375 # Don't use ranlib 9376 old_postinstall_cmds='chmod 644 $oldlib' 9377 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9378 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9379 case $lt_outputfile in 9380 *.exe|*.EXE) ;; 9381 *) 9382 lt_outputfile="$lt_outputfile.exe" 9383 lt_tool_outputfile="$lt_tool_outputfile.exe" 9384 ;; 9385 esac~ 9386 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9388 $RM "$lt_outputfile.manifest"; 9389 fi' 9390 ;; 9391 *) 9392 # Assume MSVC wrapper 9393 hardcode_libdir_flag_spec=' ' 9394 allow_undefined_flag=unsupported 9395 # Tell ltmain to make .lib files, not .a files. 9396 libext=lib 9397 # Tell ltmain to make .dll files, not .so files. 9398 shrext_cmds=".dll" 9399 # FIXME: Setting linknames here is a bad hack. 9400 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9401 # The linker will automatically build a .lib file if we build a DLL. 9402 old_archive_from_new_cmds='true' 9403 # FIXME: Should let the user specify the lib program. 9404 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9405 enable_shared_with_static_runtimes=yes 9406 ;; 9407 esac 9408 ;; 9409 9410 darwin* | rhapsody*) 9411 9412 9413 archive_cmds_need_lc=no 9414 hardcode_direct=no 9415 hardcode_automatic=yes 9416 hardcode_shlibpath_var=unsupported 9417 if test "$lt_cv_ld_force_load" = "yes"; then 9418 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\"`' 9419 9420 else 9421 whole_archive_flag_spec='' 9422 fi 9423 link_all_deplibs=yes 9424 allow_undefined_flag="$_lt_dar_allow_undefined" 9425 case $cc_basename in 9426 ifort*) _lt_dar_can_shared=yes ;; 9427 *) _lt_dar_can_shared=$GCC ;; 9428 esac 9429 if test "$_lt_dar_can_shared" = "yes"; then 9430 output_verbose_link_cmd=func_echo_all 9431 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9432 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9433 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}" 9434 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}" 9435 9436 else 9437 ld_shlibs=no 9438 fi 9439 9440 ;; 9441 9442 dgux*) 9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9444 hardcode_libdir_flag_spec='-L$libdir' 9445 hardcode_shlibpath_var=no 9446 ;; 9447 9448 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9449 # support. Future versions do this automatically, but an explicit c++rt0.o 9450 # does not break anything, and helps significantly (at the cost of a little 9451 # extra space). 9452 freebsd2.2*) 9453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9454 hardcode_libdir_flag_spec='-R$libdir' 9455 hardcode_direct=yes 9456 hardcode_shlibpath_var=no 9457 ;; 9458 9459 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9460 freebsd2.*) 9461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9462 hardcode_direct=yes 9463 hardcode_minus_L=yes 9464 hardcode_shlibpath_var=no 9465 ;; 9466 9467 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9468 freebsd* | dragonfly*) 9469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9470 hardcode_libdir_flag_spec='-R$libdir' 9471 hardcode_direct=yes 9472 hardcode_shlibpath_var=no 9473 ;; 9474 9475 hpux9*) 9476 if test "$GCC" = yes; then 9477 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' 9478 else 9479 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' 9480 fi 9481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9482 hardcode_libdir_separator=: 9483 hardcode_direct=yes 9484 9485 # hardcode_minus_L: Not really in the search PATH, 9486 # but as the default location of the library. 9487 hardcode_minus_L=yes 9488 export_dynamic_flag_spec='${wl}-E' 9489 ;; 9490 9491 hpux10*) 9492 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9493 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9494 else 9495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9496 fi 9497 if test "$with_gnu_ld" = no; then 9498 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9499 hardcode_libdir_separator=: 9500 hardcode_direct=yes 9501 hardcode_direct_absolute=yes 9502 export_dynamic_flag_spec='${wl}-E' 9503 # hardcode_minus_L: Not really in the search PATH, 9504 # but as the default location of the library. 9505 hardcode_minus_L=yes 9506 fi 9507 ;; 9508 9509 hpux11*) 9510 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9511 case $host_cpu in 9512 hppa*64*) 9513 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 ;; 9515 ia64*) 9516 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9517 ;; 9518 *) 9519 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9520 ;; 9521 esac 9522 else 9523 case $host_cpu in 9524 hppa*64*) 9525 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9526 ;; 9527 ia64*) 9528 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9529 ;; 9530 *) 9531 9532 # Older versions of the 11.00 compiler do not understand -b yet 9533 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9535$as_echo_n "checking if $CC understands -b... " >&6; } 9536if ${lt_cv_prog_compiler__b+:} false; then : 9537 $as_echo_n "(cached) " >&6 9538else 9539 lt_cv_prog_compiler__b=no 9540 save_LDFLAGS="$LDFLAGS" 9541 LDFLAGS="$LDFLAGS -b" 9542 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9544 # The linker can only warn and ignore the option if not recognized 9545 # So say no if there are warnings 9546 if test -s conftest.err; then 9547 # Append any errors to the config.log. 9548 cat conftest.err 1>&5 9549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9551 if diff conftest.exp conftest.er2 >/dev/null; then 9552 lt_cv_prog_compiler__b=yes 9553 fi 9554 else 9555 lt_cv_prog_compiler__b=yes 9556 fi 9557 fi 9558 $RM -r conftest* 9559 LDFLAGS="$save_LDFLAGS" 9560 9561fi 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9563$as_echo "$lt_cv_prog_compiler__b" >&6; } 9564 9565if test x"$lt_cv_prog_compiler__b" = xyes; then 9566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9567else 9568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9569fi 9570 9571 ;; 9572 esac 9573 fi 9574 if test "$with_gnu_ld" = no; then 9575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9576 hardcode_libdir_separator=: 9577 9578 case $host_cpu in 9579 hppa*64*|ia64*) 9580 hardcode_direct=no 9581 hardcode_shlibpath_var=no 9582 ;; 9583 *) 9584 hardcode_direct=yes 9585 hardcode_direct_absolute=yes 9586 export_dynamic_flag_spec='${wl}-E' 9587 9588 # hardcode_minus_L: Not really in the search PATH, 9589 # but as the default location of the library. 9590 hardcode_minus_L=yes 9591 ;; 9592 esac 9593 fi 9594 ;; 9595 9596 irix5* | irix6* | nonstopux*) 9597 if test "$GCC" = yes; then 9598 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' 9599 # Try to use the -exported_symbol ld option, if it does not 9600 # work, assume that -exports_file does not work either and 9601 # implicitly export all symbols. 9602 # This should be the same for all languages, so no per-tag cache variable. 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9604$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9605if ${lt_cv_irix_exported_symbol+:} false; then : 9606 $as_echo_n "(cached) " >&6 9607else 9608 save_LDFLAGS="$LDFLAGS" 9609 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9611/* end confdefs.h. */ 9612int foo (void) { return 0; } 9613_ACEOF 9614if ac_fn_c_try_link "$LINENO"; then : 9615 lt_cv_irix_exported_symbol=yes 9616else 9617 lt_cv_irix_exported_symbol=no 9618fi 9619rm -f core conftest.err conftest.$ac_objext \ 9620 conftest$ac_exeext conftest.$ac_ext 9621 LDFLAGS="$save_LDFLAGS" 9622fi 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9624$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9625 if test "$lt_cv_irix_exported_symbol" = yes; then 9626 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' 9627 fi 9628 else 9629 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' 9630 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' 9631 fi 9632 archive_cmds_need_lc='no' 9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9634 hardcode_libdir_separator=: 9635 inherit_rpath=yes 9636 link_all_deplibs=yes 9637 ;; 9638 9639 netbsd*) 9640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9642 else 9643 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9644 fi 9645 hardcode_libdir_flag_spec='-R$libdir' 9646 hardcode_direct=yes 9647 hardcode_shlibpath_var=no 9648 ;; 9649 9650 newsos6) 9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9652 hardcode_direct=yes 9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9654 hardcode_libdir_separator=: 9655 hardcode_shlibpath_var=no 9656 ;; 9657 9658 *nto* | *qnx*) 9659 ;; 9660 9661 openbsd*) 9662 if test -f /usr/libexec/ld.so; then 9663 hardcode_direct=yes 9664 hardcode_shlibpath_var=no 9665 hardcode_direct_absolute=yes 9666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9668 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9670 export_dynamic_flag_spec='${wl}-E' 9671 else 9672 case $host_os in 9673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9675 hardcode_libdir_flag_spec='-R$libdir' 9676 ;; 9677 *) 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9680 ;; 9681 esac 9682 fi 9683 else 9684 ld_shlibs=no 9685 fi 9686 ;; 9687 9688 os2*) 9689 hardcode_libdir_flag_spec='-L$libdir' 9690 hardcode_minus_L=yes 9691 allow_undefined_flag=unsupported 9692 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' 9693 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9694 ;; 9695 9696 osf3*) 9697 if test "$GCC" = yes; then 9698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9699 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' 9700 else 9701 allow_undefined_flag=' -expect_unresolved \*' 9702 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' 9703 fi 9704 archive_cmds_need_lc='no' 9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9706 hardcode_libdir_separator=: 9707 ;; 9708 9709 osf4* | osf5*) # as osf3* with the addition of -msym flag 9710 if test "$GCC" = yes; then 9711 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9712 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' 9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9714 else 9715 allow_undefined_flag=' -expect_unresolved \*' 9716 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' 9717 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~ 9718 $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' 9719 9720 # Both c and cxx compiler support -rpath directly 9721 hardcode_libdir_flag_spec='-rpath $libdir' 9722 fi 9723 archive_cmds_need_lc='no' 9724 hardcode_libdir_separator=: 9725 ;; 9726 9727 solaris*) 9728 no_undefined_flag=' -z defs' 9729 if test "$GCC" = yes; then 9730 wlarc='${wl}' 9731 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9733 $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' 9734 else 9735 case `$CC -V 2>&1` in 9736 *"Compilers 5.0"*) 9737 wlarc='' 9738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9741 ;; 9742 *) 9743 wlarc='${wl}' 9744 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9745 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9746 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9747 ;; 9748 esac 9749 fi 9750 hardcode_libdir_flag_spec='-R$libdir' 9751 hardcode_shlibpath_var=no 9752 case $host_os in 9753 solaris2.[0-5] | solaris2.[0-5].*) ;; 9754 *) 9755 # The compiler driver will combine and reorder linker options, 9756 # but understands `-z linker_flag'. GCC discards it without `$wl', 9757 # but is careful enough not to reorder. 9758 # Supported since Solaris 2.6 (maybe 2.5.1?) 9759 if test "$GCC" = yes; then 9760 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9761 else 9762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9763 fi 9764 ;; 9765 esac 9766 link_all_deplibs=yes 9767 ;; 9768 9769 sunos4*) 9770 if test "x$host_vendor" = xsequent; then 9771 # Use $CC to link under sequent, because it throws in some extra .o 9772 # files that make .init and .fini sections work. 9773 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9774 else 9775 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9776 fi 9777 hardcode_libdir_flag_spec='-L$libdir' 9778 hardcode_direct=yes 9779 hardcode_minus_L=yes 9780 hardcode_shlibpath_var=no 9781 ;; 9782 9783 sysv4) 9784 case $host_vendor in 9785 sni) 9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9787 hardcode_direct=yes # is this really true??? 9788 ;; 9789 siemens) 9790 ## LD is ld it makes a PLAMLIB 9791 ## CC just makes a GrossModule. 9792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9793 reload_cmds='$CC -r -o $output$reload_objs' 9794 hardcode_direct=no 9795 ;; 9796 motorola) 9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9799 ;; 9800 esac 9801 runpath_var='LD_RUN_PATH' 9802 hardcode_shlibpath_var=no 9803 ;; 9804 9805 sysv4.3*) 9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9807 hardcode_shlibpath_var=no 9808 export_dynamic_flag_spec='-Bexport' 9809 ;; 9810 9811 sysv4*MP*) 9812 if test -d /usr/nec; then 9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9814 hardcode_shlibpath_var=no 9815 runpath_var=LD_RUN_PATH 9816 hardcode_runpath_var=yes 9817 ld_shlibs=yes 9818 fi 9819 ;; 9820 9821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9822 no_undefined_flag='${wl}-z,text' 9823 archive_cmds_need_lc=no 9824 hardcode_shlibpath_var=no 9825 runpath_var='LD_RUN_PATH' 9826 9827 if test "$GCC" = yes; then 9828 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9829 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9830 else 9831 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9832 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9833 fi 9834 ;; 9835 9836 sysv5* | sco3.2v5* | sco5v6*) 9837 # Note: We can NOT use -z defs as we might desire, because we do not 9838 # link with -lc, and that would cause any symbols used from libc to 9839 # always be unresolved, which means just about no library would 9840 # ever link correctly. If we're not using GNU ld we use -z text 9841 # though, which does catch some bad symbols but isn't as heavy-handed 9842 # as -z defs. 9843 no_undefined_flag='${wl}-z,text' 9844 allow_undefined_flag='${wl}-z,nodefs' 9845 archive_cmds_need_lc=no 9846 hardcode_shlibpath_var=no 9847 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9848 hardcode_libdir_separator=':' 9849 link_all_deplibs=yes 9850 export_dynamic_flag_spec='${wl}-Bexport' 9851 runpath_var='LD_RUN_PATH' 9852 9853 if test "$GCC" = yes; then 9854 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9855 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9856 else 9857 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9858 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9859 fi 9860 ;; 9861 9862 uts4*) 9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9864 hardcode_libdir_flag_spec='-L$libdir' 9865 hardcode_shlibpath_var=no 9866 ;; 9867 9868 *) 9869 ld_shlibs=no 9870 ;; 9871 esac 9872 9873 if test x$host_vendor = xsni; then 9874 case $host in 9875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9876 export_dynamic_flag_spec='${wl}-Blargedynsym' 9877 ;; 9878 esac 9879 fi 9880 fi 9881 9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9883$as_echo "$ld_shlibs" >&6; } 9884test "$ld_shlibs" = no && can_build_shared=no 9885 9886with_gnu_ld=$with_gnu_ld 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902# 9903# Do we need to explicitly link libc? 9904# 9905case "x$archive_cmds_need_lc" in 9906x|xyes) 9907 # Assume -lc should be added 9908 archive_cmds_need_lc=yes 9909 9910 if test "$enable_shared" = yes && test "$GCC" = yes; then 9911 case $archive_cmds in 9912 *'~'*) 9913 # FIXME: we may have to deal with multi-command sequences. 9914 ;; 9915 '$CC '*) 9916 # Test whether the compiler implicitly links with -lc since on some 9917 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9918 # to ld, don't add -lc before -lgcc. 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9920$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9921if ${lt_cv_archive_cmds_need_lc+:} false; then : 9922 $as_echo_n "(cached) " >&6 9923else 9924 $RM conftest* 9925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9926 9927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9928 (eval $ac_compile) 2>&5 9929 ac_status=$? 9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9931 test $ac_status = 0; } 2>conftest.err; then 9932 soname=conftest 9933 lib=conftest 9934 libobjs=conftest.$ac_objext 9935 deplibs= 9936 wl=$lt_prog_compiler_wl 9937 pic_flag=$lt_prog_compiler_pic 9938 compiler_flags=-v 9939 linker_flags=-v 9940 verstring= 9941 output_objdir=. 9942 libname=conftest 9943 lt_save_allow_undefined_flag=$allow_undefined_flag 9944 allow_undefined_flag= 9945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9946 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9947 ac_status=$? 9948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9949 test $ac_status = 0; } 9950 then 9951 lt_cv_archive_cmds_need_lc=no 9952 else 9953 lt_cv_archive_cmds_need_lc=yes 9954 fi 9955 allow_undefined_flag=$lt_save_allow_undefined_flag 9956 else 9957 cat conftest.err 1>&5 9958 fi 9959 $RM conftest* 9960 9961fi 9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9963$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9964 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9965 ;; 9966 esac 9967 fi 9968 ;; 9969esac 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10123$as_echo_n "checking dynamic linker characteristics... " >&6; } 10124 10125if test "$GCC" = yes; then 10126 case $host_os in 10127 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10128 *) lt_awk_arg="/^libraries:/" ;; 10129 esac 10130 case $host_os in 10131 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10132 *) lt_sed_strip_eq="s,=/,/,g" ;; 10133 esac 10134 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10135 case $lt_search_path_spec in 10136 *\;*) 10137 # if the path contains ";" then we assume it to be the separator 10138 # otherwise default to the standard path separator (i.e. ":") - it is 10139 # assumed that no part of a normal pathname contains ";" but that should 10140 # okay in the real world where ";" in dirpaths is itself problematic. 10141 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10142 ;; 10143 *) 10144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10145 ;; 10146 esac 10147 # Ok, now we have the path, separated by spaces, we can step through it 10148 # and add multilib dir if necessary. 10149 lt_tmp_lt_search_path_spec= 10150 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10151 for lt_sys_path in $lt_search_path_spec; do 10152 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10154 else 10155 test -d "$lt_sys_path" && \ 10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10157 fi 10158 done 10159 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10160BEGIN {RS=" "; FS="/|\n";} { 10161 lt_foo=""; 10162 lt_count=0; 10163 for (lt_i = NF; lt_i > 0; lt_i--) { 10164 if ($lt_i != "" && $lt_i != ".") { 10165 if ($lt_i == "..") { 10166 lt_count++; 10167 } else { 10168 if (lt_count == 0) { 10169 lt_foo="/" $lt_i lt_foo; 10170 } else { 10171 lt_count--; 10172 } 10173 } 10174 } 10175 } 10176 if (lt_foo != "") { lt_freq[lt_foo]++; } 10177 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10178}'` 10179 # AWK program above erroneously prepends '/' to C:/dos/paths 10180 # for these hosts. 10181 case $host_os in 10182 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10183 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10184 esac 10185 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10186else 10187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10188fi 10189library_names_spec= 10190libname_spec='lib$name' 10191soname_spec= 10192shrext_cmds=".so" 10193postinstall_cmds= 10194postuninstall_cmds= 10195finish_cmds= 10196finish_eval= 10197shlibpath_var= 10198shlibpath_overrides_runpath=unknown 10199version_type=none 10200dynamic_linker="$host_os ld.so" 10201sys_lib_dlsearch_path_spec="/lib /usr/lib" 10202need_lib_prefix=unknown 10203hardcode_into_libs=no 10204 10205# when you set need_version to no, make sure it does not cause -set_version 10206# flags to be left without arguments 10207need_version=unknown 10208 10209case $host_os in 10210aix3*) 10211 version_type=linux # correct to gnu/linux during the next big refactor 10212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10213 shlibpath_var=LIBPATH 10214 10215 # AIX 3 has no versioning support, so we append a major version to the name. 10216 soname_spec='${libname}${release}${shared_ext}$major' 10217 ;; 10218 10219aix[4-9]*) 10220 version_type=linux # correct to gnu/linux during the next big refactor 10221 need_lib_prefix=no 10222 need_version=no 10223 hardcode_into_libs=yes 10224 if test "$host_cpu" = ia64; then 10225 # AIX 5 supports IA64 10226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10227 shlibpath_var=LD_LIBRARY_PATH 10228 else 10229 # With GCC up to 2.95.x, collect2 would create an import file 10230 # for dependence libraries. The import file would start with 10231 # the line `#! .'. This would cause the generated library to 10232 # depend on `.', always an invalid library. This was fixed in 10233 # development snapshots of GCC prior to 3.0. 10234 case $host_os in 10235 aix4 | aix4.[01] | aix4.[01].*) 10236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10237 echo ' yes ' 10238 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10239 : 10240 else 10241 can_build_shared=no 10242 fi 10243 ;; 10244 esac 10245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10246 # soname into executable. Probably we can add versioning support to 10247 # collect2, so additional links can be useful in future. 10248 if test "$aix_use_runtimelinking" = yes; then 10249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10250 # instead of lib<name>.a to let people know that these are not 10251 # typical AIX shared libraries. 10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10253 else 10254 # We preserve .a as extension for shared libraries through AIX4.2 10255 # and later when we are not doing run time linking. 10256 library_names_spec='${libname}${release}.a $libname.a' 10257 soname_spec='${libname}${release}${shared_ext}$major' 10258 fi 10259 shlibpath_var=LIBPATH 10260 fi 10261 ;; 10262 10263amigaos*) 10264 case $host_cpu in 10265 powerpc) 10266 # Since July 2007 AmigaOS4 officially supports .so libraries. 10267 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10269 ;; 10270 m68k) 10271 library_names_spec='$libname.ixlibrary $libname.a' 10272 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10273 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' 10274 ;; 10275 esac 10276 ;; 10277 10278beos*) 10279 library_names_spec='${libname}${shared_ext}' 10280 dynamic_linker="$host_os ld.so" 10281 shlibpath_var=LIBRARY_PATH 10282 ;; 10283 10284bsdi[45]*) 10285 version_type=linux # correct to gnu/linux during the next big refactor 10286 need_version=no 10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10288 soname_spec='${libname}${release}${shared_ext}$major' 10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10290 shlibpath_var=LD_LIBRARY_PATH 10291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10293 # the default ld.so.conf also contains /usr/contrib/lib and 10294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10295 # libtool to hard-code these into programs 10296 ;; 10297 10298cygwin* | mingw* | pw32* | cegcc*) 10299 version_type=windows 10300 shrext_cmds=".dll" 10301 need_version=no 10302 need_lib_prefix=no 10303 10304 case $GCC,$cc_basename in 10305 yes,*) 10306 # gcc 10307 library_names_spec='$libname.dll.a' 10308 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10309 postinstall_cmds='base_file=`basename \${file}`~ 10310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10311 dldir=$destdir/`dirname \$dlpath`~ 10312 test -d \$dldir || mkdir -p \$dldir~ 10313 $install_prog $dir/$dlname \$dldir/$dlname~ 10314 chmod a+x \$dldir/$dlname~ 10315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10317 fi' 10318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10319 dlpath=$dir/\$dldll~ 10320 $RM \$dlpath' 10321 shlibpath_overrides_runpath=yes 10322 10323 case $host_os in 10324 cygwin*) 10325 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10327 10328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10329 ;; 10330 mingw* | cegcc*) 10331 # MinGW DLLs use traditional 'lib' prefix 10332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10333 ;; 10334 pw32*) 10335 # pw32 DLLs use 'pw' prefix rather than 'lib' 10336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10337 ;; 10338 esac 10339 dynamic_linker='Win32 ld.exe' 10340 ;; 10341 10342 *,cl*) 10343 # Native MSVC 10344 libname_spec='$name' 10345 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10346 library_names_spec='${libname}.dll.lib' 10347 10348 case $build_os in 10349 mingw*) 10350 sys_lib_search_path_spec= 10351 lt_save_ifs=$IFS 10352 IFS=';' 10353 for lt_path in $LIB 10354 do 10355 IFS=$lt_save_ifs 10356 # Let DOS variable expansion print the short 8.3 style file name. 10357 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10358 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10359 done 10360 IFS=$lt_save_ifs 10361 # Convert to MSYS style. 10362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10363 ;; 10364 cygwin*) 10365 # Convert to unix form, then to dos form, then back to unix form 10366 # but this time dos style (no spaces!) so that the unix form looks 10367 # like /cygdrive/c/PROGRA~1:/cygdr... 10368 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10369 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10370 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10371 ;; 10372 *) 10373 sys_lib_search_path_spec="$LIB" 10374 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10375 # It is most probably a Windows format PATH. 10376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10377 else 10378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10379 fi 10380 # FIXME: find the short name or the path components, as spaces are 10381 # common. (e.g. "Program Files" -> "PROGRA~1") 10382 ;; 10383 esac 10384 10385 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10386 postinstall_cmds='base_file=`basename \${file}`~ 10387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10388 dldir=$destdir/`dirname \$dlpath`~ 10389 test -d \$dldir || mkdir -p \$dldir~ 10390 $install_prog $dir/$dlname \$dldir/$dlname' 10391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10392 dlpath=$dir/\$dldll~ 10393 $RM \$dlpath' 10394 shlibpath_overrides_runpath=yes 10395 dynamic_linker='Win32 link.exe' 10396 ;; 10397 10398 *) 10399 # Assume MSVC wrapper 10400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10401 dynamic_linker='Win32 ld.exe' 10402 ;; 10403 esac 10404 # FIXME: first we should search . and the directory the executable is in 10405 shlibpath_var=PATH 10406 ;; 10407 10408darwin* | rhapsody*) 10409 dynamic_linker="$host_os dyld" 10410 version_type=darwin 10411 need_lib_prefix=no 10412 need_version=no 10413 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10414 soname_spec='${libname}${release}${major}$shared_ext' 10415 shlibpath_overrides_runpath=yes 10416 shlibpath_var=DYLD_LIBRARY_PATH 10417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10418 10419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10421 ;; 10422 10423dgux*) 10424 version_type=linux # correct to gnu/linux during the next big refactor 10425 need_lib_prefix=no 10426 need_version=no 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10428 soname_spec='${libname}${release}${shared_ext}$major' 10429 shlibpath_var=LD_LIBRARY_PATH 10430 ;; 10431 10432freebsd* | dragonfly*) 10433 # DragonFly does not have aout. When/if they implement a new 10434 # versioning mechanism, adjust this. 10435 if test -x /usr/bin/objformat; then 10436 objformat=`/usr/bin/objformat` 10437 else 10438 case $host_os in 10439 freebsd[23].*) objformat=aout ;; 10440 *) objformat=elf ;; 10441 esac 10442 fi 10443 version_type=freebsd-$objformat 10444 case $version_type in 10445 freebsd-elf*) 10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10447 need_version=no 10448 need_lib_prefix=no 10449 ;; 10450 freebsd-*) 10451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10452 need_version=yes 10453 ;; 10454 esac 10455 shlibpath_var=LD_LIBRARY_PATH 10456 case $host_os in 10457 freebsd2.*) 10458 shlibpath_overrides_runpath=yes 10459 ;; 10460 freebsd3.[01]* | freebsdelf3.[01]*) 10461 shlibpath_overrides_runpath=yes 10462 hardcode_into_libs=yes 10463 ;; 10464 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10465 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10466 shlibpath_overrides_runpath=no 10467 hardcode_into_libs=yes 10468 ;; 10469 *) # from 4.6 on, and DragonFly 10470 shlibpath_overrides_runpath=yes 10471 hardcode_into_libs=yes 10472 ;; 10473 esac 10474 ;; 10475 10476gnu*) 10477 version_type=linux # correct to gnu/linux during the next big refactor 10478 need_lib_prefix=no 10479 need_version=no 10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10481 soname_spec='${libname}${release}${shared_ext}$major' 10482 shlibpath_var=LD_LIBRARY_PATH 10483 shlibpath_overrides_runpath=no 10484 hardcode_into_libs=yes 10485 ;; 10486 10487haiku*) 10488 version_type=linux # correct to gnu/linux during the next big refactor 10489 need_lib_prefix=no 10490 need_version=no 10491 dynamic_linker="$host_os runtime_loader" 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 shlibpath_var=LIBRARY_PATH 10495 shlibpath_overrides_runpath=yes 10496 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10497 hardcode_into_libs=yes 10498 ;; 10499 10500hpux9* | hpux10* | hpux11*) 10501 # Give a soname corresponding to the major version so that dld.sl refuses to 10502 # link against other versions. 10503 version_type=sunos 10504 need_lib_prefix=no 10505 need_version=no 10506 case $host_cpu in 10507 ia64*) 10508 shrext_cmds='.so' 10509 hardcode_into_libs=yes 10510 dynamic_linker="$host_os dld.so" 10511 shlibpath_var=LD_LIBRARY_PATH 10512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 if test "X$HPUX_IA64_MODE" = X32; then 10516 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10517 else 10518 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10519 fi 10520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10521 ;; 10522 hppa*64*) 10523 shrext_cmds='.sl' 10524 hardcode_into_libs=yes 10525 dynamic_linker="$host_os dld.sl" 10526 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10529 soname_spec='${libname}${release}${shared_ext}$major' 10530 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10532 ;; 10533 *) 10534 shrext_cmds='.sl' 10535 dynamic_linker="$host_os dld.sl" 10536 shlibpath_var=SHLIB_PATH 10537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10539 soname_spec='${libname}${release}${shared_ext}$major' 10540 ;; 10541 esac 10542 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10543 postinstall_cmds='chmod 555 $lib' 10544 # or fails outright, so override atomically: 10545 install_override_mode=555 10546 ;; 10547 10548interix[3-9]*) 10549 version_type=linux # correct to gnu/linux during the next big refactor 10550 need_lib_prefix=no 10551 need_version=no 10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10553 soname_spec='${libname}${release}${shared_ext}$major' 10554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10555 shlibpath_var=LD_LIBRARY_PATH 10556 shlibpath_overrides_runpath=no 10557 hardcode_into_libs=yes 10558 ;; 10559 10560irix5* | irix6* | nonstopux*) 10561 case $host_os in 10562 nonstopux*) version_type=nonstopux ;; 10563 *) 10564 if test "$lt_cv_prog_gnu_ld" = yes; then 10565 version_type=linux # correct to gnu/linux during the next big refactor 10566 else 10567 version_type=irix 10568 fi ;; 10569 esac 10570 need_lib_prefix=no 10571 need_version=no 10572 soname_spec='${libname}${release}${shared_ext}$major' 10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10574 case $host_os in 10575 irix5* | nonstopux*) 10576 libsuff= shlibsuff= 10577 ;; 10578 *) 10579 case $LD in # libtool.m4 will add one of these switches to LD 10580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10581 libsuff= shlibsuff= libmagic=32-bit;; 10582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10583 libsuff=32 shlibsuff=N32 libmagic=N32;; 10584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10585 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10586 *) libsuff= shlibsuff= libmagic=never-match;; 10587 esac 10588 ;; 10589 esac 10590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10591 shlibpath_overrides_runpath=no 10592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10594 hardcode_into_libs=yes 10595 ;; 10596 10597# No shared lib support for Linux oldld, aout, or coff. 10598linux*oldld* | linux*aout* | linux*coff*) 10599 dynamic_linker=no 10600 ;; 10601 10602# This must be glibc/ELF. 10603linux* | k*bsd*-gnu | kopensolaris*-gnu) 10604 version_type=linux # correct to gnu/linux during the next big refactor 10605 need_lib_prefix=no 10606 need_version=no 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10610 shlibpath_var=LD_LIBRARY_PATH 10611 shlibpath_overrides_runpath=no 10612 10613 # Some binutils ld are patched to set DT_RUNPATH 10614 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10615 $as_echo_n "(cached) " >&6 10616else 10617 lt_cv_shlibpath_overrides_runpath=no 10618 save_LDFLAGS=$LDFLAGS 10619 save_libdir=$libdir 10620 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10621 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10623/* end confdefs.h. */ 10624 10625int 10626main () 10627{ 10628 10629 ; 10630 return 0; 10631} 10632_ACEOF 10633if ac_fn_c_try_link "$LINENO"; then : 10634 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10635 lt_cv_shlibpath_overrides_runpath=yes 10636fi 10637fi 10638rm -f core conftest.err conftest.$ac_objext \ 10639 conftest$ac_exeext conftest.$ac_ext 10640 LDFLAGS=$save_LDFLAGS 10641 libdir=$save_libdir 10642 10643fi 10644 10645 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10646 10647 # This implies no fast_install, which is unacceptable. 10648 # Some rework will be needed to allow for fast_install 10649 # before this can be enabled. 10650 hardcode_into_libs=yes 10651 10652 # Append ld.so.conf contents to the search path 10653 if test -f /etc/ld.so.conf; then 10654 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' ' '` 10655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10656 fi 10657 10658 # We used to test for /lib/ld.so.1 and disable shared libraries on 10659 # powerpc, because MkLinux only supported shared libraries with the 10660 # GNU dynamic linker. Since this was broken with cross compilers, 10661 # most powerpc-linux boxes support dynamic linking these days and 10662 # people can always --disable-shared, the test was removed, and we 10663 # assume the GNU/Linux dynamic linker is in use. 10664 dynamic_linker='GNU/Linux ld.so' 10665 ;; 10666 10667netbsd*) 10668 version_type=sunos 10669 need_lib_prefix=no 10670 need_version=no 10671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10674 dynamic_linker='NetBSD (a.out) ld.so' 10675 else 10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10677 soname_spec='${libname}${release}${shared_ext}$major' 10678 dynamic_linker='NetBSD ld.elf_so' 10679 fi 10680 shlibpath_var=LD_LIBRARY_PATH 10681 shlibpath_overrides_runpath=yes 10682 hardcode_into_libs=yes 10683 ;; 10684 10685newsos6) 10686 version_type=linux # correct to gnu/linux during the next big refactor 10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10688 shlibpath_var=LD_LIBRARY_PATH 10689 shlibpath_overrides_runpath=yes 10690 ;; 10691 10692*nto* | *qnx*) 10693 version_type=qnx 10694 need_lib_prefix=no 10695 need_version=no 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 soname_spec='${libname}${release}${shared_ext}$major' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 shlibpath_overrides_runpath=no 10700 hardcode_into_libs=yes 10701 dynamic_linker='ldqnx.so' 10702 ;; 10703 10704openbsd*) 10705 version_type=sunos 10706 sys_lib_dlsearch_path_spec="/usr/lib" 10707 need_lib_prefix=no 10708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10709 case $host_os in 10710 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10711 *) need_version=no ;; 10712 esac 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10715 shlibpath_var=LD_LIBRARY_PATH 10716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10717 case $host_os in 10718 openbsd2.[89] | openbsd2.[89].*) 10719 shlibpath_overrides_runpath=no 10720 ;; 10721 *) 10722 shlibpath_overrides_runpath=yes 10723 ;; 10724 esac 10725 else 10726 shlibpath_overrides_runpath=yes 10727 fi 10728 ;; 10729 10730os2*) 10731 libname_spec='$name' 10732 shrext_cmds=".dll" 10733 need_lib_prefix=no 10734 library_names_spec='$libname${shared_ext} $libname.a' 10735 dynamic_linker='OS/2 ld.exe' 10736 shlibpath_var=LIBPATH 10737 ;; 10738 10739osf3* | osf4* | osf5*) 10740 version_type=osf 10741 need_lib_prefix=no 10742 need_version=no 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10745 shlibpath_var=LD_LIBRARY_PATH 10746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10748 ;; 10749 10750rdos*) 10751 dynamic_linker=no 10752 ;; 10753 10754solaris*) 10755 version_type=linux # correct to gnu/linux during the next big refactor 10756 need_lib_prefix=no 10757 need_version=no 10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10759 soname_spec='${libname}${release}${shared_ext}$major' 10760 shlibpath_var=LD_LIBRARY_PATH 10761 shlibpath_overrides_runpath=yes 10762 hardcode_into_libs=yes 10763 # ldd complains unless libraries are executable 10764 postinstall_cmds='chmod +x $lib' 10765 ;; 10766 10767sunos4*) 10768 version_type=sunos 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10771 shlibpath_var=LD_LIBRARY_PATH 10772 shlibpath_overrides_runpath=yes 10773 if test "$with_gnu_ld" = yes; then 10774 need_lib_prefix=no 10775 fi 10776 need_version=yes 10777 ;; 10778 10779sysv4 | sysv4.3*) 10780 version_type=linux # correct to gnu/linux during the next big refactor 10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10782 soname_spec='${libname}${release}${shared_ext}$major' 10783 shlibpath_var=LD_LIBRARY_PATH 10784 case $host_vendor in 10785 sni) 10786 shlibpath_overrides_runpath=no 10787 need_lib_prefix=no 10788 runpath_var=LD_RUN_PATH 10789 ;; 10790 siemens) 10791 need_lib_prefix=no 10792 ;; 10793 motorola) 10794 need_lib_prefix=no 10795 need_version=no 10796 shlibpath_overrides_runpath=no 10797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10798 ;; 10799 esac 10800 ;; 10801 10802sysv4*MP*) 10803 if test -d /usr/nec ;then 10804 version_type=linux # correct to gnu/linux during the next big refactor 10805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10806 soname_spec='$libname${shared_ext}.$major' 10807 shlibpath_var=LD_LIBRARY_PATH 10808 fi 10809 ;; 10810 10811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10812 version_type=freebsd-elf 10813 need_lib_prefix=no 10814 need_version=no 10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10816 soname_spec='${libname}${release}${shared_ext}$major' 10817 shlibpath_var=LD_LIBRARY_PATH 10818 shlibpath_overrides_runpath=yes 10819 hardcode_into_libs=yes 10820 if test "$with_gnu_ld" = yes; then 10821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10822 else 10823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10824 case $host_os in 10825 sco3.2v5*) 10826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10827 ;; 10828 esac 10829 fi 10830 sys_lib_dlsearch_path_spec='/usr/lib' 10831 ;; 10832 10833tpf*) 10834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10835 version_type=linux # correct to gnu/linux during the next big refactor 10836 need_lib_prefix=no 10837 need_version=no 10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10839 shlibpath_var=LD_LIBRARY_PATH 10840 shlibpath_overrides_runpath=no 10841 hardcode_into_libs=yes 10842 ;; 10843 10844uts4*) 10845 version_type=linux # correct to gnu/linux during the next big refactor 10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10847 soname_spec='${libname}${release}${shared_ext}$major' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 ;; 10850 10851*) 10852 dynamic_linker=no 10853 ;; 10854esac 10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10856$as_echo "$dynamic_linker" >&6; } 10857test "$dynamic_linker" = no && can_build_shared=no 10858 10859variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10860if test "$GCC" = yes; then 10861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10862fi 10863 10864if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10866fi 10867if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10869fi 10870 10871 10872 10873 10874 10875 10876 10877 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10963$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10964hardcode_action= 10965if test -n "$hardcode_libdir_flag_spec" || 10966 test -n "$runpath_var" || 10967 test "X$hardcode_automatic" = "Xyes" ; then 10968 10969 # We can hardcode non-existent directories. 10970 if test "$hardcode_direct" != no && 10971 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10972 # have to relink, otherwise we might link with an installed library 10973 # when we should be linking with a yet-to-be-installed one 10974 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10975 test "$hardcode_minus_L" != no; then 10976 # Linking always hardcodes the temporary library directory. 10977 hardcode_action=relink 10978 else 10979 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10980 hardcode_action=immediate 10981 fi 10982else 10983 # We cannot hardcode anything, or else we can only hardcode existing 10984 # directories. 10985 hardcode_action=unsupported 10986fi 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10988$as_echo "$hardcode_action" >&6; } 10989 10990if test "$hardcode_action" = relink || 10991 test "$inherit_rpath" = yes; then 10992 # Fast installation is not supported 10993 enable_fast_install=no 10994elif test "$shlibpath_overrides_runpath" = yes || 10995 test "$enable_shared" = no; then 10996 # Fast installation is not necessary 10997 enable_fast_install=needless 10998fi 10999 11000 11001 11002 11003 11004 11005 if test "x$enable_dlopen" != xyes; then 11006 enable_dlopen=unknown 11007 enable_dlopen_self=unknown 11008 enable_dlopen_self_static=unknown 11009else 11010 lt_cv_dlopen=no 11011 lt_cv_dlopen_libs= 11012 11013 case $host_os in 11014 beos*) 11015 lt_cv_dlopen="load_add_on" 11016 lt_cv_dlopen_libs= 11017 lt_cv_dlopen_self=yes 11018 ;; 11019 11020 mingw* | pw32* | cegcc*) 11021 lt_cv_dlopen="LoadLibrary" 11022 lt_cv_dlopen_libs= 11023 ;; 11024 11025 cygwin*) 11026 lt_cv_dlopen="dlopen" 11027 lt_cv_dlopen_libs= 11028 ;; 11029 11030 darwin*) 11031 # if libdl is installed we need to link against it 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11033$as_echo_n "checking for dlopen in -ldl... " >&6; } 11034if ${ac_cv_lib_dl_dlopen+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 ac_check_lib_save_LIBS=$LIBS 11038LIBS="-ldl $LIBS" 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042/* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045#ifdef __cplusplus 11046extern "C" 11047#endif 11048char dlopen (); 11049int 11050main () 11051{ 11052return dlopen (); 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057if ac_fn_c_try_link "$LINENO"; then : 11058 ac_cv_lib_dl_dlopen=yes 11059else 11060 ac_cv_lib_dl_dlopen=no 11061fi 11062rm -f core conftest.err conftest.$ac_objext \ 11063 conftest$ac_exeext conftest.$ac_ext 11064LIBS=$ac_check_lib_save_LIBS 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11067$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11068if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11070else 11071 11072 lt_cv_dlopen="dyld" 11073 lt_cv_dlopen_libs= 11074 lt_cv_dlopen_self=yes 11075 11076fi 11077 11078 ;; 11079 11080 *) 11081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11082if test "x$ac_cv_func_shl_load" = xyes; then : 11083 lt_cv_dlopen="shl_load" 11084else 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11086$as_echo_n "checking for shl_load in -ldld... " >&6; } 11087if ${ac_cv_lib_dld_shl_load+:} false; then : 11088 $as_echo_n "(cached) " >&6 11089else 11090 ac_check_lib_save_LIBS=$LIBS 11091LIBS="-ldld $LIBS" 11092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11093/* end confdefs.h. */ 11094 11095/* Override any GCC internal prototype to avoid an error. 11096 Use char because int might match the return type of a GCC 11097 builtin and then its argument prototype would still apply. */ 11098#ifdef __cplusplus 11099extern "C" 11100#endif 11101char shl_load (); 11102int 11103main () 11104{ 11105return shl_load (); 11106 ; 11107 return 0; 11108} 11109_ACEOF 11110if ac_fn_c_try_link "$LINENO"; then : 11111 ac_cv_lib_dld_shl_load=yes 11112else 11113 ac_cv_lib_dld_shl_load=no 11114fi 11115rm -f core conftest.err conftest.$ac_objext \ 11116 conftest$ac_exeext conftest.$ac_ext 11117LIBS=$ac_check_lib_save_LIBS 11118fi 11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11120$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11121if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11123else 11124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11125if test "x$ac_cv_func_dlopen" = xyes; then : 11126 lt_cv_dlopen="dlopen" 11127else 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11129$as_echo_n "checking for dlopen in -ldl... " >&6; } 11130if ${ac_cv_lib_dl_dlopen+:} false; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 ac_check_lib_save_LIBS=$LIBS 11134LIBS="-ldl $LIBS" 11135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11136/* end confdefs.h. */ 11137 11138/* Override any GCC internal prototype to avoid an error. 11139 Use char because int might match the return type of a GCC 11140 builtin and then its argument prototype would still apply. */ 11141#ifdef __cplusplus 11142extern "C" 11143#endif 11144char dlopen (); 11145int 11146main () 11147{ 11148return dlopen (); 11149 ; 11150 return 0; 11151} 11152_ACEOF 11153if ac_fn_c_try_link "$LINENO"; then : 11154 ac_cv_lib_dl_dlopen=yes 11155else 11156 ac_cv_lib_dl_dlopen=no 11157fi 11158rm -f core conftest.err conftest.$ac_objext \ 11159 conftest$ac_exeext conftest.$ac_ext 11160LIBS=$ac_check_lib_save_LIBS 11161fi 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11163$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11164if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11166else 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11168$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11169if ${ac_cv_lib_svld_dlopen+:} false; then : 11170 $as_echo_n "(cached) " >&6 11171else 11172 ac_check_lib_save_LIBS=$LIBS 11173LIBS="-lsvld $LIBS" 11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176 11177/* Override any GCC internal prototype to avoid an error. 11178 Use char because int might match the return type of a GCC 11179 builtin and then its argument prototype would still apply. */ 11180#ifdef __cplusplus 11181extern "C" 11182#endif 11183char dlopen (); 11184int 11185main () 11186{ 11187return dlopen (); 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO"; then : 11193 ac_cv_lib_svld_dlopen=yes 11194else 11195 ac_cv_lib_svld_dlopen=no 11196fi 11197rm -f core conftest.err conftest.$ac_objext \ 11198 conftest$ac_exeext conftest.$ac_ext 11199LIBS=$ac_check_lib_save_LIBS 11200fi 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11202$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11203if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11205else 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11207$as_echo_n "checking for dld_link in -ldld... " >&6; } 11208if ${ac_cv_lib_dld_dld_link+:} false; then : 11209 $as_echo_n "(cached) " >&6 11210else 11211 ac_check_lib_save_LIBS=$LIBS 11212LIBS="-ldld $LIBS" 11213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214/* end confdefs.h. */ 11215 11216/* Override any GCC internal prototype to avoid an error. 11217 Use char because int might match the return type of a GCC 11218 builtin and then its argument prototype would still apply. */ 11219#ifdef __cplusplus 11220extern "C" 11221#endif 11222char dld_link (); 11223int 11224main () 11225{ 11226return dld_link (); 11227 ; 11228 return 0; 11229} 11230_ACEOF 11231if ac_fn_c_try_link "$LINENO"; then : 11232 ac_cv_lib_dld_dld_link=yes 11233else 11234 ac_cv_lib_dld_dld_link=no 11235fi 11236rm -f core conftest.err conftest.$ac_objext \ 11237 conftest$ac_exeext conftest.$ac_ext 11238LIBS=$ac_check_lib_save_LIBS 11239fi 11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11241$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11242if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11244fi 11245 11246 11247fi 11248 11249 11250fi 11251 11252 11253fi 11254 11255 11256fi 11257 11258 11259fi 11260 11261 ;; 11262 esac 11263 11264 if test "x$lt_cv_dlopen" != xno; then 11265 enable_dlopen=yes 11266 else 11267 enable_dlopen=no 11268 fi 11269 11270 case $lt_cv_dlopen in 11271 dlopen) 11272 save_CPPFLAGS="$CPPFLAGS" 11273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11274 11275 save_LDFLAGS="$LDFLAGS" 11276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11277 11278 save_LIBS="$LIBS" 11279 LIBS="$lt_cv_dlopen_libs $LIBS" 11280 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11282$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11283if ${lt_cv_dlopen_self+:} false; then : 11284 $as_echo_n "(cached) " >&6 11285else 11286 if test "$cross_compiling" = yes; then : 11287 lt_cv_dlopen_self=cross 11288else 11289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11290 lt_status=$lt_dlunknown 11291 cat > conftest.$ac_ext <<_LT_EOF 11292#line $LINENO "configure" 11293#include "confdefs.h" 11294 11295#if HAVE_DLFCN_H 11296#include <dlfcn.h> 11297#endif 11298 11299#include <stdio.h> 11300 11301#ifdef RTLD_GLOBAL 11302# define LT_DLGLOBAL RTLD_GLOBAL 11303#else 11304# ifdef DL_GLOBAL 11305# define LT_DLGLOBAL DL_GLOBAL 11306# else 11307# define LT_DLGLOBAL 0 11308# endif 11309#endif 11310 11311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11312 find out it does not work in some platform. */ 11313#ifndef LT_DLLAZY_OR_NOW 11314# ifdef RTLD_LAZY 11315# define LT_DLLAZY_OR_NOW RTLD_LAZY 11316# else 11317# ifdef DL_LAZY 11318# define LT_DLLAZY_OR_NOW DL_LAZY 11319# else 11320# ifdef RTLD_NOW 11321# define LT_DLLAZY_OR_NOW RTLD_NOW 11322# else 11323# ifdef DL_NOW 11324# define LT_DLLAZY_OR_NOW DL_NOW 11325# else 11326# define LT_DLLAZY_OR_NOW 0 11327# endif 11328# endif 11329# endif 11330# endif 11331#endif 11332 11333/* When -fvisbility=hidden is used, assume the code has been annotated 11334 correspondingly for the symbols needed. */ 11335#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11336int fnord () __attribute__((visibility("default"))); 11337#endif 11338 11339int fnord () { return 42; } 11340int main () 11341{ 11342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11343 int status = $lt_dlunknown; 11344 11345 if (self) 11346 { 11347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11348 else 11349 { 11350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11351 else puts (dlerror ()); 11352 } 11353 /* dlclose (self); */ 11354 } 11355 else 11356 puts (dlerror ()); 11357 11358 return status; 11359} 11360_LT_EOF 11361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11362 (eval $ac_link) 2>&5 11363 ac_status=$? 11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11366 (./conftest; exit; ) >&5 2>/dev/null 11367 lt_status=$? 11368 case x$lt_status in 11369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11372 esac 11373 else : 11374 # compilation failed 11375 lt_cv_dlopen_self=no 11376 fi 11377fi 11378rm -fr conftest* 11379 11380 11381fi 11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11383$as_echo "$lt_cv_dlopen_self" >&6; } 11384 11385 if test "x$lt_cv_dlopen_self" = xyes; then 11386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11388$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11389if ${lt_cv_dlopen_self_static+:} false; then : 11390 $as_echo_n "(cached) " >&6 11391else 11392 if test "$cross_compiling" = yes; then : 11393 lt_cv_dlopen_self_static=cross 11394else 11395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11396 lt_status=$lt_dlunknown 11397 cat > conftest.$ac_ext <<_LT_EOF 11398#line $LINENO "configure" 11399#include "confdefs.h" 11400 11401#if HAVE_DLFCN_H 11402#include <dlfcn.h> 11403#endif 11404 11405#include <stdio.h> 11406 11407#ifdef RTLD_GLOBAL 11408# define LT_DLGLOBAL RTLD_GLOBAL 11409#else 11410# ifdef DL_GLOBAL 11411# define LT_DLGLOBAL DL_GLOBAL 11412# else 11413# define LT_DLGLOBAL 0 11414# endif 11415#endif 11416 11417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11418 find out it does not work in some platform. */ 11419#ifndef LT_DLLAZY_OR_NOW 11420# ifdef RTLD_LAZY 11421# define LT_DLLAZY_OR_NOW RTLD_LAZY 11422# else 11423# ifdef DL_LAZY 11424# define LT_DLLAZY_OR_NOW DL_LAZY 11425# else 11426# ifdef RTLD_NOW 11427# define LT_DLLAZY_OR_NOW RTLD_NOW 11428# else 11429# ifdef DL_NOW 11430# define LT_DLLAZY_OR_NOW DL_NOW 11431# else 11432# define LT_DLLAZY_OR_NOW 0 11433# endif 11434# endif 11435# endif 11436# endif 11437#endif 11438 11439/* When -fvisbility=hidden is used, assume the code has been annotated 11440 correspondingly for the symbols needed. */ 11441#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11442int fnord () __attribute__((visibility("default"))); 11443#endif 11444 11445int fnord () { return 42; } 11446int main () 11447{ 11448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11449 int status = $lt_dlunknown; 11450 11451 if (self) 11452 { 11453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11454 else 11455 { 11456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11457 else puts (dlerror ()); 11458 } 11459 /* dlclose (self); */ 11460 } 11461 else 11462 puts (dlerror ()); 11463 11464 return status; 11465} 11466_LT_EOF 11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11468 (eval $ac_link) 2>&5 11469 ac_status=$? 11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11472 (./conftest; exit; ) >&5 2>/dev/null 11473 lt_status=$? 11474 case x$lt_status in 11475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11478 esac 11479 else : 11480 # compilation failed 11481 lt_cv_dlopen_self_static=no 11482 fi 11483fi 11484rm -fr conftest* 11485 11486 11487fi 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11489$as_echo "$lt_cv_dlopen_self_static" >&6; } 11490 fi 11491 11492 CPPFLAGS="$save_CPPFLAGS" 11493 LDFLAGS="$save_LDFLAGS" 11494 LIBS="$save_LIBS" 11495 ;; 11496 esac 11497 11498 case $lt_cv_dlopen_self in 11499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11500 *) enable_dlopen_self=unknown ;; 11501 esac 11502 11503 case $lt_cv_dlopen_self_static in 11504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11505 *) enable_dlopen_self_static=unknown ;; 11506 esac 11507fi 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525striplib= 11526old_striplib= 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11528$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11529if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11531 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11533$as_echo "yes" >&6; } 11534else 11535# FIXME - insert some real tests, host_os isn't really good enough 11536 case $host_os in 11537 darwin*) 11538 if test -n "$STRIP" ; then 11539 striplib="$STRIP -x" 11540 old_striplib="$STRIP -S" 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11542$as_echo "yes" >&6; } 11543 else 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11545$as_echo "no" >&6; } 11546 fi 11547 ;; 11548 *) 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11550$as_echo "no" >&6; } 11551 ;; 11552 esac 11553fi 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 # Report which library types will actually be built 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11568$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11570$as_echo "$can_build_shared" >&6; } 11571 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11573$as_echo_n "checking whether to build shared libraries... " >&6; } 11574 test "$can_build_shared" = "no" && enable_shared=no 11575 11576 # On AIX, shared libraries and static libraries use the same namespace, and 11577 # are all built from PIC. 11578 case $host_os in 11579 aix3*) 11580 test "$enable_shared" = yes && enable_static=no 11581 if test -n "$RANLIB"; then 11582 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11583 postinstall_cmds='$RANLIB $lib' 11584 fi 11585 ;; 11586 11587 aix[4-9]*) 11588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11589 test "$enable_shared" = yes && enable_static=no 11590 fi 11591 ;; 11592 esac 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11594$as_echo "$enable_shared" >&6; } 11595 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11597$as_echo_n "checking whether to build static libraries... " >&6; } 11598 # Make sure either enable_shared or enable_static is yes. 11599 test "$enable_shared" = yes || enable_static=yes 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11601$as_echo "$enable_static" >&6; } 11602 11603 11604 11605 11606fi 11607ac_ext=c 11608ac_cpp='$CPP $CPPFLAGS' 11609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11611ac_compiler_gnu=$ac_cv_c_compiler_gnu 11612 11613CC="$lt_save_CC" 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 ac_config_commands="$ac_config_commands libtool" 11630 11631 11632 11633 11634# Only expand once: 11635 11636 11637 11638# Require xorg-macros minimum of 1.12 for DocBook external references 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11651$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11652if ${ac_cv_prog_cc_c99+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654else 11655 ac_cv_prog_cc_c99=no 11656ac_save_CC=$CC 11657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659#include <stdarg.h> 11660#include <stdbool.h> 11661#include <stdlib.h> 11662#include <wchar.h> 11663#include <stdio.h> 11664 11665// Check varargs macros. These examples are taken from C99 6.10.3.5. 11666#define debug(...) fprintf (stderr, __VA_ARGS__) 11667#define showlist(...) puts (#__VA_ARGS__) 11668#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11669static void 11670test_varargs_macros (void) 11671{ 11672 int x = 1234; 11673 int y = 5678; 11674 debug ("Flag"); 11675 debug ("X = %d\n", x); 11676 showlist (The first, second, and third items.); 11677 report (x>y, "x is %d but y is %d", x, y); 11678} 11679 11680// Check long long types. 11681#define BIG64 18446744073709551615ull 11682#define BIG32 4294967295ul 11683#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11684#if !BIG_OK 11685 your preprocessor is broken; 11686#endif 11687#if BIG_OK 11688#else 11689 your preprocessor is broken; 11690#endif 11691static long long int bignum = -9223372036854775807LL; 11692static unsigned long long int ubignum = BIG64; 11693 11694struct incomplete_array 11695{ 11696 int datasize; 11697 double data[]; 11698}; 11699 11700struct named_init { 11701 int number; 11702 const wchar_t *name; 11703 double average; 11704}; 11705 11706typedef const char *ccp; 11707 11708static inline int 11709test_restrict (ccp restrict text) 11710{ 11711 // See if C++-style comments work. 11712 // Iterate through items via the restricted pointer. 11713 // Also check for declarations in for loops. 11714 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11715 continue; 11716 return 0; 11717} 11718 11719// Check varargs and va_copy. 11720static void 11721test_varargs (const char *format, ...) 11722{ 11723 va_list args; 11724 va_start (args, format); 11725 va_list args_copy; 11726 va_copy (args_copy, args); 11727 11728 const char *str; 11729 int number; 11730 float fnumber; 11731 11732 while (*format) 11733 { 11734 switch (*format++) 11735 { 11736 case 's': // string 11737 str = va_arg (args_copy, const char *); 11738 break; 11739 case 'd': // int 11740 number = va_arg (args_copy, int); 11741 break; 11742 case 'f': // float 11743 fnumber = va_arg (args_copy, double); 11744 break; 11745 default: 11746 break; 11747 } 11748 } 11749 va_end (args_copy); 11750 va_end (args); 11751} 11752 11753int 11754main () 11755{ 11756 11757 // Check bool. 11758 _Bool success = false; 11759 11760 // Check restrict. 11761 if (test_restrict ("String literal") == 0) 11762 success = true; 11763 char *restrict newvar = "Another string"; 11764 11765 // Check varargs. 11766 test_varargs ("s, d' f .", "string", 65, 34.234); 11767 test_varargs_macros (); 11768 11769 // Check flexible array members. 11770 struct incomplete_array *ia = 11771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11772 ia->datasize = 10; 11773 for (int i = 0; i < ia->datasize; ++i) 11774 ia->data[i] = i * 1.234; 11775 11776 // Check named initializers. 11777 struct named_init ni = { 11778 .number = 34, 11779 .name = L"Test wide string", 11780 .average = 543.34343, 11781 }; 11782 11783 ni.number = 58; 11784 11785 int dynamic_array[ni.number]; 11786 dynamic_array[ni.number - 1] = 543; 11787 11788 // work around unused variable warnings 11789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11790 || dynamic_array[ni.number - 1] != 543); 11791 11792 ; 11793 return 0; 11794} 11795_ACEOF 11796for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11797do 11798 CC="$ac_save_CC $ac_arg" 11799 if ac_fn_c_try_compile "$LINENO"; then : 11800 ac_cv_prog_cc_c99=$ac_arg 11801fi 11802rm -f core conftest.err conftest.$ac_objext 11803 test "x$ac_cv_prog_cc_c99" != "xno" && break 11804done 11805rm -f conftest.$ac_ext 11806CC=$ac_save_CC 11807 11808fi 11809# AC_CACHE_VAL 11810case "x$ac_cv_prog_cc_c99" in 11811 x) 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11813$as_echo "none needed" >&6; } ;; 11814 xno) 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11816$as_echo "unsupported" >&6; } ;; 11817 *) 11818 CC="$CC $ac_cv_prog_cc_c99" 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11820$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11821esac 11822if test "x$ac_cv_prog_cc_c99" != xno; then : 11823 11824fi 11825 11826 11827 11828 11829 11830 11831ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11832if test "x$ac_cv_have_decl___clang__" = xyes; then : 11833 CLANGCC="yes" 11834else 11835 CLANGCC="no" 11836fi 11837 11838ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11839if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11840 INTELCC="yes" 11841else 11842 INTELCC="no" 11843fi 11844 11845ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11846if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11847 SUNCC="yes" 11848else 11849 SUNCC="no" 11850fi 11851 11852 11853 11854 11855if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11856 if test -n "$ac_tool_prefix"; then 11857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11858set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11860$as_echo_n "checking for $ac_word... " >&6; } 11861if ${ac_cv_path_PKG_CONFIG+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 case $PKG_CONFIG in 11865 [\\/]* | ?:[\\/]*) 11866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11867 ;; 11868 *) 11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11870for as_dir in $PATH 11871do 11872 IFS=$as_save_IFS 11873 test -z "$as_dir" && as_dir=. 11874 for ac_exec_ext in '' $ac_executable_extensions; do 11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11878 break 2 11879 fi 11880done 11881 done 11882IFS=$as_save_IFS 11883 11884 ;; 11885esac 11886fi 11887PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11888if test -n "$PKG_CONFIG"; then 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11890$as_echo "$PKG_CONFIG" >&6; } 11891else 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11893$as_echo "no" >&6; } 11894fi 11895 11896 11897fi 11898if test -z "$ac_cv_path_PKG_CONFIG"; then 11899 ac_pt_PKG_CONFIG=$PKG_CONFIG 11900 # Extract the first word of "pkg-config", so it can be a program name with args. 11901set dummy pkg-config; ac_word=$2 11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11903$as_echo_n "checking for $ac_word... " >&6; } 11904if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11905 $as_echo_n "(cached) " >&6 11906else 11907 case $ac_pt_PKG_CONFIG in 11908 [\\/]* | ?:[\\/]*) 11909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11910 ;; 11911 *) 11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11913for as_dir in $PATH 11914do 11915 IFS=$as_save_IFS 11916 test -z "$as_dir" && as_dir=. 11917 for ac_exec_ext in '' $ac_executable_extensions; do 11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11921 break 2 11922 fi 11923done 11924 done 11925IFS=$as_save_IFS 11926 11927 ;; 11928esac 11929fi 11930ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11931if test -n "$ac_pt_PKG_CONFIG"; then 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11933$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11934else 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11936$as_echo "no" >&6; } 11937fi 11938 11939 if test "x$ac_pt_PKG_CONFIG" = x; then 11940 PKG_CONFIG="" 11941 else 11942 case $cross_compiling:$ac_tool_warned in 11943yes:) 11944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11946ac_tool_warned=yes ;; 11947esac 11948 PKG_CONFIG=$ac_pt_PKG_CONFIG 11949 fi 11950else 11951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11952fi 11953 11954fi 11955if test -n "$PKG_CONFIG"; then 11956 _pkg_min_version=0.9.0 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11958$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11961$as_echo "yes" >&6; } 11962 else 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11964$as_echo "no" >&6; } 11965 PKG_CONFIG="" 11966 fi 11967 11968fi 11969 11970 11971 11972 11973 11974# Check whether --enable-selective-werror was given. 11975if test "${enable_selective_werror+set}" = set; then : 11976 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11977else 11978 SELECTIVE_WERROR=yes 11979fi 11980 11981 11982 11983 11984 11985# -v is too short to test reliably with XORG_TESTSET_CFLAG 11986if test "x$SUNCC" = "xyes"; then 11987 BASE_CFLAGS="-v" 11988else 11989 BASE_CFLAGS="" 11990fi 11991 11992# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006xorg_testset_save_CFLAGS="$CFLAGS" 12007 12008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12013 $as_echo_n "(cached) " >&6 12014else 12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12016/* end confdefs.h. */ 12017int i; 12018_ACEOF 12019if ac_fn_c_try_compile "$LINENO"; then : 12020 xorg_cv_cc_flag_unknown_warning_option=yes 12021else 12022 xorg_cv_cc_flag_unknown_warning_option=no 12023fi 12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12025fi 12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12029 CFLAGS="$xorg_testset_save_CFLAGS" 12030fi 12031 12032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12035 fi 12036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041else 12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12043/* end confdefs.h. */ 12044int i; 12045_ACEOF 12046if ac_fn_c_try_compile "$LINENO"; then : 12047 xorg_cv_cc_flag_unused_command_line_argument=yes 12048else 12049 xorg_cv_cc_flag_unused_command_line_argument=no 12050fi 12051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12052fi 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12056 CFLAGS="$xorg_testset_save_CFLAGS" 12057fi 12058 12059found="no" 12060 12061 if test $found = "no" ; then 12062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12064 fi 12065 12066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12068 fi 12069 12070 CFLAGS="$CFLAGS -Wall" 12071 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12073$as_echo_n "checking if $CC supports -Wall... " >&6; } 12074 cacheid=xorg_cv_cc_flag__Wall 12075 if eval \${$cacheid+:} false; then : 12076 $as_echo_n "(cached) " >&6 12077else 12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080int i; 12081int 12082main () 12083{ 12084 12085 ; 12086 return 0; 12087} 12088_ACEOF 12089if ac_fn_c_try_link "$LINENO"; then : 12090 eval $cacheid=yes 12091else 12092 eval $cacheid=no 12093fi 12094rm -f core conftest.err conftest.$ac_objext \ 12095 conftest$ac_exeext conftest.$ac_ext 12096fi 12097 12098 12099 CFLAGS="$xorg_testset_save_CFLAGS" 12100 12101 eval supported=\$$cacheid 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12103$as_echo "$supported" >&6; } 12104 if test "$supported" = "yes" ; then 12105 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12106 found="yes" 12107 fi 12108 fi 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124xorg_testset_save_CFLAGS="$CFLAGS" 12125 12126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12131 $as_echo_n "(cached) " >&6 12132else 12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135int i; 12136_ACEOF 12137if ac_fn_c_try_compile "$LINENO"; then : 12138 xorg_cv_cc_flag_unknown_warning_option=yes 12139else 12140 xorg_cv_cc_flag_unknown_warning_option=no 12141fi 12142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12143fi 12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12147 CFLAGS="$xorg_testset_save_CFLAGS" 12148fi 12149 12150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12153 fi 12154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12161/* end confdefs.h. */ 12162int i; 12163_ACEOF 12164if ac_fn_c_try_compile "$LINENO"; then : 12165 xorg_cv_cc_flag_unused_command_line_argument=yes 12166else 12167 xorg_cv_cc_flag_unused_command_line_argument=no 12168fi 12169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12170fi 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12174 CFLAGS="$xorg_testset_save_CFLAGS" 12175fi 12176 12177found="no" 12178 12179 if test $found = "no" ; then 12180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12182 fi 12183 12184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12186 fi 12187 12188 CFLAGS="$CFLAGS -Wpointer-arith" 12189 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12191$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12192 cacheid=xorg_cv_cc_flag__Wpointer_arith 12193 if eval \${$cacheid+:} false; then : 12194 $as_echo_n "(cached) " >&6 12195else 12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12197/* end confdefs.h. */ 12198int i; 12199int 12200main () 12201{ 12202 12203 ; 12204 return 0; 12205} 12206_ACEOF 12207if ac_fn_c_try_link "$LINENO"; then : 12208 eval $cacheid=yes 12209else 12210 eval $cacheid=no 12211fi 12212rm -f core conftest.err conftest.$ac_objext \ 12213 conftest$ac_exeext conftest.$ac_ext 12214fi 12215 12216 12217 CFLAGS="$xorg_testset_save_CFLAGS" 12218 12219 eval supported=\$$cacheid 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12221$as_echo "$supported" >&6; } 12222 if test "$supported" = "yes" ; then 12223 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12224 found="yes" 12225 fi 12226 fi 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242xorg_testset_save_CFLAGS="$CFLAGS" 12243 12244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253int i; 12254_ACEOF 12255if ac_fn_c_try_compile "$LINENO"; then : 12256 xorg_cv_cc_flag_unknown_warning_option=yes 12257else 12258 xorg_cv_cc_flag_unknown_warning_option=no 12259fi 12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12261fi 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12265 CFLAGS="$xorg_testset_save_CFLAGS" 12266fi 12267 12268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12271 fi 12272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12276 $as_echo_n "(cached) " >&6 12277else 12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12279/* end confdefs.h. */ 12280int i; 12281_ACEOF 12282if ac_fn_c_try_compile "$LINENO"; then : 12283 xorg_cv_cc_flag_unused_command_line_argument=yes 12284else 12285 xorg_cv_cc_flag_unused_command_line_argument=no 12286fi 12287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12288fi 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12292 CFLAGS="$xorg_testset_save_CFLAGS" 12293fi 12294 12295found="no" 12296 12297 if test $found = "no" ; then 12298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12300 fi 12301 12302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12304 fi 12305 12306 CFLAGS="$CFLAGS -Wmissing-declarations" 12307 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12309$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12310 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12311 if eval \${$cacheid+:} false; then : 12312 $as_echo_n "(cached) " >&6 12313else 12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12315/* end confdefs.h. */ 12316int i; 12317int 12318main () 12319{ 12320 12321 ; 12322 return 0; 12323} 12324_ACEOF 12325if ac_fn_c_try_link "$LINENO"; then : 12326 eval $cacheid=yes 12327else 12328 eval $cacheid=no 12329fi 12330rm -f core conftest.err conftest.$ac_objext \ 12331 conftest$ac_exeext conftest.$ac_ext 12332fi 12333 12334 12335 CFLAGS="$xorg_testset_save_CFLAGS" 12336 12337 eval supported=\$$cacheid 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12339$as_echo "$supported" >&6; } 12340 if test "$supported" = "yes" ; then 12341 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12342 found="yes" 12343 fi 12344 fi 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360xorg_testset_save_CFLAGS="$CFLAGS" 12361 12362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368else 12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12370/* end confdefs.h. */ 12371int i; 12372_ACEOF 12373if ac_fn_c_try_compile "$LINENO"; then : 12374 xorg_cv_cc_flag_unknown_warning_option=yes 12375else 12376 xorg_cv_cc_flag_unknown_warning_option=no 12377fi 12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12379fi 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12383 CFLAGS="$xorg_testset_save_CFLAGS" 12384fi 12385 12386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12389 fi 12390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12394 $as_echo_n "(cached) " >&6 12395else 12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12397/* end confdefs.h. */ 12398int i; 12399_ACEOF 12400if ac_fn_c_try_compile "$LINENO"; then : 12401 xorg_cv_cc_flag_unused_command_line_argument=yes 12402else 12403 xorg_cv_cc_flag_unused_command_line_argument=no 12404fi 12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12406fi 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12410 CFLAGS="$xorg_testset_save_CFLAGS" 12411fi 12412 12413found="no" 12414 12415 if test $found = "no" ; then 12416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12418 fi 12419 12420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12422 fi 12423 12424 CFLAGS="$CFLAGS -Wformat=2" 12425 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12427$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12428 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12429 if eval \${$cacheid+:} false; then : 12430 $as_echo_n "(cached) " >&6 12431else 12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433/* end confdefs.h. */ 12434int i; 12435int 12436main () 12437{ 12438 12439 ; 12440 return 0; 12441} 12442_ACEOF 12443if ac_fn_c_try_link "$LINENO"; then : 12444 eval $cacheid=yes 12445else 12446 eval $cacheid=no 12447fi 12448rm -f core conftest.err conftest.$ac_objext \ 12449 conftest$ac_exeext conftest.$ac_ext 12450fi 12451 12452 12453 CFLAGS="$xorg_testset_save_CFLAGS" 12454 12455 eval supported=\$$cacheid 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12457$as_echo "$supported" >&6; } 12458 if test "$supported" = "yes" ; then 12459 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12460 found="yes" 12461 fi 12462 fi 12463 12464 if test $found = "no" ; then 12465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12467 fi 12468 12469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12471 fi 12472 12473 CFLAGS="$CFLAGS -Wformat" 12474 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12476$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12477 cacheid=xorg_cv_cc_flag__Wformat 12478 if eval \${$cacheid+:} false; then : 12479 $as_echo_n "(cached) " >&6 12480else 12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12482/* end confdefs.h. */ 12483int i; 12484int 12485main () 12486{ 12487 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492if ac_fn_c_try_link "$LINENO"; then : 12493 eval $cacheid=yes 12494else 12495 eval $cacheid=no 12496fi 12497rm -f core conftest.err conftest.$ac_objext \ 12498 conftest$ac_exeext conftest.$ac_ext 12499fi 12500 12501 12502 CFLAGS="$xorg_testset_save_CFLAGS" 12503 12504 eval supported=\$$cacheid 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12506$as_echo "$supported" >&6; } 12507 if test "$supported" = "yes" ; then 12508 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12509 found="yes" 12510 fi 12511 fi 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529xorg_testset_save_CFLAGS="$CFLAGS" 12530 12531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12539/* end confdefs.h. */ 12540int i; 12541_ACEOF 12542if ac_fn_c_try_compile "$LINENO"; then : 12543 xorg_cv_cc_flag_unknown_warning_option=yes 12544else 12545 xorg_cv_cc_flag_unknown_warning_option=no 12546fi 12547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12548fi 12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12552 CFLAGS="$xorg_testset_save_CFLAGS" 12553fi 12554 12555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12558 fi 12559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567int i; 12568_ACEOF 12569if ac_fn_c_try_compile "$LINENO"; then : 12570 xorg_cv_cc_flag_unused_command_line_argument=yes 12571else 12572 xorg_cv_cc_flag_unused_command_line_argument=no 12573fi 12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12575fi 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12579 CFLAGS="$xorg_testset_save_CFLAGS" 12580fi 12581 12582found="no" 12583 12584 if test $found = "no" ; then 12585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12587 fi 12588 12589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12591 fi 12592 12593 CFLAGS="$CFLAGS -Wstrict-prototypes" 12594 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12596$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12597 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12598 if eval \${$cacheid+:} false; then : 12599 $as_echo_n "(cached) " >&6 12600else 12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603int i; 12604int 12605main () 12606{ 12607 12608 ; 12609 return 0; 12610} 12611_ACEOF 12612if ac_fn_c_try_link "$LINENO"; then : 12613 eval $cacheid=yes 12614else 12615 eval $cacheid=no 12616fi 12617rm -f core conftest.err conftest.$ac_objext \ 12618 conftest$ac_exeext conftest.$ac_ext 12619fi 12620 12621 12622 CFLAGS="$xorg_testset_save_CFLAGS" 12623 12624 eval supported=\$$cacheid 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12626$as_echo "$supported" >&6; } 12627 if test "$supported" = "yes" ; then 12628 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12629 found="yes" 12630 fi 12631 fi 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647xorg_testset_save_CFLAGS="$CFLAGS" 12648 12649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12657/* end confdefs.h. */ 12658int i; 12659_ACEOF 12660if ac_fn_c_try_compile "$LINENO"; then : 12661 xorg_cv_cc_flag_unknown_warning_option=yes 12662else 12663 xorg_cv_cc_flag_unknown_warning_option=no 12664fi 12665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12666fi 12667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12670 CFLAGS="$xorg_testset_save_CFLAGS" 12671fi 12672 12673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12676 fi 12677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12684/* end confdefs.h. */ 12685int i; 12686_ACEOF 12687if ac_fn_c_try_compile "$LINENO"; then : 12688 xorg_cv_cc_flag_unused_command_line_argument=yes 12689else 12690 xorg_cv_cc_flag_unused_command_line_argument=no 12691fi 12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12693fi 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12697 CFLAGS="$xorg_testset_save_CFLAGS" 12698fi 12699 12700found="no" 12701 12702 if test $found = "no" ; then 12703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12705 fi 12706 12707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12709 fi 12710 12711 CFLAGS="$CFLAGS -Wmissing-prototypes" 12712 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12714$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12715 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12716 if eval \${$cacheid+:} false; then : 12717 $as_echo_n "(cached) " >&6 12718else 12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12720/* end confdefs.h. */ 12721int i; 12722int 12723main () 12724{ 12725 12726 ; 12727 return 0; 12728} 12729_ACEOF 12730if ac_fn_c_try_link "$LINENO"; then : 12731 eval $cacheid=yes 12732else 12733 eval $cacheid=no 12734fi 12735rm -f core conftest.err conftest.$ac_objext \ 12736 conftest$ac_exeext conftest.$ac_ext 12737fi 12738 12739 12740 CFLAGS="$xorg_testset_save_CFLAGS" 12741 12742 eval supported=\$$cacheid 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12744$as_echo "$supported" >&6; } 12745 if test "$supported" = "yes" ; then 12746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12747 found="yes" 12748 fi 12749 fi 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765xorg_testset_save_CFLAGS="$CFLAGS" 12766 12767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12772 $as_echo_n "(cached) " >&6 12773else 12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12775/* end confdefs.h. */ 12776int i; 12777_ACEOF 12778if ac_fn_c_try_compile "$LINENO"; then : 12779 xorg_cv_cc_flag_unknown_warning_option=yes 12780else 12781 xorg_cv_cc_flag_unknown_warning_option=no 12782fi 12783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12784fi 12785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12788 CFLAGS="$xorg_testset_save_CFLAGS" 12789fi 12790 12791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12794 fi 12795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12799 $as_echo_n "(cached) " >&6 12800else 12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12802/* end confdefs.h. */ 12803int i; 12804_ACEOF 12805if ac_fn_c_try_compile "$LINENO"; then : 12806 xorg_cv_cc_flag_unused_command_line_argument=yes 12807else 12808 xorg_cv_cc_flag_unused_command_line_argument=no 12809fi 12810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12811fi 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12815 CFLAGS="$xorg_testset_save_CFLAGS" 12816fi 12817 12818found="no" 12819 12820 if test $found = "no" ; then 12821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12823 fi 12824 12825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12827 fi 12828 12829 CFLAGS="$CFLAGS -Wnested-externs" 12830 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12832$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12833 cacheid=xorg_cv_cc_flag__Wnested_externs 12834 if eval \${$cacheid+:} false; then : 12835 $as_echo_n "(cached) " >&6 12836else 12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12838/* end confdefs.h. */ 12839int i; 12840int 12841main () 12842{ 12843 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848if ac_fn_c_try_link "$LINENO"; then : 12849 eval $cacheid=yes 12850else 12851 eval $cacheid=no 12852fi 12853rm -f core conftest.err conftest.$ac_objext \ 12854 conftest$ac_exeext conftest.$ac_ext 12855fi 12856 12857 12858 CFLAGS="$xorg_testset_save_CFLAGS" 12859 12860 eval supported=\$$cacheid 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12862$as_echo "$supported" >&6; } 12863 if test "$supported" = "yes" ; then 12864 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12865 found="yes" 12866 fi 12867 fi 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883xorg_testset_save_CFLAGS="$CFLAGS" 12884 12885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12890 $as_echo_n "(cached) " >&6 12891else 12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12893/* end confdefs.h. */ 12894int i; 12895_ACEOF 12896if ac_fn_c_try_compile "$LINENO"; then : 12897 xorg_cv_cc_flag_unknown_warning_option=yes 12898else 12899 xorg_cv_cc_flag_unknown_warning_option=no 12900fi 12901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12902fi 12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12906 CFLAGS="$xorg_testset_save_CFLAGS" 12907fi 12908 12909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12912 fi 12913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12917 $as_echo_n "(cached) " >&6 12918else 12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921int i; 12922_ACEOF 12923if ac_fn_c_try_compile "$LINENO"; then : 12924 xorg_cv_cc_flag_unused_command_line_argument=yes 12925else 12926 xorg_cv_cc_flag_unused_command_line_argument=no 12927fi 12928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12929fi 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12933 CFLAGS="$xorg_testset_save_CFLAGS" 12934fi 12935 12936found="no" 12937 12938 if test $found = "no" ; then 12939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12941 fi 12942 12943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12945 fi 12946 12947 CFLAGS="$CFLAGS -Wbad-function-cast" 12948 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12950$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12951 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12952 if eval \${$cacheid+:} false; then : 12953 $as_echo_n "(cached) " >&6 12954else 12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957int i; 12958int 12959main () 12960{ 12961 12962 ; 12963 return 0; 12964} 12965_ACEOF 12966if ac_fn_c_try_link "$LINENO"; then : 12967 eval $cacheid=yes 12968else 12969 eval $cacheid=no 12970fi 12971rm -f core conftest.err conftest.$ac_objext \ 12972 conftest$ac_exeext conftest.$ac_ext 12973fi 12974 12975 12976 CFLAGS="$xorg_testset_save_CFLAGS" 12977 12978 eval supported=\$$cacheid 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12980$as_echo "$supported" >&6; } 12981 if test "$supported" = "yes" ; then 12982 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12983 found="yes" 12984 fi 12985 fi 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001xorg_testset_save_CFLAGS="$CFLAGS" 13002 13003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012int i; 13013_ACEOF 13014if ac_fn_c_try_compile "$LINENO"; then : 13015 xorg_cv_cc_flag_unknown_warning_option=yes 13016else 13017 xorg_cv_cc_flag_unknown_warning_option=no 13018fi 13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13020fi 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13024 CFLAGS="$xorg_testset_save_CFLAGS" 13025fi 13026 13027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13030 fi 13031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13035 $as_echo_n "(cached) " >&6 13036else 13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13038/* end confdefs.h. */ 13039int i; 13040_ACEOF 13041if ac_fn_c_try_compile "$LINENO"; then : 13042 xorg_cv_cc_flag_unused_command_line_argument=yes 13043else 13044 xorg_cv_cc_flag_unused_command_line_argument=no 13045fi 13046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13047fi 13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13051 CFLAGS="$xorg_testset_save_CFLAGS" 13052fi 13053 13054found="no" 13055 13056 if test $found = "no" ; then 13057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13059 fi 13060 13061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13063 fi 13064 13065 CFLAGS="$CFLAGS -Wold-style-definition" 13066 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13068$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13069 cacheid=xorg_cv_cc_flag__Wold_style_definition 13070 if eval \${$cacheid+:} false; then : 13071 $as_echo_n "(cached) " >&6 13072else 13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13074/* end confdefs.h. */ 13075int i; 13076int 13077main () 13078{ 13079 13080 ; 13081 return 0; 13082} 13083_ACEOF 13084if ac_fn_c_try_link "$LINENO"; then : 13085 eval $cacheid=yes 13086else 13087 eval $cacheid=no 13088fi 13089rm -f core conftest.err conftest.$ac_objext \ 13090 conftest$ac_exeext conftest.$ac_ext 13091fi 13092 13093 13094 CFLAGS="$xorg_testset_save_CFLAGS" 13095 13096 eval supported=\$$cacheid 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13098$as_echo "$supported" >&6; } 13099 if test "$supported" = "yes" ; then 13100 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13101 found="yes" 13102 fi 13103 fi 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119xorg_testset_save_CFLAGS="$CFLAGS" 13120 13121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13126 $as_echo_n "(cached) " >&6 13127else 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130int i; 13131_ACEOF 13132if ac_fn_c_try_compile "$LINENO"; then : 13133 xorg_cv_cc_flag_unknown_warning_option=yes 13134else 13135 xorg_cv_cc_flag_unknown_warning_option=no 13136fi 13137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13138fi 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13142 CFLAGS="$xorg_testset_save_CFLAGS" 13143fi 13144 13145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13148 fi 13149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13153 $as_echo_n "(cached) " >&6 13154else 13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13156/* end confdefs.h. */ 13157int i; 13158_ACEOF 13159if ac_fn_c_try_compile "$LINENO"; then : 13160 xorg_cv_cc_flag_unused_command_line_argument=yes 13161else 13162 xorg_cv_cc_flag_unused_command_line_argument=no 13163fi 13164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13165fi 13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13169 CFLAGS="$xorg_testset_save_CFLAGS" 13170fi 13171 13172found="no" 13173 13174 if test $found = "no" ; then 13175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13177 fi 13178 13179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13181 fi 13182 13183 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13184 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13186$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13187 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13188 if eval \${$cacheid+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190else 13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13192/* end confdefs.h. */ 13193int i; 13194int 13195main () 13196{ 13197 13198 ; 13199 return 0; 13200} 13201_ACEOF 13202if ac_fn_c_try_link "$LINENO"; then : 13203 eval $cacheid=yes 13204else 13205 eval $cacheid=no 13206fi 13207rm -f core conftest.err conftest.$ac_objext \ 13208 conftest$ac_exeext conftest.$ac_ext 13209fi 13210 13211 13212 CFLAGS="$xorg_testset_save_CFLAGS" 13213 13214 eval supported=\$$cacheid 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13216$as_echo "$supported" >&6; } 13217 if test "$supported" = "yes" ; then 13218 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13219 found="yes" 13220 fi 13221 fi 13222 13223 13224 13225 13226 13227# This chunk adds additional warnings that could catch undesired effects. 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241xorg_testset_save_CFLAGS="$CFLAGS" 13242 13243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13248 $as_echo_n "(cached) " >&6 13249else 13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252int i; 13253_ACEOF 13254if ac_fn_c_try_compile "$LINENO"; then : 13255 xorg_cv_cc_flag_unknown_warning_option=yes 13256else 13257 xorg_cv_cc_flag_unknown_warning_option=no 13258fi 13259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13260fi 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13264 CFLAGS="$xorg_testset_save_CFLAGS" 13265fi 13266 13267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13270 fi 13271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13275 $as_echo_n "(cached) " >&6 13276else 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279int i; 13280_ACEOF 13281if ac_fn_c_try_compile "$LINENO"; then : 13282 xorg_cv_cc_flag_unused_command_line_argument=yes 13283else 13284 xorg_cv_cc_flag_unused_command_line_argument=no 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13287fi 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13291 CFLAGS="$xorg_testset_save_CFLAGS" 13292fi 13293 13294found="no" 13295 13296 if test $found = "no" ; then 13297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13299 fi 13300 13301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13303 fi 13304 13305 CFLAGS="$CFLAGS -Wunused" 13306 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13308$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13309 cacheid=xorg_cv_cc_flag__Wunused 13310 if eval \${$cacheid+:} false; then : 13311 $as_echo_n "(cached) " >&6 13312else 13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314/* end confdefs.h. */ 13315int i; 13316int 13317main () 13318{ 13319 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324if ac_fn_c_try_link "$LINENO"; then : 13325 eval $cacheid=yes 13326else 13327 eval $cacheid=no 13328fi 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext conftest.$ac_ext 13331fi 13332 13333 13334 CFLAGS="$xorg_testset_save_CFLAGS" 13335 13336 eval supported=\$$cacheid 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13338$as_echo "$supported" >&6; } 13339 if test "$supported" = "yes" ; then 13340 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13341 found="yes" 13342 fi 13343 fi 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359xorg_testset_save_CFLAGS="$CFLAGS" 13360 13361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13366 $as_echo_n "(cached) " >&6 13367else 13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13369/* end confdefs.h. */ 13370int i; 13371_ACEOF 13372if ac_fn_c_try_compile "$LINENO"; then : 13373 xorg_cv_cc_flag_unknown_warning_option=yes 13374else 13375 xorg_cv_cc_flag_unknown_warning_option=no 13376fi 13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13382 CFLAGS="$xorg_testset_save_CFLAGS" 13383fi 13384 13385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13388 fi 13389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13393 $as_echo_n "(cached) " >&6 13394else 13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13396/* end confdefs.h. */ 13397int i; 13398_ACEOF 13399if ac_fn_c_try_compile "$LINENO"; then : 13400 xorg_cv_cc_flag_unused_command_line_argument=yes 13401else 13402 xorg_cv_cc_flag_unused_command_line_argument=no 13403fi 13404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13405fi 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13409 CFLAGS="$xorg_testset_save_CFLAGS" 13410fi 13411 13412found="no" 13413 13414 if test $found = "no" ; then 13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13417 fi 13418 13419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13421 fi 13422 13423 CFLAGS="$CFLAGS -Wuninitialized" 13424 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13426$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13427 cacheid=xorg_cv_cc_flag__Wuninitialized 13428 if eval \${$cacheid+:} false; then : 13429 $as_echo_n "(cached) " >&6 13430else 13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432/* end confdefs.h. */ 13433int i; 13434int 13435main () 13436{ 13437 13438 ; 13439 return 0; 13440} 13441_ACEOF 13442if ac_fn_c_try_link "$LINENO"; then : 13443 eval $cacheid=yes 13444else 13445 eval $cacheid=no 13446fi 13447rm -f core conftest.err conftest.$ac_objext \ 13448 conftest$ac_exeext conftest.$ac_ext 13449fi 13450 13451 13452 CFLAGS="$xorg_testset_save_CFLAGS" 13453 13454 eval supported=\$$cacheid 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13456$as_echo "$supported" >&6; } 13457 if test "$supported" = "yes" ; then 13458 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13459 found="yes" 13460 fi 13461 fi 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477xorg_testset_save_CFLAGS="$CFLAGS" 13478 13479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485else 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487/* end confdefs.h. */ 13488int i; 13489_ACEOF 13490if ac_fn_c_try_compile "$LINENO"; then : 13491 xorg_cv_cc_flag_unknown_warning_option=yes 13492else 13493 xorg_cv_cc_flag_unknown_warning_option=no 13494fi 13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13496fi 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13500 CFLAGS="$xorg_testset_save_CFLAGS" 13501fi 13502 13503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13506 fi 13507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515int i; 13516_ACEOF 13517if ac_fn_c_try_compile "$LINENO"; then : 13518 xorg_cv_cc_flag_unused_command_line_argument=yes 13519else 13520 xorg_cv_cc_flag_unused_command_line_argument=no 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13523fi 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13527 CFLAGS="$xorg_testset_save_CFLAGS" 13528fi 13529 13530found="no" 13531 13532 if test $found = "no" ; then 13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13535 fi 13536 13537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13539 fi 13540 13541 CFLAGS="$CFLAGS -Wshadow" 13542 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13544$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13545 cacheid=xorg_cv_cc_flag__Wshadow 13546 if eval \${$cacheid+:} false; then : 13547 $as_echo_n "(cached) " >&6 13548else 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13550/* end confdefs.h. */ 13551int i; 13552int 13553main () 13554{ 13555 13556 ; 13557 return 0; 13558} 13559_ACEOF 13560if ac_fn_c_try_link "$LINENO"; then : 13561 eval $cacheid=yes 13562else 13563 eval $cacheid=no 13564fi 13565rm -f core conftest.err conftest.$ac_objext \ 13566 conftest$ac_exeext conftest.$ac_ext 13567fi 13568 13569 13570 CFLAGS="$xorg_testset_save_CFLAGS" 13571 13572 eval supported=\$$cacheid 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13574$as_echo "$supported" >&6; } 13575 if test "$supported" = "yes" ; then 13576 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13577 found="yes" 13578 fi 13579 fi 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595xorg_testset_save_CFLAGS="$CFLAGS" 13596 13597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13602 $as_echo_n "(cached) " >&6 13603else 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606int i; 13607_ACEOF 13608if ac_fn_c_try_compile "$LINENO"; then : 13609 xorg_cv_cc_flag_unknown_warning_option=yes 13610else 13611 xorg_cv_cc_flag_unknown_warning_option=no 13612fi 13613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13614fi 13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13618 CFLAGS="$xorg_testset_save_CFLAGS" 13619fi 13620 13621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13624 fi 13625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13629 $as_echo_n "(cached) " >&6 13630else 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632/* end confdefs.h. */ 13633int i; 13634_ACEOF 13635if ac_fn_c_try_compile "$LINENO"; then : 13636 xorg_cv_cc_flag_unused_command_line_argument=yes 13637else 13638 xorg_cv_cc_flag_unused_command_line_argument=no 13639fi 13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13641fi 13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13645 CFLAGS="$xorg_testset_save_CFLAGS" 13646fi 13647 13648found="no" 13649 13650 if test $found = "no" ; then 13651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13653 fi 13654 13655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13657 fi 13658 13659 CFLAGS="$CFLAGS -Wcast-qual" 13660 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13662$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13663 cacheid=xorg_cv_cc_flag__Wcast_qual 13664 if eval \${$cacheid+:} false; then : 13665 $as_echo_n "(cached) " >&6 13666else 13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13668/* end confdefs.h. */ 13669int i; 13670int 13671main () 13672{ 13673 13674 ; 13675 return 0; 13676} 13677_ACEOF 13678if ac_fn_c_try_link "$LINENO"; then : 13679 eval $cacheid=yes 13680else 13681 eval $cacheid=no 13682fi 13683rm -f core conftest.err conftest.$ac_objext \ 13684 conftest$ac_exeext conftest.$ac_ext 13685fi 13686 13687 13688 CFLAGS="$xorg_testset_save_CFLAGS" 13689 13690 eval supported=\$$cacheid 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13692$as_echo "$supported" >&6; } 13693 if test "$supported" = "yes" ; then 13694 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13695 found="yes" 13696 fi 13697 fi 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713xorg_testset_save_CFLAGS="$CFLAGS" 13714 13715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13720 $as_echo_n "(cached) " >&6 13721else 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724int i; 13725_ACEOF 13726if ac_fn_c_try_compile "$LINENO"; then : 13727 xorg_cv_cc_flag_unknown_warning_option=yes 13728else 13729 xorg_cv_cc_flag_unknown_warning_option=no 13730fi 13731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13732fi 13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13736 CFLAGS="$xorg_testset_save_CFLAGS" 13737fi 13738 13739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13742 fi 13743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13747 $as_echo_n "(cached) " >&6 13748else 13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13750/* end confdefs.h. */ 13751int i; 13752_ACEOF 13753if ac_fn_c_try_compile "$LINENO"; then : 13754 xorg_cv_cc_flag_unused_command_line_argument=yes 13755else 13756 xorg_cv_cc_flag_unused_command_line_argument=no 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759fi 13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13763 CFLAGS="$xorg_testset_save_CFLAGS" 13764fi 13765 13766found="no" 13767 13768 if test $found = "no" ; then 13769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13771 fi 13772 13773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13775 fi 13776 13777 CFLAGS="$CFLAGS -Wmissing-noreturn" 13778 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13780$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13781 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13782 if eval \${$cacheid+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13786/* end confdefs.h. */ 13787int i; 13788int 13789main () 13790{ 13791 13792 ; 13793 return 0; 13794} 13795_ACEOF 13796if ac_fn_c_try_link "$LINENO"; then : 13797 eval $cacheid=yes 13798else 13799 eval $cacheid=no 13800fi 13801rm -f core conftest.err conftest.$ac_objext \ 13802 conftest$ac_exeext conftest.$ac_ext 13803fi 13804 13805 13806 CFLAGS="$xorg_testset_save_CFLAGS" 13807 13808 eval supported=\$$cacheid 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13810$as_echo "$supported" >&6; } 13811 if test "$supported" = "yes" ; then 13812 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13813 found="yes" 13814 fi 13815 fi 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831xorg_testset_save_CFLAGS="$CFLAGS" 13832 13833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13838 $as_echo_n "(cached) " >&6 13839else 13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13841/* end confdefs.h. */ 13842int i; 13843_ACEOF 13844if ac_fn_c_try_compile "$LINENO"; then : 13845 xorg_cv_cc_flag_unknown_warning_option=yes 13846else 13847 xorg_cv_cc_flag_unknown_warning_option=no 13848fi 13849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13850fi 13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13854 CFLAGS="$xorg_testset_save_CFLAGS" 13855fi 13856 13857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13860 fi 13861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13865 $as_echo_n "(cached) " >&6 13866else 13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13868/* end confdefs.h. */ 13869int i; 13870_ACEOF 13871if ac_fn_c_try_compile "$LINENO"; then : 13872 xorg_cv_cc_flag_unused_command_line_argument=yes 13873else 13874 xorg_cv_cc_flag_unused_command_line_argument=no 13875fi 13876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13877fi 13878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13881 CFLAGS="$xorg_testset_save_CFLAGS" 13882fi 13883 13884found="no" 13885 13886 if test $found = "no" ; then 13887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13889 fi 13890 13891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13893 fi 13894 13895 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13896 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13898$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13899 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13900 if eval \${$cacheid+:} false; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904/* end confdefs.h. */ 13905int i; 13906int 13907main () 13908{ 13909 13910 ; 13911 return 0; 13912} 13913_ACEOF 13914if ac_fn_c_try_link "$LINENO"; then : 13915 eval $cacheid=yes 13916else 13917 eval $cacheid=no 13918fi 13919rm -f core conftest.err conftest.$ac_objext \ 13920 conftest$ac_exeext conftest.$ac_ext 13921fi 13922 13923 13924 CFLAGS="$xorg_testset_save_CFLAGS" 13925 13926 eval supported=\$$cacheid 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13928$as_echo "$supported" >&6; } 13929 if test "$supported" = "yes" ; then 13930 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13931 found="yes" 13932 fi 13933 fi 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949xorg_testset_save_CFLAGS="$CFLAGS" 13950 13951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13956 $as_echo_n "(cached) " >&6 13957else 13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13959/* end confdefs.h. */ 13960int i; 13961_ACEOF 13962if ac_fn_c_try_compile "$LINENO"; then : 13963 xorg_cv_cc_flag_unknown_warning_option=yes 13964else 13965 xorg_cv_cc_flag_unknown_warning_option=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13968fi 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13972 CFLAGS="$xorg_testset_save_CFLAGS" 13973fi 13974 13975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13978 fi 13979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13983 $as_echo_n "(cached) " >&6 13984else 13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13986/* end confdefs.h. */ 13987int i; 13988_ACEOF 13989if ac_fn_c_try_compile "$LINENO"; then : 13990 xorg_cv_cc_flag_unused_command_line_argument=yes 13991else 13992 xorg_cv_cc_flag_unused_command_line_argument=no 13993fi 13994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13995fi 13996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13999 CFLAGS="$xorg_testset_save_CFLAGS" 14000fi 14001 14002found="no" 14003 14004 if test $found = "no" ; then 14005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14007 fi 14008 14009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14011 fi 14012 14013 CFLAGS="$CFLAGS -Wredundant-decls" 14014 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14016$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14017 cacheid=xorg_cv_cc_flag__Wredundant_decls 14018 if eval \${$cacheid+:} false; then : 14019 $as_echo_n "(cached) " >&6 14020else 14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14022/* end confdefs.h. */ 14023int i; 14024int 14025main () 14026{ 14027 14028 ; 14029 return 0; 14030} 14031_ACEOF 14032if ac_fn_c_try_link "$LINENO"; then : 14033 eval $cacheid=yes 14034else 14035 eval $cacheid=no 14036fi 14037rm -f core conftest.err conftest.$ac_objext \ 14038 conftest$ac_exeext conftest.$ac_ext 14039fi 14040 14041 14042 CFLAGS="$xorg_testset_save_CFLAGS" 14043 14044 eval supported=\$$cacheid 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14046$as_echo "$supported" >&6; } 14047 if test "$supported" = "yes" ; then 14048 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14049 found="yes" 14050 fi 14051 fi 14052 14053 14054 14055# These are currently disabled because they are noisy. They will be enabled 14056# in the future once the codebase is sufficiently modernized to silence 14057# them. For now, I don't want them to drown out the other warnings. 14058# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14059# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14060# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14061 14062# Turn some warnings into errors, so we don't accidently get successful builds 14063# when there are problems that should be fixed. 14064 14065if test "x$SELECTIVE_WERROR" = "xyes" ; then 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079xorg_testset_save_CFLAGS="$CFLAGS" 14080 14081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14086 $as_echo_n "(cached) " >&6 14087else 14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14089/* end confdefs.h. */ 14090int i; 14091_ACEOF 14092if ac_fn_c_try_compile "$LINENO"; then : 14093 xorg_cv_cc_flag_unknown_warning_option=yes 14094else 14095 xorg_cv_cc_flag_unknown_warning_option=no 14096fi 14097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14098fi 14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14102 CFLAGS="$xorg_testset_save_CFLAGS" 14103fi 14104 14105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14108 fi 14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14113 $as_echo_n "(cached) " >&6 14114else 14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14116/* end confdefs.h. */ 14117int i; 14118_ACEOF 14119if ac_fn_c_try_compile "$LINENO"; then : 14120 xorg_cv_cc_flag_unused_command_line_argument=yes 14121else 14122 xorg_cv_cc_flag_unused_command_line_argument=no 14123fi 14124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14125fi 14126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14129 CFLAGS="$xorg_testset_save_CFLAGS" 14130fi 14131 14132found="no" 14133 14134 if test $found = "no" ; then 14135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14137 fi 14138 14139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14141 fi 14142 14143 CFLAGS="$CFLAGS -Werror=implicit" 14144 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14146$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14147 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14148 if eval \${$cacheid+:} false; then : 14149 $as_echo_n "(cached) " >&6 14150else 14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14152/* end confdefs.h. */ 14153int i; 14154int 14155main () 14156{ 14157 14158 ; 14159 return 0; 14160} 14161_ACEOF 14162if ac_fn_c_try_link "$LINENO"; then : 14163 eval $cacheid=yes 14164else 14165 eval $cacheid=no 14166fi 14167rm -f core conftest.err conftest.$ac_objext \ 14168 conftest$ac_exeext conftest.$ac_ext 14169fi 14170 14171 14172 CFLAGS="$xorg_testset_save_CFLAGS" 14173 14174 eval supported=\$$cacheid 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14176$as_echo "$supported" >&6; } 14177 if test "$supported" = "yes" ; then 14178 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14179 found="yes" 14180 fi 14181 fi 14182 14183 if test $found = "no" ; then 14184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14186 fi 14187 14188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14190 fi 14191 14192 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14193 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14195$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14196 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14197 if eval \${$cacheid+:} false; then : 14198 $as_echo_n "(cached) " >&6 14199else 14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14201/* end confdefs.h. */ 14202int i; 14203int 14204main () 14205{ 14206 14207 ; 14208 return 0; 14209} 14210_ACEOF 14211if ac_fn_c_try_link "$LINENO"; then : 14212 eval $cacheid=yes 14213else 14214 eval $cacheid=no 14215fi 14216rm -f core conftest.err conftest.$ac_objext \ 14217 conftest$ac_exeext conftest.$ac_ext 14218fi 14219 14220 14221 CFLAGS="$xorg_testset_save_CFLAGS" 14222 14223 eval supported=\$$cacheid 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14225$as_echo "$supported" >&6; } 14226 if test "$supported" = "yes" ; then 14227 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14228 found="yes" 14229 fi 14230 fi 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246xorg_testset_save_CFLAGS="$CFLAGS" 14247 14248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14253 $as_echo_n "(cached) " >&6 14254else 14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14256/* end confdefs.h. */ 14257int i; 14258_ACEOF 14259if ac_fn_c_try_compile "$LINENO"; then : 14260 xorg_cv_cc_flag_unknown_warning_option=yes 14261else 14262 xorg_cv_cc_flag_unknown_warning_option=no 14263fi 14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14269 CFLAGS="$xorg_testset_save_CFLAGS" 14270fi 14271 14272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14275 fi 14276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281else 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14283/* end confdefs.h. */ 14284int i; 14285_ACEOF 14286if ac_fn_c_try_compile "$LINENO"; then : 14287 xorg_cv_cc_flag_unused_command_line_argument=yes 14288else 14289 xorg_cv_cc_flag_unused_command_line_argument=no 14290fi 14291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14292fi 14293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14296 CFLAGS="$xorg_testset_save_CFLAGS" 14297fi 14298 14299found="no" 14300 14301 if test $found = "no" ; then 14302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14304 fi 14305 14306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14308 fi 14309 14310 CFLAGS="$CFLAGS -Werror=nonnull" 14311 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14313$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14314 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14315 if eval \${$cacheid+:} false; then : 14316 $as_echo_n "(cached) " >&6 14317else 14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14319/* end confdefs.h. */ 14320int i; 14321int 14322main () 14323{ 14324 14325 ; 14326 return 0; 14327} 14328_ACEOF 14329if ac_fn_c_try_link "$LINENO"; then : 14330 eval $cacheid=yes 14331else 14332 eval $cacheid=no 14333fi 14334rm -f core conftest.err conftest.$ac_objext \ 14335 conftest$ac_exeext conftest.$ac_ext 14336fi 14337 14338 14339 CFLAGS="$xorg_testset_save_CFLAGS" 14340 14341 eval supported=\$$cacheid 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14343$as_echo "$supported" >&6; } 14344 if test "$supported" = "yes" ; then 14345 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14346 found="yes" 14347 fi 14348 fi 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364xorg_testset_save_CFLAGS="$CFLAGS" 14365 14366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372else 14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14374/* end confdefs.h. */ 14375int i; 14376_ACEOF 14377if ac_fn_c_try_compile "$LINENO"; then : 14378 xorg_cv_cc_flag_unknown_warning_option=yes 14379else 14380 xorg_cv_cc_flag_unknown_warning_option=no 14381fi 14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14383fi 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14387 CFLAGS="$xorg_testset_save_CFLAGS" 14388fi 14389 14390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14393 fi 14394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14398 $as_echo_n "(cached) " >&6 14399else 14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14401/* end confdefs.h. */ 14402int i; 14403_ACEOF 14404if ac_fn_c_try_compile "$LINENO"; then : 14405 xorg_cv_cc_flag_unused_command_line_argument=yes 14406else 14407 xorg_cv_cc_flag_unused_command_line_argument=no 14408fi 14409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14410fi 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14414 CFLAGS="$xorg_testset_save_CFLAGS" 14415fi 14416 14417found="no" 14418 14419 if test $found = "no" ; then 14420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14422 fi 14423 14424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14426 fi 14427 14428 CFLAGS="$CFLAGS -Werror=init-self" 14429 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14431$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14432 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14433 if eval \${$cacheid+:} false; then : 14434 $as_echo_n "(cached) " >&6 14435else 14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14437/* end confdefs.h. */ 14438int i; 14439int 14440main () 14441{ 14442 14443 ; 14444 return 0; 14445} 14446_ACEOF 14447if ac_fn_c_try_link "$LINENO"; then : 14448 eval $cacheid=yes 14449else 14450 eval $cacheid=no 14451fi 14452rm -f core conftest.err conftest.$ac_objext \ 14453 conftest$ac_exeext conftest.$ac_ext 14454fi 14455 14456 14457 CFLAGS="$xorg_testset_save_CFLAGS" 14458 14459 eval supported=\$$cacheid 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14461$as_echo "$supported" >&6; } 14462 if test "$supported" = "yes" ; then 14463 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14464 found="yes" 14465 fi 14466 fi 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482xorg_testset_save_CFLAGS="$CFLAGS" 14483 14484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14487$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14488if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14489 $as_echo_n "(cached) " >&6 14490else 14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14492/* end confdefs.h. */ 14493int i; 14494_ACEOF 14495if ac_fn_c_try_compile "$LINENO"; then : 14496 xorg_cv_cc_flag_unknown_warning_option=yes 14497else 14498 xorg_cv_cc_flag_unknown_warning_option=no 14499fi 14500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14501fi 14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14503$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14505 CFLAGS="$xorg_testset_save_CFLAGS" 14506fi 14507 14508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14511 fi 14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14514$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14515if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14516 $as_echo_n "(cached) " >&6 14517else 14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14519/* end confdefs.h. */ 14520int i; 14521_ACEOF 14522if ac_fn_c_try_compile "$LINENO"; then : 14523 xorg_cv_cc_flag_unused_command_line_argument=yes 14524else 14525 xorg_cv_cc_flag_unused_command_line_argument=no 14526fi 14527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14528fi 14529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14530$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14532 CFLAGS="$xorg_testset_save_CFLAGS" 14533fi 14534 14535found="no" 14536 14537 if test $found = "no" ; then 14538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14540 fi 14541 14542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14544 fi 14545 14546 CFLAGS="$CFLAGS -Werror=main" 14547 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14549$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14550 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14551 if eval \${$cacheid+:} false; then : 14552 $as_echo_n "(cached) " >&6 14553else 14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14555/* end confdefs.h. */ 14556int i; 14557int 14558main () 14559{ 14560 14561 ; 14562 return 0; 14563} 14564_ACEOF 14565if ac_fn_c_try_link "$LINENO"; then : 14566 eval $cacheid=yes 14567else 14568 eval $cacheid=no 14569fi 14570rm -f core conftest.err conftest.$ac_objext \ 14571 conftest$ac_exeext conftest.$ac_ext 14572fi 14573 14574 14575 CFLAGS="$xorg_testset_save_CFLAGS" 14576 14577 eval supported=\$$cacheid 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14579$as_echo "$supported" >&6; } 14580 if test "$supported" = "yes" ; then 14581 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14582 found="yes" 14583 fi 14584 fi 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600xorg_testset_save_CFLAGS="$CFLAGS" 14601 14602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14607 $as_echo_n "(cached) " >&6 14608else 14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14610/* end confdefs.h. */ 14611int i; 14612_ACEOF 14613if ac_fn_c_try_compile "$LINENO"; then : 14614 xorg_cv_cc_flag_unknown_warning_option=yes 14615else 14616 xorg_cv_cc_flag_unknown_warning_option=no 14617fi 14618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14619fi 14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14623 CFLAGS="$xorg_testset_save_CFLAGS" 14624fi 14625 14626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14629 fi 14630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14634 $as_echo_n "(cached) " >&6 14635else 14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14637/* end confdefs.h. */ 14638int i; 14639_ACEOF 14640if ac_fn_c_try_compile "$LINENO"; then : 14641 xorg_cv_cc_flag_unused_command_line_argument=yes 14642else 14643 xorg_cv_cc_flag_unused_command_line_argument=no 14644fi 14645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14646fi 14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14650 CFLAGS="$xorg_testset_save_CFLAGS" 14651fi 14652 14653found="no" 14654 14655 if test $found = "no" ; then 14656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14658 fi 14659 14660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14662 fi 14663 14664 CFLAGS="$CFLAGS -Werror=missing-braces" 14665 14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14667$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14668 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14669 if eval \${$cacheid+:} false; then : 14670 $as_echo_n "(cached) " >&6 14671else 14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14673/* end confdefs.h. */ 14674int i; 14675int 14676main () 14677{ 14678 14679 ; 14680 return 0; 14681} 14682_ACEOF 14683if ac_fn_c_try_link "$LINENO"; then : 14684 eval $cacheid=yes 14685else 14686 eval $cacheid=no 14687fi 14688rm -f core conftest.err conftest.$ac_objext \ 14689 conftest$ac_exeext conftest.$ac_ext 14690fi 14691 14692 14693 CFLAGS="$xorg_testset_save_CFLAGS" 14694 14695 eval supported=\$$cacheid 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14697$as_echo "$supported" >&6; } 14698 if test "$supported" = "yes" ; then 14699 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14700 found="yes" 14701 fi 14702 fi 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718xorg_testset_save_CFLAGS="$CFLAGS" 14719 14720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14725 $as_echo_n "(cached) " >&6 14726else 14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14728/* end confdefs.h. */ 14729int i; 14730_ACEOF 14731if ac_fn_c_try_compile "$LINENO"; then : 14732 xorg_cv_cc_flag_unknown_warning_option=yes 14733else 14734 xorg_cv_cc_flag_unknown_warning_option=no 14735fi 14736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14737fi 14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14741 CFLAGS="$xorg_testset_save_CFLAGS" 14742fi 14743 14744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14747 fi 14748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14752 $as_echo_n "(cached) " >&6 14753else 14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14755/* end confdefs.h. */ 14756int i; 14757_ACEOF 14758if ac_fn_c_try_compile "$LINENO"; then : 14759 xorg_cv_cc_flag_unused_command_line_argument=yes 14760else 14761 xorg_cv_cc_flag_unused_command_line_argument=no 14762fi 14763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14764fi 14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14768 CFLAGS="$xorg_testset_save_CFLAGS" 14769fi 14770 14771found="no" 14772 14773 if test $found = "no" ; then 14774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14776 fi 14777 14778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14780 fi 14781 14782 CFLAGS="$CFLAGS -Werror=sequence-point" 14783 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14785$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14786 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14787 if eval \${$cacheid+:} false; then : 14788 $as_echo_n "(cached) " >&6 14789else 14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14791/* end confdefs.h. */ 14792int i; 14793int 14794main () 14795{ 14796 14797 ; 14798 return 0; 14799} 14800_ACEOF 14801if ac_fn_c_try_link "$LINENO"; then : 14802 eval $cacheid=yes 14803else 14804 eval $cacheid=no 14805fi 14806rm -f core conftest.err conftest.$ac_objext \ 14807 conftest$ac_exeext conftest.$ac_ext 14808fi 14809 14810 14811 CFLAGS="$xorg_testset_save_CFLAGS" 14812 14813 eval supported=\$$cacheid 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14815$as_echo "$supported" >&6; } 14816 if test "$supported" = "yes" ; then 14817 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14818 found="yes" 14819 fi 14820 fi 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836xorg_testset_save_CFLAGS="$CFLAGS" 14837 14838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14843 $as_echo_n "(cached) " >&6 14844else 14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14846/* end confdefs.h. */ 14847int i; 14848_ACEOF 14849if ac_fn_c_try_compile "$LINENO"; then : 14850 xorg_cv_cc_flag_unknown_warning_option=yes 14851else 14852 xorg_cv_cc_flag_unknown_warning_option=no 14853fi 14854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14855fi 14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14859 CFLAGS="$xorg_testset_save_CFLAGS" 14860fi 14861 14862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14865 fi 14866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14870 $as_echo_n "(cached) " >&6 14871else 14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14873/* end confdefs.h. */ 14874int i; 14875_ACEOF 14876if ac_fn_c_try_compile "$LINENO"; then : 14877 xorg_cv_cc_flag_unused_command_line_argument=yes 14878else 14879 xorg_cv_cc_flag_unused_command_line_argument=no 14880fi 14881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14882fi 14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14886 CFLAGS="$xorg_testset_save_CFLAGS" 14887fi 14888 14889found="no" 14890 14891 if test $found = "no" ; then 14892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14894 fi 14895 14896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14898 fi 14899 14900 CFLAGS="$CFLAGS -Werror=return-type" 14901 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14903$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14904 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14905 if eval \${$cacheid+:} false; then : 14906 $as_echo_n "(cached) " >&6 14907else 14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14909/* end confdefs.h. */ 14910int i; 14911int 14912main () 14913{ 14914 14915 ; 14916 return 0; 14917} 14918_ACEOF 14919if ac_fn_c_try_link "$LINENO"; then : 14920 eval $cacheid=yes 14921else 14922 eval $cacheid=no 14923fi 14924rm -f core conftest.err conftest.$ac_objext \ 14925 conftest$ac_exeext conftest.$ac_ext 14926fi 14927 14928 14929 CFLAGS="$xorg_testset_save_CFLAGS" 14930 14931 eval supported=\$$cacheid 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14933$as_echo "$supported" >&6; } 14934 if test "$supported" = "yes" ; then 14935 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14936 found="yes" 14937 fi 14938 fi 14939 14940 if test $found = "no" ; then 14941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14943 fi 14944 14945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14947 fi 14948 14949 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14950 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14952$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14953 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14954 if eval \${$cacheid+:} false; then : 14955 $as_echo_n "(cached) " >&6 14956else 14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14958/* end confdefs.h. */ 14959int i; 14960int 14961main () 14962{ 14963 14964 ; 14965 return 0; 14966} 14967_ACEOF 14968if ac_fn_c_try_link "$LINENO"; then : 14969 eval $cacheid=yes 14970else 14971 eval $cacheid=no 14972fi 14973rm -f core conftest.err conftest.$ac_objext \ 14974 conftest$ac_exeext conftest.$ac_ext 14975fi 14976 14977 14978 CFLAGS="$xorg_testset_save_CFLAGS" 14979 14980 eval supported=\$$cacheid 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14982$as_echo "$supported" >&6; } 14983 if test "$supported" = "yes" ; then 14984 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14985 found="yes" 14986 fi 14987 fi 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003xorg_testset_save_CFLAGS="$CFLAGS" 15004 15005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014int i; 15015_ACEOF 15016if ac_fn_c_try_compile "$LINENO"; then : 15017 xorg_cv_cc_flag_unknown_warning_option=yes 15018else 15019 xorg_cv_cc_flag_unknown_warning_option=no 15020fi 15021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15022fi 15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15026 CFLAGS="$xorg_testset_save_CFLAGS" 15027fi 15028 15029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15032 fi 15033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15037 $as_echo_n "(cached) " >&6 15038else 15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041int i; 15042_ACEOF 15043if ac_fn_c_try_compile "$LINENO"; then : 15044 xorg_cv_cc_flag_unused_command_line_argument=yes 15045else 15046 xorg_cv_cc_flag_unused_command_line_argument=no 15047fi 15048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15049fi 15050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15053 CFLAGS="$xorg_testset_save_CFLAGS" 15054fi 15055 15056found="no" 15057 15058 if test $found = "no" ; then 15059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15061 fi 15062 15063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15065 fi 15066 15067 CFLAGS="$CFLAGS -Werror=trigraphs" 15068 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15070$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15071 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15072 if eval \${$cacheid+:} false; then : 15073 $as_echo_n "(cached) " >&6 15074else 15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15076/* end confdefs.h. */ 15077int i; 15078int 15079main () 15080{ 15081 15082 ; 15083 return 0; 15084} 15085_ACEOF 15086if ac_fn_c_try_link "$LINENO"; then : 15087 eval $cacheid=yes 15088else 15089 eval $cacheid=no 15090fi 15091rm -f core conftest.err conftest.$ac_objext \ 15092 conftest$ac_exeext conftest.$ac_ext 15093fi 15094 15095 15096 CFLAGS="$xorg_testset_save_CFLAGS" 15097 15098 eval supported=\$$cacheid 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15100$as_echo "$supported" >&6; } 15101 if test "$supported" = "yes" ; then 15102 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15103 found="yes" 15104 fi 15105 fi 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121xorg_testset_save_CFLAGS="$CFLAGS" 15122 15123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15128 $as_echo_n "(cached) " >&6 15129else 15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132int i; 15133_ACEOF 15134if ac_fn_c_try_compile "$LINENO"; then : 15135 xorg_cv_cc_flag_unknown_warning_option=yes 15136else 15137 xorg_cv_cc_flag_unknown_warning_option=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15140fi 15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145fi 15146 15147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15150 fi 15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15155 $as_echo_n "(cached) " >&6 15156else 15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15158/* end confdefs.h. */ 15159int i; 15160_ACEOF 15161if ac_fn_c_try_compile "$LINENO"; then : 15162 xorg_cv_cc_flag_unused_command_line_argument=yes 15163else 15164 xorg_cv_cc_flag_unused_command_line_argument=no 15165fi 15166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15167fi 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15171 CFLAGS="$xorg_testset_save_CFLAGS" 15172fi 15173 15174found="no" 15175 15176 if test $found = "no" ; then 15177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15179 fi 15180 15181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15183 fi 15184 15185 CFLAGS="$CFLAGS -Werror=array-bounds" 15186 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15188$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15189 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15190 if eval \${$cacheid+:} false; then : 15191 $as_echo_n "(cached) " >&6 15192else 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195int i; 15196int 15197main () 15198{ 15199 15200 ; 15201 return 0; 15202} 15203_ACEOF 15204if ac_fn_c_try_link "$LINENO"; then : 15205 eval $cacheid=yes 15206else 15207 eval $cacheid=no 15208fi 15209rm -f core conftest.err conftest.$ac_objext \ 15210 conftest$ac_exeext conftest.$ac_ext 15211fi 15212 15213 15214 CFLAGS="$xorg_testset_save_CFLAGS" 15215 15216 eval supported=\$$cacheid 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15218$as_echo "$supported" >&6; } 15219 if test "$supported" = "yes" ; then 15220 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15221 found="yes" 15222 fi 15223 fi 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239xorg_testset_save_CFLAGS="$CFLAGS" 15240 15241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15246 $as_echo_n "(cached) " >&6 15247else 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250int i; 15251_ACEOF 15252if ac_fn_c_try_compile "$LINENO"; then : 15253 xorg_cv_cc_flag_unknown_warning_option=yes 15254else 15255 xorg_cv_cc_flag_unknown_warning_option=no 15256fi 15257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15258fi 15259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15262 CFLAGS="$xorg_testset_save_CFLAGS" 15263fi 15264 15265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15268 fi 15269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15273 $as_echo_n "(cached) " >&6 15274else 15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15276/* end confdefs.h. */ 15277int i; 15278_ACEOF 15279if ac_fn_c_try_compile "$LINENO"; then : 15280 xorg_cv_cc_flag_unused_command_line_argument=yes 15281else 15282 xorg_cv_cc_flag_unused_command_line_argument=no 15283fi 15284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15285fi 15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15289 CFLAGS="$xorg_testset_save_CFLAGS" 15290fi 15291 15292found="no" 15293 15294 if test $found = "no" ; then 15295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15297 fi 15298 15299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15301 fi 15302 15303 CFLAGS="$CFLAGS -Werror=write-strings" 15304 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15306$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15307 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15308 if eval \${$cacheid+:} false; then : 15309 $as_echo_n "(cached) " >&6 15310else 15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15312/* end confdefs.h. */ 15313int i; 15314int 15315main () 15316{ 15317 15318 ; 15319 return 0; 15320} 15321_ACEOF 15322if ac_fn_c_try_link "$LINENO"; then : 15323 eval $cacheid=yes 15324else 15325 eval $cacheid=no 15326fi 15327rm -f core conftest.err conftest.$ac_objext \ 15328 conftest$ac_exeext conftest.$ac_ext 15329fi 15330 15331 15332 CFLAGS="$xorg_testset_save_CFLAGS" 15333 15334 eval supported=\$$cacheid 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15336$as_echo "$supported" >&6; } 15337 if test "$supported" = "yes" ; then 15338 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15339 found="yes" 15340 fi 15341 fi 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357xorg_testset_save_CFLAGS="$CFLAGS" 15358 15359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15364 $as_echo_n "(cached) " >&6 15365else 15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15367/* end confdefs.h. */ 15368int i; 15369_ACEOF 15370if ac_fn_c_try_compile "$LINENO"; then : 15371 xorg_cv_cc_flag_unknown_warning_option=yes 15372else 15373 xorg_cv_cc_flag_unknown_warning_option=no 15374fi 15375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15376fi 15377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15380 CFLAGS="$xorg_testset_save_CFLAGS" 15381fi 15382 15383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15386 fi 15387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15391 $as_echo_n "(cached) " >&6 15392else 15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15394/* end confdefs.h. */ 15395int i; 15396_ACEOF 15397if ac_fn_c_try_compile "$LINENO"; then : 15398 xorg_cv_cc_flag_unused_command_line_argument=yes 15399else 15400 xorg_cv_cc_flag_unused_command_line_argument=no 15401fi 15402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15403fi 15404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15407 CFLAGS="$xorg_testset_save_CFLAGS" 15408fi 15409 15410found="no" 15411 15412 if test $found = "no" ; then 15413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15415 fi 15416 15417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15419 fi 15420 15421 CFLAGS="$CFLAGS -Werror=address" 15422 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15424$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15425 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15426 if eval \${$cacheid+:} false; then : 15427 $as_echo_n "(cached) " >&6 15428else 15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431int i; 15432int 15433main () 15434{ 15435 15436 ; 15437 return 0; 15438} 15439_ACEOF 15440if ac_fn_c_try_link "$LINENO"; then : 15441 eval $cacheid=yes 15442else 15443 eval $cacheid=no 15444fi 15445rm -f core conftest.err conftest.$ac_objext \ 15446 conftest$ac_exeext conftest.$ac_ext 15447fi 15448 15449 15450 CFLAGS="$xorg_testset_save_CFLAGS" 15451 15452 eval supported=\$$cacheid 15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15454$as_echo "$supported" >&6; } 15455 if test "$supported" = "yes" ; then 15456 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15457 found="yes" 15458 fi 15459 fi 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475xorg_testset_save_CFLAGS="$CFLAGS" 15476 15477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15482 $as_echo_n "(cached) " >&6 15483else 15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15485/* end confdefs.h. */ 15486int i; 15487_ACEOF 15488if ac_fn_c_try_compile "$LINENO"; then : 15489 xorg_cv_cc_flag_unknown_warning_option=yes 15490else 15491 xorg_cv_cc_flag_unknown_warning_option=no 15492fi 15493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15494fi 15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15498 CFLAGS="$xorg_testset_save_CFLAGS" 15499fi 15500 15501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15504 fi 15505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15509 $as_echo_n "(cached) " >&6 15510else 15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15512/* end confdefs.h. */ 15513int i; 15514_ACEOF 15515if ac_fn_c_try_compile "$LINENO"; then : 15516 xorg_cv_cc_flag_unused_command_line_argument=yes 15517else 15518 xorg_cv_cc_flag_unused_command_line_argument=no 15519fi 15520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15521fi 15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15525 CFLAGS="$xorg_testset_save_CFLAGS" 15526fi 15527 15528found="no" 15529 15530 if test $found = "no" ; then 15531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15533 fi 15534 15535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15537 fi 15538 15539 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15540 15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15542$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15543 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15544 if eval \${$cacheid+:} false; then : 15545 $as_echo_n "(cached) " >&6 15546else 15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548/* end confdefs.h. */ 15549int i; 15550int 15551main () 15552{ 15553 15554 ; 15555 return 0; 15556} 15557_ACEOF 15558if ac_fn_c_try_link "$LINENO"; then : 15559 eval $cacheid=yes 15560else 15561 eval $cacheid=no 15562fi 15563rm -f core conftest.err conftest.$ac_objext \ 15564 conftest$ac_exeext conftest.$ac_ext 15565fi 15566 15567 15568 CFLAGS="$xorg_testset_save_CFLAGS" 15569 15570 eval supported=\$$cacheid 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15572$as_echo "$supported" >&6; } 15573 if test "$supported" = "yes" ; then 15574 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15575 found="yes" 15576 fi 15577 fi 15578 15579 if test $found = "no" ; then 15580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15582 fi 15583 15584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15586 fi 15587 15588 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15589 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15591$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15592 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15593 if eval \${$cacheid+:} false; then : 15594 $as_echo_n "(cached) " >&6 15595else 15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597/* end confdefs.h. */ 15598int i; 15599int 15600main () 15601{ 15602 15603 ; 15604 return 0; 15605} 15606_ACEOF 15607if ac_fn_c_try_link "$LINENO"; then : 15608 eval $cacheid=yes 15609else 15610 eval $cacheid=no 15611fi 15612rm -f core conftest.err conftest.$ac_objext \ 15613 conftest$ac_exeext conftest.$ac_ext 15614fi 15615 15616 15617 CFLAGS="$xorg_testset_save_CFLAGS" 15618 15619 eval supported=\$$cacheid 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15621$as_echo "$supported" >&6; } 15622 if test "$supported" = "yes" ; then 15623 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15624 found="yes" 15625 fi 15626 fi 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642xorg_testset_save_CFLAGS="$CFLAGS" 15643 15644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654_ACEOF 15655if ac_fn_c_try_compile "$LINENO"; then : 15656 xorg_cv_cc_flag_unknown_warning_option=yes 15657else 15658 xorg_cv_cc_flag_unknown_warning_option=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15661fi 15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666fi 15667 15668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15671 fi 15672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15676 $as_echo_n "(cached) " >&6 15677else 15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15679/* end confdefs.h. */ 15680int i; 15681_ACEOF 15682if ac_fn_c_try_compile "$LINENO"; then : 15683 xorg_cv_cc_flag_unused_command_line_argument=yes 15684else 15685 xorg_cv_cc_flag_unused_command_line_argument=no 15686fi 15687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15688fi 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15692 CFLAGS="$xorg_testset_save_CFLAGS" 15693fi 15694 15695found="no" 15696 15697 if test $found = "no" ; then 15698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15700 fi 15701 15702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15704 fi 15705 15706 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15707 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15709$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15710 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15711 if eval \${$cacheid+:} false; then : 15712 $as_echo_n "(cached) " >&6 15713else 15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15715/* end confdefs.h. */ 15716int i; 15717int 15718main () 15719{ 15720 15721 ; 15722 return 0; 15723} 15724_ACEOF 15725if ac_fn_c_try_link "$LINENO"; then : 15726 eval $cacheid=yes 15727else 15728 eval $cacheid=no 15729fi 15730rm -f core conftest.err conftest.$ac_objext \ 15731 conftest$ac_exeext conftest.$ac_ext 15732fi 15733 15734 15735 CFLAGS="$xorg_testset_save_CFLAGS" 15736 15737 eval supported=\$$cacheid 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15739$as_echo "$supported" >&6; } 15740 if test "$supported" = "yes" ; then 15741 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15742 found="yes" 15743 fi 15744 fi 15745 15746 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15747else 15748{ $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 15749$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;} 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763xorg_testset_save_CFLAGS="$CFLAGS" 15764 15765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15770 $as_echo_n "(cached) " >&6 15771else 15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15773/* end confdefs.h. */ 15774int i; 15775_ACEOF 15776if ac_fn_c_try_compile "$LINENO"; then : 15777 xorg_cv_cc_flag_unknown_warning_option=yes 15778else 15779 xorg_cv_cc_flag_unknown_warning_option=no 15780fi 15781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15782fi 15783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15786 CFLAGS="$xorg_testset_save_CFLAGS" 15787fi 15788 15789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15792 fi 15793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15797 $as_echo_n "(cached) " >&6 15798else 15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15800/* end confdefs.h. */ 15801int i; 15802_ACEOF 15803if ac_fn_c_try_compile "$LINENO"; then : 15804 xorg_cv_cc_flag_unused_command_line_argument=yes 15805else 15806 xorg_cv_cc_flag_unused_command_line_argument=no 15807fi 15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15809fi 15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15813 CFLAGS="$xorg_testset_save_CFLAGS" 15814fi 15815 15816found="no" 15817 15818 if test $found = "no" ; then 15819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15821 fi 15822 15823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15825 fi 15826 15827 CFLAGS="$CFLAGS -Wimplicit" 15828 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15830$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15831 cacheid=xorg_cv_cc_flag__Wimplicit 15832 if eval \${$cacheid+:} false; then : 15833 $as_echo_n "(cached) " >&6 15834else 15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15836/* end confdefs.h. */ 15837int i; 15838int 15839main () 15840{ 15841 15842 ; 15843 return 0; 15844} 15845_ACEOF 15846if ac_fn_c_try_link "$LINENO"; then : 15847 eval $cacheid=yes 15848else 15849 eval $cacheid=no 15850fi 15851rm -f core conftest.err conftest.$ac_objext \ 15852 conftest$ac_exeext conftest.$ac_ext 15853fi 15854 15855 15856 CFLAGS="$xorg_testset_save_CFLAGS" 15857 15858 eval supported=\$$cacheid 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15860$as_echo "$supported" >&6; } 15861 if test "$supported" = "yes" ; then 15862 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15863 found="yes" 15864 fi 15865 fi 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881xorg_testset_save_CFLAGS="$CFLAGS" 15882 15883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15888 $as_echo_n "(cached) " >&6 15889else 15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15891/* end confdefs.h. */ 15892int i; 15893_ACEOF 15894if ac_fn_c_try_compile "$LINENO"; then : 15895 xorg_cv_cc_flag_unknown_warning_option=yes 15896else 15897 xorg_cv_cc_flag_unknown_warning_option=no 15898fi 15899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15900fi 15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15904 CFLAGS="$xorg_testset_save_CFLAGS" 15905fi 15906 15907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15910 fi 15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15915 $as_echo_n "(cached) " >&6 15916else 15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15918/* end confdefs.h. */ 15919int i; 15920_ACEOF 15921if ac_fn_c_try_compile "$LINENO"; then : 15922 xorg_cv_cc_flag_unused_command_line_argument=yes 15923else 15924 xorg_cv_cc_flag_unused_command_line_argument=no 15925fi 15926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15927fi 15928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15931 CFLAGS="$xorg_testset_save_CFLAGS" 15932fi 15933 15934found="no" 15935 15936 if test $found = "no" ; then 15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15939 fi 15940 15941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15943 fi 15944 15945 CFLAGS="$CFLAGS -Wnonnull" 15946 15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15948$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15949 cacheid=xorg_cv_cc_flag__Wnonnull 15950 if eval \${$cacheid+:} false; then : 15951 $as_echo_n "(cached) " >&6 15952else 15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955int i; 15956int 15957main () 15958{ 15959 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_c_try_link "$LINENO"; then : 15965 eval $cacheid=yes 15966else 15967 eval $cacheid=no 15968fi 15969rm -f core conftest.err conftest.$ac_objext \ 15970 conftest$ac_exeext conftest.$ac_ext 15971fi 15972 15973 15974 CFLAGS="$xorg_testset_save_CFLAGS" 15975 15976 eval supported=\$$cacheid 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15978$as_echo "$supported" >&6; } 15979 if test "$supported" = "yes" ; then 15980 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15981 found="yes" 15982 fi 15983 fi 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999xorg_testset_save_CFLAGS="$CFLAGS" 16000 16001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16006 $as_echo_n "(cached) " >&6 16007else 16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16009/* end confdefs.h. */ 16010int i; 16011_ACEOF 16012if ac_fn_c_try_compile "$LINENO"; then : 16013 xorg_cv_cc_flag_unknown_warning_option=yes 16014else 16015 xorg_cv_cc_flag_unknown_warning_option=no 16016fi 16017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16018fi 16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16022 CFLAGS="$xorg_testset_save_CFLAGS" 16023fi 16024 16025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16028 fi 16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16033 $as_echo_n "(cached) " >&6 16034else 16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036/* end confdefs.h. */ 16037int i; 16038_ACEOF 16039if ac_fn_c_try_compile "$LINENO"; then : 16040 xorg_cv_cc_flag_unused_command_line_argument=yes 16041else 16042 xorg_cv_cc_flag_unused_command_line_argument=no 16043fi 16044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16045fi 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16049 CFLAGS="$xorg_testset_save_CFLAGS" 16050fi 16051 16052found="no" 16053 16054 if test $found = "no" ; then 16055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16057 fi 16058 16059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16061 fi 16062 16063 CFLAGS="$CFLAGS -Winit-self" 16064 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16066$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16067 cacheid=xorg_cv_cc_flag__Winit_self 16068 if eval \${$cacheid+:} false; then : 16069 $as_echo_n "(cached) " >&6 16070else 16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16072/* end confdefs.h. */ 16073int i; 16074int 16075main () 16076{ 16077 16078 ; 16079 return 0; 16080} 16081_ACEOF 16082if ac_fn_c_try_link "$LINENO"; then : 16083 eval $cacheid=yes 16084else 16085 eval $cacheid=no 16086fi 16087rm -f core conftest.err conftest.$ac_objext \ 16088 conftest$ac_exeext conftest.$ac_ext 16089fi 16090 16091 16092 CFLAGS="$xorg_testset_save_CFLAGS" 16093 16094 eval supported=\$$cacheid 16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16096$as_echo "$supported" >&6; } 16097 if test "$supported" = "yes" ; then 16098 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16099 found="yes" 16100 fi 16101 fi 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117xorg_testset_save_CFLAGS="$CFLAGS" 16118 16119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16124 $as_echo_n "(cached) " >&6 16125else 16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16127/* end confdefs.h. */ 16128int i; 16129_ACEOF 16130if ac_fn_c_try_compile "$LINENO"; then : 16131 xorg_cv_cc_flag_unknown_warning_option=yes 16132else 16133 xorg_cv_cc_flag_unknown_warning_option=no 16134fi 16135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16136fi 16137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16140 CFLAGS="$xorg_testset_save_CFLAGS" 16141fi 16142 16143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16146 fi 16147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16151 $as_echo_n "(cached) " >&6 16152else 16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16154/* end confdefs.h. */ 16155int i; 16156_ACEOF 16157if ac_fn_c_try_compile "$LINENO"; then : 16158 xorg_cv_cc_flag_unused_command_line_argument=yes 16159else 16160 xorg_cv_cc_flag_unused_command_line_argument=no 16161fi 16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16163fi 16164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16167 CFLAGS="$xorg_testset_save_CFLAGS" 16168fi 16169 16170found="no" 16171 16172 if test $found = "no" ; then 16173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16175 fi 16176 16177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16179 fi 16180 16181 CFLAGS="$CFLAGS -Wmain" 16182 16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16184$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16185 cacheid=xorg_cv_cc_flag__Wmain 16186 if eval \${$cacheid+:} false; then : 16187 $as_echo_n "(cached) " >&6 16188else 16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16190/* end confdefs.h. */ 16191int i; 16192int 16193main () 16194{ 16195 16196 ; 16197 return 0; 16198} 16199_ACEOF 16200if ac_fn_c_try_link "$LINENO"; then : 16201 eval $cacheid=yes 16202else 16203 eval $cacheid=no 16204fi 16205rm -f core conftest.err conftest.$ac_objext \ 16206 conftest$ac_exeext conftest.$ac_ext 16207fi 16208 16209 16210 CFLAGS="$xorg_testset_save_CFLAGS" 16211 16212 eval supported=\$$cacheid 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16214$as_echo "$supported" >&6; } 16215 if test "$supported" = "yes" ; then 16216 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16217 found="yes" 16218 fi 16219 fi 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235xorg_testset_save_CFLAGS="$CFLAGS" 16236 16237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16242 $as_echo_n "(cached) " >&6 16243else 16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16245/* end confdefs.h. */ 16246int i; 16247_ACEOF 16248if ac_fn_c_try_compile "$LINENO"; then : 16249 xorg_cv_cc_flag_unknown_warning_option=yes 16250else 16251 xorg_cv_cc_flag_unknown_warning_option=no 16252fi 16253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16254fi 16255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16258 CFLAGS="$xorg_testset_save_CFLAGS" 16259fi 16260 16261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16264 fi 16265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16269 $as_echo_n "(cached) " >&6 16270else 16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16272/* end confdefs.h. */ 16273int i; 16274_ACEOF 16275if ac_fn_c_try_compile "$LINENO"; then : 16276 xorg_cv_cc_flag_unused_command_line_argument=yes 16277else 16278 xorg_cv_cc_flag_unused_command_line_argument=no 16279fi 16280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16281fi 16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16285 CFLAGS="$xorg_testset_save_CFLAGS" 16286fi 16287 16288found="no" 16289 16290 if test $found = "no" ; then 16291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16293 fi 16294 16295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16297 fi 16298 16299 CFLAGS="$CFLAGS -Wmissing-braces" 16300 16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16302$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16303 cacheid=xorg_cv_cc_flag__Wmissing_braces 16304 if eval \${$cacheid+:} false; then : 16305 $as_echo_n "(cached) " >&6 16306else 16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16308/* end confdefs.h. */ 16309int i; 16310int 16311main () 16312{ 16313 16314 ; 16315 return 0; 16316} 16317_ACEOF 16318if ac_fn_c_try_link "$LINENO"; then : 16319 eval $cacheid=yes 16320else 16321 eval $cacheid=no 16322fi 16323rm -f core conftest.err conftest.$ac_objext \ 16324 conftest$ac_exeext conftest.$ac_ext 16325fi 16326 16327 16328 CFLAGS="$xorg_testset_save_CFLAGS" 16329 16330 eval supported=\$$cacheid 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16332$as_echo "$supported" >&6; } 16333 if test "$supported" = "yes" ; then 16334 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16335 found="yes" 16336 fi 16337 fi 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353xorg_testset_save_CFLAGS="$CFLAGS" 16354 16355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16360 $as_echo_n "(cached) " >&6 16361else 16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16363/* end confdefs.h. */ 16364int i; 16365_ACEOF 16366if ac_fn_c_try_compile "$LINENO"; then : 16367 xorg_cv_cc_flag_unknown_warning_option=yes 16368else 16369 xorg_cv_cc_flag_unknown_warning_option=no 16370fi 16371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16372fi 16373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16376 CFLAGS="$xorg_testset_save_CFLAGS" 16377fi 16378 16379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16382 fi 16383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16387 $as_echo_n "(cached) " >&6 16388else 16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16390/* end confdefs.h. */ 16391int i; 16392_ACEOF 16393if ac_fn_c_try_compile "$LINENO"; then : 16394 xorg_cv_cc_flag_unused_command_line_argument=yes 16395else 16396 xorg_cv_cc_flag_unused_command_line_argument=no 16397fi 16398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16399fi 16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16403 CFLAGS="$xorg_testset_save_CFLAGS" 16404fi 16405 16406found="no" 16407 16408 if test $found = "no" ; then 16409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16411 fi 16412 16413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16415 fi 16416 16417 CFLAGS="$CFLAGS -Wsequence-point" 16418 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16420$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16421 cacheid=xorg_cv_cc_flag__Wsequence_point 16422 if eval \${$cacheid+:} false; then : 16423 $as_echo_n "(cached) " >&6 16424else 16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16426/* end confdefs.h. */ 16427int i; 16428int 16429main () 16430{ 16431 16432 ; 16433 return 0; 16434} 16435_ACEOF 16436if ac_fn_c_try_link "$LINENO"; then : 16437 eval $cacheid=yes 16438else 16439 eval $cacheid=no 16440fi 16441rm -f core conftest.err conftest.$ac_objext \ 16442 conftest$ac_exeext conftest.$ac_ext 16443fi 16444 16445 16446 CFLAGS="$xorg_testset_save_CFLAGS" 16447 16448 eval supported=\$$cacheid 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16450$as_echo "$supported" >&6; } 16451 if test "$supported" = "yes" ; then 16452 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16453 found="yes" 16454 fi 16455 fi 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471xorg_testset_save_CFLAGS="$CFLAGS" 16472 16473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16478 $as_echo_n "(cached) " >&6 16479else 16480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16481/* end confdefs.h. */ 16482int i; 16483_ACEOF 16484if ac_fn_c_try_compile "$LINENO"; then : 16485 xorg_cv_cc_flag_unknown_warning_option=yes 16486else 16487 xorg_cv_cc_flag_unknown_warning_option=no 16488fi 16489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16490fi 16491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16494 CFLAGS="$xorg_testset_save_CFLAGS" 16495fi 16496 16497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16500 fi 16501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16505 $as_echo_n "(cached) " >&6 16506else 16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16508/* end confdefs.h. */ 16509int i; 16510_ACEOF 16511if ac_fn_c_try_compile "$LINENO"; then : 16512 xorg_cv_cc_flag_unused_command_line_argument=yes 16513else 16514 xorg_cv_cc_flag_unused_command_line_argument=no 16515fi 16516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16517fi 16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16521 CFLAGS="$xorg_testset_save_CFLAGS" 16522fi 16523 16524found="no" 16525 16526 if test $found = "no" ; then 16527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16529 fi 16530 16531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16533 fi 16534 16535 CFLAGS="$CFLAGS -Wreturn-type" 16536 16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16538$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16539 cacheid=xorg_cv_cc_flag__Wreturn_type 16540 if eval \${$cacheid+:} false; then : 16541 $as_echo_n "(cached) " >&6 16542else 16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544/* end confdefs.h. */ 16545int i; 16546int 16547main () 16548{ 16549 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554if ac_fn_c_try_link "$LINENO"; then : 16555 eval $cacheid=yes 16556else 16557 eval $cacheid=no 16558fi 16559rm -f core conftest.err conftest.$ac_objext \ 16560 conftest$ac_exeext conftest.$ac_ext 16561fi 16562 16563 16564 CFLAGS="$xorg_testset_save_CFLAGS" 16565 16566 eval supported=\$$cacheid 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16568$as_echo "$supported" >&6; } 16569 if test "$supported" = "yes" ; then 16570 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16571 found="yes" 16572 fi 16573 fi 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589xorg_testset_save_CFLAGS="$CFLAGS" 16590 16591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16596 $as_echo_n "(cached) " >&6 16597else 16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16599/* end confdefs.h. */ 16600int i; 16601_ACEOF 16602if ac_fn_c_try_compile "$LINENO"; then : 16603 xorg_cv_cc_flag_unknown_warning_option=yes 16604else 16605 xorg_cv_cc_flag_unknown_warning_option=no 16606fi 16607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16608fi 16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16612 CFLAGS="$xorg_testset_save_CFLAGS" 16613fi 16614 16615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16618 fi 16619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16623 $as_echo_n "(cached) " >&6 16624else 16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16626/* end confdefs.h. */ 16627int i; 16628_ACEOF 16629if ac_fn_c_try_compile "$LINENO"; then : 16630 xorg_cv_cc_flag_unused_command_line_argument=yes 16631else 16632 xorg_cv_cc_flag_unused_command_line_argument=no 16633fi 16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16635fi 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16639 CFLAGS="$xorg_testset_save_CFLAGS" 16640fi 16641 16642found="no" 16643 16644 if test $found = "no" ; then 16645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16647 fi 16648 16649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16651 fi 16652 16653 CFLAGS="$CFLAGS -Wtrigraphs" 16654 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16656$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16657 cacheid=xorg_cv_cc_flag__Wtrigraphs 16658 if eval \${$cacheid+:} false; then : 16659 $as_echo_n "(cached) " >&6 16660else 16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16662/* end confdefs.h. */ 16663int i; 16664int 16665main () 16666{ 16667 16668 ; 16669 return 0; 16670} 16671_ACEOF 16672if ac_fn_c_try_link "$LINENO"; then : 16673 eval $cacheid=yes 16674else 16675 eval $cacheid=no 16676fi 16677rm -f core conftest.err conftest.$ac_objext \ 16678 conftest$ac_exeext conftest.$ac_ext 16679fi 16680 16681 16682 CFLAGS="$xorg_testset_save_CFLAGS" 16683 16684 eval supported=\$$cacheid 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16686$as_echo "$supported" >&6; } 16687 if test "$supported" = "yes" ; then 16688 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16689 found="yes" 16690 fi 16691 fi 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707xorg_testset_save_CFLAGS="$CFLAGS" 16708 16709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16714 $as_echo_n "(cached) " >&6 16715else 16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16717/* end confdefs.h. */ 16718int i; 16719_ACEOF 16720if ac_fn_c_try_compile "$LINENO"; then : 16721 xorg_cv_cc_flag_unknown_warning_option=yes 16722else 16723 xorg_cv_cc_flag_unknown_warning_option=no 16724fi 16725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16726fi 16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16730 CFLAGS="$xorg_testset_save_CFLAGS" 16731fi 16732 16733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16736 fi 16737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744/* end confdefs.h. */ 16745int i; 16746_ACEOF 16747if ac_fn_c_try_compile "$LINENO"; then : 16748 xorg_cv_cc_flag_unused_command_line_argument=yes 16749else 16750 xorg_cv_cc_flag_unused_command_line_argument=no 16751fi 16752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16753fi 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16757 CFLAGS="$xorg_testset_save_CFLAGS" 16758fi 16759 16760found="no" 16761 16762 if test $found = "no" ; then 16763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16765 fi 16766 16767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16769 fi 16770 16771 CFLAGS="$CFLAGS -Warray-bounds" 16772 16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16774$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16775 cacheid=xorg_cv_cc_flag__Warray_bounds 16776 if eval \${$cacheid+:} false; then : 16777 $as_echo_n "(cached) " >&6 16778else 16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16780/* end confdefs.h. */ 16781int i; 16782int 16783main () 16784{ 16785 16786 ; 16787 return 0; 16788} 16789_ACEOF 16790if ac_fn_c_try_link "$LINENO"; then : 16791 eval $cacheid=yes 16792else 16793 eval $cacheid=no 16794fi 16795rm -f core conftest.err conftest.$ac_objext \ 16796 conftest$ac_exeext conftest.$ac_ext 16797fi 16798 16799 16800 CFLAGS="$xorg_testset_save_CFLAGS" 16801 16802 eval supported=\$$cacheid 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16804$as_echo "$supported" >&6; } 16805 if test "$supported" = "yes" ; then 16806 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16807 found="yes" 16808 fi 16809 fi 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825xorg_testset_save_CFLAGS="$CFLAGS" 16826 16827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16832 $as_echo_n "(cached) " >&6 16833else 16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16835/* end confdefs.h. */ 16836int i; 16837_ACEOF 16838if ac_fn_c_try_compile "$LINENO"; then : 16839 xorg_cv_cc_flag_unknown_warning_option=yes 16840else 16841 xorg_cv_cc_flag_unknown_warning_option=no 16842fi 16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16844fi 16845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16848 CFLAGS="$xorg_testset_save_CFLAGS" 16849fi 16850 16851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16854 fi 16855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16859 $as_echo_n "(cached) " >&6 16860else 16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16862/* end confdefs.h. */ 16863int i; 16864_ACEOF 16865if ac_fn_c_try_compile "$LINENO"; then : 16866 xorg_cv_cc_flag_unused_command_line_argument=yes 16867else 16868 xorg_cv_cc_flag_unused_command_line_argument=no 16869fi 16870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16871fi 16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16875 CFLAGS="$xorg_testset_save_CFLAGS" 16876fi 16877 16878found="no" 16879 16880 if test $found = "no" ; then 16881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16883 fi 16884 16885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16887 fi 16888 16889 CFLAGS="$CFLAGS -Wwrite-strings" 16890 16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16892$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16893 cacheid=xorg_cv_cc_flag__Wwrite_strings 16894 if eval \${$cacheid+:} false; then : 16895 $as_echo_n "(cached) " >&6 16896else 16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16898/* end confdefs.h. */ 16899int i; 16900int 16901main () 16902{ 16903 16904 ; 16905 return 0; 16906} 16907_ACEOF 16908if ac_fn_c_try_link "$LINENO"; then : 16909 eval $cacheid=yes 16910else 16911 eval $cacheid=no 16912fi 16913rm -f core conftest.err conftest.$ac_objext \ 16914 conftest$ac_exeext conftest.$ac_ext 16915fi 16916 16917 16918 CFLAGS="$xorg_testset_save_CFLAGS" 16919 16920 eval supported=\$$cacheid 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16922$as_echo "$supported" >&6; } 16923 if test "$supported" = "yes" ; then 16924 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16925 found="yes" 16926 fi 16927 fi 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943xorg_testset_save_CFLAGS="$CFLAGS" 16944 16945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16950 $as_echo_n "(cached) " >&6 16951else 16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953/* end confdefs.h. */ 16954int i; 16955_ACEOF 16956if ac_fn_c_try_compile "$LINENO"; then : 16957 xorg_cv_cc_flag_unknown_warning_option=yes 16958else 16959 xorg_cv_cc_flag_unknown_warning_option=no 16960fi 16961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16962fi 16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16966 CFLAGS="$xorg_testset_save_CFLAGS" 16967fi 16968 16969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16972 fi 16973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16977 $as_echo_n "(cached) " >&6 16978else 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981int i; 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO"; then : 16984 xorg_cv_cc_flag_unused_command_line_argument=yes 16985else 16986 xorg_cv_cc_flag_unused_command_line_argument=no 16987fi 16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16989fi 16990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994fi 16995 16996found="no" 16997 16998 if test $found = "no" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17005 fi 17006 17007 CFLAGS="$CFLAGS -Waddress" 17008 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17010$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17011 cacheid=xorg_cv_cc_flag__Waddress 17012 if eval \${$cacheid+:} false; then : 17013 $as_echo_n "(cached) " >&6 17014else 17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17016/* end confdefs.h. */ 17017int i; 17018int 17019main () 17020{ 17021 17022 ; 17023 return 0; 17024} 17025_ACEOF 17026if ac_fn_c_try_link "$LINENO"; then : 17027 eval $cacheid=yes 17028else 17029 eval $cacheid=no 17030fi 17031rm -f core conftest.err conftest.$ac_objext \ 17032 conftest$ac_exeext conftest.$ac_ext 17033fi 17034 17035 17036 CFLAGS="$xorg_testset_save_CFLAGS" 17037 17038 eval supported=\$$cacheid 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17040$as_echo "$supported" >&6; } 17041 if test "$supported" = "yes" ; then 17042 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17043 found="yes" 17044 fi 17045 fi 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061xorg_testset_save_CFLAGS="$CFLAGS" 17062 17063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17068 $as_echo_n "(cached) " >&6 17069else 17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17071/* end confdefs.h. */ 17072int i; 17073_ACEOF 17074if ac_fn_c_try_compile "$LINENO"; then : 17075 xorg_cv_cc_flag_unknown_warning_option=yes 17076else 17077 xorg_cv_cc_flag_unknown_warning_option=no 17078fi 17079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17080fi 17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17084 CFLAGS="$xorg_testset_save_CFLAGS" 17085fi 17086 17087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17090 fi 17091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17095 $as_echo_n "(cached) " >&6 17096else 17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17098/* end confdefs.h. */ 17099int i; 17100_ACEOF 17101if ac_fn_c_try_compile "$LINENO"; then : 17102 xorg_cv_cc_flag_unused_command_line_argument=yes 17103else 17104 xorg_cv_cc_flag_unused_command_line_argument=no 17105fi 17106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17107fi 17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17111 CFLAGS="$xorg_testset_save_CFLAGS" 17112fi 17113 17114found="no" 17115 17116 if test $found = "no" ; then 17117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17119 fi 17120 17121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17123 fi 17124 17125 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17126 17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17128$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17129 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17130 if eval \${$cacheid+:} false; then : 17131 $as_echo_n "(cached) " >&6 17132else 17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17134/* end confdefs.h. */ 17135int i; 17136int 17137main () 17138{ 17139 17140 ; 17141 return 0; 17142} 17143_ACEOF 17144if ac_fn_c_try_link "$LINENO"; then : 17145 eval $cacheid=yes 17146else 17147 eval $cacheid=no 17148fi 17149rm -f core conftest.err conftest.$ac_objext \ 17150 conftest$ac_exeext conftest.$ac_ext 17151fi 17152 17153 17154 CFLAGS="$xorg_testset_save_CFLAGS" 17155 17156 eval supported=\$$cacheid 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17158$as_echo "$supported" >&6; } 17159 if test "$supported" = "yes" ; then 17160 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17161 found="yes" 17162 fi 17163 fi 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179xorg_testset_save_CFLAGS="$CFLAGS" 17180 17181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17186 $as_echo_n "(cached) " >&6 17187else 17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17189/* end confdefs.h. */ 17190int i; 17191_ACEOF 17192if ac_fn_c_try_compile "$LINENO"; then : 17193 xorg_cv_cc_flag_unknown_warning_option=yes 17194else 17195 xorg_cv_cc_flag_unknown_warning_option=no 17196fi 17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17198fi 17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17202 CFLAGS="$xorg_testset_save_CFLAGS" 17203fi 17204 17205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17208 fi 17209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17213 $as_echo_n "(cached) " >&6 17214else 17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17216/* end confdefs.h. */ 17217int i; 17218_ACEOF 17219if ac_fn_c_try_compile "$LINENO"; then : 17220 xorg_cv_cc_flag_unused_command_line_argument=yes 17221else 17222 xorg_cv_cc_flag_unused_command_line_argument=no 17223fi 17224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17225fi 17226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17229 CFLAGS="$xorg_testset_save_CFLAGS" 17230fi 17231 17232found="no" 17233 17234 if test $found = "no" ; then 17235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17237 fi 17238 17239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17241 fi 17242 17243 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17244 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17246$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17247 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17248 if eval \${$cacheid+:} false; then : 17249 $as_echo_n "(cached) " >&6 17250else 17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17252/* end confdefs.h. */ 17253int i; 17254int 17255main () 17256{ 17257 17258 ; 17259 return 0; 17260} 17261_ACEOF 17262if ac_fn_c_try_link "$LINENO"; then : 17263 eval $cacheid=yes 17264else 17265 eval $cacheid=no 17266fi 17267rm -f core conftest.err conftest.$ac_objext \ 17268 conftest$ac_exeext conftest.$ac_ext 17269fi 17270 17271 17272 CFLAGS="$xorg_testset_save_CFLAGS" 17273 17274 eval supported=\$$cacheid 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17276$as_echo "$supported" >&6; } 17277 if test "$supported" = "yes" ; then 17278 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17279 found="yes" 17280 fi 17281 fi 17282 17283 17284fi 17285 17286 17287 17288 17289 17290 17291 17292 CWARNFLAGS="$BASE_CFLAGS" 17293 if test "x$GCC" = xyes ; then 17294 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17295 fi 17296 17297 17298 17299 17300 17301 17302 17303 17304# Check whether --enable-strict-compilation was given. 17305if test "${enable_strict_compilation+set}" = set; then : 17306 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17307else 17308 STRICT_COMPILE=no 17309fi 17310 17311 17312 17313 17314 17315 17316STRICT_CFLAGS="" 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330xorg_testset_save_CFLAGS="$CFLAGS" 17331 17332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17337 $as_echo_n "(cached) " >&6 17338else 17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17340/* end confdefs.h. */ 17341int i; 17342_ACEOF 17343if ac_fn_c_try_compile "$LINENO"; then : 17344 xorg_cv_cc_flag_unknown_warning_option=yes 17345else 17346 xorg_cv_cc_flag_unknown_warning_option=no 17347fi 17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17349fi 17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17353 CFLAGS="$xorg_testset_save_CFLAGS" 17354fi 17355 17356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17359 fi 17360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17364 $as_echo_n "(cached) " >&6 17365else 17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17367/* end confdefs.h. */ 17368int i; 17369_ACEOF 17370if ac_fn_c_try_compile "$LINENO"; then : 17371 xorg_cv_cc_flag_unused_command_line_argument=yes 17372else 17373 xorg_cv_cc_flag_unused_command_line_argument=no 17374fi 17375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17376fi 17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17380 CFLAGS="$xorg_testset_save_CFLAGS" 17381fi 17382 17383found="no" 17384 17385 if test $found = "no" ; then 17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17388 fi 17389 17390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17392 fi 17393 17394 CFLAGS="$CFLAGS -pedantic" 17395 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17397$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17398 cacheid=xorg_cv_cc_flag__pedantic 17399 if eval \${$cacheid+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401else 17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17403/* end confdefs.h. */ 17404int i; 17405int 17406main () 17407{ 17408 17409 ; 17410 return 0; 17411} 17412_ACEOF 17413if ac_fn_c_try_link "$LINENO"; then : 17414 eval $cacheid=yes 17415else 17416 eval $cacheid=no 17417fi 17418rm -f core conftest.err conftest.$ac_objext \ 17419 conftest$ac_exeext conftest.$ac_ext 17420fi 17421 17422 17423 CFLAGS="$xorg_testset_save_CFLAGS" 17424 17425 eval supported=\$$cacheid 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17427$as_echo "$supported" >&6; } 17428 if test "$supported" = "yes" ; then 17429 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17430 found="yes" 17431 fi 17432 fi 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448xorg_testset_save_CFLAGS="$CFLAGS" 17449 17450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17455 $as_echo_n "(cached) " >&6 17456else 17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17458/* end confdefs.h. */ 17459int i; 17460_ACEOF 17461if ac_fn_c_try_compile "$LINENO"; then : 17462 xorg_cv_cc_flag_unknown_warning_option=yes 17463else 17464 xorg_cv_cc_flag_unknown_warning_option=no 17465fi 17466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17467fi 17468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17471 CFLAGS="$xorg_testset_save_CFLAGS" 17472fi 17473 17474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17477 fi 17478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17482 $as_echo_n "(cached) " >&6 17483else 17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485/* end confdefs.h. */ 17486int i; 17487_ACEOF 17488if ac_fn_c_try_compile "$LINENO"; then : 17489 xorg_cv_cc_flag_unused_command_line_argument=yes 17490else 17491 xorg_cv_cc_flag_unused_command_line_argument=no 17492fi 17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17494fi 17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17498 CFLAGS="$xorg_testset_save_CFLAGS" 17499fi 17500 17501found="no" 17502 17503 if test $found = "no" ; then 17504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17506 fi 17507 17508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17510 fi 17511 17512 CFLAGS="$CFLAGS -Werror" 17513 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17515$as_echo_n "checking if $CC supports -Werror... " >&6; } 17516 cacheid=xorg_cv_cc_flag__Werror 17517 if eval \${$cacheid+:} false; then : 17518 $as_echo_n "(cached) " >&6 17519else 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521/* end confdefs.h. */ 17522int i; 17523int 17524main () 17525{ 17526 17527 ; 17528 return 0; 17529} 17530_ACEOF 17531if ac_fn_c_try_link "$LINENO"; then : 17532 eval $cacheid=yes 17533else 17534 eval $cacheid=no 17535fi 17536rm -f core conftest.err conftest.$ac_objext \ 17537 conftest$ac_exeext conftest.$ac_ext 17538fi 17539 17540 17541 CFLAGS="$xorg_testset_save_CFLAGS" 17542 17543 eval supported=\$$cacheid 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17545$as_echo "$supported" >&6; } 17546 if test "$supported" = "yes" ; then 17547 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17548 found="yes" 17549 fi 17550 fi 17551 17552 if test $found = "no" ; then 17553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17555 fi 17556 17557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17559 fi 17560 17561 CFLAGS="$CFLAGS -errwarn" 17562 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17564$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17565 cacheid=xorg_cv_cc_flag__errwarn 17566 if eval \${$cacheid+:} false; then : 17567 $as_echo_n "(cached) " >&6 17568else 17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17570/* end confdefs.h. */ 17571int i; 17572int 17573main () 17574{ 17575 17576 ; 17577 return 0; 17578} 17579_ACEOF 17580if ac_fn_c_try_link "$LINENO"; then : 17581 eval $cacheid=yes 17582else 17583 eval $cacheid=no 17584fi 17585rm -f core conftest.err conftest.$ac_objext \ 17586 conftest$ac_exeext conftest.$ac_ext 17587fi 17588 17589 17590 CFLAGS="$xorg_testset_save_CFLAGS" 17591 17592 eval supported=\$$cacheid 17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17594$as_echo "$supported" >&6; } 17595 if test "$supported" = "yes" ; then 17596 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17597 found="yes" 17598 fi 17599 fi 17600 17601 17602 17603# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17604# activate it with -Werror, so we add it here explicitly. 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618xorg_testset_save_CFLAGS="$CFLAGS" 17619 17620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17625 $as_echo_n "(cached) " >&6 17626else 17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17628/* end confdefs.h. */ 17629int i; 17630_ACEOF 17631if ac_fn_c_try_compile "$LINENO"; then : 17632 xorg_cv_cc_flag_unknown_warning_option=yes 17633else 17634 xorg_cv_cc_flag_unknown_warning_option=no 17635fi 17636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17637fi 17638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17641 CFLAGS="$xorg_testset_save_CFLAGS" 17642fi 17643 17644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17647 fi 17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17652 $as_echo_n "(cached) " >&6 17653else 17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17655/* end confdefs.h. */ 17656int i; 17657_ACEOF 17658if ac_fn_c_try_compile "$LINENO"; then : 17659 xorg_cv_cc_flag_unused_command_line_argument=yes 17660else 17661 xorg_cv_cc_flag_unused_command_line_argument=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17664fi 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17668 CFLAGS="$xorg_testset_save_CFLAGS" 17669fi 17670 17671found="no" 17672 17673 if test $found = "no" ; then 17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17676 fi 17677 17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17680 fi 17681 17682 CFLAGS="$CFLAGS -Werror=attributes" 17683 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17685$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17686 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17687 if eval \${$cacheid+:} false; then : 17688 $as_echo_n "(cached) " >&6 17689else 17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17691/* end confdefs.h. */ 17692int i; 17693int 17694main () 17695{ 17696 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701if ac_fn_c_try_link "$LINENO"; then : 17702 eval $cacheid=yes 17703else 17704 eval $cacheid=no 17705fi 17706rm -f core conftest.err conftest.$ac_objext \ 17707 conftest$ac_exeext conftest.$ac_ext 17708fi 17709 17710 17711 CFLAGS="$xorg_testset_save_CFLAGS" 17712 17713 eval supported=\$$cacheid 17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17715$as_echo "$supported" >&6; } 17716 if test "$supported" = "yes" ; then 17717 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17718 found="yes" 17719 fi 17720 fi 17721 17722 17723 17724if test "x$STRICT_COMPILE" = "xyes"; then 17725 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17726 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17727fi 17728 17729 17730 17731 17732 17733 17734cat >>confdefs.h <<_ACEOF 17735#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17736_ACEOF 17737 17738 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17739 if test "x$PVM" = "x"; then 17740 PVM="0" 17741 fi 17742 17743cat >>confdefs.h <<_ACEOF 17744#define PACKAGE_VERSION_MINOR $PVM 17745_ACEOF 17746 17747 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17748 if test "x$PVP" = "x"; then 17749 PVP="0" 17750 fi 17751 17752cat >>confdefs.h <<_ACEOF 17753#define PACKAGE_VERSION_PATCHLEVEL $PVP 17754_ACEOF 17755 17756 17757 17758CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17759mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17760|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17761echo 'git directory not found: installing possibly empty changelog.' >&2)" 17762 17763 17764 17765 17766macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17767INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17768mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17769|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17770echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17771 17772 17773 17774 17775 17776 17777if test x$APP_MAN_SUFFIX = x ; then 17778 APP_MAN_SUFFIX=1 17779fi 17780if test x$APP_MAN_DIR = x ; then 17781 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17782fi 17783 17784if test x$LIB_MAN_SUFFIX = x ; then 17785 LIB_MAN_SUFFIX=3 17786fi 17787if test x$LIB_MAN_DIR = x ; then 17788 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17789fi 17790 17791if test x$FILE_MAN_SUFFIX = x ; then 17792 case $host_os in 17793 solaris*) FILE_MAN_SUFFIX=4 ;; 17794 *) FILE_MAN_SUFFIX=5 ;; 17795 esac 17796fi 17797if test x$FILE_MAN_DIR = x ; then 17798 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17799fi 17800 17801if test x$MISC_MAN_SUFFIX = x ; then 17802 case $host_os in 17803 solaris*) MISC_MAN_SUFFIX=5 ;; 17804 *) MISC_MAN_SUFFIX=7 ;; 17805 esac 17806fi 17807if test x$MISC_MAN_DIR = x ; then 17808 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17809fi 17810 17811if test x$DRIVER_MAN_SUFFIX = x ; then 17812 case $host_os in 17813 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17814 *) DRIVER_MAN_SUFFIX=4 ;; 17815 esac 17816fi 17817if test x$DRIVER_MAN_DIR = x ; then 17818 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17819fi 17820 17821if test x$ADMIN_MAN_SUFFIX = x ; then 17822 case $host_os in 17823 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17824 *) ADMIN_MAN_SUFFIX=8 ;; 17825 esac 17826fi 17827if test x$ADMIN_MAN_DIR = x ; then 17828 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17829fi 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845XORG_MAN_PAGE="X Version 11" 17846 17847MAN_SUBSTS="\ 17848 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17849 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17850 -e 's|__xservername__|Xorg|g' \ 17851 -e 's|__xconfigfile__|xorg.conf|g' \ 17852 -e 's|__projectroot__|\$(prefix)|g' \ 17853 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17854 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17855 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17856 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17857 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17858 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17859 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17860 17861 17862 17863# Check whether --enable-silent-rules was given. 17864if test "${enable_silent_rules+set}" = set; then : 17865 enableval=$enable_silent_rules; 17866fi 17867 17868case $enable_silent_rules in # ((( 17869 yes) AM_DEFAULT_VERBOSITY=0;; 17870 no) AM_DEFAULT_VERBOSITY=1;; 17871 *) AM_DEFAULT_VERBOSITY=0;; 17872esac 17873am_make=${MAKE-make} 17874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17875$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17876if ${am_cv_make_support_nested_variables+:} false; then : 17877 $as_echo_n "(cached) " >&6 17878else 17879 if $as_echo 'TRUE=$(BAR$(V)) 17880BAR0=false 17881BAR1=true 17882V=1 17883am__doit: 17884 @$(TRUE) 17885.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17886 am_cv_make_support_nested_variables=yes 17887else 17888 am_cv_make_support_nested_variables=no 17889fi 17890fi 17891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17892$as_echo "$am_cv_make_support_nested_variables" >&6; } 17893if test $am_cv_make_support_nested_variables = yes; then 17894 AM_V='$(V)' 17895 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17896else 17897 AM_V=$AM_DEFAULT_VERBOSITY 17898 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17899fi 17900AM_BACKSLASH='\' 17901 17902 17903 17904 17905# Check whether --enable-docs was given. 17906if test "${enable_docs+set}" = set; then : 17907 enableval=$enable_docs; build_docs=$enableval 17908else 17909 build_docs=yes 17910fi 17911 17912 17913 if test x$build_docs = xyes; then 17914 ENABLE_DOCS_TRUE= 17915 ENABLE_DOCS_FALSE='#' 17916else 17917 ENABLE_DOCS_TRUE='#' 17918 ENABLE_DOCS_FALSE= 17919fi 17920 17921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17922$as_echo_n "checking whether to build documentation... " >&6; } 17923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17924$as_echo "$build_docs" >&6; } 17925 17926 17927 17928 17929 17930# Check whether --with-xmlto was given. 17931if test "${with_xmlto+set}" = set; then : 17932 withval=$with_xmlto; use_xmlto=$withval 17933else 17934 use_xmlto=auto 17935fi 17936 17937 17938 17939if test "x$use_xmlto" = x"auto"; then 17940 # Extract the first word of "xmlto", so it can be a program name with args. 17941set dummy xmlto; ac_word=$2 17942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17943$as_echo_n "checking for $ac_word... " >&6; } 17944if ${ac_cv_path_XMLTO+:} false; then : 17945 $as_echo_n "(cached) " >&6 17946else 17947 case $XMLTO in 17948 [\\/]* | ?:[\\/]*) 17949 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17950 ;; 17951 *) 17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17953for as_dir in $PATH 17954do 17955 IFS=$as_save_IFS 17956 test -z "$as_dir" && as_dir=. 17957 for ac_exec_ext in '' $ac_executable_extensions; do 17958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17959 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17961 break 2 17962 fi 17963done 17964 done 17965IFS=$as_save_IFS 17966 17967 ;; 17968esac 17969fi 17970XMLTO=$ac_cv_path_XMLTO 17971if test -n "$XMLTO"; then 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17973$as_echo "$XMLTO" >&6; } 17974else 17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17976$as_echo "no" >&6; } 17977fi 17978 17979 17980 if test "x$XMLTO" = "x"; then 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17982$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17983 have_xmlto=no 17984 else 17985 have_xmlto=yes 17986 fi 17987elif test "x$use_xmlto" = x"yes" ; then 17988 # Extract the first word of "xmlto", so it can be a program name with args. 17989set dummy xmlto; ac_word=$2 17990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17991$as_echo_n "checking for $ac_word... " >&6; } 17992if ${ac_cv_path_XMLTO+:} false; then : 17993 $as_echo_n "(cached) " >&6 17994else 17995 case $XMLTO in 17996 [\\/]* | ?:[\\/]*) 17997 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17998 ;; 17999 *) 18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18001for as_dir in $PATH 18002do 18003 IFS=$as_save_IFS 18004 test -z "$as_dir" && as_dir=. 18005 for ac_exec_ext in '' $ac_executable_extensions; do 18006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18007 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18009 break 2 18010 fi 18011done 18012 done 18013IFS=$as_save_IFS 18014 18015 ;; 18016esac 18017fi 18018XMLTO=$ac_cv_path_XMLTO 18019if test -n "$XMLTO"; then 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18021$as_echo "$XMLTO" >&6; } 18022else 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18024$as_echo "no" >&6; } 18025fi 18026 18027 18028 if test "x$XMLTO" = "x"; then 18029 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18030 fi 18031 have_xmlto=yes 18032elif test "x$use_xmlto" = x"no" ; then 18033 if test "x$XMLTO" != "x"; then 18034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18035$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18036 fi 18037 have_xmlto=no 18038else 18039 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18040fi 18041 18042# Test for a minimum version of xmlto, if provided. 18043if test "$have_xmlto" = yes; then 18044 # scrape the xmlto version 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18046$as_echo_n "checking the xmlto version... " >&6; } 18047 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18049$as_echo "$xmlto_version" >&6; } 18050 as_arg_v1=$xmlto_version 18051as_arg_v2=0.0.22 18052awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18053case $? in #( 18054 1) : 18055 if test "x$use_xmlto" = xauto; then 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18057$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18058 have_xmlto=no 18059 else 18060 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18061 fi ;; #( 18062 0) : 18063 ;; #( 18064 2) : 18065 ;; #( 18066 *) : 18067 ;; 18068esac 18069fi 18070 18071# Test for the ability of xmlto to generate a text target 18072have_xmlto_text=no 18073cat > conftest.xml << "EOF" 18074EOF 18075if test "$have_xmlto" = yes; then : 18076 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18077 have_xmlto_text=yes 18078else 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18080$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18081fi 18082fi 18083rm -f conftest.xml 18084 if test $have_xmlto_text = yes; then 18085 HAVE_XMLTO_TEXT_TRUE= 18086 HAVE_XMLTO_TEXT_FALSE='#' 18087else 18088 HAVE_XMLTO_TEXT_TRUE='#' 18089 HAVE_XMLTO_TEXT_FALSE= 18090fi 18091 18092 if test "$have_xmlto" = yes; then 18093 HAVE_XMLTO_TRUE= 18094 HAVE_XMLTO_FALSE='#' 18095else 18096 HAVE_XMLTO_TRUE='#' 18097 HAVE_XMLTO_FALSE= 18098fi 18099 18100 18101 18102 18103 18104 18105# Check whether --with-fop was given. 18106if test "${with_fop+set}" = set; then : 18107 withval=$with_fop; use_fop=$withval 18108else 18109 use_fop=auto 18110fi 18111 18112 18113 18114if test "x$use_fop" = x"auto"; then 18115 # Extract the first word of "fop", so it can be a program name with args. 18116set dummy fop; ac_word=$2 18117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18118$as_echo_n "checking for $ac_word... " >&6; } 18119if ${ac_cv_path_FOP+:} false; then : 18120 $as_echo_n "(cached) " >&6 18121else 18122 case $FOP in 18123 [\\/]* | ?:[\\/]*) 18124 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18125 ;; 18126 *) 18127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18128for as_dir in $PATH 18129do 18130 IFS=$as_save_IFS 18131 test -z "$as_dir" && as_dir=. 18132 for ac_exec_ext in '' $ac_executable_extensions; do 18133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18134 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18136 break 2 18137 fi 18138done 18139 done 18140IFS=$as_save_IFS 18141 18142 ;; 18143esac 18144fi 18145FOP=$ac_cv_path_FOP 18146if test -n "$FOP"; then 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18148$as_echo "$FOP" >&6; } 18149else 18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18151$as_echo "no" >&6; } 18152fi 18153 18154 18155 if test "x$FOP" = "x"; then 18156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18157$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18158 have_fop=no 18159 else 18160 have_fop=yes 18161 fi 18162elif test "x$use_fop" = x"yes" ; then 18163 # Extract the first word of "fop", so it can be a program name with args. 18164set dummy fop; ac_word=$2 18165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18166$as_echo_n "checking for $ac_word... " >&6; } 18167if ${ac_cv_path_FOP+:} false; then : 18168 $as_echo_n "(cached) " >&6 18169else 18170 case $FOP in 18171 [\\/]* | ?:[\\/]*) 18172 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18173 ;; 18174 *) 18175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18176for as_dir in $PATH 18177do 18178 IFS=$as_save_IFS 18179 test -z "$as_dir" && as_dir=. 18180 for ac_exec_ext in '' $ac_executable_extensions; do 18181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18182 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18184 break 2 18185 fi 18186done 18187 done 18188IFS=$as_save_IFS 18189 18190 ;; 18191esac 18192fi 18193FOP=$ac_cv_path_FOP 18194if test -n "$FOP"; then 18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18196$as_echo "$FOP" >&6; } 18197else 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18199$as_echo "no" >&6; } 18200fi 18201 18202 18203 if test "x$FOP" = "x"; then 18204 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18205 fi 18206 have_fop=yes 18207elif test "x$use_fop" = x"no" ; then 18208 if test "x$FOP" != "x"; then 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18210$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18211 fi 18212 have_fop=no 18213else 18214 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18215fi 18216 18217# Test for a minimum version of fop, if provided. 18218 18219 if test "$have_fop" = yes; then 18220 HAVE_FOP_TRUE= 18221 HAVE_FOP_FALSE='#' 18222else 18223 HAVE_FOP_TRUE='#' 18224 HAVE_FOP_FALSE= 18225fi 18226 18227 18228 18229 18230# Preserves the interface, should it be implemented later 18231 18232 18233 18234# Check whether --with-xsltproc was given. 18235if test "${with_xsltproc+set}" = set; then : 18236 withval=$with_xsltproc; use_xsltproc=$withval 18237else 18238 use_xsltproc=auto 18239fi 18240 18241 18242 18243if test "x$use_xsltproc" = x"auto"; then 18244 # Extract the first word of "xsltproc", so it can be a program name with args. 18245set dummy xsltproc; ac_word=$2 18246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18247$as_echo_n "checking for $ac_word... " >&6; } 18248if ${ac_cv_path_XSLTPROC+:} false; then : 18249 $as_echo_n "(cached) " >&6 18250else 18251 case $XSLTPROC in 18252 [\\/]* | ?:[\\/]*) 18253 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18254 ;; 18255 *) 18256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18257for as_dir in $PATH 18258do 18259 IFS=$as_save_IFS 18260 test -z "$as_dir" && as_dir=. 18261 for ac_exec_ext in '' $ac_executable_extensions; do 18262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18263 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18265 break 2 18266 fi 18267done 18268 done 18269IFS=$as_save_IFS 18270 18271 ;; 18272esac 18273fi 18274XSLTPROC=$ac_cv_path_XSLTPROC 18275if test -n "$XSLTPROC"; then 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18277$as_echo "$XSLTPROC" >&6; } 18278else 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18280$as_echo "no" >&6; } 18281fi 18282 18283 18284 if test "x$XSLTPROC" = "x"; then 18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18286$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18287 have_xsltproc=no 18288 else 18289 have_xsltproc=yes 18290 fi 18291elif test "x$use_xsltproc" = x"yes" ; then 18292 # Extract the first word of "xsltproc", so it can be a program name with args. 18293set dummy xsltproc; ac_word=$2 18294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18295$as_echo_n "checking for $ac_word... " >&6; } 18296if ${ac_cv_path_XSLTPROC+:} false; then : 18297 $as_echo_n "(cached) " >&6 18298else 18299 case $XSLTPROC in 18300 [\\/]* | ?:[\\/]*) 18301 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18302 ;; 18303 *) 18304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18305for as_dir in $PATH 18306do 18307 IFS=$as_save_IFS 18308 test -z "$as_dir" && as_dir=. 18309 for ac_exec_ext in '' $ac_executable_extensions; do 18310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18311 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18313 break 2 18314 fi 18315done 18316 done 18317IFS=$as_save_IFS 18318 18319 ;; 18320esac 18321fi 18322XSLTPROC=$ac_cv_path_XSLTPROC 18323if test -n "$XSLTPROC"; then 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18325$as_echo "$XSLTPROC" >&6; } 18326else 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18328$as_echo "no" >&6; } 18329fi 18330 18331 18332 if test "x$XSLTPROC" = "x"; then 18333 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18334 fi 18335 have_xsltproc=yes 18336elif test "x$use_xsltproc" = x"no" ; then 18337 if test "x$XSLTPROC" != "x"; then 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18339$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18340 fi 18341 have_xsltproc=no 18342else 18343 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18344fi 18345 18346 if test "$have_xsltproc" = yes; then 18347 HAVE_XSLTPROC_TRUE= 18348 HAVE_XSLTPROC_FALSE='#' 18349else 18350 HAVE_XSLTPROC_TRUE='#' 18351 HAVE_XSLTPROC_FALSE= 18352fi 18353 18354 18355 18356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18357$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18358XORG_SGML_PATH= 18359if test -n "$PKG_CONFIG" && \ 18360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18361 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18362 ac_status=$? 18363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18364 test $ac_status = 0; }; then 18365 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18366else 18367 : 18368 18369fi 18370 18371# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18372# the path and the name of the doc stylesheet 18373if test "x$XORG_SGML_PATH" != "x" ; then 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18375$as_echo "$XORG_SGML_PATH" >&6; } 18376 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18377 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18378else 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18380$as_echo "no" >&6; } 18381fi 18382 18383 18384 18385 18386 if test "x$XSL_STYLESHEET" != "x"; then 18387 HAVE_STYLESHEETS_TRUE= 18388 HAVE_STYLESHEETS_FALSE='#' 18389else 18390 HAVE_STYLESHEETS_TRUE='#' 18391 HAVE_STYLESHEETS_FALSE= 18392fi 18393 18394 18395 18396# Obtain compiler/linker options for depedencies 18397 18398pkg_failed=no 18399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5 18400$as_echo_n "checking for SM... " >&6; } 18401 18402if test -n "$SM_CFLAGS"; then 18403 pkg_cv_SM_CFLAGS="$SM_CFLAGS" 18404 elif test -n "$PKG_CONFIG"; then 18405 if test -n "$PKG_CONFIG" && \ 18406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5 18407 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5 18408 ac_status=$? 18409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18410 test $ac_status = 0; }; then 18411 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0.5 xproto xtrans" 2>/dev/null` 18412else 18413 pkg_failed=yes 18414fi 18415 else 18416 pkg_failed=untried 18417fi 18418if test -n "$SM_LIBS"; then 18419 pkg_cv_SM_LIBS="$SM_LIBS" 18420 elif test -n "$PKG_CONFIG"; then 18421 if test -n "$PKG_CONFIG" && \ 18422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5 18423 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5 18424 ac_status=$? 18425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18426 test $ac_status = 0; }; then 18427 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.0.5 xproto xtrans" 2>/dev/null` 18428else 18429 pkg_failed=yes 18430fi 18431 else 18432 pkg_failed=untried 18433fi 18434 18435 18436 18437if test $pkg_failed = yes; then 18438 18439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18440 _pkg_short_errors_supported=yes 18441else 18442 _pkg_short_errors_supported=no 18443fi 18444 if test $_pkg_short_errors_supported = yes; then 18445 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice >= 1.0.5 xproto xtrans" 2>&1` 18446 else 18447 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice >= 1.0.5 xproto xtrans" 2>&1` 18448 fi 18449 # Put the nasty error message in config.log where it belongs 18450 echo "$SM_PKG_ERRORS" >&5 18451 18452 as_fn_error $? "Package requirements (ice >= 1.0.5 xproto xtrans) were not met: 18453 18454$SM_PKG_ERRORS 18455 18456Consider adjusting the PKG_CONFIG_PATH environment variable if you 18457installed software in a non-standard prefix. 18458 18459Alternatively, you may set the environment variables SM_CFLAGS 18460and SM_LIBS to avoid the need to call pkg-config. 18461See the pkg-config man page for more details. 18462" "$LINENO" 5 18463elif test $pkg_failed = untried; then 18464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18466as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18467is in your PATH or set the PKG_CONFIG environment variable to the full 18468path to pkg-config. 18469 18470Alternatively, you may set the environment variables SM_CFLAGS 18471and SM_LIBS to avoid the need to call pkg-config. 18472See the pkg-config man page for more details. 18473 18474To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18475See \`config.log' for more details" "$LINENO" 5; } 18476else 18477 SM_CFLAGS=$pkg_cv_SM_CFLAGS 18478 SM_LIBS=$pkg_cv_SM_LIBS 18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18480$as_echo "yes" >&6; } 18481 : 18482fi 18483 18484# Needed to check for TCP & IPv6 support and set flags appropriately 18485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 18486$as_echo_n "checking return type of signal handlers... " >&6; } 18487if ${ac_cv_type_signal+:} false; then : 18488 $as_echo_n "(cached) " >&6 18489else 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492#include <sys/types.h> 18493#include <signal.h> 18494 18495int 18496main () 18497{ 18498return *(signal (0, 0)) (0) == 1; 18499 ; 18500 return 0; 18501} 18502_ACEOF 18503if ac_fn_c_try_compile "$LINENO"; then : 18504 ac_cv_type_signal=int 18505else 18506 ac_cv_type_signal=void 18507fi 18508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18509fi 18510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 18511$as_echo "$ac_cv_type_signal" >&6; } 18512 18513cat >>confdefs.h <<_ACEOF 18514#define RETSIGTYPE $ac_cv_type_signal 18515_ACEOF 18516 18517 18518 18519 18520 18521 case $host_os in 18522 mingw*) unixdef="no" ;; 18523 *) unixdef="yes" ;; 18524 esac 18525 # Check whether --enable-unix-transport was given. 18526if test "${enable_unix_transport+set}" = set; then : 18527 enableval=$enable_unix_transport; UNIXCONN=$enableval 18528else 18529 UNIXCONN=$unixdef 18530fi 18531 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 18533$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 18534 if test "$UNIXCONN" = "yes"; then 18535 18536$as_echo "#define UNIXCONN 1" >>confdefs.h 18537 18538 fi 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 18540$as_echo "$UNIXCONN" >&6; } 18541 # Check whether --enable-tcp-transport was given. 18542if test "${enable_tcp_transport+set}" = set; then : 18543 enableval=$enable_tcp_transport; TCPCONN=$enableval 18544else 18545 TCPCONN=yes 18546fi 18547 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 18549$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 18551$as_echo "$TCPCONN" >&6; } 18552 if test "$TCPCONN" = "yes"; then 18553 18554$as_echo "#define TCPCONN 1" >>confdefs.h 18555 18556 18557 # SVR4 hides these in libraries other than libc 18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18559$as_echo_n "checking for library containing socket... " >&6; } 18560if ${ac_cv_search_socket+:} false; then : 18561 $as_echo_n "(cached) " >&6 18562else 18563 ac_func_search_save_LIBS=$LIBS 18564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18565/* end confdefs.h. */ 18566 18567/* Override any GCC internal prototype to avoid an error. 18568 Use char because int might match the return type of a GCC 18569 builtin and then its argument prototype would still apply. */ 18570#ifdef __cplusplus 18571extern "C" 18572#endif 18573char socket (); 18574int 18575main () 18576{ 18577return socket (); 18578 ; 18579 return 0; 18580} 18581_ACEOF 18582for ac_lib in '' socket; do 18583 if test -z "$ac_lib"; then 18584 ac_res="none required" 18585 else 18586 ac_res=-l$ac_lib 18587 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18588 fi 18589 if ac_fn_c_try_link "$LINENO"; then : 18590 ac_cv_search_socket=$ac_res 18591fi 18592rm -f core conftest.err conftest.$ac_objext \ 18593 conftest$ac_exeext 18594 if ${ac_cv_search_socket+:} false; then : 18595 break 18596fi 18597done 18598if ${ac_cv_search_socket+:} false; then : 18599 18600else 18601 ac_cv_search_socket=no 18602fi 18603rm conftest.$ac_ext 18604LIBS=$ac_func_search_save_LIBS 18605fi 18606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18607$as_echo "$ac_cv_search_socket" >&6; } 18608ac_res=$ac_cv_search_socket 18609if test "$ac_res" != no; then : 18610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18611 18612fi 18613 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18615$as_echo_n "checking for library containing gethostbyname... " >&6; } 18616if ${ac_cv_search_gethostbyname+:} false; then : 18617 $as_echo_n "(cached) " >&6 18618else 18619 ac_func_search_save_LIBS=$LIBS 18620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18621/* end confdefs.h. */ 18622 18623/* Override any GCC internal prototype to avoid an error. 18624 Use char because int might match the return type of a GCC 18625 builtin and then its argument prototype would still apply. */ 18626#ifdef __cplusplus 18627extern "C" 18628#endif 18629char gethostbyname (); 18630int 18631main () 18632{ 18633return gethostbyname (); 18634 ; 18635 return 0; 18636} 18637_ACEOF 18638for ac_lib in '' nsl; do 18639 if test -z "$ac_lib"; then 18640 ac_res="none required" 18641 else 18642 ac_res=-l$ac_lib 18643 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18644 fi 18645 if ac_fn_c_try_link "$LINENO"; then : 18646 ac_cv_search_gethostbyname=$ac_res 18647fi 18648rm -f core conftest.err conftest.$ac_objext \ 18649 conftest$ac_exeext 18650 if ${ac_cv_search_gethostbyname+:} false; then : 18651 break 18652fi 18653done 18654if ${ac_cv_search_gethostbyname+:} false; then : 18655 18656else 18657 ac_cv_search_gethostbyname=no 18658fi 18659rm conftest.$ac_ext 18660LIBS=$ac_func_search_save_LIBS 18661fi 18662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18663$as_echo "$ac_cv_search_gethostbyname" >&6; } 18664ac_res=$ac_cv_search_gethostbyname 18665if test "$ac_res" != no; then : 18666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18667 18668fi 18669 18670 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18672$as_echo_n "checking for main in -lws2_32... " >&6; } 18673if ${ac_cv_lib_ws2_32_main+:} false; then : 18674 $as_echo_n "(cached) " >&6 18675else 18676 ac_check_lib_save_LIBS=$LIBS 18677LIBS="-lws2_32 $LIBS" 18678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680 18681 18682int 18683main () 18684{ 18685return main (); 18686 ; 18687 return 0; 18688} 18689_ACEOF 18690if ac_fn_c_try_link "$LINENO"; then : 18691 ac_cv_lib_ws2_32_main=yes 18692else 18693 ac_cv_lib_ws2_32_main=no 18694fi 18695rm -f core conftest.err conftest.$ac_objext \ 18696 conftest$ac_exeext conftest.$ac_ext 18697LIBS=$ac_check_lib_save_LIBS 18698fi 18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18700$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18701if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18702 cat >>confdefs.h <<_ACEOF 18703#define HAVE_LIBWS2_32 1 18704_ACEOF 18705 18706 LIBS="-lws2_32 $LIBS" 18707 18708fi 18709ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 18710 18711 fi 18712 18713 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18714 # Check whether --enable-ipv6 was given. 18715if test "${enable_ipv6+set}" = set; then : 18716 enableval=$enable_ipv6; IPV6CONN=$enableval 18717else 18718 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18719if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18720 IPV6CONN=yes 18721else 18722 IPV6CONN=no 18723fi 18724 18725fi 18726 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18728$as_echo_n "checking if IPv6 support should be built... " >&6; } 18729 if test "$IPV6CONN" = "yes"; then 18730 18731$as_echo "#define IPv6 1" >>confdefs.h 18732 18733 fi 18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18735$as_echo "$IPV6CONN" >&6; } 18736 18737 # 4.3BSD-Reno added a new member to struct sockaddr_in 18738 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18739#include <sys/types.h> 18740#include <sys/socket.h> 18741#include <netinet/in.h> 18742 18743" 18744if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18745 18746$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18747 18748fi 18749 18750 18751 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18752 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18753$ac_includes_default 18754#include <sys/socket.h> 18755" 18756if test "x$ac_cv_type_socklen_t" = xyes; then : 18757 18758cat >>confdefs.h <<_ACEOF 18759#define HAVE_SOCKLEN_T 1 18760_ACEOF 18761 18762 18763fi 18764 18765 18766 18767 fi 18768 case $host_os in 18769 solaris*|sco*|sysv4*) localdef="yes" ;; 18770 *) localdef="no" ;; 18771 esac 18772 # Check whether --enable-local-transport was given. 18773if test "${enable_local_transport+set}" = set; then : 18774 enableval=$enable_local_transport; LOCALCONN=$enableval 18775else 18776 LOCALCONN=$localdef 18777fi 18778 18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 18780$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 18782$as_echo "$LOCALCONN" >&6; } 18783 if test "$LOCALCONN" = "yes"; then 18784 18785$as_echo "#define LOCALCONN 1" >>confdefs.h 18786 18787 fi 18788 18789 18790 18791 18792# Check whether --with-libuuid was given. 18793if test "${with_libuuid+set}" = set; then : 18794 withval=$with_libuuid; 18795fi 18796 18797 18798for ac_func in uuid_create 18799do : 18800 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create" 18801if test "x$ac_cv_func_uuid_create" = xyes; then : 18802 cat >>confdefs.h <<_ACEOF 18803#define HAVE_UUID_CREATE 1 18804_ACEOF 18805 18806else 18807 18808 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then 18809 18810pkg_failed=no 18811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5 18812$as_echo_n "checking for LIBUUID... " >&6; } 18813 18814if test -n "$LIBUUID_CFLAGS"; then 18815 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 18816 elif test -n "$PKG_CONFIG"; then 18817 if test -n "$PKG_CONFIG" && \ 18818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 18819 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 18820 ac_status=$? 18821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18822 test $ac_status = 0; }; then 18823 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null` 18824else 18825 pkg_failed=yes 18826fi 18827 else 18828 pkg_failed=untried 18829fi 18830if test -n "$LIBUUID_LIBS"; then 18831 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 18832 elif test -n "$PKG_CONFIG"; then 18833 if test -n "$PKG_CONFIG" && \ 18834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 18835 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 18836 ac_status=$? 18837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18838 test $ac_status = 0; }; then 18839 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null` 18840else 18841 pkg_failed=yes 18842fi 18843 else 18844 pkg_failed=untried 18845fi 18846 18847 18848 18849if test $pkg_failed = yes; then 18850 18851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18852 _pkg_short_errors_supported=yes 18853else 18854 _pkg_short_errors_supported=no 18855fi 18856 if test $_pkg_short_errors_supported = yes; then 18857 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1` 18858 else 18859 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1` 18860 fi 18861 # Put the nasty error message in config.log where it belongs 18862 echo "$LIBUUID_PKG_ERRORS" >&5 18863 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18865$as_echo "no" >&6; } 18866 HAVE_LIBUUID=no 18867elif test $pkg_failed = untried; then 18868 HAVE_LIBUUID=no 18869else 18870 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 18871 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18873$as_echo "yes" >&6; } 18874 HAVE_LIBUUID=yes 18875fi 18876 fi 18877 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then 18878 as_fn_error $? "requested libuuid support but uuid.pc not found" "$LINENO" 5 18879 fi 18880 18881fi 18882done 18883 18884 18885 if test x"$HAVE_LIBUUID" = xyes; then 18886 WITH_LIBUUID_TRUE= 18887 WITH_LIBUUID_FALSE='#' 18888else 18889 WITH_LIBUUID_TRUE='#' 18890 WITH_LIBUUID_FALSE= 18891fi 18892 18893 18894ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc" 18895 18896cat >confcache <<\_ACEOF 18897# This file is a shell script that caches the results of configure 18898# tests run on this system so they can be shared between configure 18899# scripts and configure runs, see configure's option --config-cache. 18900# It is not useful on other systems. If it contains results you don't 18901# want to keep, you may remove or edit it. 18902# 18903# config.status only pays attention to the cache file if you give it 18904# the --recheck option to rerun configure. 18905# 18906# `ac_cv_env_foo' variables (set or unset) will be overridden when 18907# loading this file, other *unset* `ac_cv_foo' will be assigned the 18908# following values. 18909 18910_ACEOF 18911 18912# The following way of writing the cache mishandles newlines in values, 18913# but we know of no workaround that is simple, portable, and efficient. 18914# So, we kill variables containing newlines. 18915# Ultrix sh set writes to stderr and can't be redirected directly, 18916# and sets the high bit in the cache file unless we assign to the vars. 18917( 18918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18919 eval ac_val=\$$ac_var 18920 case $ac_val in #( 18921 *${as_nl}*) 18922 case $ac_var in #( 18923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18925 esac 18926 case $ac_var in #( 18927 _ | IFS | as_nl) ;; #( 18928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18929 *) { eval $ac_var=; unset $ac_var;} ;; 18930 esac ;; 18931 esac 18932 done 18933 18934 (set) 2>&1 | 18935 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18936 *${as_nl}ac_space=\ *) 18937 # `set' does not quote correctly, so add quotes: double-quote 18938 # substitution turns \\\\ into \\, and sed turns \\ into \. 18939 sed -n \ 18940 "s/'/'\\\\''/g; 18941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18942 ;; #( 18943 *) 18944 # `set' quotes correctly as required by POSIX, so do not add quotes. 18945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18946 ;; 18947 esac | 18948 sort 18949) | 18950 sed ' 18951 /^ac_cv_env_/b end 18952 t clear 18953 :clear 18954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18955 t end 18956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18957 :end' >>confcache 18958if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18959 if test -w "$cache_file"; then 18960 if test "x$cache_file" != "x/dev/null"; then 18961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18962$as_echo "$as_me: updating cache $cache_file" >&6;} 18963 if test ! -f "$cache_file" || test -h "$cache_file"; then 18964 cat confcache >"$cache_file" 18965 else 18966 case $cache_file in #( 18967 */* | ?:*) 18968 mv -f confcache "$cache_file"$$ && 18969 mv -f "$cache_file"$$ "$cache_file" ;; #( 18970 *) 18971 mv -f confcache "$cache_file" ;; 18972 esac 18973 fi 18974 fi 18975 else 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18977$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18978 fi 18979fi 18980rm -f confcache 18981 18982test "x$prefix" = xNONE && prefix=$ac_default_prefix 18983# Let make expand exec_prefix. 18984test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18985 18986DEFS=-DHAVE_CONFIG_H 18987 18988ac_libobjs= 18989ac_ltlibobjs= 18990U= 18991for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18992 # 1. Remove the extension, and $U if already installed. 18993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18994 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18996 # will be set to the directory where LIBOBJS objects are built. 18997 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18998 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18999done 19000LIBOBJS=$ac_libobjs 19001 19002LTLIBOBJS=$ac_ltlibobjs 19003 19004 19005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19006$as_echo_n "checking that generated files are newer than configure... " >&6; } 19007 if test -n "$am_sleep_pid"; then 19008 # Hide warnings about reused PIDs. 19009 wait $am_sleep_pid 2>/dev/null 19010 fi 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19012$as_echo "done" >&6; } 19013 if test -n "$EXEEXT"; then 19014 am__EXEEXT_TRUE= 19015 am__EXEEXT_FALSE='#' 19016else 19017 am__EXEEXT_TRUE='#' 19018 am__EXEEXT_FALSE= 19019fi 19020 19021if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19022 as_fn_error $? "conditional \"AMDEP\" was never defined. 19023Usually this means the macro was only invoked conditionally." "$LINENO" 5 19024fi 19025if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19027Usually this means the macro was only invoked conditionally." "$LINENO" 5 19028fi 19029if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 19030 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 19031Usually this means the macro was only invoked conditionally." "$LINENO" 5 19032fi 19033if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19034 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19035Usually this means the macro was only invoked conditionally." "$LINENO" 5 19036fi 19037if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19038 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19039Usually this means the macro was only invoked conditionally." "$LINENO" 5 19040fi 19041if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19042 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19043Usually this means the macro was only invoked conditionally." "$LINENO" 5 19044fi 19045if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19046 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19047Usually this means the macro was only invoked conditionally." "$LINENO" 5 19048fi 19049if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19050 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19051Usually this means the macro was only invoked conditionally." "$LINENO" 5 19052fi 19053if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then 19054 as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined. 19055Usually this means the macro was only invoked conditionally." "$LINENO" 5 19056fi 19057 19058: "${CONFIG_STATUS=./config.status}" 19059ac_write_fail=0 19060ac_clean_files_save=$ac_clean_files 19061ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19062{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19063$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19064as_write_fail=0 19065cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19066#! $SHELL 19067# Generated by $as_me. 19068# Run this file to recreate the current configuration. 19069# Compiler output produced by configure, useful for debugging 19070# configure, is in config.log if it exists. 19071 19072debug=false 19073ac_cs_recheck=false 19074ac_cs_silent=false 19075 19076SHELL=\${CONFIG_SHELL-$SHELL} 19077export SHELL 19078_ASEOF 19079cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19080## -------------------- ## 19081## M4sh Initialization. ## 19082## -------------------- ## 19083 19084# Be more Bourne compatible 19085DUALCASE=1; export DUALCASE # for MKS sh 19086if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19087 emulate sh 19088 NULLCMD=: 19089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19090 # is contrary to our usage. Disable this feature. 19091 alias -g '${1+"$@"}'='"$@"' 19092 setopt NO_GLOB_SUBST 19093else 19094 case `(set -o) 2>/dev/null` in #( 19095 *posix*) : 19096 set -o posix ;; #( 19097 *) : 19098 ;; 19099esac 19100fi 19101 19102 19103as_nl=' 19104' 19105export as_nl 19106# Printing a long string crashes Solaris 7 /usr/bin/printf. 19107as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19108as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19109as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19110# Prefer a ksh shell builtin over an external printf program on Solaris, 19111# but without wasting forks for bash or zsh. 19112if test -z "$BASH_VERSION$ZSH_VERSION" \ 19113 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19114 as_echo='print -r --' 19115 as_echo_n='print -rn --' 19116elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19117 as_echo='printf %s\n' 19118 as_echo_n='printf %s' 19119else 19120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19122 as_echo_n='/usr/ucb/echo -n' 19123 else 19124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19125 as_echo_n_body='eval 19126 arg=$1; 19127 case $arg in #( 19128 *"$as_nl"*) 19129 expr "X$arg" : "X\\(.*\\)$as_nl"; 19130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19131 esac; 19132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19133 ' 19134 export as_echo_n_body 19135 as_echo_n='sh -c $as_echo_n_body as_echo' 19136 fi 19137 export as_echo_body 19138 as_echo='sh -c $as_echo_body as_echo' 19139fi 19140 19141# The user is always right. 19142if test "${PATH_SEPARATOR+set}" != set; then 19143 PATH_SEPARATOR=: 19144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19146 PATH_SEPARATOR=';' 19147 } 19148fi 19149 19150 19151# IFS 19152# We need space, tab and new line, in precisely that order. Quoting is 19153# there to prevent editors from complaining about space-tab. 19154# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19155# splitting by setting IFS to empty value.) 19156IFS=" "" $as_nl" 19157 19158# Find who we are. Look in the path if we contain no directory separator. 19159as_myself= 19160case $0 in #(( 19161 *[\\/]* ) as_myself=$0 ;; 19162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19163for as_dir in $PATH 19164do 19165 IFS=$as_save_IFS 19166 test -z "$as_dir" && as_dir=. 19167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19168 done 19169IFS=$as_save_IFS 19170 19171 ;; 19172esac 19173# We did not find ourselves, most probably we were run as `sh COMMAND' 19174# in which case we are not to be found in the path. 19175if test "x$as_myself" = x; then 19176 as_myself=$0 19177fi 19178if test ! -f "$as_myself"; then 19179 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19180 exit 1 19181fi 19182 19183# Unset variables that we do not need and which cause bugs (e.g. in 19184# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19185# suppresses any "Segmentation fault" message there. '((' could 19186# trigger a bug in pdksh 5.2.14. 19187for as_var in BASH_ENV ENV MAIL MAILPATH 19188do eval test x\${$as_var+set} = xset \ 19189 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19190done 19191PS1='$ ' 19192PS2='> ' 19193PS4='+ ' 19194 19195# NLS nuisances. 19196LC_ALL=C 19197export LC_ALL 19198LANGUAGE=C 19199export LANGUAGE 19200 19201# CDPATH. 19202(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19203 19204 19205# as_fn_error STATUS ERROR [LINENO LOG_FD] 19206# ---------------------------------------- 19207# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19208# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19209# script with STATUS, using 1 if that was 0. 19210as_fn_error () 19211{ 19212 as_status=$1; test $as_status -eq 0 && as_status=1 19213 if test "$4"; then 19214 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19215 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19216 fi 19217 $as_echo "$as_me: error: $2" >&2 19218 as_fn_exit $as_status 19219} # as_fn_error 19220 19221 19222# as_fn_set_status STATUS 19223# ----------------------- 19224# Set $? to STATUS, without forking. 19225as_fn_set_status () 19226{ 19227 return $1 19228} # as_fn_set_status 19229 19230# as_fn_exit STATUS 19231# ----------------- 19232# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19233as_fn_exit () 19234{ 19235 set +e 19236 as_fn_set_status $1 19237 exit $1 19238} # as_fn_exit 19239 19240# as_fn_unset VAR 19241# --------------- 19242# Portably unset VAR. 19243as_fn_unset () 19244{ 19245 { eval $1=; unset $1;} 19246} 19247as_unset=as_fn_unset 19248# as_fn_append VAR VALUE 19249# ---------------------- 19250# Append the text in VALUE to the end of the definition contained in VAR. Take 19251# advantage of any shell optimizations that allow amortized linear growth over 19252# repeated appends, instead of the typical quadratic growth present in naive 19253# implementations. 19254if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19255 eval 'as_fn_append () 19256 { 19257 eval $1+=\$2 19258 }' 19259else 19260 as_fn_append () 19261 { 19262 eval $1=\$$1\$2 19263 } 19264fi # as_fn_append 19265 19266# as_fn_arith ARG... 19267# ------------------ 19268# Perform arithmetic evaluation on the ARGs, and store the result in the 19269# global $as_val. Take advantage of shells that can avoid forks. The arguments 19270# must be portable across $(()) and expr. 19271if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19272 eval 'as_fn_arith () 19273 { 19274 as_val=$(( $* )) 19275 }' 19276else 19277 as_fn_arith () 19278 { 19279 as_val=`expr "$@" || test $? -eq 1` 19280 } 19281fi # as_fn_arith 19282 19283 19284if expr a : '\(a\)' >/dev/null 2>&1 && 19285 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19286 as_expr=expr 19287else 19288 as_expr=false 19289fi 19290 19291if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19292 as_basename=basename 19293else 19294 as_basename=false 19295fi 19296 19297if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19298 as_dirname=dirname 19299else 19300 as_dirname=false 19301fi 19302 19303as_me=`$as_basename -- "$0" || 19304$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19305 X"$0" : 'X\(//\)$' \| \ 19306 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19307$as_echo X/"$0" | 19308 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19309 s//\1/ 19310 q 19311 } 19312 /^X\/\(\/\/\)$/{ 19313 s//\1/ 19314 q 19315 } 19316 /^X\/\(\/\).*/{ 19317 s//\1/ 19318 q 19319 } 19320 s/.*/./; q'` 19321 19322# Avoid depending upon Character Ranges. 19323as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19324as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19325as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19326as_cr_digits='0123456789' 19327as_cr_alnum=$as_cr_Letters$as_cr_digits 19328 19329ECHO_C= ECHO_N= ECHO_T= 19330case `echo -n x` in #((((( 19331-n*) 19332 case `echo 'xy\c'` in 19333 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19334 xy) ECHO_C='\c';; 19335 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19336 ECHO_T=' ';; 19337 esac;; 19338*) 19339 ECHO_N='-n';; 19340esac 19341 19342rm -f conf$$ conf$$.exe conf$$.file 19343if test -d conf$$.dir; then 19344 rm -f conf$$.dir/conf$$.file 19345else 19346 rm -f conf$$.dir 19347 mkdir conf$$.dir 2>/dev/null 19348fi 19349if (echo >conf$$.file) 2>/dev/null; then 19350 if ln -s conf$$.file conf$$ 2>/dev/null; then 19351 as_ln_s='ln -s' 19352 # ... but there are two gotchas: 19353 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19354 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19355 # In both cases, we have to default to `cp -p'. 19356 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19357 as_ln_s='cp -p' 19358 elif ln conf$$.file conf$$ 2>/dev/null; then 19359 as_ln_s=ln 19360 else 19361 as_ln_s='cp -p' 19362 fi 19363else 19364 as_ln_s='cp -p' 19365fi 19366rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19367rmdir conf$$.dir 2>/dev/null 19368 19369 19370# as_fn_mkdir_p 19371# ------------- 19372# Create "$as_dir" as a directory, including parents if necessary. 19373as_fn_mkdir_p () 19374{ 19375 19376 case $as_dir in #( 19377 -*) as_dir=./$as_dir;; 19378 esac 19379 test -d "$as_dir" || eval $as_mkdir_p || { 19380 as_dirs= 19381 while :; do 19382 case $as_dir in #( 19383 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19384 *) as_qdir=$as_dir;; 19385 esac 19386 as_dirs="'$as_qdir' $as_dirs" 19387 as_dir=`$as_dirname -- "$as_dir" || 19388$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19389 X"$as_dir" : 'X\(//\)[^/]' \| \ 19390 X"$as_dir" : 'X\(//\)$' \| \ 19391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19392$as_echo X"$as_dir" | 19393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19394 s//\1/ 19395 q 19396 } 19397 /^X\(\/\/\)[^/].*/{ 19398 s//\1/ 19399 q 19400 } 19401 /^X\(\/\/\)$/{ 19402 s//\1/ 19403 q 19404 } 19405 /^X\(\/\).*/{ 19406 s//\1/ 19407 q 19408 } 19409 s/.*/./; q'` 19410 test -d "$as_dir" && break 19411 done 19412 test -z "$as_dirs" || eval "mkdir $as_dirs" 19413 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19414 19415 19416} # as_fn_mkdir_p 19417if mkdir -p . 2>/dev/null; then 19418 as_mkdir_p='mkdir -p "$as_dir"' 19419else 19420 test -d ./-p && rmdir ./-p 19421 as_mkdir_p=false 19422fi 19423 19424if test -x / >/dev/null 2>&1; then 19425 as_test_x='test -x' 19426else 19427 if ls -dL / >/dev/null 2>&1; then 19428 as_ls_L_option=L 19429 else 19430 as_ls_L_option= 19431 fi 19432 as_test_x=' 19433 eval sh -c '\'' 19434 if test -d "$1"; then 19435 test -d "$1/."; 19436 else 19437 case $1 in #( 19438 -*)set "./$1";; 19439 esac; 19440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19441 ???[sx]*):;;*)false;;esac;fi 19442 '\'' sh 19443 ' 19444fi 19445as_executable_p=$as_test_x 19446 19447# Sed expression to map a string onto a valid CPP name. 19448as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19449 19450# Sed expression to map a string onto a valid variable name. 19451as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19452 19453 19454exec 6>&1 19455## ----------------------------------- ## 19456## Main body of $CONFIG_STATUS script. ## 19457## ----------------------------------- ## 19458_ASEOF 19459test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19460 19461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19462# Save the log message, to keep $0 and so on meaningful, and to 19463# report actual input values of CONFIG_FILES etc. instead of their 19464# values after options handling. 19465ac_log=" 19466This file was extended by libSM $as_me 1.2.2, which was 19467generated by GNU Autoconf 2.68. Invocation command line was 19468 19469 CONFIG_FILES = $CONFIG_FILES 19470 CONFIG_HEADERS = $CONFIG_HEADERS 19471 CONFIG_LINKS = $CONFIG_LINKS 19472 CONFIG_COMMANDS = $CONFIG_COMMANDS 19473 $ $0 $@ 19474 19475on `(hostname || uname -n) 2>/dev/null | sed 1q` 19476" 19477 19478_ACEOF 19479 19480case $ac_config_files in *" 19481"*) set x $ac_config_files; shift; ac_config_files=$*;; 19482esac 19483 19484case $ac_config_headers in *" 19485"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19486esac 19487 19488 19489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19490# Files that config.status was made for. 19491config_files="$ac_config_files" 19492config_headers="$ac_config_headers" 19493config_commands="$ac_config_commands" 19494 19495_ACEOF 19496 19497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19498ac_cs_usage="\ 19499\`$as_me' instantiates files and other configuration actions 19500from templates according to the current configuration. Unless the files 19501and actions are specified as TAGs, all are instantiated by default. 19502 19503Usage: $0 [OPTION]... [TAG]... 19504 19505 -h, --help print this help, then exit 19506 -V, --version print version number and configuration settings, then exit 19507 --config print configuration, then exit 19508 -q, --quiet, --silent 19509 do not print progress messages 19510 -d, --debug don't remove temporary files 19511 --recheck update $as_me by reconfiguring in the same conditions 19512 --file=FILE[:TEMPLATE] 19513 instantiate the configuration file FILE 19514 --header=FILE[:TEMPLATE] 19515 instantiate the configuration header FILE 19516 19517Configuration files: 19518$config_files 19519 19520Configuration headers: 19521$config_headers 19522 19523Configuration commands: 19524$config_commands 19525 19526Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19527 19528_ACEOF 19529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19530ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19531ac_cs_version="\\ 19532libSM config.status 1.2.2 19533configured by $0, generated by GNU Autoconf 2.68, 19534 with options \\"\$ac_cs_config\\" 19535 19536Copyright (C) 2010 Free Software Foundation, Inc. 19537This config.status script is free software; the Free Software Foundation 19538gives unlimited permission to copy, distribute and modify it." 19539 19540ac_pwd='$ac_pwd' 19541srcdir='$srcdir' 19542INSTALL='$INSTALL' 19543MKDIR_P='$MKDIR_P' 19544AWK='$AWK' 19545test -n "\$AWK" || AWK=awk 19546_ACEOF 19547 19548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19549# The default lists apply if the user does not specify any file. 19550ac_need_defaults=: 19551while test $# != 0 19552do 19553 case $1 in 19554 --*=?*) 19555 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19557 ac_shift=: 19558 ;; 19559 --*=) 19560 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19561 ac_optarg= 19562 ac_shift=: 19563 ;; 19564 *) 19565 ac_option=$1 19566 ac_optarg=$2 19567 ac_shift=shift 19568 ;; 19569 esac 19570 19571 case $ac_option in 19572 # Handling of the options. 19573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19574 ac_cs_recheck=: ;; 19575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19576 $as_echo "$ac_cs_version"; exit ;; 19577 --config | --confi | --conf | --con | --co | --c ) 19578 $as_echo "$ac_cs_config"; exit ;; 19579 --debug | --debu | --deb | --de | --d | -d ) 19580 debug=: ;; 19581 --file | --fil | --fi | --f ) 19582 $ac_shift 19583 case $ac_optarg in 19584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19585 '') as_fn_error $? "missing file argument" ;; 19586 esac 19587 as_fn_append CONFIG_FILES " '$ac_optarg'" 19588 ac_need_defaults=false;; 19589 --header | --heade | --head | --hea ) 19590 $ac_shift 19591 case $ac_optarg in 19592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19593 esac 19594 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19595 ac_need_defaults=false;; 19596 --he | --h) 19597 # Conflict between --help and --header 19598 as_fn_error $? "ambiguous option: \`$1' 19599Try \`$0 --help' for more information.";; 19600 --help | --hel | -h ) 19601 $as_echo "$ac_cs_usage"; exit ;; 19602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19603 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19604 ac_cs_silent=: ;; 19605 19606 # This is an error. 19607 -*) as_fn_error $? "unrecognized option: \`$1' 19608Try \`$0 --help' for more information." ;; 19609 19610 *) as_fn_append ac_config_targets " $1" 19611 ac_need_defaults=false ;; 19612 19613 esac 19614 shift 19615done 19616 19617ac_configure_extra_args= 19618 19619if $ac_cs_silent; then 19620 exec 6>/dev/null 19621 ac_configure_extra_args="$ac_configure_extra_args --silent" 19622fi 19623 19624_ACEOF 19625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19626if \$ac_cs_recheck; then 19627 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19628 shift 19629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19630 CONFIG_SHELL='$SHELL' 19631 export CONFIG_SHELL 19632 exec "\$@" 19633fi 19634 19635_ACEOF 19636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19637exec 5>>config.log 19638{ 19639 echo 19640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19641## Running $as_me. ## 19642_ASBOX 19643 $as_echo "$ac_log" 19644} >&5 19645 19646_ACEOF 19647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19648# 19649# INIT-COMMANDS 19650# 19651AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19652 19653 19654# The HP-UX ksh and POSIX shell print the target directory to stdout 19655# if CDPATH is set. 19656(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19657 19658sed_quote_subst='$sed_quote_subst' 19659double_quote_subst='$double_quote_subst' 19660delay_variable_subst='$delay_variable_subst' 19661macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19662macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19663enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19664enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19665pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19666enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19667SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19668ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19669PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19670host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19671host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19672host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19673build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19674build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19675build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19676SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19677Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19678GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19679EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19680FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19681LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19682NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19683LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19684max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19685ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19686exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19687lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19688lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19689lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19690lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19691lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19692reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19693reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19694OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19695deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19696file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19697file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19698want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19699DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19700sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19701AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19702AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19703archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19704STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19705RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19706old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19707old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19708old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19709lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19710CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19711CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19712compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19713GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19714lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19715lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19716lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19717lt_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"`' 19718nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19719lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19720objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19721MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19722lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19723lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19724lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19725lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19726lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19727need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19728MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19729DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19730NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19731LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19732OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19733OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19734libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19735shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19736extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19737archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19738enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19739export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19740whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19741compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19742old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19743old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19744archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19745archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19746module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19747module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19748with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19749allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19750no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19751hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19752hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19753hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19754hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19755hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19756hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19757hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19758inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19759link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19760always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19761export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19762exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19763include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19764prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19765postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19766file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19767variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19768need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19769need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19770version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19771runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19772shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19773shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19774libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19775library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19776soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19777install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19778postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19779postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19780finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19781finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19782hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19783sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19784sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19785hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19786enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19787enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19788enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19789old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19790striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19791 19792LTCC='$LTCC' 19793LTCFLAGS='$LTCFLAGS' 19794compiler='$compiler_DEFAULT' 19795 19796# A function that is used when there is no print builtin or printf. 19797func_fallback_echo () 19798{ 19799 eval 'cat <<_LTECHO_EOF 19800\$1 19801_LTECHO_EOF' 19802} 19803 19804# Quote evaled strings. 19805for var in SHELL \ 19806ECHO \ 19807PATH_SEPARATOR \ 19808SED \ 19809GREP \ 19810EGREP \ 19811FGREP \ 19812LD \ 19813NM \ 19814LN_S \ 19815lt_SP2NL \ 19816lt_NL2SP \ 19817reload_flag \ 19818OBJDUMP \ 19819deplibs_check_method \ 19820file_magic_cmd \ 19821file_magic_glob \ 19822want_nocaseglob \ 19823DLLTOOL \ 19824sharedlib_from_linklib_cmd \ 19825AR \ 19826AR_FLAGS \ 19827archiver_list_spec \ 19828STRIP \ 19829RANLIB \ 19830CC \ 19831CFLAGS \ 19832compiler \ 19833lt_cv_sys_global_symbol_pipe \ 19834lt_cv_sys_global_symbol_to_cdecl \ 19835lt_cv_sys_global_symbol_to_c_name_address \ 19836lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19837nm_file_list_spec \ 19838lt_prog_compiler_no_builtin_flag \ 19839lt_prog_compiler_pic \ 19840lt_prog_compiler_wl \ 19841lt_prog_compiler_static \ 19842lt_cv_prog_compiler_c_o \ 19843need_locks \ 19844MANIFEST_TOOL \ 19845DSYMUTIL \ 19846NMEDIT \ 19847LIPO \ 19848OTOOL \ 19849OTOOL64 \ 19850shrext_cmds \ 19851export_dynamic_flag_spec \ 19852whole_archive_flag_spec \ 19853compiler_needs_object \ 19854with_gnu_ld \ 19855allow_undefined_flag \ 19856no_undefined_flag \ 19857hardcode_libdir_flag_spec \ 19858hardcode_libdir_separator \ 19859exclude_expsyms \ 19860include_expsyms \ 19861file_list_spec \ 19862variables_saved_for_relink \ 19863libname_spec \ 19864library_names_spec \ 19865soname_spec \ 19866install_override_mode \ 19867finish_eval \ 19868old_striplib \ 19869striplib; do 19870 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19871 *[\\\\\\\`\\"\\\$]*) 19872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19873 ;; 19874 *) 19875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19876 ;; 19877 esac 19878done 19879 19880# Double-quote double-evaled strings. 19881for var in reload_cmds \ 19882old_postinstall_cmds \ 19883old_postuninstall_cmds \ 19884old_archive_cmds \ 19885extract_expsyms_cmds \ 19886old_archive_from_new_cmds \ 19887old_archive_from_expsyms_cmds \ 19888archive_cmds \ 19889archive_expsym_cmds \ 19890module_cmds \ 19891module_expsym_cmds \ 19892export_symbols_cmds \ 19893prelink_cmds \ 19894postlink_cmds \ 19895postinstall_cmds \ 19896postuninstall_cmds \ 19897finish_cmds \ 19898sys_lib_search_path_spec \ 19899sys_lib_dlsearch_path_spec; do 19900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19901 *[\\\\\\\`\\"\\\$]*) 19902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19903 ;; 19904 *) 19905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19906 ;; 19907 esac 19908done 19909 19910ac_aux_dir='$ac_aux_dir' 19911xsi_shell='$xsi_shell' 19912lt_shell_append='$lt_shell_append' 19913 19914# See if we are running on zsh, and set the options which allow our 19915# commands through without removal of \ escapes INIT. 19916if test -n "\${ZSH_VERSION+set}" ; then 19917 setopt NO_GLOB_SUBST 19918fi 19919 19920 19921 PACKAGE='$PACKAGE' 19922 VERSION='$VERSION' 19923 TIMESTAMP='$TIMESTAMP' 19924 RM='$RM' 19925 ofile='$ofile' 19926 19927 19928 19929 19930_ACEOF 19931 19932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19933 19934# Handling of arguments. 19935for ac_config_target in $ac_config_targets 19936do 19937 case $ac_config_target in 19938 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19939 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19940 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19942 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19943 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19944 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;; 19945 19946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19947 esac 19948done 19949 19950 19951# If the user did not use the arguments to specify the items to instantiate, 19952# then the envvar interface is used. Set only those that are not. 19953# We use the long form for the default assignment because of an extremely 19954# bizarre bug on SunOS 4.1.3. 19955if $ac_need_defaults; then 19956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19959fi 19960 19961# Have a temporary directory for convenience. Make it in the build tree 19962# simply because there is no reason against having it here, and in addition, 19963# creating and moving files from /tmp can sometimes cause problems. 19964# Hook for its removal unless debugging. 19965# Note that there is a small window in which the directory will not be cleaned: 19966# after its creation but before its name has been assigned to `$tmp'. 19967$debug || 19968{ 19969 tmp= ac_tmp= 19970 trap 'exit_status=$? 19971 : "${ac_tmp:=$tmp}" 19972 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19973' 0 19974 trap 'as_fn_exit 1' 1 2 13 15 19975} 19976# Create a (secure) tmp directory for tmp files. 19977 19978{ 19979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19980 test -d "$tmp" 19981} || 19982{ 19983 tmp=./conf$$-$RANDOM 19984 (umask 077 && mkdir "$tmp") 19985} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19986ac_tmp=$tmp 19987 19988# Set up the scripts for CONFIG_FILES section. 19989# No need to generate them if there are no CONFIG_FILES. 19990# This happens for instance with `./config.status config.h'. 19991if test -n "$CONFIG_FILES"; then 19992 19993 19994ac_cr=`echo X | tr X '\015'` 19995# On cygwin, bash can eat \r inside `` if the user requested igncr. 19996# But we know of no other shell where ac_cr would be empty at this 19997# point, so we can use a bashism as a fallback. 19998if test "x$ac_cr" = x; then 19999 eval ac_cr=\$\'\\r\' 20000fi 20001ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20002if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20003 ac_cs_awk_cr='\\r' 20004else 20005 ac_cs_awk_cr=$ac_cr 20006fi 20007 20008echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20009_ACEOF 20010 20011 20012{ 20013 echo "cat >conf$$subs.awk <<_ACEOF" && 20014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20015 echo "_ACEOF" 20016} >conf$$subs.sh || 20017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20018ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20019ac_delim='%!_!# ' 20020for ac_last_try in false false false false false :; do 20021 . ./conf$$subs.sh || 20022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20023 20024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20025 if test $ac_delim_n = $ac_delim_num; then 20026 break 20027 elif $ac_last_try; then 20028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20029 else 20030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20031 fi 20032done 20033rm -f conf$$subs.sh 20034 20035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20036cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20037_ACEOF 20038sed -n ' 20039h 20040s/^/S["/; s/!.*/"]=/ 20041p 20042g 20043s/^[^!]*!// 20044:repl 20045t repl 20046s/'"$ac_delim"'$// 20047t delim 20048:nl 20049h 20050s/\(.\{148\}\)..*/\1/ 20051t more1 20052s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20053p 20054n 20055b repl 20056:more1 20057s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20058p 20059g 20060s/.\{148\}// 20061t nl 20062:delim 20063h 20064s/\(.\{148\}\)..*/\1/ 20065t more2 20066s/["\\]/\\&/g; s/^/"/; s/$/"/ 20067p 20068b 20069:more2 20070s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20071p 20072g 20073s/.\{148\}// 20074t delim 20075' <conf$$subs.awk | sed ' 20076/^[^""]/{ 20077 N 20078 s/\n// 20079} 20080' >>$CONFIG_STATUS || ac_write_fail=1 20081rm -f conf$$subs.awk 20082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20083_ACAWK 20084cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20085 for (key in S) S_is_set[key] = 1 20086 FS = "" 20087 20088} 20089{ 20090 line = $ 0 20091 nfields = split(line, field, "@") 20092 substed = 0 20093 len = length(field[1]) 20094 for (i = 2; i < nfields; i++) { 20095 key = field[i] 20096 keylen = length(key) 20097 if (S_is_set[key]) { 20098 value = S[key] 20099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20100 len += length(value) + length(field[++i]) 20101 substed = 1 20102 } else 20103 len += 1 + keylen 20104 } 20105 20106 print line 20107} 20108 20109_ACAWK 20110_ACEOF 20111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20112if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20114else 20115 cat 20116fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20118_ACEOF 20119 20120# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20121# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20122# trailing colons and then remove the whole line if VPATH becomes empty 20123# (actually we leave an empty line to preserve line numbers). 20124if test "x$srcdir" = x.; then 20125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20126h 20127s/// 20128s/^/:/ 20129s/[ ]*$/:/ 20130s/:\$(srcdir):/:/g 20131s/:\${srcdir}:/:/g 20132s/:@srcdir@:/:/g 20133s/^:*// 20134s/:*$// 20135x 20136s/\(=[ ]*\).*/\1/ 20137G 20138s/\n// 20139s/^[^=]*=[ ]*$// 20140}' 20141fi 20142 20143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20144fi # test -n "$CONFIG_FILES" 20145 20146# Set up the scripts for CONFIG_HEADERS section. 20147# No need to generate them if there are no CONFIG_HEADERS. 20148# This happens for instance with `./config.status Makefile'. 20149if test -n "$CONFIG_HEADERS"; then 20150cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20151BEGIN { 20152_ACEOF 20153 20154# Transform confdefs.h into an awk script `defines.awk', embedded as 20155# here-document in config.status, that substitutes the proper values into 20156# config.h.in to produce config.h. 20157 20158# Create a delimiter string that does not exist in confdefs.h, to ease 20159# handling of long lines. 20160ac_delim='%!_!# ' 20161for ac_last_try in false false :; do 20162 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20163 if test -z "$ac_tt"; then 20164 break 20165 elif $ac_last_try; then 20166 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20167 else 20168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20169 fi 20170done 20171 20172# For the awk script, D is an array of macro values keyed by name, 20173# likewise P contains macro parameters if any. Preserve backslash 20174# newline sequences. 20175 20176ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20177sed -n ' 20178s/.\{148\}/&'"$ac_delim"'/g 20179t rset 20180:rset 20181s/^[ ]*#[ ]*define[ ][ ]*/ / 20182t def 20183d 20184:def 20185s/\\$// 20186t bsnl 20187s/["\\]/\\&/g 20188s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20189D["\1"]=" \3"/p 20190s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20191d 20192:bsnl 20193s/["\\]/\\&/g 20194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20195D["\1"]=" \3\\\\\\n"\\/p 20196t cont 20197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20198t cont 20199d 20200:cont 20201n 20202s/.\{148\}/&'"$ac_delim"'/g 20203t clear 20204:clear 20205s/\\$// 20206t bsnlc 20207s/["\\]/\\&/g; s/^/"/; s/$/"/p 20208d 20209:bsnlc 20210s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20211b cont 20212' <confdefs.h | sed ' 20213s/'"$ac_delim"'/"\\\ 20214"/g' >>$CONFIG_STATUS || ac_write_fail=1 20215 20216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20217 for (key in D) D_is_set[key] = 1 20218 FS = "" 20219} 20220/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20221 line = \$ 0 20222 split(line, arg, " ") 20223 if (arg[1] == "#") { 20224 defundef = arg[2] 20225 mac1 = arg[3] 20226 } else { 20227 defundef = substr(arg[1], 2) 20228 mac1 = arg[2] 20229 } 20230 split(mac1, mac2, "(") #) 20231 macro = mac2[1] 20232 prefix = substr(line, 1, index(line, defundef) - 1) 20233 if (D_is_set[macro]) { 20234 # Preserve the white space surrounding the "#". 20235 print prefix "define", macro P[macro] D[macro] 20236 next 20237 } else { 20238 # Replace #undef with comments. This is necessary, for example, 20239 # in the case of _POSIX_SOURCE, which is predefined and required 20240 # on some systems where configure will not decide to define it. 20241 if (defundef == "undef") { 20242 print "/*", prefix defundef, macro, "*/" 20243 next 20244 } 20245 } 20246} 20247{ print } 20248_ACAWK 20249_ACEOF 20250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20251 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20252fi # test -n "$CONFIG_HEADERS" 20253 20254 20255eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20256shift 20257for ac_tag 20258do 20259 case $ac_tag in 20260 :[FHLC]) ac_mode=$ac_tag; continue;; 20261 esac 20262 case $ac_mode$ac_tag in 20263 :[FHL]*:*);; 20264 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20265 :[FH]-) ac_tag=-:-;; 20266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20267 esac 20268 ac_save_IFS=$IFS 20269 IFS=: 20270 set x $ac_tag 20271 IFS=$ac_save_IFS 20272 shift 20273 ac_file=$1 20274 shift 20275 20276 case $ac_mode in 20277 :L) ac_source=$1;; 20278 :[FH]) 20279 ac_file_inputs= 20280 for ac_f 20281 do 20282 case $ac_f in 20283 -) ac_f="$ac_tmp/stdin";; 20284 *) # Look for the file first in the build tree, then in the source tree 20285 # (if the path is not absolute). The absolute path cannot be DOS-style, 20286 # because $ac_f cannot contain `:'. 20287 test -f "$ac_f" || 20288 case $ac_f in 20289 [\\/$]*) false;; 20290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20291 esac || 20292 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20293 esac 20294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20295 as_fn_append ac_file_inputs " '$ac_f'" 20296 done 20297 20298 # Let's still pretend it is `configure' which instantiates (i.e., don't 20299 # use $as_me), people would be surprised to read: 20300 # /* config.h. Generated by config.status. */ 20301 configure_input='Generated from '` 20302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20303 `' by configure.' 20304 if test x"$ac_file" != x-; then 20305 configure_input="$ac_file. $configure_input" 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20307$as_echo "$as_me: creating $ac_file" >&6;} 20308 fi 20309 # Neutralize special characters interpreted by sed in replacement strings. 20310 case $configure_input in #( 20311 *\&* | *\|* | *\\* ) 20312 ac_sed_conf_input=`$as_echo "$configure_input" | 20313 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20314 *) ac_sed_conf_input=$configure_input;; 20315 esac 20316 20317 case $ac_tag in 20318 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20320 esac 20321 ;; 20322 esac 20323 20324 ac_dir=`$as_dirname -- "$ac_file" || 20325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20326 X"$ac_file" : 'X\(//\)[^/]' \| \ 20327 X"$ac_file" : 'X\(//\)$' \| \ 20328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20329$as_echo X"$ac_file" | 20330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20331 s//\1/ 20332 q 20333 } 20334 /^X\(\/\/\)[^/].*/{ 20335 s//\1/ 20336 q 20337 } 20338 /^X\(\/\/\)$/{ 20339 s//\1/ 20340 q 20341 } 20342 /^X\(\/\).*/{ 20343 s//\1/ 20344 q 20345 } 20346 s/.*/./; q'` 20347 as_dir="$ac_dir"; as_fn_mkdir_p 20348 ac_builddir=. 20349 20350case "$ac_dir" in 20351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20352*) 20353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20354 # A ".." for each directory in $ac_dir_suffix. 20355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20356 case $ac_top_builddir_sub in 20357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20359 esac ;; 20360esac 20361ac_abs_top_builddir=$ac_pwd 20362ac_abs_builddir=$ac_pwd$ac_dir_suffix 20363# for backward compatibility: 20364ac_top_builddir=$ac_top_build_prefix 20365 20366case $srcdir in 20367 .) # We are building in place. 20368 ac_srcdir=. 20369 ac_top_srcdir=$ac_top_builddir_sub 20370 ac_abs_top_srcdir=$ac_pwd ;; 20371 [\\/]* | ?:[\\/]* ) # Absolute name. 20372 ac_srcdir=$srcdir$ac_dir_suffix; 20373 ac_top_srcdir=$srcdir 20374 ac_abs_top_srcdir=$srcdir ;; 20375 *) # Relative name. 20376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20377 ac_top_srcdir=$ac_top_build_prefix$srcdir 20378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20379esac 20380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20381 20382 20383 case $ac_mode in 20384 :F) 20385 # 20386 # CONFIG_FILE 20387 # 20388 20389 case $INSTALL in 20390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20392 esac 20393 ac_MKDIR_P=$MKDIR_P 20394 case $MKDIR_P in 20395 [\\/$]* | ?:[\\/]* ) ;; 20396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20397 esac 20398_ACEOF 20399 20400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20401# If the template does not know about datarootdir, expand it. 20402# FIXME: This hack should be removed a few years after 2.60. 20403ac_datarootdir_hack=; ac_datarootdir_seen= 20404ac_sed_dataroot=' 20405/datarootdir/ { 20406 p 20407 q 20408} 20409/@datadir@/p 20410/@docdir@/p 20411/@infodir@/p 20412/@localedir@/p 20413/@mandir@/p' 20414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20415*datarootdir*) ac_datarootdir_seen=yes;; 20416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20419_ACEOF 20420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20421 ac_datarootdir_hack=' 20422 s&@datadir@&$datadir&g 20423 s&@docdir@&$docdir&g 20424 s&@infodir@&$infodir&g 20425 s&@localedir@&$localedir&g 20426 s&@mandir@&$mandir&g 20427 s&\\\${datarootdir}&$datarootdir&g' ;; 20428esac 20429_ACEOF 20430 20431# Neutralize VPATH when `$srcdir' = `.'. 20432# Shell code in configure.ac might set extrasub. 20433# FIXME: do we really want to maintain this feature? 20434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20435ac_sed_extra="$ac_vpsub 20436$extrasub 20437_ACEOF 20438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20439:t 20440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20441s|@configure_input@|$ac_sed_conf_input|;t t 20442s&@top_builddir@&$ac_top_builddir_sub&;t t 20443s&@top_build_prefix@&$ac_top_build_prefix&;t t 20444s&@srcdir@&$ac_srcdir&;t t 20445s&@abs_srcdir@&$ac_abs_srcdir&;t t 20446s&@top_srcdir@&$ac_top_srcdir&;t t 20447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20448s&@builddir@&$ac_builddir&;t t 20449s&@abs_builddir@&$ac_abs_builddir&;t t 20450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20451s&@INSTALL@&$ac_INSTALL&;t t 20452s&@MKDIR_P@&$ac_MKDIR_P&;t t 20453$ac_datarootdir_hack 20454" 20455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20456 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20457 20458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20461 "$ac_tmp/out"`; test -z "$ac_out"; } && 20462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20463which seems to be undefined. Please make sure it is defined" >&5 20464$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20465which seems to be undefined. Please make sure it is defined" >&2;} 20466 20467 rm -f "$ac_tmp/stdin" 20468 case $ac_file in 20469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20471 esac \ 20472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20473 ;; 20474 :H) 20475 # 20476 # CONFIG_HEADER 20477 # 20478 if test x"$ac_file" != x-; then 20479 { 20480 $as_echo "/* $configure_input */" \ 20481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20482 } >"$ac_tmp/config.h" \ 20483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20486$as_echo "$as_me: $ac_file is unchanged" >&6;} 20487 else 20488 rm -f "$ac_file" 20489 mv "$ac_tmp/config.h" "$ac_file" \ 20490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20491 fi 20492 else 20493 $as_echo "/* $configure_input */" \ 20494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20495 || as_fn_error $? "could not create -" "$LINENO" 5 20496 fi 20497# Compute "$ac_file"'s index in $config_headers. 20498_am_arg="$ac_file" 20499_am_stamp_count=1 20500for _am_header in $config_headers :; do 20501 case $_am_header in 20502 $_am_arg | $_am_arg:* ) 20503 break ;; 20504 * ) 20505 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20506 esac 20507done 20508echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20509$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20510 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20511 X"$_am_arg" : 'X\(//\)$' \| \ 20512 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20513$as_echo X"$_am_arg" | 20514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20515 s//\1/ 20516 q 20517 } 20518 /^X\(\/\/\)[^/].*/{ 20519 s//\1/ 20520 q 20521 } 20522 /^X\(\/\/\)$/{ 20523 s//\1/ 20524 q 20525 } 20526 /^X\(\/\).*/{ 20527 s//\1/ 20528 q 20529 } 20530 s/.*/./; q'`/stamp-h$_am_stamp_count 20531 ;; 20532 20533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20534$as_echo "$as_me: executing $ac_file commands" >&6;} 20535 ;; 20536 esac 20537 20538 20539 case $ac_file$ac_mode in 20540 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20541 # Older Autoconf quotes --file arguments for eval, but not when files 20542 # are listed without --file. Let's play safe and only enable the eval 20543 # if we detect the quoting. 20544 case $CONFIG_FILES in 20545 *\'*) eval set x "$CONFIG_FILES" ;; 20546 *) set x $CONFIG_FILES ;; 20547 esac 20548 shift 20549 for mf 20550 do 20551 # Strip MF so we end up with the name of the file. 20552 mf=`echo "$mf" | sed -e 's/:.*$//'` 20553 # Check whether this is an Automake generated Makefile or not. 20554 # We used to match only the files named 'Makefile.in', but 20555 # some people rename them; so instead we look at the file content. 20556 # Grep'ing the first line is not enough: some people post-process 20557 # each Makefile.in and add a new line on top of each file to say so. 20558 # Grep'ing the whole file is not good either: AIX grep has a line 20559 # limit of 2048, but all sed's we know have understand at least 4000. 20560 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20561 dirpart=`$as_dirname -- "$mf" || 20562$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20563 X"$mf" : 'X\(//\)[^/]' \| \ 20564 X"$mf" : 'X\(//\)$' \| \ 20565 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20566$as_echo X"$mf" | 20567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20568 s//\1/ 20569 q 20570 } 20571 /^X\(\/\/\)[^/].*/{ 20572 s//\1/ 20573 q 20574 } 20575 /^X\(\/\/\)$/{ 20576 s//\1/ 20577 q 20578 } 20579 /^X\(\/\).*/{ 20580 s//\1/ 20581 q 20582 } 20583 s/.*/./; q'` 20584 else 20585 continue 20586 fi 20587 # Extract the definition of DEPDIR, am__include, and am__quote 20588 # from the Makefile without running 'make'. 20589 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20590 test -z "$DEPDIR" && continue 20591 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20592 test -z "$am__include" && continue 20593 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20594 # Find all dependency output files, they are included files with 20595 # $(DEPDIR) in their names. We invoke sed twice because it is the 20596 # simplest approach to changing $(DEPDIR) to its actual value in the 20597 # expansion. 20598 for file in `sed -n " 20599 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20600 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20601 # Make sure the directory exists. 20602 test -f "$dirpart/$file" && continue 20603 fdir=`$as_dirname -- "$file" || 20604$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20605 X"$file" : 'X\(//\)[^/]' \| \ 20606 X"$file" : 'X\(//\)$' \| \ 20607 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20608$as_echo X"$file" | 20609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20610 s//\1/ 20611 q 20612 } 20613 /^X\(\/\/\)[^/].*/{ 20614 s//\1/ 20615 q 20616 } 20617 /^X\(\/\/\)$/{ 20618 s//\1/ 20619 q 20620 } 20621 /^X\(\/\).*/{ 20622 s//\1/ 20623 q 20624 } 20625 s/.*/./; q'` 20626 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20627 # echo "creating $dirpart/$file" 20628 echo '# dummy' > "$dirpart/$file" 20629 done 20630 done 20631} 20632 ;; 20633 "libtool":C) 20634 20635 # See if we are running on zsh, and set the options which allow our 20636 # commands through without removal of \ escapes. 20637 if test -n "${ZSH_VERSION+set}" ; then 20638 setopt NO_GLOB_SUBST 20639 fi 20640 20641 cfgfile="${ofile}T" 20642 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20643 $RM "$cfgfile" 20644 20645 cat <<_LT_EOF >> "$cfgfile" 20646#! $SHELL 20647 20648# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20649# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20650# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20651# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20652# 20653# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20654# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20655# Foundation, Inc. 20656# Written by Gordon Matzigkeit, 1996 20657# 20658# This file is part of GNU Libtool. 20659# 20660# GNU Libtool is free software; you can redistribute it and/or 20661# modify it under the terms of the GNU General Public License as 20662# published by the Free Software Foundation; either version 2 of 20663# the License, or (at your option) any later version. 20664# 20665# As a special exception to the GNU General Public License, 20666# if you distribute this file as part of a program or library that 20667# is built using GNU Libtool, you may include this file under the 20668# same distribution terms that you use for the rest of that program. 20669# 20670# GNU Libtool is distributed in the hope that it will be useful, 20671# but WITHOUT ANY WARRANTY; without even the implied warranty of 20672# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20673# GNU General Public License for more details. 20674# 20675# You should have received a copy of the GNU General Public License 20676# along with GNU Libtool; see the file COPYING. If not, a copy 20677# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20678# obtained by writing to the Free Software Foundation, Inc., 20679# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20680 20681 20682# The names of the tagged configurations supported by this script. 20683available_tags="" 20684 20685# ### BEGIN LIBTOOL CONFIG 20686 20687# Which release of libtool.m4 was used? 20688macro_version=$macro_version 20689macro_revision=$macro_revision 20690 20691# Whether or not to build shared libraries. 20692build_libtool_libs=$enable_shared 20693 20694# Whether or not to build static libraries. 20695build_old_libs=$enable_static 20696 20697# What type of objects to build. 20698pic_mode=$pic_mode 20699 20700# Whether or not to optimize for fast installation. 20701fast_install=$enable_fast_install 20702 20703# Shell to use when invoking shell scripts. 20704SHELL=$lt_SHELL 20705 20706# An echo program that protects backslashes. 20707ECHO=$lt_ECHO 20708 20709# The PATH separator for the build system. 20710PATH_SEPARATOR=$lt_PATH_SEPARATOR 20711 20712# The host system. 20713host_alias=$host_alias 20714host=$host 20715host_os=$host_os 20716 20717# The build system. 20718build_alias=$build_alias 20719build=$build 20720build_os=$build_os 20721 20722# A sed program that does not truncate output. 20723SED=$lt_SED 20724 20725# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20726Xsed="\$SED -e 1s/^X//" 20727 20728# A grep program that handles long lines. 20729GREP=$lt_GREP 20730 20731# An ERE matcher. 20732EGREP=$lt_EGREP 20733 20734# A literal string matcher. 20735FGREP=$lt_FGREP 20736 20737# A BSD- or MS-compatible name lister. 20738NM=$lt_NM 20739 20740# Whether we need soft or hard links. 20741LN_S=$lt_LN_S 20742 20743# What is the maximum length of a command? 20744max_cmd_len=$max_cmd_len 20745 20746# Object file suffix (normally "o"). 20747objext=$ac_objext 20748 20749# Executable file suffix (normally ""). 20750exeext=$exeext 20751 20752# whether the shell understands "unset". 20753lt_unset=$lt_unset 20754 20755# turn spaces into newlines. 20756SP2NL=$lt_lt_SP2NL 20757 20758# turn newlines into spaces. 20759NL2SP=$lt_lt_NL2SP 20760 20761# convert \$build file names to \$host format. 20762to_host_file_cmd=$lt_cv_to_host_file_cmd 20763 20764# convert \$build files to toolchain format. 20765to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20766 20767# An object symbol dumper. 20768OBJDUMP=$lt_OBJDUMP 20769 20770# Method to check whether dependent libraries are shared objects. 20771deplibs_check_method=$lt_deplibs_check_method 20772 20773# Command to use when deplibs_check_method = "file_magic". 20774file_magic_cmd=$lt_file_magic_cmd 20775 20776# How to find potential files when deplibs_check_method = "file_magic". 20777file_magic_glob=$lt_file_magic_glob 20778 20779# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20780want_nocaseglob=$lt_want_nocaseglob 20781 20782# DLL creation program. 20783DLLTOOL=$lt_DLLTOOL 20784 20785# Command to associate shared and link libraries. 20786sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20787 20788# The archiver. 20789AR=$lt_AR 20790 20791# Flags to create an archive. 20792AR_FLAGS=$lt_AR_FLAGS 20793 20794# How to feed a file listing to the archiver. 20795archiver_list_spec=$lt_archiver_list_spec 20796 20797# A symbol stripping program. 20798STRIP=$lt_STRIP 20799 20800# Commands used to install an old-style archive. 20801RANLIB=$lt_RANLIB 20802old_postinstall_cmds=$lt_old_postinstall_cmds 20803old_postuninstall_cmds=$lt_old_postuninstall_cmds 20804 20805# Whether to use a lock for old archive extraction. 20806lock_old_archive_extraction=$lock_old_archive_extraction 20807 20808# A C compiler. 20809LTCC=$lt_CC 20810 20811# LTCC compiler flags. 20812LTCFLAGS=$lt_CFLAGS 20813 20814# Take the output of nm and produce a listing of raw symbols and C names. 20815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20816 20817# Transform the output of nm in a proper C declaration. 20818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20819 20820# Transform the output of nm in a C name address pair. 20821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20822 20823# Transform the output of nm in a C name address pair when lib prefix is needed. 20824global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20825 20826# Specify filename containing input files for \$NM. 20827nm_file_list_spec=$lt_nm_file_list_spec 20828 20829# The root where to search for dependent libraries,and in which our libraries should be installed. 20830lt_sysroot=$lt_sysroot 20831 20832# The name of the directory that contains temporary libtool files. 20833objdir=$objdir 20834 20835# Used to examine libraries when file_magic_cmd begins with "file". 20836MAGIC_CMD=$MAGIC_CMD 20837 20838# Must we lock files when doing compilation? 20839need_locks=$lt_need_locks 20840 20841# Manifest tool. 20842MANIFEST_TOOL=$lt_MANIFEST_TOOL 20843 20844# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20845DSYMUTIL=$lt_DSYMUTIL 20846 20847# Tool to change global to local symbols on Mac OS X. 20848NMEDIT=$lt_NMEDIT 20849 20850# Tool to manipulate fat objects and archives on Mac OS X. 20851LIPO=$lt_LIPO 20852 20853# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20854OTOOL=$lt_OTOOL 20855 20856# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20857OTOOL64=$lt_OTOOL64 20858 20859# Old archive suffix (normally "a"). 20860libext=$libext 20861 20862# Shared library suffix (normally ".so"). 20863shrext_cmds=$lt_shrext_cmds 20864 20865# The commands to extract the exported symbol list from a shared archive. 20866extract_expsyms_cmds=$lt_extract_expsyms_cmds 20867 20868# Variables whose values should be saved in libtool wrapper scripts and 20869# restored at link time. 20870variables_saved_for_relink=$lt_variables_saved_for_relink 20871 20872# Do we need the "lib" prefix for modules? 20873need_lib_prefix=$need_lib_prefix 20874 20875# Do we need a version for libraries? 20876need_version=$need_version 20877 20878# Library versioning type. 20879version_type=$version_type 20880 20881# Shared library runtime path variable. 20882runpath_var=$runpath_var 20883 20884# Shared library path variable. 20885shlibpath_var=$shlibpath_var 20886 20887# Is shlibpath searched before the hard-coded library search path? 20888shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20889 20890# Format of library name prefix. 20891libname_spec=$lt_libname_spec 20892 20893# List of archive names. First name is the real one, the rest are links. 20894# The last name is the one that the linker finds with -lNAME 20895library_names_spec=$lt_library_names_spec 20896 20897# The coded name of the library, if different from the real name. 20898soname_spec=$lt_soname_spec 20899 20900# Permission mode override for installation of shared libraries. 20901install_override_mode=$lt_install_override_mode 20902 20903# Command to use after installation of a shared archive. 20904postinstall_cmds=$lt_postinstall_cmds 20905 20906# Command to use after uninstallation of a shared archive. 20907postuninstall_cmds=$lt_postuninstall_cmds 20908 20909# Commands used to finish a libtool library installation in a directory. 20910finish_cmds=$lt_finish_cmds 20911 20912# As "finish_cmds", except a single script fragment to be evaled but 20913# not shown. 20914finish_eval=$lt_finish_eval 20915 20916# Whether we should hardcode library paths into libraries. 20917hardcode_into_libs=$hardcode_into_libs 20918 20919# Compile-time system search path for libraries. 20920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20921 20922# Run-time system search path for libraries. 20923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20924 20925# Whether dlopen is supported. 20926dlopen_support=$enable_dlopen 20927 20928# Whether dlopen of programs is supported. 20929dlopen_self=$enable_dlopen_self 20930 20931# Whether dlopen of statically linked programs is supported. 20932dlopen_self_static=$enable_dlopen_self_static 20933 20934# Commands to strip libraries. 20935old_striplib=$lt_old_striplib 20936striplib=$lt_striplib 20937 20938 20939# The linker used to build libraries. 20940LD=$lt_LD 20941 20942# How to create reloadable object files. 20943reload_flag=$lt_reload_flag 20944reload_cmds=$lt_reload_cmds 20945 20946# Commands used to build an old-style archive. 20947old_archive_cmds=$lt_old_archive_cmds 20948 20949# A language specific compiler. 20950CC=$lt_compiler 20951 20952# Is the compiler the GNU compiler? 20953with_gcc=$GCC 20954 20955# Compiler flag to turn off builtin functions. 20956no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20957 20958# Additional compiler flags for building library objects. 20959pic_flag=$lt_lt_prog_compiler_pic 20960 20961# How to pass a linker flag through the compiler. 20962wl=$lt_lt_prog_compiler_wl 20963 20964# Compiler flag to prevent dynamic linking. 20965link_static_flag=$lt_lt_prog_compiler_static 20966 20967# Does compiler simultaneously support -c and -o options? 20968compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20969 20970# Whether or not to add -lc for building shared libraries. 20971build_libtool_need_lc=$archive_cmds_need_lc 20972 20973# Whether or not to disallow shared libs when runtime libs are static. 20974allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20975 20976# Compiler flag to allow reflexive dlopens. 20977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20978 20979# Compiler flag to generate shared objects directly from archives. 20980whole_archive_flag_spec=$lt_whole_archive_flag_spec 20981 20982# Whether the compiler copes with passing no objects directly. 20983compiler_needs_object=$lt_compiler_needs_object 20984 20985# Create an old-style archive from a shared archive. 20986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20987 20988# Create a temporary old-style archive to link instead of a shared archive. 20989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20990 20991# Commands used to build a shared archive. 20992archive_cmds=$lt_archive_cmds 20993archive_expsym_cmds=$lt_archive_expsym_cmds 20994 20995# Commands used to build a loadable module if different from building 20996# a shared archive. 20997module_cmds=$lt_module_cmds 20998module_expsym_cmds=$lt_module_expsym_cmds 20999 21000# Whether we are building with GNU ld or not. 21001with_gnu_ld=$lt_with_gnu_ld 21002 21003# Flag that allows shared libraries with undefined symbols to be built. 21004allow_undefined_flag=$lt_allow_undefined_flag 21005 21006# Flag that enforces no undefined symbols. 21007no_undefined_flag=$lt_no_undefined_flag 21008 21009# Flag to hardcode \$libdir into a binary during linking. 21010# This must work even if \$libdir does not exist 21011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21012 21013# Whether we need a single "-rpath" flag with a separated argument. 21014hardcode_libdir_separator=$lt_hardcode_libdir_separator 21015 21016# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21017# DIR into the resulting binary. 21018hardcode_direct=$hardcode_direct 21019 21020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21021# DIR into the resulting binary and the resulting library dependency is 21022# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21023# library is relocated. 21024hardcode_direct_absolute=$hardcode_direct_absolute 21025 21026# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21027# into the resulting binary. 21028hardcode_minus_L=$hardcode_minus_L 21029 21030# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21031# into the resulting binary. 21032hardcode_shlibpath_var=$hardcode_shlibpath_var 21033 21034# Set to "yes" if building a shared library automatically hardcodes DIR 21035# into the library and all subsequent libraries and executables linked 21036# against it. 21037hardcode_automatic=$hardcode_automatic 21038 21039# Set to yes if linker adds runtime paths of dependent libraries 21040# to runtime path list. 21041inherit_rpath=$inherit_rpath 21042 21043# Whether libtool must link a program against all its dependency libraries. 21044link_all_deplibs=$link_all_deplibs 21045 21046# Set to "yes" if exported symbols are required. 21047always_export_symbols=$always_export_symbols 21048 21049# The commands to list exported symbols. 21050export_symbols_cmds=$lt_export_symbols_cmds 21051 21052# Symbols that should not be listed in the preloaded symbols. 21053exclude_expsyms=$lt_exclude_expsyms 21054 21055# Symbols that must always be exported. 21056include_expsyms=$lt_include_expsyms 21057 21058# Commands necessary for linking programs (against libraries) with templates. 21059prelink_cmds=$lt_prelink_cmds 21060 21061# Commands necessary for finishing linking programs. 21062postlink_cmds=$lt_postlink_cmds 21063 21064# Specify filename containing input files. 21065file_list_spec=$lt_file_list_spec 21066 21067# How to hardcode a shared library path into an executable. 21068hardcode_action=$hardcode_action 21069 21070# ### END LIBTOOL CONFIG 21071 21072_LT_EOF 21073 21074 case $host_os in 21075 aix3*) 21076 cat <<\_LT_EOF >> "$cfgfile" 21077# AIX sometimes has problems with the GCC collect2 program. For some 21078# reason, if we set the COLLECT_NAMES environment variable, the problems 21079# vanish in a puff of smoke. 21080if test "X${COLLECT_NAMES+set}" != Xset; then 21081 COLLECT_NAMES= 21082 export COLLECT_NAMES 21083fi 21084_LT_EOF 21085 ;; 21086 esac 21087 21088 21089ltmain="$ac_aux_dir/ltmain.sh" 21090 21091 21092 # We use sed instead of cat because bash on DJGPP gets confused if 21093 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21094 # text mode, it properly converts lines to CR/LF. This bash problem 21095 # is reportedly fixed, but why not run on old versions too? 21096 sed '$q' "$ltmain" >> "$cfgfile" \ 21097 || (rm -f "$cfgfile"; exit 1) 21098 21099 if test x"$xsi_shell" = xyes; then 21100 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21101func_dirname ()\ 21102{\ 21103\ case ${1} in\ 21104\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21105\ * ) func_dirname_result="${3}" ;;\ 21106\ esac\ 21107} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21108 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21110test 0 -eq $? || _lt_function_replace_fail=: 21111 21112 21113 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21114func_basename ()\ 21115{\ 21116\ func_basename_result="${1##*/}"\ 21117} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21118 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21120test 0 -eq $? || _lt_function_replace_fail=: 21121 21122 21123 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21124func_dirname_and_basename ()\ 21125{\ 21126\ case ${1} in\ 21127\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21128\ * ) func_dirname_result="${3}" ;;\ 21129\ esac\ 21130\ func_basename_result="${1##*/}"\ 21131} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21132 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21134test 0 -eq $? || _lt_function_replace_fail=: 21135 21136 21137 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21138func_stripname ()\ 21139{\ 21140\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21141\ # positional parameters, so assign one to ordinary parameter first.\ 21142\ func_stripname_result=${3}\ 21143\ func_stripname_result=${func_stripname_result#"${1}"}\ 21144\ func_stripname_result=${func_stripname_result%"${2}"}\ 21145} # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21152func_split_long_opt ()\ 21153{\ 21154\ func_split_long_opt_name=${1%%=*}\ 21155\ func_split_long_opt_arg=${1#*=}\ 21156} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21157 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21158 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21159test 0 -eq $? || _lt_function_replace_fail=: 21160 21161 21162 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21163func_split_short_opt ()\ 21164{\ 21165\ func_split_short_opt_arg=${1#??}\ 21166\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21167} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21168 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21170test 0 -eq $? || _lt_function_replace_fail=: 21171 21172 21173 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21174func_lo2o ()\ 21175{\ 21176\ case ${1} in\ 21177\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21178\ *) func_lo2o_result=${1} ;;\ 21179\ esac\ 21180} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21181 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21183test 0 -eq $? || _lt_function_replace_fail=: 21184 21185 21186 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21187func_xform ()\ 21188{\ 21189 func_xform_result=${1%.*}.lo\ 21190} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21191 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21193test 0 -eq $? || _lt_function_replace_fail=: 21194 21195 21196 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21197func_arith ()\ 21198{\ 21199 func_arith_result=$(( $* ))\ 21200} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21201 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21203test 0 -eq $? || _lt_function_replace_fail=: 21204 21205 21206 sed -e '/^func_len ()$/,/^} # func_len /c\ 21207func_len ()\ 21208{\ 21209 func_len_result=${#1}\ 21210} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21211 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21213test 0 -eq $? || _lt_function_replace_fail=: 21214 21215fi 21216 21217if test x"$lt_shell_append" = xyes; then 21218 sed -e '/^func_append ()$/,/^} # func_append /c\ 21219func_append ()\ 21220{\ 21221 eval "${1}+=\\${2}"\ 21222} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21223 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21225test 0 -eq $? || _lt_function_replace_fail=: 21226 21227 21228 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21229func_append_quoted ()\ 21230{\ 21231\ func_quote_for_eval "${2}"\ 21232\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21233} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21234 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21236test 0 -eq $? || _lt_function_replace_fail=: 21237 21238 21239 # Save a `func_append' function call where possible by direct use of '+=' 21240 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21241 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21243 test 0 -eq $? || _lt_function_replace_fail=: 21244else 21245 # Save a `func_append' function call even when '+=' is not available 21246 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21247 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21249 test 0 -eq $? || _lt_function_replace_fail=: 21250fi 21251 21252if test x"$_lt_function_replace_fail" = x":"; then 21253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21254$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21255fi 21256 21257 21258 mv -f "$cfgfile" "$ofile" || 21259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21260 chmod +x "$ofile" 21261 21262 ;; 21263 21264 esac 21265done # for ac_tag 21266 21267 21268as_fn_exit 0 21269_ACEOF 21270ac_clean_files=$ac_clean_files_save 21271 21272test $ac_write_fail = 0 || 21273 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21274 21275 21276# configure is writing to config.log, and then calls config.status. 21277# config.status does its own redirection, appending to config.log. 21278# Unfortunately, on DOS this fails, as config.log is still kept open 21279# by configure, so config.status won't be able to write to it; its 21280# output is simply discarded. So we exec the FD to /dev/null, 21281# effectively closing config.log, so it can be properly (re)opened and 21282# appended to by config.status. When coming back to configure, we 21283# need to make the FD available again. 21284if test "$no_create" != yes; then 21285 ac_cs_success=: 21286 ac_config_status_args= 21287 test "$silent" = yes && 21288 ac_config_status_args="$ac_config_status_args --quiet" 21289 exec 5>/dev/null 21290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21291 exec 5>>config.log 21292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21293 # would make configure fail if this is the last instruction. 21294 $ac_cs_success || as_fn_exit 1 21295fi 21296if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21298$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21299fi 21300 21301