configure revision 3c15da26
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libSM 1.2.1. 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.1' 635PACKAGE_STRING='libSM 1.2.1' 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 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706MAN_SUBSTS 707XORG_MAN_PAGE 708ADMIN_MAN_DIR 709DRIVER_MAN_DIR 710MISC_MAN_DIR 711FILE_MAN_DIR 712LIB_MAN_DIR 713APP_MAN_DIR 714ADMIN_MAN_SUFFIX 715DRIVER_MAN_SUFFIX 716MISC_MAN_SUFFIX 717FILE_MAN_SUFFIX 718LIB_MAN_SUFFIX 719APP_MAN_SUFFIX 720INSTALL_CMD 721PKG_CONFIG 722CHANGELOG_CMD 723STRICT_CFLAGS 724CWARNFLAGS 725BASE_CFLAGS 726CPP 727OTOOL64 728OTOOL 729LIPO 730NMEDIT 731DSYMUTIL 732MANIFEST_TOOL 733RANLIB 734ac_ct_AR 735AR 736DLLTOOL 737OBJDUMP 738LN_S 739NM 740ac_ct_DUMPBIN 741DUMPBIN 742LD 743FGREP 744EGREP 745GREP 746SED 747am__fastdepCC_FALSE 748am__fastdepCC_TRUE 749CCDEPMODE 750AMDEPBACKSLASH 751AMDEP_FALSE 752AMDEP_TRUE 753am__quote 754am__include 755DEPDIR 756OBJEXT 757EXEEXT 758ac_ct_CC 759CPPFLAGS 760LDFLAGS 761CFLAGS 762CC 763host_os 764host_vendor 765host_cpu 766host 767build_os 768build_vendor 769build_cpu 770build 771LIBTOOL 772MAINT 773MAINTAINER_MODE_FALSE 774MAINTAINER_MODE_TRUE 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_maintainer_mode 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_silent_rules 851enable_docs 852with_xmlto 853with_fop 854with_xsltproc 855enable_unix_transport 856enable_tcp_transport 857enable_ipv6 858enable_local_transport 859with_libuuid 860' 861 ac_precious_vars='build_alias 862host_alias 863target_alias 864CC 865CFLAGS 866LDFLAGS 867LIBS 868CPPFLAGS 869CPP 870PKG_CONFIG 871XMLTO 872FOP 873XSLTPROC 874SM_CFLAGS 875SM_LIBS 876LIBUUID_CFLAGS 877LIBUUID_LIBS' 878 879 880# Initialize some variables set by options. 881ac_init_help= 882ac_init_version=false 883ac_unrecognized_opts= 884ac_unrecognized_sep= 885# The variables have the same names as the options, with 886# dashes changed to underlines. 887cache_file=/dev/null 888exec_prefix=NONE 889no_create= 890no_recursion= 891prefix=NONE 892program_prefix=NONE 893program_suffix=NONE 894program_transform_name=s,x,x, 895silent= 896site= 897srcdir= 898verbose= 899x_includes=NONE 900x_libraries=NONE 901 902# Installation directory options. 903# These are left unexpanded so users can "make install exec_prefix=/foo" 904# and all the variables that are supposed to be based on exec_prefix 905# by default will actually change. 906# Use braces instead of parens because sh, perl, etc. also accept them. 907# (The list follows the same order as the GNU Coding Standards.) 908bindir='${exec_prefix}/bin' 909sbindir='${exec_prefix}/sbin' 910libexecdir='${exec_prefix}/libexec' 911datarootdir='${prefix}/share' 912datadir='${datarootdir}' 913sysconfdir='${prefix}/etc' 914sharedstatedir='${prefix}/com' 915localstatedir='${prefix}/var' 916includedir='${prefix}/include' 917oldincludedir='/usr/include' 918docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 919infodir='${datarootdir}/info' 920htmldir='${docdir}' 921dvidir='${docdir}' 922pdfdir='${docdir}' 923psdir='${docdir}' 924libdir='${exec_prefix}/lib' 925localedir='${datarootdir}/locale' 926mandir='${datarootdir}/man' 927 928ac_prev= 929ac_dashdash= 930for ac_option 931do 932 # If the previous option needs an argument, assign it. 933 if test -n "$ac_prev"; then 934 eval $ac_prev=\$ac_option 935 ac_prev= 936 continue 937 fi 938 939 case $ac_option in 940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 941 *=) ac_optarg= ;; 942 *) ac_optarg=yes ;; 943 esac 944 945 # Accept the important Cygnus configure options, so we can diagnose typos. 946 947 case $ac_dashdash$ac_option in 948 --) 949 ac_dashdash=yes ;; 950 951 -bindir | --bindir | --bindi | --bind | --bin | --bi) 952 ac_prev=bindir ;; 953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 954 bindir=$ac_optarg ;; 955 956 -build | --build | --buil | --bui | --bu) 957 ac_prev=build_alias ;; 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 959 build_alias=$ac_optarg ;; 960 961 -cache-file | --cache-file | --cache-fil | --cache-fi \ 962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 963 ac_prev=cache_file ;; 964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 966 cache_file=$ac_optarg ;; 967 968 --config-cache | -C) 969 cache_file=config.cache ;; 970 971 -datadir | --datadir | --datadi | --datad) 972 ac_prev=datadir ;; 973 -datadir=* | --datadir=* | --datadi=* | --datad=*) 974 datadir=$ac_optarg ;; 975 976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 977 | --dataroo | --dataro | --datar) 978 ac_prev=datarootdir ;; 979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 981 datarootdir=$ac_optarg ;; 982 983 -disable-* | --disable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: $ac_useropt" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992"enable_$ac_useropt" 993"*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=no ;; 998 999 -docdir | --docdir | --docdi | --doc | --do) 1000 ac_prev=docdir ;; 1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1002 docdir=$ac_optarg ;; 1003 1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1005 ac_prev=dvidir ;; 1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1007 dvidir=$ac_optarg ;; 1008 1009 -enable-* | --enable-*) 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1013 as_fn_error $? "invalid feature name: $ac_useropt" 1014 ac_useropt_orig=$ac_useropt 1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1016 case $ac_user_opts in 1017 *" 1018"enable_$ac_useropt" 1019"*) ;; 1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1021 ac_unrecognized_sep=', ';; 1022 esac 1023 eval enable_$ac_useropt=\$ac_optarg ;; 1024 1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1027 | --exec | --exe | --ex) 1028 ac_prev=exec_prefix ;; 1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1031 | --exec=* | --exe=* | --ex=*) 1032 exec_prefix=$ac_optarg ;; 1033 1034 -gas | --gas | --ga | --g) 1035 # Obsolete; use --with-gas. 1036 with_gas=yes ;; 1037 1038 -help | --help | --hel | --he | -h) 1039 ac_init_help=long ;; 1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1041 ac_init_help=recursive ;; 1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1043 ac_init_help=short ;; 1044 1045 -host | --host | --hos | --ho) 1046 ac_prev=host_alias ;; 1047 -host=* | --host=* | --hos=* | --ho=*) 1048 host_alias=$ac_optarg ;; 1049 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1051 ac_prev=htmldir ;; 1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1053 | --ht=*) 1054 htmldir=$ac_optarg ;; 1055 1056 -includedir | --includedir | --includedi | --included | --include \ 1057 | --includ | --inclu | --incl | --inc) 1058 ac_prev=includedir ;; 1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1060 | --includ=* | --inclu=* | --incl=* | --inc=*) 1061 includedir=$ac_optarg ;; 1062 1063 -infodir | --infodir | --infodi | --infod | --info | --inf) 1064 ac_prev=infodir ;; 1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1066 infodir=$ac_optarg ;; 1067 1068 -libdir | --libdir | --libdi | --libd) 1069 ac_prev=libdir ;; 1070 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1071 libdir=$ac_optarg ;; 1072 1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1074 | --libexe | --libex | --libe) 1075 ac_prev=libexecdir ;; 1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1077 | --libexe=* | --libex=* | --libe=*) 1078 libexecdir=$ac_optarg ;; 1079 1080 -localedir | --localedir | --localedi | --localed | --locale) 1081 ac_prev=localedir ;; 1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1083 localedir=$ac_optarg ;; 1084 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1086 | --localstate | --localstat | --localsta | --localst | --locals) 1087 ac_prev=localstatedir ;; 1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1090 localstatedir=$ac_optarg ;; 1091 1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1093 ac_prev=mandir ;; 1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1095 mandir=$ac_optarg ;; 1096 1097 -nfp | --nfp | --nf) 1098 # Obsolete; use --without-fp. 1099 with_fp=no ;; 1100 1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1102 | --no-cr | --no-c | -n) 1103 no_create=yes ;; 1104 1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1107 no_recursion=yes ;; 1108 1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1111 | --oldin | --oldi | --old | --ol | --o) 1112 ac_prev=oldincludedir ;; 1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1116 oldincludedir=$ac_optarg ;; 1117 1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1119 ac_prev=prefix ;; 1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1121 prefix=$ac_optarg ;; 1122 1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1124 | --program-pre | --program-pr | --program-p) 1125 ac_prev=program_prefix ;; 1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1128 program_prefix=$ac_optarg ;; 1129 1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1131 | --program-suf | --program-su | --program-s) 1132 ac_prev=program_suffix ;; 1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1135 program_suffix=$ac_optarg ;; 1136 1137 -program-transform-name | --program-transform-name \ 1138 | --program-transform-nam | --program-transform-na \ 1139 | --program-transform-n | --program-transform- \ 1140 | --program-transform | --program-transfor \ 1141 | --program-transfo | --program-transf \ 1142 | --program-trans | --program-tran \ 1143 | --progr-tra | --program-tr | --program-t) 1144 ac_prev=program_transform_name ;; 1145 -program-transform-name=* | --program-transform-name=* \ 1146 | --program-transform-nam=* | --program-transform-na=* \ 1147 | --program-transform-n=* | --program-transform-=* \ 1148 | --program-transform=* | --program-transfor=* \ 1149 | --program-transfo=* | --program-transf=* \ 1150 | --program-trans=* | --program-tran=* \ 1151 | --progr-tra=* | --program-tr=* | --program-t=*) 1152 program_transform_name=$ac_optarg ;; 1153 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1155 ac_prev=pdfdir ;; 1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1157 pdfdir=$ac_optarg ;; 1158 1159 -psdir | --psdir | --psdi | --psd | --ps) 1160 ac_prev=psdir ;; 1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1162 psdir=$ac_optarg ;; 1163 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1165 | -silent | --silent | --silen | --sile | --sil) 1166 silent=yes ;; 1167 1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1169 ac_prev=sbindir ;; 1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1171 | --sbi=* | --sb=*) 1172 sbindir=$ac_optarg ;; 1173 1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1176 | --sharedst | --shareds | --shared | --share | --shar \ 1177 | --sha | --sh) 1178 ac_prev=sharedstatedir ;; 1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1182 | --sha=* | --sh=*) 1183 sharedstatedir=$ac_optarg ;; 1184 1185 -site | --site | --sit) 1186 ac_prev=site ;; 1187 -site=* | --site=* | --sit=*) 1188 site=$ac_optarg ;; 1189 1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1191 ac_prev=srcdir ;; 1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1193 srcdir=$ac_optarg ;; 1194 1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1196 | --syscon | --sysco | --sysc | --sys | --sy) 1197 ac_prev=sysconfdir ;; 1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1200 sysconfdir=$ac_optarg ;; 1201 1202 -target | --target | --targe | --targ | --tar | --ta | --t) 1203 ac_prev=target_alias ;; 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1205 target_alias=$ac_optarg ;; 1206 1207 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1208 verbose=yes ;; 1209 1210 -version | --version | --versio | --versi | --vers | -V) 1211 ac_init_version=: ;; 1212 1213 -with-* | --with-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=\$ac_optarg ;; 1228 1229 -without-* | --without-*) 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1231 # Reject names that are not valid shell variable names. 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1233 as_fn_error $? "invalid package name: $ac_useropt" 1234 ac_useropt_orig=$ac_useropt 1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1236 case $ac_user_opts in 1237 *" 1238"with_$ac_useropt" 1239"*) ;; 1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1241 ac_unrecognized_sep=', ';; 1242 esac 1243 eval with_$ac_useropt=no ;; 1244 1245 --x) 1246 # Obsolete; use --with-x. 1247 with_x=yes ;; 1248 1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1250 | --x-incl | --x-inc | --x-in | --x-i) 1251 ac_prev=x_includes ;; 1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1254 x_includes=$ac_optarg ;; 1255 1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1258 ac_prev=x_libraries ;; 1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1261 x_libraries=$ac_optarg ;; 1262 1263 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1264Try \`$0 --help' for more information" 1265 ;; 1266 1267 *=*) 1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1269 # Reject names that are not valid shell variable names. 1270 case $ac_envvar in #( 1271 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1273 esac 1274 eval $ac_envvar=\$ac_optarg 1275 export $ac_envvar ;; 1276 1277 *) 1278 # FIXME: should be removed in autoconf 3.0. 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1283 ;; 1284 1285 esac 1286done 1287 1288if test -n "$ac_prev"; then 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1290 as_fn_error $? "missing argument to $ac_option" 1291fi 1292 1293if test -n "$ac_unrecognized_opts"; then 1294 case $enable_option_checking in 1295 no) ;; 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1298 esac 1299fi 1300 1301# Check all directory arguments for consistency. 1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1303 datadir sysconfdir sharedstatedir localstatedir includedir \ 1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1305 libdir localedir mandir 1306do 1307 eval ac_val=\$$ac_var 1308 # Remove trailing slashes. 1309 case $ac_val in 1310 */ ) 1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1312 eval $ac_var=\$ac_val;; 1313 esac 1314 # Be sure to have absolute directory names. 1315 case $ac_val in 1316 [\\/$]* | ?:[\\/]* ) continue;; 1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1318 esac 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1320done 1321 1322# There might be people who depend on the old broken behavior: `$host' 1323# used to hold the argument of --host etc. 1324# FIXME: To remove some day. 1325build=$build_alias 1326host=$host_alias 1327target=$target_alias 1328 1329# FIXME: To remove some day. 1330if test "x$host_alias" != x; then 1331 if test "x$build_alias" = x; then 1332 cross_compiling=maybe 1333 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1334 If a cross compiler is detected then cross compile mode will be used" >&2 1335 elif test "x$build_alias" != "x$host_alias"; then 1336 cross_compiling=yes 1337 fi 1338fi 1339 1340ac_tool_prefix= 1341test -n "$host_alias" && ac_tool_prefix=$host_alias- 1342 1343test "$silent" = yes && exec 6>/dev/null 1344 1345 1346ac_pwd=`pwd` && test -n "$ac_pwd" && 1347ac_ls_di=`ls -di .` && 1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1349 as_fn_error $? "working directory cannot be determined" 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 as_fn_error $? "pwd does not report name of working directory" 1352 1353 1354# Find the source files, if location was not specified. 1355if test -z "$srcdir"; then 1356 ac_srcdir_defaulted=yes 1357 # Try the directory containing this script, then the parent directory. 1358 ac_confdir=`$as_dirname -- "$as_myself" || 1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1360 X"$as_myself" : 'X\(//\)[^/]' \| \ 1361 X"$as_myself" : 'X\(//\)$' \| \ 1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1363$as_echo X"$as_myself" | 1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)[^/].*/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\).*/{ 1377 s//\1/ 1378 q 1379 } 1380 s/.*/./; q'` 1381 srcdir=$ac_confdir 1382 if test ! -r "$srcdir/$ac_unique_file"; then 1383 srcdir=.. 1384 fi 1385else 1386 ac_srcdir_defaulted=no 1387fi 1388if test ! -r "$srcdir/$ac_unique_file"; then 1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1395 pwd)` 1396# When building in place, set srcdir=. 1397if test "$ac_abs_confdir" = "$ac_pwd"; then 1398 srcdir=. 1399fi 1400# Remove unnecessary trailing slashes from srcdir. 1401# Double slashes in file names in object file debugging info 1402# mess up M-x gdb in Emacs. 1403case $srcdir in 1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1405esac 1406for ac_var in $ac_precious_vars; do 1407 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1408 eval ac_env_${ac_var}_value=\$${ac_var} 1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1411done 1412 1413# 1414# Report the --help message. 1415# 1416if test "$ac_init_help" = "long"; then 1417 # Omit some internal or obsolete options to make the list less imposing. 1418 # This message is too long to be a string in the A/UX 3.1 sh. 1419 cat <<_ACEOF 1420\`configure' configures libSM 1.2.1 to adapt to many kinds of systems. 1421 1422Usage: $0 [OPTION]... [VAR=VALUE]... 1423 1424To assign environment variables (e.g., CC, CFLAGS...), specify them as 1425VAR=VALUE. See below for descriptions of some of the useful variables. 1426 1427Defaults for the options are specified in brackets. 1428 1429Configuration: 1430 -h, --help display this help and exit 1431 --help=short display options specific to this package 1432 --help=recursive display the short help of all the included packages 1433 -V, --version display version information and exit 1434 -q, --quiet, --silent do not print \`checking ...' messages 1435 --cache-file=FILE cache test results in FILE [disabled] 1436 -C, --config-cache alias for \`--cache-file=config.cache' 1437 -n, --no-create do not create output files 1438 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1439 1440Installation directories: 1441 --prefix=PREFIX install architecture-independent files in PREFIX 1442 [$ac_default_prefix] 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1444 [PREFIX] 1445 1446By default, \`make install' will install all the files in 1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1448an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1449for instance \`--prefix=\$HOME'. 1450 1451For better control, use the options below. 1452 1453Fine tuning of the installation directories: 1454 --bindir=DIR user executables [EPREFIX/bin] 1455 --sbindir=DIR system admin executables [EPREFIX/sbin] 1456 --libexecdir=DIR program executables [EPREFIX/libexec] 1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473_ACEOF 1474 1475 cat <<\_ACEOF 1476 1477Program names: 1478 --program-prefix=PREFIX prepend PREFIX to installed program names 1479 --program-suffix=SUFFIX append SUFFIX to installed program names 1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1481 1482System types: 1483 --build=BUILD configure for building on BUILD [guessed] 1484 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1485_ACEOF 1486fi 1487 1488if test -n "$ac_init_help"; then 1489 case $ac_init_help in 1490 short | recursive ) echo "Configuration of libSM 1.2.1:";; 1491 esac 1492 cat <<\_ACEOF 1493 1494Optional Features: 1495 --disable-option-checking ignore unrecognized --enable/--with options 1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1498 --enable-maintainer-mode enable make rules and dependencies not useful 1499 (and sometimes confusing) to the casual installer 1500 --enable-shared[=PKGS] build shared libraries [default=yes] 1501 --enable-static[=PKGS] build static libraries [default=yes] 1502 --enable-fast-install[=PKGS] 1503 optimize for fast installation [default=yes] 1504 --disable-dependency-tracking speeds up one-time build 1505 --enable-dependency-tracking do not reject slow dependency extractors 1506 --disable-libtool-lock avoid locking (might break parallel builds) 1507 --disable-selective-werror 1508 Turn off selective compiler errors. (default: 1509 enabled) 1510 --enable-strict-compilation 1511 Enable all warnings from compiler and make them 1512 errors (default: disabled) 1513 --enable-silent-rules less verbose build output (undo: `make V=1') 1514 --disable-silent-rules verbose build output (undo: `make V=0') 1515 --enable-docs Enable building the documentation (default: yes) 1516 --enable-unix-transport Enable UNIX domain socket transport 1517 --enable-tcp-transport Enable TCP socket transport 1518 --enable-ipv6 Enable IPv6 support 1519 --enable-local-transport 1520 Enable os-specific local transport 1521 1522Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-pic try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1528 --with-sysroot=DIR Search for dependent libraries within DIR 1529 (or the compiler's sysroot if not specified). 1530 --with-xmlto Use xmlto to regenerate documentation (default: 1531 auto) 1532 --with-fop Use fop to regenerate documentation (default: auto) 1533 --with-xsltproc Use xsltproc for the transformation of XML documents 1534 (default: auto) 1535 --with-libuuid Build with libuuid support for client IDs 1536 1537Some influential environment variables: 1538 CC C compiler command 1539 CFLAGS C compiler flags 1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1541 nonstandard directory <lib dir> 1542 LIBS libraries to pass to the linker, e.g. -l<library> 1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1544 you have headers in a nonstandard directory <include dir> 1545 CPP C preprocessor 1546 PKG_CONFIG path to pkg-config utility 1547 XMLTO Path to xmlto command 1548 FOP Path to fop command 1549 XSLTPROC Path to xsltproc command 1550 SM_CFLAGS C compiler flags for SM, overriding pkg-config 1551 SM_LIBS linker flags for SM, overriding pkg-config 1552 LIBUUID_CFLAGS 1553 C compiler flags for LIBUUID, overriding pkg-config 1554 LIBUUID_LIBS 1555 linker flags for LIBUUID, overriding pkg-config 1556 1557Use these variables to override the choices made by `configure' or to help 1558it to find libraries and programs with nonstandard names/locations. 1559 1560Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1561_ACEOF 1562ac_status=$? 1563fi 1564 1565if test "$ac_init_help" = "recursive"; then 1566 # If there are subdirs, report their specific --help. 1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1568 test -d "$ac_dir" || 1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1570 continue 1571 ac_builddir=. 1572 1573case "$ac_dir" in 1574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575*) 1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1577 # A ".." for each directory in $ac_dir_suffix. 1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1579 case $ac_top_builddir_sub in 1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1582 esac ;; 1583esac 1584ac_abs_top_builddir=$ac_pwd 1585ac_abs_builddir=$ac_pwd$ac_dir_suffix 1586# for backward compatibility: 1587ac_top_builddir=$ac_top_build_prefix 1588 1589case $srcdir in 1590 .) # We are building in place. 1591 ac_srcdir=. 1592 ac_top_srcdir=$ac_top_builddir_sub 1593 ac_abs_top_srcdir=$ac_pwd ;; 1594 [\\/]* | ?:[\\/]* ) # Absolute name. 1595 ac_srcdir=$srcdir$ac_dir_suffix; 1596 ac_top_srcdir=$srcdir 1597 ac_abs_top_srcdir=$srcdir ;; 1598 *) # Relative name. 1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1600 ac_top_srcdir=$ac_top_build_prefix$srcdir 1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1602esac 1603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1604 1605 cd "$ac_dir" || { ac_status=$?; continue; } 1606 # Check for guested configure. 1607 if test -f "$ac_srcdir/configure.gnu"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1610 elif test -f "$ac_srcdir/configure"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure" --help=recursive 1613 else 1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1615 fi || ac_status=$? 1616 cd "$ac_pwd" || { ac_status=$?; break; } 1617 done 1618fi 1619 1620test -n "$ac_init_help" && exit $ac_status 1621if $ac_init_version; then 1622 cat <<\_ACEOF 1623libSM configure 1.2.1 1624generated by GNU Autoconf 2.68 1625 1626Copyright (C) 2010 Free Software Foundation, Inc. 1627This configure script is free software; the Free Software Foundation 1628gives unlimited permission to copy, distribute and modify it. 1629_ACEOF 1630 exit 1631fi 1632 1633## ------------------------ ## 1634## Autoconf initialization. ## 1635## ------------------------ ## 1636 1637# ac_fn_c_try_compile LINENO 1638# -------------------------- 1639# Try to compile conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_c_try_compile () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 rm -f conftest.$ac_objext 1644 if { { ac_try="$ac_compile" 1645case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648esac 1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650$as_echo "$ac_try_echo"; } >&5 1651 (eval "$ac_compile") 2>conftest.err 1652 ac_status=$? 1653 if test -s conftest.err; then 1654 grep -v '^ *+' conftest.err >conftest.er1 1655 cat conftest.er1 >&5 1656 mv -f conftest.er1 conftest.err 1657 fi 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { 1660 test -z "$ac_c_werror_flag" || 1661 test ! -s conftest.err 1662 } && test -s conftest.$ac_objext; then : 1663 ac_retval=0 1664else 1665 $as_echo "$as_me: failed program was:" >&5 1666sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=1 1669fi 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_compile 1674 1675# ac_fn_c_try_link LINENO 1676# ----------------------- 1677# Try to link conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_link () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext conftest$ac_exeext 1682 if { { ac_try="$ac_link" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest$ac_exeext && { 1701 test "$cross_compiling" = yes || 1702 $as_test_x conftest$ac_exeext 1703 }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 1710fi 1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1713 # interfere with the next link command; also delete a directory that is 1714 # left behind by Apple's compiler. We do this before executing the actions. 1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_link 1720 1721# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1722# ------------------------------------------------------- 1723# Tests whether HEADER exists and can be compiled using the include files in 1724# INCLUDES, setting the cache variable VAR accordingly. 1725ac_fn_c_check_header_compile () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732else 1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735$4 1736#include <$2> 1737_ACEOF 1738if ac_fn_c_try_compile "$LINENO"; then : 1739 eval "$3=yes" 1740else 1741 eval "$3=no" 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1744fi 1745eval ac_res=\$$3 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1747$as_echo "$ac_res" >&6; } 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 1750} # ac_fn_c_check_header_compile 1751 1752# ac_fn_c_try_cpp LINENO 1753# ---------------------- 1754# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1755ac_fn_c_try_cpp () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 if { { ac_try="$ac_cpp conftest.$ac_ext" 1759case "(($ac_try" in 1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1761 *) ac_try_echo=$ac_try;; 1762esac 1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1764$as_echo "$ac_try_echo"; } >&5 1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1766 ac_status=$? 1767 if test -s conftest.err; then 1768 grep -v '^ *+' conftest.err >conftest.er1 1769 cat conftest.er1 >&5 1770 mv -f conftest.er1 conftest.err 1771 fi 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773 test $ac_status = 0; } > conftest.i && { 1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1775 test ! -s conftest.err 1776 }; then : 1777 ac_retval=0 1778else 1779 $as_echo "$as_me: failed program was:" >&5 1780sed 's/^/| /' conftest.$ac_ext >&5 1781 1782 ac_retval=1 1783fi 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_cpp 1788 1789# ac_fn_c_try_run LINENO 1790# ---------------------- 1791# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1792# that executables *can* be run. 1793ac_fn_c_try_run () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 if { { ac_try="$ac_link" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_link") 2>&5 1804 ac_status=$? 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1807 { { case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_try") 2>&5 1814 ac_status=$? 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; }; }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: program exited with status $ac_status" >&5 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=$ac_status 1824fi 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_run 1830 1831# ac_fn_c_check_func LINENO FUNC VAR 1832# ---------------------------------- 1833# Tests whether FUNC exists, setting the cache variable VAR accordingly 1834ac_fn_c_check_func () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838$as_echo_n "checking for $2... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1846#define $2 innocuous_$2 1847 1848/* System header to define __stub macros and hopefully few prototypes, 1849 which can conflict with char $2 (); below. 1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1851 <limits.h> exists even on freestanding compilers. */ 1852 1853#ifdef __STDC__ 1854# include <limits.h> 1855#else 1856# include <assert.h> 1857#endif 1858 1859#undef $2 1860 1861/* Override any GCC internal prototype to avoid an error. 1862 Use char because int might match the return type of a GCC 1863 builtin and then its argument prototype would still apply. */ 1864#ifdef __cplusplus 1865extern "C" 1866#endif 1867char $2 (); 1868/* The GNU C library defines this for functions which it implements 1869 to always fail with ENOSYS. Some functions are actually named 1870 something starting with __ and the normal name is an alias. */ 1871#if defined __stub_$2 || defined __stub___$2 1872choke me 1873#endif 1874 1875int 1876main () 1877{ 1878return $2 (); 1879 ; 1880 return 0; 1881} 1882_ACEOF 1883if ac_fn_c_try_link "$LINENO"; then : 1884 eval "$3=yes" 1885else 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext \ 1889 conftest$ac_exeext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_func 1897 1898# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1899# --------------------------------------------- 1900# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1901# accordingly. 1902ac_fn_c_check_decl () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 as_decl_name=`echo $2|sed 's/ *(.*//'` 1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1908$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1909if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911else 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913/* end confdefs.h. */ 1914$4 1915int 1916main () 1917{ 1918#ifndef $as_decl_name 1919#ifdef __cplusplus 1920 (void) $as_decl_use; 1921#else 1922 (void) $as_decl_name; 1923#endif 1924#endif 1925 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_compile "$LINENO"; then : 1931 eval "$3=yes" 1932else 1933 eval "$3=no" 1934fi 1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 1942} # ac_fn_c_check_decl 1943 1944# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1945# ---------------------------------------------------- 1946# Tries to find if the field MEMBER exists in type AGGR, after including 1947# INCLUDES, setting cache variable VAR accordingly. 1948ac_fn_c_check_member () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1952$as_echo_n "checking for $2.$3... " >&6; } 1953if eval \${$4+:} false; then : 1954 $as_echo_n "(cached) " >&6 1955else 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$5 1959int 1960main () 1961{ 1962static $2 ac_aggr; 1963if (ac_aggr.$3) 1964return 0; 1965 ; 1966 return 0; 1967} 1968_ACEOF 1969if ac_fn_c_try_compile "$LINENO"; then : 1970 eval "$4=yes" 1971else 1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1973/* end confdefs.h. */ 1974$5 1975int 1976main () 1977{ 1978static $2 ac_aggr; 1979if (sizeof ac_aggr.$3) 1980return 0; 1981 ; 1982 return 0; 1983} 1984_ACEOF 1985if ac_fn_c_try_compile "$LINENO"; then : 1986 eval "$4=yes" 1987else 1988 eval "$4=no" 1989fi 1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1991fi 1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1993fi 1994eval ac_res=\$$4 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1996$as_echo "$ac_res" >&6; } 1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1998 1999} # ac_fn_c_check_member 2000 2001# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2002# ------------------------------------------- 2003# Tests whether TYPE exists after having included INCLUDES, setting cache 2004# variable VAR accordingly. 2005ac_fn_c_check_type () 2006{ 2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2009$as_echo_n "checking for $2... " >&6; } 2010if eval \${$3+:} false; then : 2011 $as_echo_n "(cached) " >&6 2012else 2013 eval "$3=no" 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020if (sizeof ($2)) 2021 return 0; 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029$4 2030int 2031main () 2032{ 2033if (sizeof (($2))) 2034 return 0; 2035 ; 2036 return 0; 2037} 2038_ACEOF 2039if ac_fn_c_try_compile "$LINENO"; then : 2040 2041else 2042 eval "$3=yes" 2043fi 2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2045fi 2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2047fi 2048eval ac_res=\$$3 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2050$as_echo "$ac_res" >&6; } 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 2053} # ac_fn_c_check_type 2054cat >config.log <<_ACEOF 2055This file contains any messages produced by compilers while 2056running configure, to aid debugging if configure makes a mistake. 2057 2058It was created by libSM $as_me 1.2.1, which was 2059generated by GNU Autoconf 2.68. Invocation command line was 2060 2061 $ $0 $@ 2062 2063_ACEOF 2064exec 5>>config.log 2065{ 2066cat <<_ASUNAME 2067## --------- ## 2068## Platform. ## 2069## --------- ## 2070 2071hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2072uname -m = `(uname -m) 2>/dev/null || echo unknown` 2073uname -r = `(uname -r) 2>/dev/null || echo unknown` 2074uname -s = `(uname -s) 2>/dev/null || echo unknown` 2075uname -v = `(uname -v) 2>/dev/null || echo unknown` 2076 2077/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2078/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2079 2080/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2081/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2082/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2083/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2084/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2085/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2086/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2087 2088_ASUNAME 2089 2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2091for as_dir in $PATH 2092do 2093 IFS=$as_save_IFS 2094 test -z "$as_dir" && as_dir=. 2095 $as_echo "PATH: $as_dir" 2096 done 2097IFS=$as_save_IFS 2098 2099} >&5 2100 2101cat >&5 <<_ACEOF 2102 2103 2104## ----------- ## 2105## Core tests. ## 2106## ----------- ## 2107 2108_ACEOF 2109 2110 2111# Keep a trace of the command line. 2112# Strip out --no-create and --no-recursion so they do not pile up. 2113# Strip out --silent because we don't want to record it for future runs. 2114# Also quote any args containing shell meta-characters. 2115# Make two passes to allow for proper duplicate-argument suppression. 2116ac_configure_args= 2117ac_configure_args0= 2118ac_configure_args1= 2119ac_must_keep_next=false 2120for ac_pass in 1 2 2121do 2122 for ac_arg 2123 do 2124 case $ac_arg in 2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2127 | -silent | --silent | --silen | --sile | --sil) 2128 continue ;; 2129 *\'*) 2130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2131 esac 2132 case $ac_pass in 2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2134 2) 2135 as_fn_append ac_configure_args1 " '$ac_arg'" 2136 if test $ac_must_keep_next = true; then 2137 ac_must_keep_next=false # Got value, back to normal. 2138 else 2139 case $ac_arg in 2140 *=* | --config-cache | -C | -disable-* | --disable-* \ 2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2143 | -with-* | --with-* | -without-* | --without-* | --x) 2144 case "$ac_configure_args0 " in 2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2146 esac 2147 ;; 2148 -* ) ac_must_keep_next=true ;; 2149 esac 2150 fi 2151 as_fn_append ac_configure_args " '$ac_arg'" 2152 ;; 2153 esac 2154 done 2155done 2156{ ac_configure_args0=; unset ac_configure_args0;} 2157{ ac_configure_args1=; unset ac_configure_args1;} 2158 2159# When interrupted or exit'd, cleanup temporary files, and complete 2160# config.log. We remove comments because anyway the quotes in there 2161# would cause problems or look ugly. 2162# WARNING: Use '\'' to represent an apostrophe within the trap. 2163# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2164trap 'exit_status=$? 2165 # Save into config.log some information that might help in debugging. 2166 { 2167 echo 2168 2169 $as_echo "## ---------------- ## 2170## Cache variables. ## 2171## ---------------- ##" 2172 echo 2173 # The following way of writing the cache mishandles newlines in values, 2174( 2175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2176 eval ac_val=\$$ac_var 2177 case $ac_val in #( 2178 *${as_nl}*) 2179 case $ac_var in #( 2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2181$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2182 esac 2183 case $ac_var in #( 2184 _ | IFS | as_nl) ;; #( 2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2186 *) { eval $ac_var=; unset $ac_var;} ;; 2187 esac ;; 2188 esac 2189 done 2190 (set) 2>&1 | 2191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2192 *${as_nl}ac_space=\ *) 2193 sed -n \ 2194 "s/'\''/'\''\\\\'\'''\''/g; 2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2196 ;; #( 2197 *) 2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2199 ;; 2200 esac | 2201 sort 2202) 2203 echo 2204 2205 $as_echo "## ----------------- ## 2206## Output variables. ## 2207## ----------------- ##" 2208 echo 2209 for ac_var in $ac_subst_vars 2210 do 2211 eval ac_val=\$$ac_var 2212 case $ac_val in 2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2214 esac 2215 $as_echo "$ac_var='\''$ac_val'\''" 2216 done | sort 2217 echo 2218 2219 if test -n "$ac_subst_files"; then 2220 $as_echo "## ------------------- ## 2221## File substitutions. ## 2222## ------------------- ##" 2223 echo 2224 for ac_var in $ac_subst_files 2225 do 2226 eval ac_val=\$$ac_var 2227 case $ac_val in 2228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2229 esac 2230 $as_echo "$ac_var='\''$ac_val'\''" 2231 done | sort 2232 echo 2233 fi 2234 2235 if test -s confdefs.h; then 2236 $as_echo "## ----------- ## 2237## confdefs.h. ## 2238## ----------- ##" 2239 echo 2240 cat confdefs.h 2241 echo 2242 fi 2243 test "$ac_signal" != 0 && 2244 $as_echo "$as_me: caught signal $ac_signal" 2245 $as_echo "$as_me: exit $exit_status" 2246 } >&5 2247 rm -f core *.core core.conftest.* && 2248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2249 exit $exit_status 2250' 0 2251for ac_signal in 1 2 13 15; do 2252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2253done 2254ac_signal=0 2255 2256# confdefs.h avoids OS command line length limits that DEFS can exceed. 2257rm -f -r conftest* confdefs.h 2258 2259$as_echo "/* confdefs.h */" > confdefs.h 2260 2261# Predefined preprocessor variables. 2262 2263cat >>confdefs.h <<_ACEOF 2264#define PACKAGE_NAME "$PACKAGE_NAME" 2265_ACEOF 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2269_ACEOF 2270 2271cat >>confdefs.h <<_ACEOF 2272#define PACKAGE_VERSION "$PACKAGE_VERSION" 2273_ACEOF 2274 2275cat >>confdefs.h <<_ACEOF 2276#define PACKAGE_STRING "$PACKAGE_STRING" 2277_ACEOF 2278 2279cat >>confdefs.h <<_ACEOF 2280#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2281_ACEOF 2282 2283cat >>confdefs.h <<_ACEOF 2284#define PACKAGE_URL "$PACKAGE_URL" 2285_ACEOF 2286 2287 2288# Let the site file select an alternate cache file if it wants to. 2289# Prefer an explicitly selected file to automatically selected ones. 2290ac_site_file1=NONE 2291ac_site_file2=NONE 2292if test -n "$CONFIG_SITE"; then 2293 # We do not want a PATH search for config.site. 2294 case $CONFIG_SITE in #(( 2295 -*) ac_site_file1=./$CONFIG_SITE;; 2296 */*) ac_site_file1=$CONFIG_SITE;; 2297 *) ac_site_file1=./$CONFIG_SITE;; 2298 esac 2299elif test "x$prefix" != xNONE; then 2300 ac_site_file1=$prefix/share/config.site 2301 ac_site_file2=$prefix/etc/config.site 2302else 2303 ac_site_file1=$ac_default_prefix/share/config.site 2304 ac_site_file2=$ac_default_prefix/etc/config.site 2305fi 2306for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2307do 2308 test "x$ac_site_file" = xNONE && continue 2309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2311$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2312 sed 's/^/| /' "$ac_site_file" >&5 2313 . "$ac_site_file" \ 2314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2316as_fn_error $? "failed to load site script $ac_site_file 2317See \`config.log' for more details" "$LINENO" 5; } 2318 fi 2319done 2320 2321if test -r "$cache_file"; then 2322 # Some versions of bash will fail to source /dev/null (special files 2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2326$as_echo "$as_me: loading cache $cache_file" >&6;} 2327 case $cache_file in 2328 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2329 *) . "./$cache_file";; 2330 esac 2331 fi 2332else 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2334$as_echo "$as_me: creating cache $cache_file" >&6;} 2335 >$cache_file 2336fi 2337 2338# Check that the precious variables saved in the cache have kept the same 2339# value. 2340ac_cache_corrupted=false 2341for ac_var in $ac_precious_vars; do 2342 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2343 eval ac_new_set=\$ac_env_${ac_var}_set 2344 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2345 eval ac_new_val=\$ac_env_${ac_var}_value 2346 case $ac_old_set,$ac_new_set in 2347 set,) 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2349$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2350 ac_cache_corrupted=: ;; 2351 ,set) 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2353$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2354 ac_cache_corrupted=: ;; 2355 ,);; 2356 *) 2357 if test "x$ac_old_val" != "x$ac_new_val"; then 2358 # differences in whitespace do not lead to failure. 2359 ac_old_val_w=`echo x $ac_old_val` 2360 ac_new_val_w=`echo x $ac_new_val` 2361 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2363$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2364 ac_cache_corrupted=: 2365 else 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2367$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2368 eval $ac_var=\$ac_old_val 2369 fi 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2371$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2373$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2374 fi;; 2375 esac 2376 # Pass precious variables to config.status. 2377 if test "$ac_new_set" = set; then 2378 case $ac_new_val in 2379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2380 *) ac_arg=$ac_var=$ac_new_val ;; 2381 esac 2382 case " $ac_configure_args " in 2383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2384 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2385 esac 2386 fi 2387done 2388if $ac_cache_corrupted; then 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2392$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2393 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2394fi 2395## -------------------- ## 2396## Main body of script. ## 2397## -------------------- ## 2398 2399ac_ext=c 2400ac_cpp='$CPP $CPPFLAGS' 2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2403ac_compiler_gnu=$ac_cv_c_compiler_gnu 2404 2405 2406 2407ac_config_headers="$ac_config_headers config.h" 2408 2409 2410# Initialize Automake 2411am__api_version='1.11' 2412 2413ac_aux_dir= 2414for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2415 if test -f "$ac_dir/install-sh"; then 2416 ac_aux_dir=$ac_dir 2417 ac_install_sh="$ac_aux_dir/install-sh -c" 2418 break 2419 elif test -f "$ac_dir/install.sh"; then 2420 ac_aux_dir=$ac_dir 2421 ac_install_sh="$ac_aux_dir/install.sh -c" 2422 break 2423 elif test -f "$ac_dir/shtool"; then 2424 ac_aux_dir=$ac_dir 2425 ac_install_sh="$ac_aux_dir/shtool install -c" 2426 break 2427 fi 2428done 2429if test -z "$ac_aux_dir"; then 2430 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2431fi 2432 2433# These three variables are undocumented and unsupported, 2434# and are intended to be withdrawn in a future Autoconf release. 2435# They can cause serious problems if a builder's source tree is in a directory 2436# whose full name contains unusual characters. 2437ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2438ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2439ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2440 2441 2442# Find a good install program. We prefer a C program (faster), 2443# so one script is as good as another. But avoid the broken or 2444# incompatible versions: 2445# SysV /etc/install, /usr/sbin/install 2446# SunOS /usr/etc/install 2447# IRIX /sbin/install 2448# AIX /bin/install 2449# AmigaOS /C/install, which installs bootblocks on floppy discs 2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2453# OS/2's system install, which has a completely different semantic 2454# ./install, which can be erroneously created by make from ./install.sh. 2455# Reject install programs that cannot install multiple files. 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2457$as_echo_n "checking for a BSD-compatible install... " >&6; } 2458if test -z "$INSTALL"; then 2459if ${ac_cv_path_install+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 # Account for people who put trailing slashes in PATH elements. 2468case $as_dir/ in #(( 2469 ./ | .// | /[cC]/* | \ 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2472 /usr/ucb/* ) ;; 2473 *) 2474 # OSF1 and SCO ODT 3.0 have their own names for install. 2475 # Don't use installbsd from OSF since it installs stuff as root 2476 # by default. 2477 for ac_prog in ginstall scoinst install; do 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2480 if test $ac_prog = install && 2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2482 # AIX install. It has an incompatible calling convention. 2483 : 2484 elif test $ac_prog = install && 2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2486 # program-specific install script used by HP pwplus--don't use. 2487 : 2488 else 2489 rm -rf conftest.one conftest.two conftest.dir 2490 echo one > conftest.one 2491 echo two > conftest.two 2492 mkdir conftest.dir 2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2494 test -s conftest.one && test -s conftest.two && 2495 test -s conftest.dir/conftest.one && 2496 test -s conftest.dir/conftest.two 2497 then 2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2499 break 3 2500 fi 2501 fi 2502 fi 2503 done 2504 done 2505 ;; 2506esac 2507 2508 done 2509IFS=$as_save_IFS 2510 2511rm -rf conftest.one conftest.two conftest.dir 2512 2513fi 2514 if test "${ac_cv_path_install+set}" = set; then 2515 INSTALL=$ac_cv_path_install 2516 else 2517 # As a last resort, use the slow shell script. Don't cache a 2518 # value for INSTALL within a source directory, because that will 2519 # break other packages using the cache if that directory is 2520 # removed, or if the value is a relative name. 2521 INSTALL=$ac_install_sh 2522 fi 2523fi 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2525$as_echo "$INSTALL" >&6; } 2526 2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2528# It thinks the first close brace ends the variable substitution. 2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2530 2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2532 2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2534 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2536$as_echo_n "checking whether build environment is sane... " >&6; } 2537# Just in case 2538sleep 1 2539echo timestamp > conftest.file 2540# Reject unsafe characters in $srcdir or the absolute working directory 2541# name. Accept space and tab only in the latter. 2542am_lf=' 2543' 2544case `pwd` in 2545 *[\\\"\#\$\&\'\`$am_lf]*) 2546 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2547esac 2548case $srcdir in 2549 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2550 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2551esac 2552 2553# Do `set' in a subshell so we don't clobber the current shell's 2554# arguments. Must try -L first in case configure is actually a 2555# symlink; some systems play weird games with the mod time of symlinks 2556# (eg FreeBSD returns the mod time of the symlink's containing 2557# directory). 2558if ( 2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2560 if test "$*" = "X"; then 2561 # -L didn't work. 2562 set X `ls -t "$srcdir/configure" conftest.file` 2563 fi 2564 rm -f conftest.file 2565 if test "$*" != "X $srcdir/configure conftest.file" \ 2566 && test "$*" != "X conftest.file $srcdir/configure"; then 2567 2568 # If neither matched, then we have a broken ls. This can happen 2569 # if, for instance, CONFIG_SHELL is bash and it inherits a 2570 # broken ls alias from the environment. This has actually 2571 # happened. Such a system could not be considered "sane". 2572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2573alias in your environment" "$LINENO" 5 2574 fi 2575 2576 test "$2" = conftest.file 2577 ) 2578then 2579 # Ok. 2580 : 2581else 2582 as_fn_error $? "newly created file is older than distributed files! 2583Check your system clock" "$LINENO" 5 2584fi 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2586$as_echo "yes" >&6; } 2587test "$program_prefix" != NONE && 2588 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2589# Use a double $ so make ignores it. 2590test "$program_suffix" != NONE && 2591 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2592# Double any \ or $. 2593# By default was `s,x,x', remove it if useless. 2594ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2595program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2596 2597# expand $ac_aux_dir to an absolute path 2598am_aux_dir=`cd $ac_aux_dir && pwd` 2599 2600if test x"${MISSING+set}" != xset; then 2601 case $am_aux_dir in 2602 *\ * | *\ *) 2603 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2604 *) 2605 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2606 esac 2607fi 2608# Use eval to expand $SHELL 2609if eval "$MISSING --run true"; then 2610 am_missing_run="$MISSING --run " 2611else 2612 am_missing_run= 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2614$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2615fi 2616 2617if test x"${install_sh}" != xset; then 2618 case $am_aux_dir in 2619 *\ * | *\ *) 2620 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2621 *) 2622 install_sh="\${SHELL} $am_aux_dir/install-sh" 2623 esac 2624fi 2625 2626# Installed binaries are usually stripped using `strip' when the user 2627# run `make install-strip'. However `strip' might not be the right 2628# tool to use in cross-compilation environments, therefore Automake 2629# will honor the `STRIP' environment variable to overrule this program. 2630if test "$cross_compiling" != no; then 2631 if test -n "$ac_tool_prefix"; then 2632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2633set dummy ${ac_tool_prefix}strip; ac_word=$2 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2635$as_echo_n "checking for $ac_word... " >&6; } 2636if ${ac_cv_prog_STRIP+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 if test -n "$STRIP"; then 2640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2641else 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2649 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658fi 2659STRIP=$ac_cv_prog_STRIP 2660if test -n "$STRIP"; then 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2662$as_echo "$STRIP" >&6; } 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2665$as_echo "no" >&6; } 2666fi 2667 2668 2669fi 2670if test -z "$ac_cv_prog_STRIP"; then 2671 ac_ct_STRIP=$STRIP 2672 # Extract the first word of "strip", so it can be a program name with args. 2673set dummy strip; ac_word=$2 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2675$as_echo_n "checking for $ac_word... " >&6; } 2676if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 if test -n "$ac_ct_STRIP"; then 2680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2689 ac_cv_prog_ac_ct_STRIP="strip" 2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694 done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2700if test -n "$ac_ct_STRIP"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2702$as_echo "$ac_ct_STRIP" >&6; } 2703else 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706fi 2707 2708 if test "x$ac_ct_STRIP" = x; then 2709 STRIP=":" 2710 else 2711 case $cross_compiling:$ac_tool_warned in 2712yes:) 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2715ac_tool_warned=yes ;; 2716esac 2717 STRIP=$ac_ct_STRIP 2718 fi 2719else 2720 STRIP="$ac_cv_prog_STRIP" 2721fi 2722 2723fi 2724INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2725 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2727$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2728if test -z "$MKDIR_P"; then 2729 if ${ac_cv_path_mkdir+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_prog in mkdir gmkdir; do 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2740 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2741 'mkdir (GNU coreutils) '* | \ 2742 'mkdir (coreutils) '* | \ 2743 'mkdir (fileutils) '4.1*) 2744 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2745 break 3;; 2746 esac 2747 done 2748 done 2749 done 2750IFS=$as_save_IFS 2751 2752fi 2753 2754 test -d ./--version && rmdir ./--version 2755 if test "${ac_cv_path_mkdir+set}" = set; then 2756 MKDIR_P="$ac_cv_path_mkdir -p" 2757 else 2758 # As a last resort, use the slow shell script. Don't cache a 2759 # value for MKDIR_P within a source directory, because that will 2760 # break other packages using the cache if that directory is 2761 # removed, or if the value is a relative name. 2762 MKDIR_P="$ac_install_sh -d" 2763 fi 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2766$as_echo "$MKDIR_P" >&6; } 2767 2768mkdir_p="$MKDIR_P" 2769case $mkdir_p in 2770 [\\/$]* | ?:[\\/]*) ;; 2771 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2772esac 2773 2774for ac_prog in gawk mawk nawk awk 2775do 2776 # Extract the first word of "$ac_prog", so it can be a program name with args. 2777set dummy $ac_prog; ac_word=$2 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2779$as_echo_n "checking for $ac_word... " >&6; } 2780if ${ac_cv_prog_AWK+:} false; then : 2781 $as_echo_n "(cached) " >&6 2782else 2783 if test -n "$AWK"; then 2784 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2785else 2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787for as_dir in $PATH 2788do 2789 IFS=$as_save_IFS 2790 test -z "$as_dir" && as_dir=. 2791 for ac_exec_ext in '' $ac_executable_extensions; do 2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2793 ac_cv_prog_AWK="$ac_prog" 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798 done 2799IFS=$as_save_IFS 2800 2801fi 2802fi 2803AWK=$ac_cv_prog_AWK 2804if test -n "$AWK"; then 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2806$as_echo "$AWK" >&6; } 2807else 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2809$as_echo "no" >&6; } 2810fi 2811 2812 2813 test -n "$AWK" && break 2814done 2815 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2817$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2818set x ${MAKE-make} 2819ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2820if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 cat >conftest.make <<\_ACEOF 2824SHELL = /bin/sh 2825all: 2826 @echo '@@@%%%=$(MAKE)=@@@%%%' 2827_ACEOF 2828# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2829case `${MAKE-make} -f conftest.make 2>/dev/null` in 2830 *@@@%%%=?*=@@@%%%*) 2831 eval ac_cv_prog_make_${ac_make}_set=yes;; 2832 *) 2833 eval ac_cv_prog_make_${ac_make}_set=no;; 2834esac 2835rm -f conftest.make 2836fi 2837if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2839$as_echo "yes" >&6; } 2840 SET_MAKE= 2841else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844 SET_MAKE="MAKE=${MAKE-make}" 2845fi 2846 2847rm -rf .tst 2>/dev/null 2848mkdir .tst 2>/dev/null 2849if test -d .tst; then 2850 am__leading_dot=. 2851else 2852 am__leading_dot=_ 2853fi 2854rmdir .tst 2>/dev/null 2855 2856if test "`cd $srcdir && pwd`" != "`pwd`"; then 2857 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2858 # is not polluted with repeated "-I." 2859 am__isrc=' -I$(srcdir)' 2860 # test to see if srcdir already configured 2861 if test -f $srcdir/config.status; then 2862 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2863 fi 2864fi 2865 2866# test whether we have cygpath 2867if test -z "$CYGPATH_W"; then 2868 if (cygpath --version) >/dev/null 2>/dev/null; then 2869 CYGPATH_W='cygpath -w' 2870 else 2871 CYGPATH_W=echo 2872 fi 2873fi 2874 2875 2876# Define the identity of the package. 2877 PACKAGE='libSM' 2878 VERSION='1.2.1' 2879 2880 2881cat >>confdefs.h <<_ACEOF 2882#define PACKAGE "$PACKAGE" 2883_ACEOF 2884 2885 2886cat >>confdefs.h <<_ACEOF 2887#define VERSION "$VERSION" 2888_ACEOF 2889 2890# Some tools Automake needs. 2891 2892ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2893 2894 2895AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2896 2897 2898AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2899 2900 2901AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2902 2903 2904MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2905 2906# We need awk for the "check" target. The system "awk" is bad on 2907# some platforms. 2908# Always define AMTAR for backward compatibility. 2909 2910AMTAR=${AMTAR-"${am_missing_run}tar"} 2911 2912am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2913 2914 2915 2916 2917 2918 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2920$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2921 # Check whether --enable-maintainer-mode was given. 2922if test "${enable_maintainer_mode+set}" = set; then : 2923 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2924else 2925 USE_MAINTAINER_MODE=no 2926fi 2927 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2929$as_echo "$USE_MAINTAINER_MODE" >&6; } 2930 if test $USE_MAINTAINER_MODE = yes; then 2931 MAINTAINER_MODE_TRUE= 2932 MAINTAINER_MODE_FALSE='#' 2933else 2934 MAINTAINER_MODE_TRUE='#' 2935 MAINTAINER_MODE_FALSE= 2936fi 2937 2938 MAINT=$MAINTAINER_MODE_TRUE 2939 2940 2941 2942# Initialize libtool 2943case `pwd` in 2944 *\ * | *\ *) 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2946$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2947esac 2948 2949 2950 2951macro_version='2.4' 2952macro_revision='1.3293' 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966ltmain="$ac_aux_dir/ltmain.sh" 2967 2968# Make sure we can run config.sub. 2969$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2970 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2971 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2973$as_echo_n "checking build system type... " >&6; } 2974if ${ac_cv_build+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 ac_build_alias=$build_alias 2978test "x$ac_build_alias" = x && 2979 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2980test "x$ac_build_alias" = x && 2981 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2982ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2983 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2984 2985fi 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2987$as_echo "$ac_cv_build" >&6; } 2988case $ac_cv_build in 2989*-*-*) ;; 2990*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2991esac 2992build=$ac_cv_build 2993ac_save_IFS=$IFS; IFS='-' 2994set x $ac_cv_build 2995shift 2996build_cpu=$1 2997build_vendor=$2 2998shift; shift 2999# Remember, the first character of IFS is used to create $*, 3000# except with old shells: 3001build_os=$* 3002IFS=$ac_save_IFS 3003case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3004 3005 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3007$as_echo_n "checking host system type... " >&6; } 3008if ${ac_cv_host+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test "x$host_alias" = x; then 3012 ac_cv_host=$ac_cv_build 3013else 3014 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3015 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3016fi 3017 3018fi 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3020$as_echo "$ac_cv_host" >&6; } 3021case $ac_cv_host in 3022*-*-*) ;; 3023*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3024esac 3025host=$ac_cv_host 3026ac_save_IFS=$IFS; IFS='-' 3027set x $ac_cv_host 3028shift 3029host_cpu=$1 3030host_vendor=$2 3031shift; shift 3032# Remember, the first character of IFS is used to create $*, 3033# except with old shells: 3034host_os=$* 3035IFS=$ac_save_IFS 3036case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3037 3038 3039# Backslashify metacharacters that are still active within 3040# double-quoted strings. 3041sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3042 3043# Same as above, but do not quote variable references. 3044double_quote_subst='s/\(["`\\]\)/\\\1/g' 3045 3046# Sed substitution to delay expansion of an escaped shell variable in a 3047# double_quote_subst'ed string. 3048delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3049 3050# Sed substitution to delay expansion of an escaped single quote. 3051delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3052 3053# Sed substitution to avoid accidental globbing in evaled expressions 3054no_glob_subst='s/\*/\\\*/g' 3055 3056ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3057ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3058ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3059 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3061$as_echo_n "checking how to print strings... " >&6; } 3062# Test print first, because it will be a builtin if present. 3063if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3064 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3065 ECHO='print -r --' 3066elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3067 ECHO='printf %s\n' 3068else 3069 # Use this function as a fallback that always works. 3070 func_fallback_echo () 3071 { 3072 eval 'cat <<_LTECHO_EOF 3073$1 3074_LTECHO_EOF' 3075 } 3076 ECHO='func_fallback_echo' 3077fi 3078 3079# func_echo_all arg... 3080# Invoke $ECHO with all args, space-separated. 3081func_echo_all () 3082{ 3083 $ECHO "" 3084} 3085 3086case "$ECHO" in 3087 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3088$as_echo "printf" >&6; } ;; 3089 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3090$as_echo "print -r" >&6; } ;; 3091 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3092$as_echo "cat" >&6; } ;; 3093esac 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108DEPDIR="${am__leading_dot}deps" 3109 3110ac_config_commands="$ac_config_commands depfiles" 3111 3112 3113am_make=${MAKE-make} 3114cat > confinc << 'END' 3115am__doit: 3116 @echo this is the am__doit target 3117.PHONY: am__doit 3118END 3119# If we don't find an include directive, just comment out the code. 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3121$as_echo_n "checking for style of include used by $am_make... " >&6; } 3122am__include="#" 3123am__quote= 3124_am_result=none 3125# First try GNU make style include. 3126echo "include confinc" > confmf 3127# Ignore all kinds of additional output from `make'. 3128case `$am_make -s -f confmf 2> /dev/null` in #( 3129*the\ am__doit\ target*) 3130 am__include=include 3131 am__quote= 3132 _am_result=GNU 3133 ;; 3134esac 3135# Now try BSD make style include. 3136if test "$am__include" = "#"; then 3137 echo '.include "confinc"' > confmf 3138 case `$am_make -s -f confmf 2> /dev/null` in #( 3139 *the\ am__doit\ target*) 3140 am__include=.include 3141 am__quote="\"" 3142 _am_result=BSD 3143 ;; 3144 esac 3145fi 3146 3147 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3149$as_echo "$_am_result" >&6; } 3150rm -f confinc confmf 3151 3152# Check whether --enable-dependency-tracking was given. 3153if test "${enable_dependency_tracking+set}" = set; then : 3154 enableval=$enable_dependency_tracking; 3155fi 3156 3157if test "x$enable_dependency_tracking" != xno; then 3158 am_depcomp="$ac_aux_dir/depcomp" 3159 AMDEPBACKSLASH='\' 3160fi 3161 if test "x$enable_dependency_tracking" != xno; then 3162 AMDEP_TRUE= 3163 AMDEP_FALSE='#' 3164else 3165 AMDEP_TRUE='#' 3166 AMDEP_FALSE= 3167fi 3168 3169 3170ac_ext=c 3171ac_cpp='$CPP $CPPFLAGS' 3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3174ac_compiler_gnu=$ac_cv_c_compiler_gnu 3175if test -n "$ac_tool_prefix"; then 3176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3177set dummy ${ac_tool_prefix}gcc; ac_word=$2 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3179$as_echo_n "checking for $ac_word... " >&6; } 3180if ${ac_cv_prog_CC+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 if test -n "$CC"; then 3184 ac_cv_prog_CC="$CC" # Let the user override the test. 3185else 3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3187for as_dir in $PATH 3188do 3189 IFS=$as_save_IFS 3190 test -z "$as_dir" && as_dir=. 3191 for ac_exec_ext in '' $ac_executable_extensions; do 3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3193 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3195 break 2 3196 fi 3197done 3198 done 3199IFS=$as_save_IFS 3200 3201fi 3202fi 3203CC=$ac_cv_prog_CC 3204if test -n "$CC"; then 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3206$as_echo "$CC" >&6; } 3207else 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210fi 3211 3212 3213fi 3214if test -z "$ac_cv_prog_CC"; then 3215 ac_ct_CC=$CC 3216 # Extract the first word of "gcc", so it can be a program name with args. 3217set dummy gcc; ac_word=$2 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3219$as_echo_n "checking for $ac_word... " >&6; } 3220if ${ac_cv_prog_ac_ct_CC+:} false; then : 3221 $as_echo_n "(cached) " >&6 3222else 3223 if test -n "$ac_ct_CC"; then 3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3225else 3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3227for as_dir in $PATH 3228do 3229 IFS=$as_save_IFS 3230 test -z "$as_dir" && as_dir=. 3231 for ac_exec_ext in '' $ac_executable_extensions; do 3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3233 ac_cv_prog_ac_ct_CC="gcc" 3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3235 break 2 3236 fi 3237done 3238 done 3239IFS=$as_save_IFS 3240 3241fi 3242fi 3243ac_ct_CC=$ac_cv_prog_ac_ct_CC 3244if test -n "$ac_ct_CC"; then 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3246$as_echo "$ac_ct_CC" >&6; } 3247else 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3249$as_echo "no" >&6; } 3250fi 3251 3252 if test "x$ac_ct_CC" = x; then 3253 CC="" 3254 else 3255 case $cross_compiling:$ac_tool_warned in 3256yes:) 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3259ac_tool_warned=yes ;; 3260esac 3261 CC=$ac_ct_CC 3262 fi 3263else 3264 CC="$ac_cv_prog_CC" 3265fi 3266 3267if test -z "$CC"; then 3268 if test -n "$ac_tool_prefix"; then 3269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3270set dummy ${ac_tool_prefix}cc; ac_word=$2 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3272$as_echo_n "checking for $ac_word... " >&6; } 3273if ${ac_cv_prog_CC+:} false; then : 3274 $as_echo_n "(cached) " >&6 3275else 3276 if test -n "$CC"; then 3277 ac_cv_prog_CC="$CC" # Let the user override the test. 3278else 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3286 ac_cv_prog_CC="${ac_tool_prefix}cc" 3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290done 3291 done 3292IFS=$as_save_IFS 3293 3294fi 3295fi 3296CC=$ac_cv_prog_CC 3297if test -n "$CC"; then 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3299$as_echo "$CC" >&6; } 3300else 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302$as_echo "no" >&6; } 3303fi 3304 3305 3306 fi 3307fi 3308if test -z "$CC"; then 3309 # Extract the first word of "cc", so it can be a program name with args. 3310set dummy cc; ac_word=$2 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3312$as_echo_n "checking for $ac_word... " >&6; } 3313if ${ac_cv_prog_CC+:} false; then : 3314 $as_echo_n "(cached) " >&6 3315else 3316 if test -n "$CC"; then 3317 ac_cv_prog_CC="$CC" # Let the user override the test. 3318else 3319 ac_prog_rejected=no 3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321for as_dir in $PATH 3322do 3323 IFS=$as_save_IFS 3324 test -z "$as_dir" && as_dir=. 3325 for ac_exec_ext in '' $ac_executable_extensions; do 3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3328 ac_prog_rejected=yes 3329 continue 3330 fi 3331 ac_cv_prog_CC="cc" 3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3333 break 2 3334 fi 3335done 3336 done 3337IFS=$as_save_IFS 3338 3339if test $ac_prog_rejected = yes; then 3340 # We found a bogon in the path, so make sure we never use it. 3341 set dummy $ac_cv_prog_CC 3342 shift 3343 if test $# != 0; then 3344 # We chose a different compiler from the bogus one. 3345 # However, it has the same basename, so the bogon will be chosen 3346 # first if we set CC to just the basename; use the full file name. 3347 shift 3348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3349 fi 3350fi 3351fi 3352fi 3353CC=$ac_cv_prog_CC 3354if test -n "$CC"; then 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3356$as_echo "$CC" >&6; } 3357else 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3359$as_echo "no" >&6; } 3360fi 3361 3362 3363fi 3364if test -z "$CC"; then 3365 if test -n "$ac_tool_prefix"; then 3366 for ac_prog in cl.exe 3367 do 3368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3369set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3371$as_echo_n "checking for $ac_word... " >&6; } 3372if ${ac_cv_prog_CC+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377else 3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3379for as_dir in $PATH 3380do 3381 IFS=$as_save_IFS 3382 test -z "$as_dir" && as_dir=. 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3387 break 2 3388 fi 3389done 3390 done 3391IFS=$as_save_IFS 3392 3393fi 3394fi 3395CC=$ac_cv_prog_CC 3396if test -n "$CC"; then 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3398$as_echo "$CC" >&6; } 3399else 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3401$as_echo "no" >&6; } 3402fi 3403 3404 3405 test -n "$CC" && break 3406 done 3407fi 3408if test -z "$CC"; then 3409 ac_ct_CC=$CC 3410 for ac_prog in cl.exe 3411do 3412 # Extract the first word of "$ac_prog", so it can be a program name with args. 3413set dummy $ac_prog; ac_word=$2 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3415$as_echo_n "checking for $ac_word... " >&6; } 3416if ${ac_cv_prog_ac_ct_CC+:} false; then : 3417 $as_echo_n "(cached) " >&6 3418else 3419 if test -n "$ac_ct_CC"; then 3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3421else 3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3423for as_dir in $PATH 3424do 3425 IFS=$as_save_IFS 3426 test -z "$as_dir" && as_dir=. 3427 for ac_exec_ext in '' $ac_executable_extensions; do 3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3429 ac_cv_prog_ac_ct_CC="$ac_prog" 3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3431 break 2 3432 fi 3433done 3434 done 3435IFS=$as_save_IFS 3436 3437fi 3438fi 3439ac_ct_CC=$ac_cv_prog_ac_ct_CC 3440if test -n "$ac_ct_CC"; then 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3442$as_echo "$ac_ct_CC" >&6; } 3443else 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3445$as_echo "no" >&6; } 3446fi 3447 3448 3449 test -n "$ac_ct_CC" && break 3450done 3451 3452 if test "x$ac_ct_CC" = x; then 3453 CC="" 3454 else 3455 case $cross_compiling:$ac_tool_warned in 3456yes:) 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3459ac_tool_warned=yes ;; 3460esac 3461 CC=$ac_ct_CC 3462 fi 3463fi 3464 3465fi 3466 3467 3468test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error $? "no acceptable C compiler found in \$PATH 3471See \`config.log' for more details" "$LINENO" 5; } 3472 3473# Provide some information about the compiler. 3474$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3475set X $ac_compile 3476ac_compiler=$2 3477for ac_option in --version -v -V -qversion; do 3478 { { ac_try="$ac_compiler $ac_option >&5" 3479case "(($ac_try" in 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3481 *) ac_try_echo=$ac_try;; 3482esac 3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3484$as_echo "$ac_try_echo"; } >&5 3485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3486 ac_status=$? 3487 if test -s conftest.err; then 3488 sed '10a\ 3489... rest of stderr output deleted ... 3490 10q' conftest.err >conftest.er1 3491 cat conftest.er1 >&5 3492 fi 3493 rm -f conftest.er1 conftest.err 3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3495 test $ac_status = 0; } 3496done 3497 3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3499/* end confdefs.h. */ 3500 3501int 3502main () 3503{ 3504 3505 ; 3506 return 0; 3507} 3508_ACEOF 3509ac_clean_files_save=$ac_clean_files 3510ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3511# Try to create an executable without -o first, disregard a.out. 3512# It will help us diagnose broken compilers, and finding out an intuition 3513# of exeext. 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3515$as_echo_n "checking whether the C compiler works... " >&6; } 3516ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3517 3518# The possible output files: 3519ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3520 3521ac_rmfiles= 3522for ac_file in $ac_files 3523do 3524 case $ac_file in 3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3526 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3527 esac 3528done 3529rm -f $ac_rmfiles 3530 3531if { { ac_try="$ac_link_default" 3532case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537$as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_link_default") 2>&5 3539 ac_status=$? 3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3541 test $ac_status = 0; }; then : 3542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3543# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3544# in a Makefile. We should not override ac_cv_exeext if it was cached, 3545# so that the user can short-circuit this test for compilers unknown to 3546# Autoconf. 3547for ac_file in $ac_files '' 3548do 3549 test -f "$ac_file" || continue 3550 case $ac_file in 3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3552 ;; 3553 [ab].out ) 3554 # We found the default executable, but exeext='' is most 3555 # certainly right. 3556 break;; 3557 *.* ) 3558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3559 then :; else 3560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3561 fi 3562 # We set ac_cv_exeext here because the later test for it is not 3563 # safe: cross compilers may not add the suffix if given an `-o' 3564 # argument, so we may need to know it at that point already. 3565 # Even if this section looks crufty: it has the advantage of 3566 # actually working. 3567 break;; 3568 * ) 3569 break;; 3570 esac 3571done 3572test "$ac_cv_exeext" = no && ac_cv_exeext= 3573 3574else 3575 ac_file='' 3576fi 3577if test -z "$ac_file"; then : 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579$as_echo "no" >&6; } 3580$as_echo "$as_me: failed program was:" >&5 3581sed 's/^/| /' conftest.$ac_ext >&5 3582 3583{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3585as_fn_error 77 "C compiler cannot create executables 3586See \`config.log' for more details" "$LINENO" 5; } 3587else 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3589$as_echo "yes" >&6; } 3590fi 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3592$as_echo_n "checking for C compiler default output file name... " >&6; } 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3594$as_echo "$ac_file" >&6; } 3595ac_exeext=$ac_cv_exeext 3596 3597rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3598ac_clean_files=$ac_clean_files_save 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3600$as_echo_n "checking for suffix of executables... " >&6; } 3601if { { ac_try="$ac_link" 3602case "(($ac_try" in 3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3604 *) ac_try_echo=$ac_try;; 3605esac 3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3607$as_echo "$ac_try_echo"; } >&5 3608 (eval "$ac_link") 2>&5 3609 ac_status=$? 3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3611 test $ac_status = 0; }; then : 3612 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3613# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3614# work properly (i.e., refer to `conftest.exe'), while it won't with 3615# `rm'. 3616for ac_file in conftest.exe conftest conftest.*; do 3617 test -f "$ac_file" || continue 3618 case $ac_file in 3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3621 break;; 3622 * ) break;; 3623 esac 3624done 3625else 3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3628as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3629See \`config.log' for more details" "$LINENO" 5; } 3630fi 3631rm -f conftest conftest$ac_cv_exeext 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3633$as_echo "$ac_cv_exeext" >&6; } 3634 3635rm -f conftest.$ac_ext 3636EXEEXT=$ac_cv_exeext 3637ac_exeext=$EXEEXT 3638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640#include <stdio.h> 3641int 3642main () 3643{ 3644FILE *f = fopen ("conftest.out", "w"); 3645 return ferror (f) || fclose (f) != 0; 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651ac_clean_files="$ac_clean_files conftest.out" 3652# Check that the compiler produces executables we can run. If not, either 3653# the compiler is broken, or we cross compile. 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3655$as_echo_n "checking whether we are cross compiling... " >&6; } 3656if test "$cross_compiling" != yes; then 3657 { { ac_try="$ac_link" 3658case "(($ac_try" in 3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3660 *) ac_try_echo=$ac_try;; 3661esac 3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3663$as_echo "$ac_try_echo"; } >&5 3664 (eval "$ac_link") 2>&5 3665 ac_status=$? 3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3667 test $ac_status = 0; } 3668 if { ac_try='./conftest$ac_cv_exeext' 3669 { { case "(($ac_try" in 3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3671 *) ac_try_echo=$ac_try;; 3672esac 3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3674$as_echo "$ac_try_echo"; } >&5 3675 (eval "$ac_try") 2>&5 3676 ac_status=$? 3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3678 test $ac_status = 0; }; }; then 3679 cross_compiling=no 3680 else 3681 if test "$cross_compiling" = maybe; then 3682 cross_compiling=yes 3683 else 3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3686as_fn_error $? "cannot run C compiled programs. 3687If you meant to cross compile, use \`--host'. 3688See \`config.log' for more details" "$LINENO" 5; } 3689 fi 3690 fi 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3693$as_echo "$cross_compiling" >&6; } 3694 3695rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3696ac_clean_files=$ac_clean_files_save 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3698$as_echo_n "checking for suffix of object files... " >&6; } 3699if ${ac_cv_objext+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701else 3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3703/* end confdefs.h. */ 3704 3705int 3706main () 3707{ 3708 3709 ; 3710 return 0; 3711} 3712_ACEOF 3713rm -f conftest.o conftest.obj 3714if { { ac_try="$ac_compile" 3715case "(($ac_try" in 3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3717 *) ac_try_echo=$ac_try;; 3718esac 3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3720$as_echo "$ac_try_echo"; } >&5 3721 (eval "$ac_compile") 2>&5 3722 ac_status=$? 3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3724 test $ac_status = 0; }; then : 3725 for ac_file in conftest.o conftest.obj conftest.*; do 3726 test -f "$ac_file" || continue; 3727 case $ac_file in 3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3730 break;; 3731 esac 3732done 3733else 3734 $as_echo "$as_me: failed program was:" >&5 3735sed 's/^/| /' conftest.$ac_ext >&5 3736 3737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3739as_fn_error $? "cannot compute suffix of object files: cannot compile 3740See \`config.log' for more details" "$LINENO" 5; } 3741fi 3742rm -f conftest.$ac_cv_objext conftest.$ac_ext 3743fi 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3745$as_echo "$ac_cv_objext" >&6; } 3746OBJEXT=$ac_cv_objext 3747ac_objext=$OBJEXT 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3749$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3750if ${ac_cv_c_compiler_gnu+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755 3756int 3757main () 3758{ 3759#ifndef __GNUC__ 3760 choke me 3761#endif 3762 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767if ac_fn_c_try_compile "$LINENO"; then : 3768 ac_compiler_gnu=yes 3769else 3770 ac_compiler_gnu=no 3771fi 3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3773ac_cv_c_compiler_gnu=$ac_compiler_gnu 3774 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3777$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3778if test $ac_compiler_gnu = yes; then 3779 GCC=yes 3780else 3781 GCC= 3782fi 3783ac_test_CFLAGS=${CFLAGS+set} 3784ac_save_CFLAGS=$CFLAGS 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3786$as_echo_n "checking whether $CC accepts -g... " >&6; } 3787if ${ac_cv_prog_cc_g+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 ac_save_c_werror_flag=$ac_c_werror_flag 3791 ac_c_werror_flag=yes 3792 ac_cv_prog_cc_g=no 3793 CFLAGS="-g" 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796 3797int 3798main () 3799{ 3800 3801 ; 3802 return 0; 3803} 3804_ACEOF 3805if ac_fn_c_try_compile "$LINENO"; then : 3806 ac_cv_prog_cc_g=yes 3807else 3808 CFLAGS="" 3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810/* end confdefs.h. */ 3811 3812int 3813main () 3814{ 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820if ac_fn_c_try_compile "$LINENO"; then : 3821 3822else 3823 ac_c_werror_flag=$ac_save_c_werror_flag 3824 CFLAGS="-g" 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826/* end confdefs.h. */ 3827 3828int 3829main () 3830{ 3831 3832 ; 3833 return 0; 3834} 3835_ACEOF 3836if ac_fn_c_try_compile "$LINENO"; then : 3837 ac_cv_prog_cc_g=yes 3838fi 3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3840fi 3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3842fi 3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3844 ac_c_werror_flag=$ac_save_c_werror_flag 3845fi 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3847$as_echo "$ac_cv_prog_cc_g" >&6; } 3848if test "$ac_test_CFLAGS" = set; then 3849 CFLAGS=$ac_save_CFLAGS 3850elif test $ac_cv_prog_cc_g = yes; then 3851 if test "$GCC" = yes; then 3852 CFLAGS="-g -O2" 3853 else 3854 CFLAGS="-g" 3855 fi 3856else 3857 if test "$GCC" = yes; then 3858 CFLAGS="-O2" 3859 else 3860 CFLAGS= 3861 fi 3862fi 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3864$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3865if ${ac_cv_prog_cc_c89+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 ac_cv_prog_cc_c89=no 3869ac_save_CC=$CC 3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872#include <stdarg.h> 3873#include <stdio.h> 3874#include <sys/types.h> 3875#include <sys/stat.h> 3876/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3877struct buf { int x; }; 3878FILE * (*rcsopen) (struct buf *, struct stat *, int); 3879static char *e (p, i) 3880 char **p; 3881 int i; 3882{ 3883 return p[i]; 3884} 3885static char *f (char * (*g) (char **, int), char **p, ...) 3886{ 3887 char *s; 3888 va_list v; 3889 va_start (v,p); 3890 s = g (p, va_arg (v,int)); 3891 va_end (v); 3892 return s; 3893} 3894 3895/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3896 function prototypes and stuff, but not '\xHH' hex character constants. 3897 These don't provoke an error unfortunately, instead are silently treated 3898 as 'x'. The following induces an error, until -std is added to get 3899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3900 array size at least. It's necessary to write '\x00'==0 to get something 3901 that's true only with -std. */ 3902int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3903 3904/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3905 inside strings and character constants. */ 3906#define FOO(x) 'x' 3907int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3908 3909int test (int i, double x); 3910struct s1 {int (*f) (int a);}; 3911struct s2 {int (*f) (double a);}; 3912int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3913int argc; 3914char **argv; 3915int 3916main () 3917{ 3918return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3919 ; 3920 return 0; 3921} 3922_ACEOF 3923for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3925do 3926 CC="$ac_save_CC $ac_arg" 3927 if ac_fn_c_try_compile "$LINENO"; then : 3928 ac_cv_prog_cc_c89=$ac_arg 3929fi 3930rm -f core conftest.err conftest.$ac_objext 3931 test "x$ac_cv_prog_cc_c89" != "xno" && break 3932done 3933rm -f conftest.$ac_ext 3934CC=$ac_save_CC 3935 3936fi 3937# AC_CACHE_VAL 3938case "x$ac_cv_prog_cc_c89" in 3939 x) 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3941$as_echo "none needed" >&6; } ;; 3942 xno) 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3944$as_echo "unsupported" >&6; } ;; 3945 *) 3946 CC="$CC $ac_cv_prog_cc_c89" 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3948$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3949esac 3950if test "x$ac_cv_prog_cc_c89" != xno; then : 3951 3952fi 3953 3954ac_ext=c 3955ac_cpp='$CPP $CPPFLAGS' 3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3958ac_compiler_gnu=$ac_cv_c_compiler_gnu 3959 3960depcc="$CC" am_compiler_list= 3961 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3963$as_echo_n "checking dependency style of $depcc... " >&6; } 3964if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3965 $as_echo_n "(cached) " >&6 3966else 3967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3968 # We make a subdir and do the tests there. Otherwise we can end up 3969 # making bogus files that we don't know about and never remove. For 3970 # instance it was reported that on HP-UX the gcc test will end up 3971 # making a dummy file named `D' -- because `-MD' means `put the output 3972 # in D'. 3973 mkdir conftest.dir 3974 # Copy depcomp to subdir because otherwise we won't find it if we're 3975 # using a relative directory. 3976 cp "$am_depcomp" conftest.dir 3977 cd conftest.dir 3978 # We will build objects and dependencies in a subdirectory because 3979 # it helps to detect inapplicable dependency modes. For instance 3980 # both Tru64's cc and ICC support -MD to output dependencies as a 3981 # side effect of compilation, but ICC will put the dependencies in 3982 # the current directory while Tru64 will put them in the object 3983 # directory. 3984 mkdir sub 3985 3986 am_cv_CC_dependencies_compiler_type=none 3987 if test "$am_compiler_list" = ""; then 3988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3989 fi 3990 am__universal=false 3991 case " $depcc " in #( 3992 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3993 esac 3994 3995 for depmode in $am_compiler_list; do 3996 # Setup a source with many dependencies, because some compilers 3997 # like to wrap large dependency lists on column 80 (with \), and 3998 # we should not choose a depcomp mode which is confused by this. 3999 # 4000 # We need to recreate these files for each test, as the compiler may 4001 # overwrite some of them when testing with obscure command lines. 4002 # This happens at least with the AIX C compiler. 4003 : > sub/conftest.c 4004 for i in 1 2 3 4 5 6; do 4005 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4007 # Solaris 8's {/usr,}/bin/sh. 4008 touch sub/conftst$i.h 4009 done 4010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4011 4012 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4013 # mode. It turns out that the SunPro C++ compiler does not properly 4014 # handle `-M -o', and we need to detect this. Also, some Intel 4015 # versions had trouble with output in subdirs 4016 am__obj=sub/conftest.${OBJEXT-o} 4017 am__minus_obj="-o $am__obj" 4018 case $depmode in 4019 gcc) 4020 # This depmode causes a compiler race in universal mode. 4021 test "$am__universal" = false || continue 4022 ;; 4023 nosideeffect) 4024 # after this tag, mechanisms are not by side-effect, so they'll 4025 # only be used when explicitly requested 4026 if test "x$enable_dependency_tracking" = xyes; then 4027 continue 4028 else 4029 break 4030 fi 4031 ;; 4032 msvisualcpp | msvcmsys) 4033 # This compiler won't grok `-c -o', but also, the minuso test has 4034 # not run yet. These depmodes are late enough in the game, and 4035 # so weak that their functioning should not be impacted. 4036 am__obj=conftest.${OBJEXT-o} 4037 am__minus_obj= 4038 ;; 4039 none) break ;; 4040 esac 4041 if depmode=$depmode \ 4042 source=sub/conftest.c object=$am__obj \ 4043 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4044 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4045 >/dev/null 2>conftest.err && 4046 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4047 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4048 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4049 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4050 # icc doesn't choke on unknown options, it will just issue warnings 4051 # or remarks (even with -Werror). So we grep stderr for any message 4052 # that says an option was ignored or not supported. 4053 # When given -MP, icc 7.0 and 7.1 complain thusly: 4054 # icc: Command line warning: ignoring option '-M'; no argument required 4055 # The diagnosis changed in icc 8.0: 4056 # icc: Command line remark: option '-MP' not supported 4057 if (grep 'ignoring option' conftest.err || 4058 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4059 am_cv_CC_dependencies_compiler_type=$depmode 4060 break 4061 fi 4062 fi 4063 done 4064 4065 cd .. 4066 rm -rf conftest.dir 4067else 4068 am_cv_CC_dependencies_compiler_type=none 4069fi 4070 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4073$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4074CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4075 4076 if 4077 test "x$enable_dependency_tracking" != xno \ 4078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4079 am__fastdepCC_TRUE= 4080 am__fastdepCC_FALSE='#' 4081else 4082 am__fastdepCC_TRUE='#' 4083 am__fastdepCC_FALSE= 4084fi 4085 4086 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4088$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4089if ${ac_cv_path_SED+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4093 for ac_i in 1 2 3 4 5 6 7; do 4094 ac_script="$ac_script$as_nl$ac_script" 4095 done 4096 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4097 { ac_script=; unset ac_script;} 4098 if test -z "$SED"; then 4099 ac_path_SED_found=false 4100 # Loop through the user's path and test for each of PROGNAME-LIST 4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4102for as_dir in $PATH 4103do 4104 IFS=$as_save_IFS 4105 test -z "$as_dir" && as_dir=. 4106 for ac_prog in sed gsed; do 4107 for ac_exec_ext in '' $ac_executable_extensions; do 4108 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4109 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4110# Check for GNU ac_path_SED and select it if it is found. 4111 # Check for GNU $ac_path_SED 4112case `"$ac_path_SED" --version 2>&1` in 4113*GNU*) 4114 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4115*) 4116 ac_count=0 4117 $as_echo_n 0123456789 >"conftest.in" 4118 while : 4119 do 4120 cat "conftest.in" "conftest.in" >"conftest.tmp" 4121 mv "conftest.tmp" "conftest.in" 4122 cp "conftest.in" "conftest.nl" 4123 $as_echo '' >> "conftest.nl" 4124 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4126 as_fn_arith $ac_count + 1 && ac_count=$as_val 4127 if test $ac_count -gt ${ac_path_SED_max-0}; then 4128 # Best one so far, save it but keep looking for a better one 4129 ac_cv_path_SED="$ac_path_SED" 4130 ac_path_SED_max=$ac_count 4131 fi 4132 # 10*(2^10) chars as input seems more than enough 4133 test $ac_count -gt 10 && break 4134 done 4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4136esac 4137 4138 $ac_path_SED_found && break 3 4139 done 4140 done 4141 done 4142IFS=$as_save_IFS 4143 if test -z "$ac_cv_path_SED"; then 4144 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4145 fi 4146else 4147 ac_cv_path_SED=$SED 4148fi 4149 4150fi 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4152$as_echo "$ac_cv_path_SED" >&6; } 4153 SED="$ac_cv_path_SED" 4154 rm -f conftest.sed 4155 4156test -z "$SED" && SED=sed 4157Xsed="$SED -e 1s/^X//" 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4170$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4171if ${ac_cv_path_GREP+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 if test -z "$GREP"; then 4175 ac_path_GREP_found=false 4176 # Loop through the user's path and test for each of PROGNAME-LIST 4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4178for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4179do 4180 IFS=$as_save_IFS 4181 test -z "$as_dir" && as_dir=. 4182 for ac_prog in grep ggrep; do 4183 for ac_exec_ext in '' $ac_executable_extensions; do 4184 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4185 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4186# Check for GNU ac_path_GREP and select it if it is found. 4187 # Check for GNU $ac_path_GREP 4188case `"$ac_path_GREP" --version 2>&1` in 4189*GNU*) 4190 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4191*) 4192 ac_count=0 4193 $as_echo_n 0123456789 >"conftest.in" 4194 while : 4195 do 4196 cat "conftest.in" "conftest.in" >"conftest.tmp" 4197 mv "conftest.tmp" "conftest.in" 4198 cp "conftest.in" "conftest.nl" 4199 $as_echo 'GREP' >> "conftest.nl" 4200 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4202 as_fn_arith $ac_count + 1 && ac_count=$as_val 4203 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4204 # Best one so far, save it but keep looking for a better one 4205 ac_cv_path_GREP="$ac_path_GREP" 4206 ac_path_GREP_max=$ac_count 4207 fi 4208 # 10*(2^10) chars as input seems more than enough 4209 test $ac_count -gt 10 && break 4210 done 4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4212esac 4213 4214 $ac_path_GREP_found && break 3 4215 done 4216 done 4217 done 4218IFS=$as_save_IFS 4219 if test -z "$ac_cv_path_GREP"; then 4220 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4221 fi 4222else 4223 ac_cv_path_GREP=$GREP 4224fi 4225 4226fi 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4228$as_echo "$ac_cv_path_GREP" >&6; } 4229 GREP="$ac_cv_path_GREP" 4230 4231 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4233$as_echo_n "checking for egrep... " >&6; } 4234if ${ac_cv_path_EGREP+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4238 then ac_cv_path_EGREP="$GREP -E" 4239 else 4240 if test -z "$EGREP"; then 4241 ac_path_EGREP_found=false 4242 # Loop through the user's path and test for each of PROGNAME-LIST 4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4245do 4246 IFS=$as_save_IFS 4247 test -z "$as_dir" && as_dir=. 4248 for ac_prog in egrep; do 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4251 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4252# Check for GNU ac_path_EGREP and select it if it is found. 4253 # Check for GNU $ac_path_EGREP 4254case `"$ac_path_EGREP" --version 2>&1` in 4255*GNU*) 4256 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4257*) 4258 ac_count=0 4259 $as_echo_n 0123456789 >"conftest.in" 4260 while : 4261 do 4262 cat "conftest.in" "conftest.in" >"conftest.tmp" 4263 mv "conftest.tmp" "conftest.in" 4264 cp "conftest.in" "conftest.nl" 4265 $as_echo 'EGREP' >> "conftest.nl" 4266 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4268 as_fn_arith $ac_count + 1 && ac_count=$as_val 4269 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4270 # Best one so far, save it but keep looking for a better one 4271 ac_cv_path_EGREP="$ac_path_EGREP" 4272 ac_path_EGREP_max=$ac_count 4273 fi 4274 # 10*(2^10) chars as input seems more than enough 4275 test $ac_count -gt 10 && break 4276 done 4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4278esac 4279 4280 $ac_path_EGREP_found && break 3 4281 done 4282 done 4283 done 4284IFS=$as_save_IFS 4285 if test -z "$ac_cv_path_EGREP"; then 4286 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4287 fi 4288else 4289 ac_cv_path_EGREP=$EGREP 4290fi 4291 4292 fi 4293fi 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4295$as_echo "$ac_cv_path_EGREP" >&6; } 4296 EGREP="$ac_cv_path_EGREP" 4297 4298 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4300$as_echo_n "checking for fgrep... " >&6; } 4301if ${ac_cv_path_FGREP+:} false; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4305 then ac_cv_path_FGREP="$GREP -F" 4306 else 4307 if test -z "$FGREP"; then 4308 ac_path_FGREP_found=false 4309 # Loop through the user's path and test for each of PROGNAME-LIST 4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4312do 4313 IFS=$as_save_IFS 4314 test -z "$as_dir" && as_dir=. 4315 for ac_prog in fgrep; do 4316 for ac_exec_ext in '' $ac_executable_extensions; do 4317 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4318 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4319# Check for GNU ac_path_FGREP and select it if it is found. 4320 # Check for GNU $ac_path_FGREP 4321case `"$ac_path_FGREP" --version 2>&1` in 4322*GNU*) 4323 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4324*) 4325 ac_count=0 4326 $as_echo_n 0123456789 >"conftest.in" 4327 while : 4328 do 4329 cat "conftest.in" "conftest.in" >"conftest.tmp" 4330 mv "conftest.tmp" "conftest.in" 4331 cp "conftest.in" "conftest.nl" 4332 $as_echo 'FGREP' >> "conftest.nl" 4333 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4335 as_fn_arith $ac_count + 1 && ac_count=$as_val 4336 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4337 # Best one so far, save it but keep looking for a better one 4338 ac_cv_path_FGREP="$ac_path_FGREP" 4339 ac_path_FGREP_max=$ac_count 4340 fi 4341 # 10*(2^10) chars as input seems more than enough 4342 test $ac_count -gt 10 && break 4343 done 4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4345esac 4346 4347 $ac_path_FGREP_found && break 3 4348 done 4349 done 4350 done 4351IFS=$as_save_IFS 4352 if test -z "$ac_cv_path_FGREP"; then 4353 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4354 fi 4355else 4356 ac_cv_path_FGREP=$FGREP 4357fi 4358 4359 fi 4360fi 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4362$as_echo "$ac_cv_path_FGREP" >&6; } 4363 FGREP="$ac_cv_path_FGREP" 4364 4365 4366test -z "$GREP" && GREP=grep 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386# Check whether --with-gnu-ld was given. 4387if test "${with_gnu_ld+set}" = set; then : 4388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4389else 4390 with_gnu_ld=no 4391fi 4392 4393ac_prog=ld 4394if test "$GCC" = yes; then 4395 # Check if gcc -print-prog-name=ld gives a path. 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4397$as_echo_n "checking for ld used by $CC... " >&6; } 4398 case $host in 4399 *-*-mingw*) 4400 # gcc leaves a trailing carriage return which upsets mingw 4401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4402 *) 4403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4404 esac 4405 case $ac_prog in 4406 # Accept absolute paths. 4407 [\\/]* | ?:[\\/]*) 4408 re_direlt='/[^/][^/]*/\.\./' 4409 # Canonicalize the pathname of ld 4410 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4411 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4412 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4413 done 4414 test -z "$LD" && LD="$ac_prog" 4415 ;; 4416 "") 4417 # If it fails, then pretend we aren't using GCC. 4418 ac_prog=ld 4419 ;; 4420 *) 4421 # If it is relative, then search for the first ld in PATH. 4422 with_gnu_ld=unknown 4423 ;; 4424 esac 4425elif test "$with_gnu_ld" = yes; then 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4427$as_echo_n "checking for GNU ld... " >&6; } 4428else 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4430$as_echo_n "checking for non-GNU ld... " >&6; } 4431fi 4432if ${lt_cv_path_LD+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if test -z "$LD"; then 4436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4437 for ac_dir in $PATH; do 4438 IFS="$lt_save_ifs" 4439 test -z "$ac_dir" && ac_dir=. 4440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4441 lt_cv_path_LD="$ac_dir/$ac_prog" 4442 # Check to see if the program is GNU ld. I'd rather use --version, 4443 # but apparently some variants of GNU ld only accept -v. 4444 # Break only if it was the GNU/non-GNU ld that we prefer. 4445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4446 *GNU* | *'with BFD'*) 4447 test "$with_gnu_ld" != no && break 4448 ;; 4449 *) 4450 test "$with_gnu_ld" != yes && break 4451 ;; 4452 esac 4453 fi 4454 done 4455 IFS="$lt_save_ifs" 4456else 4457 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4458fi 4459fi 4460 4461LD="$lt_cv_path_LD" 4462if test -n "$LD"; then 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4464$as_echo "$LD" >&6; } 4465else 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4467$as_echo "no" >&6; } 4468fi 4469test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4471$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4472if ${lt_cv_prog_gnu_ld+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4476case `$LD -v 2>&1 </dev/null` in 4477*GNU* | *'with BFD'*) 4478 lt_cv_prog_gnu_ld=yes 4479 ;; 4480*) 4481 lt_cv_prog_gnu_ld=no 4482 ;; 4483esac 4484fi 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4486$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4487with_gnu_ld=$lt_cv_prog_gnu_ld 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4498$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4499if ${lt_cv_path_NM+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 if test -n "$NM"; then 4503 # Let the user override the test. 4504 lt_cv_path_NM="$NM" 4505else 4506 lt_nm_to_check="${ac_tool_prefix}nm" 4507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4508 lt_nm_to_check="$lt_nm_to_check nm" 4509 fi 4510 for lt_tmp_nm in $lt_nm_to_check; do 4511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4512 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4513 IFS="$lt_save_ifs" 4514 test -z "$ac_dir" && ac_dir=. 4515 tmp_nm="$ac_dir/$lt_tmp_nm" 4516 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4517 # Check to see if the nm accepts a BSD-compat flag. 4518 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4519 # nm: unknown option "B" ignored 4520 # Tru64's nm complains that /dev/null is an invalid object file 4521 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4522 */dev/null* | *'Invalid file or object type'*) 4523 lt_cv_path_NM="$tmp_nm -B" 4524 break 4525 ;; 4526 *) 4527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4528 */dev/null*) 4529 lt_cv_path_NM="$tmp_nm -p" 4530 break 4531 ;; 4532 *) 4533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4534 continue # so that we can try to find one that supports BSD flags 4535 ;; 4536 esac 4537 ;; 4538 esac 4539 fi 4540 done 4541 IFS="$lt_save_ifs" 4542 done 4543 : ${lt_cv_path_NM=no} 4544fi 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4547$as_echo "$lt_cv_path_NM" >&6; } 4548if test "$lt_cv_path_NM" != "no"; then 4549 NM="$lt_cv_path_NM" 4550else 4551 # Didn't find any BSD compatible name lister, look for dumpbin. 4552 if test -n "$DUMPBIN"; then : 4553 # Let the user override the test. 4554 else 4555 if test -n "$ac_tool_prefix"; then 4556 for ac_prog in dumpbin "link -dump" 4557 do 4558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4559set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4561$as_echo_n "checking for $ac_word... " >&6; } 4562if ${ac_cv_prog_DUMPBIN+:} false; then : 4563 $as_echo_n "(cached) " >&6 4564else 4565 if test -n "$DUMPBIN"; then 4566 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4567else 4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4569for as_dir in $PATH 4570do 4571 IFS=$as_save_IFS 4572 test -z "$as_dir" && as_dir=. 4573 for ac_exec_ext in '' $ac_executable_extensions; do 4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4575 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4577 break 2 4578 fi 4579done 4580 done 4581IFS=$as_save_IFS 4582 4583fi 4584fi 4585DUMPBIN=$ac_cv_prog_DUMPBIN 4586if test -n "$DUMPBIN"; then 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4588$as_echo "$DUMPBIN" >&6; } 4589else 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4591$as_echo "no" >&6; } 4592fi 4593 4594 4595 test -n "$DUMPBIN" && break 4596 done 4597fi 4598if test -z "$DUMPBIN"; then 4599 ac_ct_DUMPBIN=$DUMPBIN 4600 for ac_prog in dumpbin "link -dump" 4601do 4602 # Extract the first word of "$ac_prog", so it can be a program name with args. 4603set dummy $ac_prog; ac_word=$2 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4605$as_echo_n "checking for $ac_word... " >&6; } 4606if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4607 $as_echo_n "(cached) " >&6 4608else 4609 if test -n "$ac_ct_DUMPBIN"; then 4610 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4611else 4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4613for as_dir in $PATH 4614do 4615 IFS=$as_save_IFS 4616 test -z "$as_dir" && as_dir=. 4617 for ac_exec_ext in '' $ac_executable_extensions; do 4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4619 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4621 break 2 4622 fi 4623done 4624 done 4625IFS=$as_save_IFS 4626 4627fi 4628fi 4629ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4630if test -n "$ac_ct_DUMPBIN"; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4632$as_echo "$ac_ct_DUMPBIN" >&6; } 4633else 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4635$as_echo "no" >&6; } 4636fi 4637 4638 4639 test -n "$ac_ct_DUMPBIN" && break 4640done 4641 4642 if test "x$ac_ct_DUMPBIN" = x; then 4643 DUMPBIN=":" 4644 else 4645 case $cross_compiling:$ac_tool_warned in 4646yes:) 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4649ac_tool_warned=yes ;; 4650esac 4651 DUMPBIN=$ac_ct_DUMPBIN 4652 fi 4653fi 4654 4655 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4656 *COFF*) 4657 DUMPBIN="$DUMPBIN -symbols" 4658 ;; 4659 *) 4660 DUMPBIN=: 4661 ;; 4662 esac 4663 fi 4664 4665 if test "$DUMPBIN" != ":"; then 4666 NM="$DUMPBIN" 4667 fi 4668fi 4669test -z "$NM" && NM=nm 4670 4671 4672 4673 4674 4675 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4677$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4678if ${lt_cv_nm_interface+:} false; then : 4679 $as_echo_n "(cached) " >&6 4680else 4681 lt_cv_nm_interface="BSD nm" 4682 echo "int some_variable = 0;" > conftest.$ac_ext 4683 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4684 (eval "$ac_compile" 2>conftest.err) 4685 cat conftest.err >&5 4686 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4688 cat conftest.err >&5 4689 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4690 cat conftest.out >&5 4691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4692 lt_cv_nm_interface="MS dumpbin" 4693 fi 4694 rm -f conftest* 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4697$as_echo "$lt_cv_nm_interface" >&6; } 4698 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4700$as_echo_n "checking whether ln -s works... " >&6; } 4701LN_S=$as_ln_s 4702if test "$LN_S" = "ln -s"; then 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4704$as_echo "yes" >&6; } 4705else 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4707$as_echo "no, using $LN_S" >&6; } 4708fi 4709 4710# find the maximum length of command line arguments 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4712$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4713if ${lt_cv_sys_max_cmd_len+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 i=0 4717 teststring="ABCD" 4718 4719 case $build_os in 4720 msdosdjgpp*) 4721 # On DJGPP, this test can blow up pretty badly due to problems in libc 4722 # (any single argument exceeding 2000 bytes causes a buffer overrun 4723 # during glob expansion). Even if it were fixed, the result of this 4724 # check would be larger than it should be. 4725 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4726 ;; 4727 4728 gnu*) 4729 # Under GNU Hurd, this test is not required because there is 4730 # no limit to the length of command line arguments. 4731 # Libtool will interpret -1 as no limit whatsoever 4732 lt_cv_sys_max_cmd_len=-1; 4733 ;; 4734 4735 cygwin* | mingw* | cegcc*) 4736 # On Win9x/ME, this test blows up -- it succeeds, but takes 4737 # about 5 minutes as the teststring grows exponentially. 4738 # Worse, since 9x/ME are not pre-emptively multitasking, 4739 # you end up with a "frozen" computer, even though with patience 4740 # the test eventually succeeds (with a max line length of 256k). 4741 # Instead, let's just punt: use the minimum linelength reported by 4742 # all of the supported platforms: 8192 (on NT/2K/XP). 4743 lt_cv_sys_max_cmd_len=8192; 4744 ;; 4745 4746 mint*) 4747 # On MiNT this can take a long time and run out of memory. 4748 lt_cv_sys_max_cmd_len=8192; 4749 ;; 4750 4751 amigaos*) 4752 # On AmigaOS with pdksh, this test takes hours, literally. 4753 # So we just punt and use a minimum line length of 8192. 4754 lt_cv_sys_max_cmd_len=8192; 4755 ;; 4756 4757 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4758 # This has been around since 386BSD, at least. Likely further. 4759 if test -x /sbin/sysctl; then 4760 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4761 elif test -x /usr/sbin/sysctl; then 4762 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4763 else 4764 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4765 fi 4766 # And add a safety zone 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769 ;; 4770 4771 interix*) 4772 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4773 lt_cv_sys_max_cmd_len=196608 4774 ;; 4775 4776 osf*) 4777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4779 # nice to cause kernel panics so lets avoid the loop below. 4780 # First set a reasonable default. 4781 lt_cv_sys_max_cmd_len=16384 4782 # 4783 if test -x /sbin/sysconfig; then 4784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4785 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4786 esac 4787 fi 4788 ;; 4789 sco3.2v5*) 4790 lt_cv_sys_max_cmd_len=102400 4791 ;; 4792 sysv5* | sco5v6* | sysv4.2uw2*) 4793 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4794 if test -n "$kargmax"; then 4795 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4796 else 4797 lt_cv_sys_max_cmd_len=32768 4798 fi 4799 ;; 4800 *) 4801 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4802 if test -n "$lt_cv_sys_max_cmd_len"; then 4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4805 else 4806 # Make teststring a little bigger before we do anything with it. 4807 # a 1K string should be a reasonable start. 4808 for i in 1 2 3 4 5 6 7 8 ; do 4809 teststring=$teststring$teststring 4810 done 4811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4812 # If test is not a shell built-in, we'll probably end up computing a 4813 # maximum length that is only half of the actual maximum length, but 4814 # we can't tell. 4815 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4816 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4817 test $i != 17 # 1/2 MB should be enough 4818 do 4819 i=`expr $i + 1` 4820 teststring=$teststring$teststring 4821 done 4822 # Only check the string length outside the loop. 4823 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4824 teststring= 4825 # Add a significant safety factor because C++ compilers can tack on 4826 # massive amounts of additional arguments before passing them to the 4827 # linker. It appears as though 1/2 is a usable value. 4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4829 fi 4830 ;; 4831 esac 4832 4833fi 4834 4835if test -n $lt_cv_sys_max_cmd_len ; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4837$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4840$as_echo "none" >&6; } 4841fi 4842max_cmd_len=$lt_cv_sys_max_cmd_len 4843 4844 4845 4846 4847 4848 4849: ${CP="cp -f"} 4850: ${MV="mv -f"} 4851: ${RM="rm -f"} 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4854$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4855# Try some XSI features 4856xsi_shell=no 4857( _lt_dummy="a/b/c" 4858 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4859 = c,a/b,b/c, \ 4860 && eval 'test $(( 1 + 1 )) -eq 2 \ 4861 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4862 && xsi_shell=yes 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4864$as_echo "$xsi_shell" >&6; } 4865 4866 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4868$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4869lt_shell_append=no 4870( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4871 >/dev/null 2>&1 \ 4872 && lt_shell_append=yes 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4874$as_echo "$lt_shell_append" >&6; } 4875 4876 4877if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4878 lt_unset=unset 4879else 4880 lt_unset=false 4881fi 4882 4883 4884 4885 4886 4887# test EBCDIC or ASCII 4888case `echo X|tr X '\101'` in 4889 A) # ASCII based system 4890 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4891 lt_SP2NL='tr \040 \012' 4892 lt_NL2SP='tr \015\012 \040\040' 4893 ;; 4894 *) # EBCDIC based system 4895 lt_SP2NL='tr \100 \n' 4896 lt_NL2SP='tr \r\n \100\100' 4897 ;; 4898esac 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4909$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4910if ${lt_cv_to_host_file_cmd+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 case $host in 4914 *-*-mingw* ) 4915 case $build in 4916 *-*-mingw* ) # actually msys 4917 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4918 ;; 4919 *-*-cygwin* ) 4920 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4921 ;; 4922 * ) # otherwise, assume *nix 4923 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4924 ;; 4925 esac 4926 ;; 4927 *-*-cygwin* ) 4928 case $build in 4929 *-*-mingw* ) # actually msys 4930 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4931 ;; 4932 *-*-cygwin* ) 4933 lt_cv_to_host_file_cmd=func_convert_file_noop 4934 ;; 4935 * ) # otherwise, assume *nix 4936 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4937 ;; 4938 esac 4939 ;; 4940 * ) # unhandled hosts (and "normal" native builds) 4941 lt_cv_to_host_file_cmd=func_convert_file_noop 4942 ;; 4943esac 4944 4945fi 4946 4947to_host_file_cmd=$lt_cv_to_host_file_cmd 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4949$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4950 4951 4952 4953 4954 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4956$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4957if ${lt_cv_to_tool_file_cmd+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 #assume ordinary cross tools, or native build. 4961lt_cv_to_tool_file_cmd=func_convert_file_noop 4962case $host in 4963 *-*-mingw* ) 4964 case $build in 4965 *-*-mingw* ) # actually msys 4966 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4967 ;; 4968 esac 4969 ;; 4970esac 4971 4972fi 4973 4974to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4976$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4977 4978 4979 4980 4981 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4983$as_echo_n "checking for $LD option to reload object files... " >&6; } 4984if ${lt_cv_ld_reload_flag+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 lt_cv_ld_reload_flag='-r' 4988fi 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4990$as_echo "$lt_cv_ld_reload_flag" >&6; } 4991reload_flag=$lt_cv_ld_reload_flag 4992case $reload_flag in 4993"" | " "*) ;; 4994*) reload_flag=" $reload_flag" ;; 4995esac 4996reload_cmds='$LD$reload_flag -o $output$reload_objs' 4997case $host_os in 4998 cygwin* | mingw* | pw32* | cegcc*) 4999 if test "$GCC" != yes; then 5000 reload_cmds=false 5001 fi 5002 ;; 5003 darwin*) 5004 if test "$GCC" = yes; then 5005 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5006 else 5007 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5008 fi 5009 ;; 5010esac 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020if test -n "$ac_tool_prefix"; then 5021 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5022set dummy ${ac_tool_prefix}objdump; ac_word=$2 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5024$as_echo_n "checking for $ac_word... " >&6; } 5025if ${ac_cv_prog_OBJDUMP+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 if test -n "$OBJDUMP"; then 5029 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5030else 5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5032for as_dir in $PATH 5033do 5034 IFS=$as_save_IFS 5035 test -z "$as_dir" && as_dir=. 5036 for ac_exec_ext in '' $ac_executable_extensions; do 5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5038 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5040 break 2 5041 fi 5042done 5043 done 5044IFS=$as_save_IFS 5045 5046fi 5047fi 5048OBJDUMP=$ac_cv_prog_OBJDUMP 5049if test -n "$OBJDUMP"; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5051$as_echo "$OBJDUMP" >&6; } 5052else 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054$as_echo "no" >&6; } 5055fi 5056 5057 5058fi 5059if test -z "$ac_cv_prog_OBJDUMP"; then 5060 ac_ct_OBJDUMP=$OBJDUMP 5061 # Extract the first word of "objdump", so it can be a program name with args. 5062set dummy objdump; ac_word=$2 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5064$as_echo_n "checking for $ac_word... " >&6; } 5065if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067else 5068 if test -n "$ac_ct_OBJDUMP"; then 5069 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5070else 5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5072for as_dir in $PATH 5073do 5074 IFS=$as_save_IFS 5075 test -z "$as_dir" && as_dir=. 5076 for ac_exec_ext in '' $ac_executable_extensions; do 5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5078 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5080 break 2 5081 fi 5082done 5083 done 5084IFS=$as_save_IFS 5085 5086fi 5087fi 5088ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5089if test -n "$ac_ct_OBJDUMP"; then 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5091$as_echo "$ac_ct_OBJDUMP" >&6; } 5092else 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5094$as_echo "no" >&6; } 5095fi 5096 5097 if test "x$ac_ct_OBJDUMP" = x; then 5098 OBJDUMP="false" 5099 else 5100 case $cross_compiling:$ac_tool_warned in 5101yes:) 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5104ac_tool_warned=yes ;; 5105esac 5106 OBJDUMP=$ac_ct_OBJDUMP 5107 fi 5108else 5109 OBJDUMP="$ac_cv_prog_OBJDUMP" 5110fi 5111 5112test -z "$OBJDUMP" && OBJDUMP=objdump 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5123$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5124if ${lt_cv_deplibs_check_method+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126else 5127 lt_cv_file_magic_cmd='$MAGIC_CMD' 5128lt_cv_file_magic_test_file= 5129lt_cv_deplibs_check_method='unknown' 5130# Need to set the preceding variable on all platforms that support 5131# interlibrary dependencies. 5132# 'none' -- dependencies not supported. 5133# `unknown' -- same as none, but documents that we really don't know. 5134# 'pass_all' -- all dependencies passed with no checks. 5135# 'test_compile' -- check by making test program. 5136# 'file_magic [[regex]]' -- check by looking for files in library path 5137# which responds to the $file_magic_cmd with a given extended regex. 5138# If you have `file' or equivalent on your system and you're not sure 5139# whether `pass_all' will *always* work, you probably want this one. 5140 5141case $host_os in 5142aix[4-9]*) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 5146beos*) 5147 lt_cv_deplibs_check_method=pass_all 5148 ;; 5149 5150bsdi[45]*) 5151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5152 lt_cv_file_magic_cmd='/usr/bin/file -L' 5153 lt_cv_file_magic_test_file=/shlib/libc.so 5154 ;; 5155 5156cygwin*) 5157 # func_win32_libid is a shell function defined in ltmain.sh 5158 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5159 lt_cv_file_magic_cmd='func_win32_libid' 5160 ;; 5161 5162mingw* | pw32*) 5163 # Base MSYS/MinGW do not provide the 'file' command needed by 5164 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5165 # unless we find 'file', for example because we are cross-compiling. 5166 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5167 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5169 lt_cv_file_magic_cmd='func_win32_libid' 5170 else 5171 # Keep this pattern in sync with the one in func_win32_libid. 5172 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5173 lt_cv_file_magic_cmd='$OBJDUMP -f' 5174 fi 5175 ;; 5176 5177cegcc*) 5178 # use the weaker test based on 'objdump'. See mingw*. 5179 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5180 lt_cv_file_magic_cmd='$OBJDUMP -f' 5181 ;; 5182 5183darwin* | rhapsody*) 5184 lt_cv_deplibs_check_method=pass_all 5185 ;; 5186 5187freebsd* | dragonfly*) 5188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5189 case $host_cpu in 5190 i*86 ) 5191 # Not sure whether the presence of OpenBSD here was a mistake. 5192 # Let's accept both of them until this is cleared up. 5193 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5194 lt_cv_file_magic_cmd=/usr/bin/file 5195 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5196 ;; 5197 esac 5198 else 5199 lt_cv_deplibs_check_method=pass_all 5200 fi 5201 ;; 5202 5203gnu*) 5204 lt_cv_deplibs_check_method=pass_all 5205 ;; 5206 5207haiku*) 5208 lt_cv_deplibs_check_method=pass_all 5209 ;; 5210 5211hpux10.20* | hpux11*) 5212 lt_cv_file_magic_cmd=/usr/bin/file 5213 case $host_cpu in 5214 ia64*) 5215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5216 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5217 ;; 5218 hppa*64*) 5219 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]' 5220 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5221 ;; 5222 *) 5223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5224 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5225 ;; 5226 esac 5227 ;; 5228 5229interix[3-9]*) 5230 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5232 ;; 5233 5234irix5* | irix6* | nonstopux*) 5235 case $LD in 5236 *-32|*"-32 ") libmagic=32-bit;; 5237 *-n32|*"-n32 ") libmagic=N32;; 5238 *-64|*"-64 ") libmagic=64-bit;; 5239 *) libmagic=never-match;; 5240 esac 5241 lt_cv_deplibs_check_method=pass_all 5242 ;; 5243 5244# This must be Linux ELF. 5245linux* | k*bsd*-gnu | kopensolaris*-gnu) 5246 lt_cv_deplibs_check_method=pass_all 5247 ;; 5248 5249netbsd*) 5250 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5252 else 5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5254 fi 5255 ;; 5256 5257newos6*) 5258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5259 lt_cv_file_magic_cmd=/usr/bin/file 5260 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5261 ;; 5262 5263*nto* | *qnx*) 5264 lt_cv_deplibs_check_method=pass_all 5265 ;; 5266 5267openbsd*) 5268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5270 else 5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5272 fi 5273 ;; 5274 5275osf3* | osf4* | osf5*) 5276 lt_cv_deplibs_check_method=pass_all 5277 ;; 5278 5279rdos*) 5280 lt_cv_deplibs_check_method=pass_all 5281 ;; 5282 5283solaris*) 5284 lt_cv_deplibs_check_method=pass_all 5285 ;; 5286 5287sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5288 lt_cv_deplibs_check_method=pass_all 5289 ;; 5290 5291sysv4 | sysv4.3*) 5292 case $host_vendor in 5293 motorola) 5294 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]' 5295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5296 ;; 5297 ncr) 5298 lt_cv_deplibs_check_method=pass_all 5299 ;; 5300 sequent) 5301 lt_cv_file_magic_cmd='/bin/file' 5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5303 ;; 5304 sni) 5305 lt_cv_file_magic_cmd='/bin/file' 5306 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5307 lt_cv_file_magic_test_file=/lib/libc.so 5308 ;; 5309 siemens) 5310 lt_cv_deplibs_check_method=pass_all 5311 ;; 5312 pc) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315 esac 5316 ;; 5317 5318tpf*) 5319 lt_cv_deplibs_check_method=pass_all 5320 ;; 5321esac 5322 5323fi 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5325$as_echo "$lt_cv_deplibs_check_method" >&6; } 5326 5327file_magic_glob= 5328want_nocaseglob=no 5329if test "$build" = "$host"; then 5330 case $host_os in 5331 mingw* | pw32*) 5332 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5333 want_nocaseglob=yes 5334 else 5335 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5336 fi 5337 ;; 5338 esac 5339fi 5340 5341file_magic_cmd=$lt_cv_file_magic_cmd 5342deplibs_check_method=$lt_cv_deplibs_check_method 5343test -z "$deplibs_check_method" && deplibs_check_method=unknown 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366if test -n "$ac_tool_prefix"; then 5367 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5368set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5370$as_echo_n "checking for $ac_word... " >&6; } 5371if ${ac_cv_prog_DLLTOOL+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 if test -n "$DLLTOOL"; then 5375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5376else 5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5378for as_dir in $PATH 5379do 5380 IFS=$as_save_IFS 5381 test -z "$as_dir" && as_dir=. 5382 for ac_exec_ext in '' $ac_executable_extensions; do 5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5384 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5386 break 2 5387 fi 5388done 5389 done 5390IFS=$as_save_IFS 5391 5392fi 5393fi 5394DLLTOOL=$ac_cv_prog_DLLTOOL 5395if test -n "$DLLTOOL"; then 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5397$as_echo "$DLLTOOL" >&6; } 5398else 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5400$as_echo "no" >&6; } 5401fi 5402 5403 5404fi 5405if test -z "$ac_cv_prog_DLLTOOL"; then 5406 ac_ct_DLLTOOL=$DLLTOOL 5407 # Extract the first word of "dlltool", so it can be a program name with args. 5408set dummy dlltool; ac_word=$2 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5410$as_echo_n "checking for $ac_word... " >&6; } 5411if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -n "$ac_ct_DLLTOOL"; then 5415 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5416else 5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH 5419do 5420 IFS=$as_save_IFS 5421 test -z "$as_dir" && as_dir=. 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5424 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429 done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5435if test -n "$ac_ct_DLLTOOL"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5437$as_echo "$ac_ct_DLLTOOL" >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 if test "x$ac_ct_DLLTOOL" = x; then 5444 DLLTOOL="false" 5445 else 5446 case $cross_compiling:$ac_tool_warned in 5447yes:) 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5450ac_tool_warned=yes ;; 5451esac 5452 DLLTOOL=$ac_ct_DLLTOOL 5453 fi 5454else 5455 DLLTOOL="$ac_cv_prog_DLLTOOL" 5456fi 5457 5458test -z "$DLLTOOL" && DLLTOOL=dlltool 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5470$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5471if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 lt_cv_sharedlib_from_linklib_cmd='unknown' 5475 5476case $host_os in 5477cygwin* | mingw* | pw32* | cegcc*) 5478 # two different shell functions defined in ltmain.sh 5479 # decide which to use based on capabilities of $DLLTOOL 5480 case `$DLLTOOL --help 2>&1` in 5481 *--identify-strict*) 5482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5483 ;; 5484 *) 5485 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5486 ;; 5487 esac 5488 ;; 5489*) 5490 # fallback: assume linklib IS sharedlib 5491 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5492 ;; 5493esac 5494 5495fi 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5497$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5498sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5499test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5500 5501 5502 5503 5504 5505 5506 5507 5508if test -n "$ac_tool_prefix"; then 5509 for ac_prog in ar 5510 do 5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5512set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5514$as_echo_n "checking for $ac_word... " >&6; } 5515if ${ac_cv_prog_AR+:} false; then : 5516 $as_echo_n "(cached) " >&6 5517else 5518 if test -n "$AR"; then 5519 ac_cv_prog_AR="$AR" # Let the user override the test. 5520else 5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5522for as_dir in $PATH 5523do 5524 IFS=$as_save_IFS 5525 test -z "$as_dir" && as_dir=. 5526 for ac_exec_ext in '' $ac_executable_extensions; do 5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5528 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5530 break 2 5531 fi 5532done 5533 done 5534IFS=$as_save_IFS 5535 5536fi 5537fi 5538AR=$ac_cv_prog_AR 5539if test -n "$AR"; then 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5541$as_echo "$AR" >&6; } 5542else 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5544$as_echo "no" >&6; } 5545fi 5546 5547 5548 test -n "$AR" && break 5549 done 5550fi 5551if test -z "$AR"; then 5552 ac_ct_AR=$AR 5553 for ac_prog in ar 5554do 5555 # Extract the first word of "$ac_prog", so it can be a program name with args. 5556set dummy $ac_prog; ac_word=$2 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5558$as_echo_n "checking for $ac_word... " >&6; } 5559if ${ac_cv_prog_ac_ct_AR+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 if test -n "$ac_ct_AR"; then 5563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5564else 5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5566for as_dir in $PATH 5567do 5568 IFS=$as_save_IFS 5569 test -z "$as_dir" && as_dir=. 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5572 ac_cv_prog_ac_ct_AR="$ac_prog" 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5574 break 2 5575 fi 5576done 5577 done 5578IFS=$as_save_IFS 5579 5580fi 5581fi 5582ac_ct_AR=$ac_cv_prog_ac_ct_AR 5583if test -n "$ac_ct_AR"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5585$as_echo "$ac_ct_AR" >&6; } 5586else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588$as_echo "no" >&6; } 5589fi 5590 5591 5592 test -n "$ac_ct_AR" && break 5593done 5594 5595 if test "x$ac_ct_AR" = x; then 5596 AR="false" 5597 else 5598 case $cross_compiling:$ac_tool_warned in 5599yes:) 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5602ac_tool_warned=yes ;; 5603esac 5604 AR=$ac_ct_AR 5605 fi 5606fi 5607 5608: ${AR=ar} 5609: ${AR_FLAGS=cru} 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5622$as_echo_n "checking for archiver @FILE support... " >&6; } 5623if ${lt_cv_ar_at_file+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 lt_cv_ar_at_file=no 5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628/* end confdefs.h. */ 5629 5630int 5631main () 5632{ 5633 5634 ; 5635 return 0; 5636} 5637_ACEOF 5638if ac_fn_c_try_compile "$LINENO"; then : 5639 echo conftest.$ac_objext > conftest.lst 5640 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5642 (eval $lt_ar_try) 2>&5 5643 ac_status=$? 5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5645 test $ac_status = 0; } 5646 if test "$ac_status" -eq 0; then 5647 # Ensure the archiver fails upon bogus file names. 5648 rm -f conftest.$ac_objext libconftest.a 5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5650 (eval $lt_ar_try) 2>&5 5651 ac_status=$? 5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5653 test $ac_status = 0; } 5654 if test "$ac_status" -ne 0; then 5655 lt_cv_ar_at_file=@ 5656 fi 5657 fi 5658 rm -f conftest.* libconftest.a 5659 5660fi 5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5662 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5665$as_echo "$lt_cv_ar_at_file" >&6; } 5666 5667if test "x$lt_cv_ar_at_file" = xno; then 5668 archiver_list_spec= 5669else 5670 archiver_list_spec=$lt_cv_ar_at_file 5671fi 5672 5673 5674 5675 5676 5677 5678 5679if test -n "$ac_tool_prefix"; then 5680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5681set dummy ${ac_tool_prefix}strip; ac_word=$2 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5683$as_echo_n "checking for $ac_word... " >&6; } 5684if ${ac_cv_prog_STRIP+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 if test -n "$STRIP"; then 5688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5689else 5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691for as_dir in $PATH 5692do 5693 IFS=$as_save_IFS 5694 test -z "$as_dir" && as_dir=. 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5697 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701done 5702 done 5703IFS=$as_save_IFS 5704 5705fi 5706fi 5707STRIP=$ac_cv_prog_STRIP 5708if test -n "$STRIP"; then 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5710$as_echo "$STRIP" >&6; } 5711else 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713$as_echo "no" >&6; } 5714fi 5715 5716 5717fi 5718if test -z "$ac_cv_prog_STRIP"; then 5719 ac_ct_STRIP=$STRIP 5720 # Extract the first word of "strip", so it can be a program name with args. 5721set dummy strip; ac_word=$2 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723$as_echo_n "checking for $ac_word... " >&6; } 5724if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -n "$ac_ct_STRIP"; then 5728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5729else 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5737 ac_cv_prog_ac_ct_STRIP="strip" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745fi 5746fi 5747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5748if test -n "$ac_ct_STRIP"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5750$as_echo "$ac_ct_STRIP" >&6; } 5751else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753$as_echo "no" >&6; } 5754fi 5755 5756 if test "x$ac_ct_STRIP" = x; then 5757 STRIP=":" 5758 else 5759 case $cross_compiling:$ac_tool_warned in 5760yes:) 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5763ac_tool_warned=yes ;; 5764esac 5765 STRIP=$ac_ct_STRIP 5766 fi 5767else 5768 STRIP="$ac_cv_prog_STRIP" 5769fi 5770 5771test -z "$STRIP" && STRIP=: 5772 5773 5774 5775 5776 5777 5778if test -n "$ac_tool_prefix"; then 5779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5780set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5782$as_echo_n "checking for $ac_word... " >&6; } 5783if ${ac_cv_prog_RANLIB+:} false; then : 5784 $as_echo_n "(cached) " >&6 5785else 5786 if test -n "$RANLIB"; then 5787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5788else 5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5790for as_dir in $PATH 5791do 5792 IFS=$as_save_IFS 5793 test -z "$as_dir" && as_dir=. 5794 for ac_exec_ext in '' $ac_executable_extensions; do 5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5798 break 2 5799 fi 5800done 5801 done 5802IFS=$as_save_IFS 5803 5804fi 5805fi 5806RANLIB=$ac_cv_prog_RANLIB 5807if test -n "$RANLIB"; then 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5809$as_echo "$RANLIB" >&6; } 5810else 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5812$as_echo "no" >&6; } 5813fi 5814 5815 5816fi 5817if test -z "$ac_cv_prog_RANLIB"; then 5818 ac_ct_RANLIB=$RANLIB 5819 # Extract the first word of "ranlib", so it can be a program name with args. 5820set dummy ranlib; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$ac_ct_RANLIB"; then 5827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5836 ac_cv_prog_ac_ct_RANLIB="ranlib" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841 done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5847if test -n "$ac_ct_RANLIB"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5849$as_echo "$ac_ct_RANLIB" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 if test "x$ac_ct_RANLIB" = x; then 5856 RANLIB=":" 5857 else 5858 case $cross_compiling:$ac_tool_warned in 5859yes:) 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5862ac_tool_warned=yes ;; 5863esac 5864 RANLIB=$ac_ct_RANLIB 5865 fi 5866else 5867 RANLIB="$ac_cv_prog_RANLIB" 5868fi 5869 5870test -z "$RANLIB" && RANLIB=: 5871 5872 5873 5874 5875 5876 5877# Determine commands to create old-style static archives. 5878old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5879old_postinstall_cmds='chmod 644 $oldlib' 5880old_postuninstall_cmds= 5881 5882if test -n "$RANLIB"; then 5883 case $host_os in 5884 openbsd*) 5885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5886 ;; 5887 *) 5888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5889 ;; 5890 esac 5891 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5892fi 5893 5894case $host_os in 5895 darwin*) 5896 lock_old_archive_extraction=yes ;; 5897 *) 5898 lock_old_archive_extraction=no ;; 5899esac 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939# If no C compiler was specified, use CC. 5940LTCC=${LTCC-"$CC"} 5941 5942# If no C compiler flags were specified, use CFLAGS. 5943LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5944 5945# Allow CC to be a program name with arguments. 5946compiler=$CC 5947 5948 5949# Check for command to grab the raw symbol name followed by C symbol from nm. 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5951$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5952if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 5956# These are sane defaults that work on at least a few old systems. 5957# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5958 5959# Character class describing NM global symbol codes. 5960symcode='[BCDEGRST]' 5961 5962# Regexp to match symbols that can be accessed directly from C. 5963sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5964 5965# Define system-specific variables. 5966case $host_os in 5967aix*) 5968 symcode='[BCDT]' 5969 ;; 5970cygwin* | mingw* | pw32* | cegcc*) 5971 symcode='[ABCDGISTW]' 5972 ;; 5973hpux*) 5974 if test "$host_cpu" = ia64; then 5975 symcode='[ABCDEGRST]' 5976 fi 5977 ;; 5978irix* | nonstopux*) 5979 symcode='[BCDEGRST]' 5980 ;; 5981osf*) 5982 symcode='[BCDEGQRST]' 5983 ;; 5984solaris*) 5985 symcode='[BDRT]' 5986 ;; 5987sco3.2v5*) 5988 symcode='[DT]' 5989 ;; 5990sysv4.2uw2*) 5991 symcode='[DT]' 5992 ;; 5993sysv5* | sco5v6* | unixware* | OpenUNIX*) 5994 symcode='[ABDT]' 5995 ;; 5996sysv4) 5997 symcode='[DFNSTU]' 5998 ;; 5999esac 6000 6001# If we're using GNU nm, then use its standard symbol codes. 6002case `$NM -V 2>&1` in 6003*GNU* | *'with BFD'*) 6004 symcode='[ABCDGIRSTW]' ;; 6005esac 6006 6007# Transform an extracted symbol line into a proper C declaration. 6008# Some systems (esp. on ia64) link data and code symbols differently, 6009# so use this general approach. 6010lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6011 6012# Transform an extracted symbol line into symbol name and symbol address 6013lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6014lt_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'" 6015 6016# Handle CRLF in mingw tool chain 6017opt_cr= 6018case $build_os in 6019mingw*) 6020 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6021 ;; 6022esac 6023 6024# Try without a prefix underscore, then with it. 6025for ac_symprfx in "" "_"; do 6026 6027 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6028 symxfrm="\\1 $ac_symprfx\\2 \\2" 6029 6030 # Write the raw and C identifiers. 6031 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6032 # Fake it for dumpbin and say T for any non-static function 6033 # and D for any global variable. 6034 # Also find C++ and __fastcall symbols from MSVC++, 6035 # which start with @ or ?. 6036 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6037" {last_section=section; section=\$ 3};"\ 6038" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6039" \$ 0!~/External *\|/{next};"\ 6040" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6041" {if(hide[section]) next};"\ 6042" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6043" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6044" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6045" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6046" ' prfx=^$ac_symprfx" 6047 else 6048 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6049 fi 6050 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6051 6052 # Check to see that the pipe works correctly. 6053 pipe_works=no 6054 6055 rm -f conftest* 6056 cat > conftest.$ac_ext <<_LT_EOF 6057#ifdef __cplusplus 6058extern "C" { 6059#endif 6060char nm_test_var; 6061void nm_test_func(void); 6062void nm_test_func(void){} 6063#ifdef __cplusplus 6064} 6065#endif 6066int main(){nm_test_var='a';nm_test_func();return(0);} 6067_LT_EOF 6068 6069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6070 (eval $ac_compile) 2>&5 6071 ac_status=$? 6072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6073 test $ac_status = 0; }; then 6074 # Now try to grab the symbols. 6075 nlist=conftest.nm 6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6077 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6078 ac_status=$? 6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6080 test $ac_status = 0; } && test -s "$nlist"; then 6081 # Try sorting and uniquifying the output. 6082 if sort "$nlist" | uniq > "$nlist"T; then 6083 mv -f "$nlist"T "$nlist" 6084 else 6085 rm -f "$nlist"T 6086 fi 6087 6088 # Make sure that we snagged all the symbols we need. 6089 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6090 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6091 cat <<_LT_EOF > conftest.$ac_ext 6092/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6093#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6094/* DATA imports from DLLs on WIN32 con't be const, because runtime 6095 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6096# define LT_DLSYM_CONST 6097#elif defined(__osf__) 6098/* This system does not cope well with relocations in const data. */ 6099# define LT_DLSYM_CONST 6100#else 6101# define LT_DLSYM_CONST const 6102#endif 6103 6104#ifdef __cplusplus 6105extern "C" { 6106#endif 6107 6108_LT_EOF 6109 # Now generate the symbol file. 6110 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6111 6112 cat <<_LT_EOF >> conftest.$ac_ext 6113 6114/* The mapping between symbol names and symbols. */ 6115LT_DLSYM_CONST struct { 6116 const char *name; 6117 void *address; 6118} 6119lt__PROGRAM__LTX_preloaded_symbols[] = 6120{ 6121 { "@PROGRAM@", (void *) 0 }, 6122_LT_EOF 6123 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6124 cat <<\_LT_EOF >> conftest.$ac_ext 6125 {0, (void *) 0} 6126}; 6127 6128/* This works around a problem in FreeBSD linker */ 6129#ifdef FREEBSD_WORKAROUND 6130static const void *lt_preloaded_setup() { 6131 return lt__PROGRAM__LTX_preloaded_symbols; 6132} 6133#endif 6134 6135#ifdef __cplusplus 6136} 6137#endif 6138_LT_EOF 6139 # Now try linking the two files. 6140 mv conftest.$ac_objext conftstm.$ac_objext 6141 lt_globsym_save_LIBS=$LIBS 6142 lt_globsym_save_CFLAGS=$CFLAGS 6143 LIBS="conftstm.$ac_objext" 6144 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6146 (eval $ac_link) 2>&5 6147 ac_status=$? 6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6149 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6150 pipe_works=yes 6151 fi 6152 LIBS=$lt_globsym_save_LIBS 6153 CFLAGS=$lt_globsym_save_CFLAGS 6154 else 6155 echo "cannot find nm_test_func in $nlist" >&5 6156 fi 6157 else 6158 echo "cannot find nm_test_var in $nlist" >&5 6159 fi 6160 else 6161 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6162 fi 6163 else 6164 echo "$progname: failed program was:" >&5 6165 cat conftest.$ac_ext >&5 6166 fi 6167 rm -rf conftest* conftst* 6168 6169 # Do not use the global_symbol_pipe unless it works. 6170 if test "$pipe_works" = yes; then 6171 break 6172 else 6173 lt_cv_sys_global_symbol_pipe= 6174 fi 6175done 6176 6177fi 6178 6179if test -z "$lt_cv_sys_global_symbol_pipe"; then 6180 lt_cv_sys_global_symbol_to_cdecl= 6181fi 6182if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6184$as_echo "failed" >&6; } 6185else 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6187$as_echo "ok" >&6; } 6188fi 6189 6190# Response file support. 6191if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6192 nm_file_list_spec='@' 6193elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6194 nm_file_list_spec='@' 6195fi 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6224$as_echo_n "checking for sysroot... " >&6; } 6225 6226# Check whether --with-sysroot was given. 6227if test "${with_sysroot+set}" = set; then : 6228 withval=$with_sysroot; 6229else 6230 with_sysroot=no 6231fi 6232 6233 6234lt_sysroot= 6235case ${with_sysroot} in #( 6236 yes) 6237 if test "$GCC" = yes; then 6238 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6239 fi 6240 ;; #( 6241 /*) 6242 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6243 ;; #( 6244 no|'') 6245 ;; #( 6246 *) 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6248$as_echo "${with_sysroot}" >&6; } 6249 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6250 ;; 6251esac 6252 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6254$as_echo "${lt_sysroot:-no}" >&6; } 6255 6256 6257 6258 6259 6260# Check whether --enable-libtool-lock was given. 6261if test "${enable_libtool_lock+set}" = set; then : 6262 enableval=$enable_libtool_lock; 6263fi 6264 6265test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6266 6267# Some flags need to be propagated to the compiler or linker for good 6268# libtool support. 6269case $host in 6270ia64-*-hpux*) 6271 # Find out which ABI we are using. 6272 echo 'int i;' > conftest.$ac_ext 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6274 (eval $ac_compile) 2>&5 6275 ac_status=$? 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6277 test $ac_status = 0; }; then 6278 case `/usr/bin/file conftest.$ac_objext` in 6279 *ELF-32*) 6280 HPUX_IA64_MODE="32" 6281 ;; 6282 *ELF-64*) 6283 HPUX_IA64_MODE="64" 6284 ;; 6285 esac 6286 fi 6287 rm -rf conftest* 6288 ;; 6289*-*-irix6*) 6290 # Find out which ABI we are using. 6291 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6293 (eval $ac_compile) 2>&5 6294 ac_status=$? 6295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6296 test $ac_status = 0; }; then 6297 if test "$lt_cv_prog_gnu_ld" = yes; then 6298 case `/usr/bin/file conftest.$ac_objext` in 6299 *32-bit*) 6300 LD="${LD-ld} -melf32bsmip" 6301 ;; 6302 *N32*) 6303 LD="${LD-ld} -melf32bmipn32" 6304 ;; 6305 *64-bit*) 6306 LD="${LD-ld} -melf64bmip" 6307 ;; 6308 esac 6309 else 6310 case `/usr/bin/file conftest.$ac_objext` in 6311 *32-bit*) 6312 LD="${LD-ld} -32" 6313 ;; 6314 *N32*) 6315 LD="${LD-ld} -n32" 6316 ;; 6317 *64-bit*) 6318 LD="${LD-ld} -64" 6319 ;; 6320 esac 6321 fi 6322 fi 6323 rm -rf conftest* 6324 ;; 6325 6326x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6327s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6328 # Find out which ABI we are using. 6329 echo 'int i;' > conftest.$ac_ext 6330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6331 (eval $ac_compile) 2>&5 6332 ac_status=$? 6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6334 test $ac_status = 0; }; then 6335 case `/usr/bin/file conftest.o` in 6336 *32-bit*) 6337 case $host in 6338 x86_64-*kfreebsd*-gnu) 6339 LD="${LD-ld} -m elf_i386_fbsd" 6340 ;; 6341 x86_64-*linux*) 6342 LD="${LD-ld} -m elf_i386" 6343 ;; 6344 ppc64-*linux*|powerpc64-*linux*) 6345 LD="${LD-ld} -m elf32ppclinux" 6346 ;; 6347 s390x-*linux*) 6348 LD="${LD-ld} -m elf_s390" 6349 ;; 6350 sparc64-*linux*) 6351 LD="${LD-ld} -m elf32_sparc" 6352 ;; 6353 esac 6354 ;; 6355 *64-bit*) 6356 case $host in 6357 x86_64-*kfreebsd*-gnu) 6358 LD="${LD-ld} -m elf_x86_64_fbsd" 6359 ;; 6360 x86_64-*linux*) 6361 LD="${LD-ld} -m elf_x86_64" 6362 ;; 6363 ppc*-*linux*|powerpc*-*linux*) 6364 LD="${LD-ld} -m elf64ppc" 6365 ;; 6366 s390*-*linux*|s390*-*tpf*) 6367 LD="${LD-ld} -m elf64_s390" 6368 ;; 6369 sparc*-*linux*) 6370 LD="${LD-ld} -m elf64_sparc" 6371 ;; 6372 esac 6373 ;; 6374 esac 6375 fi 6376 rm -rf conftest* 6377 ;; 6378 6379*-*-sco3.2v5*) 6380 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6381 SAVE_CFLAGS="$CFLAGS" 6382 CFLAGS="$CFLAGS -belf" 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6384$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6385if ${lt_cv_cc_needs_belf+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 ac_ext=c 6389ac_cpp='$CPP $CPPFLAGS' 6390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6392ac_compiler_gnu=$ac_cv_c_compiler_gnu 6393 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396 6397int 6398main () 6399{ 6400 6401 ; 6402 return 0; 6403} 6404_ACEOF 6405if ac_fn_c_try_link "$LINENO"; then : 6406 lt_cv_cc_needs_belf=yes 6407else 6408 lt_cv_cc_needs_belf=no 6409fi 6410rm -f core conftest.err conftest.$ac_objext \ 6411 conftest$ac_exeext conftest.$ac_ext 6412 ac_ext=c 6413ac_cpp='$CPP $CPPFLAGS' 6414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6416ac_compiler_gnu=$ac_cv_c_compiler_gnu 6417 6418fi 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6420$as_echo "$lt_cv_cc_needs_belf" >&6; } 6421 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6422 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6423 CFLAGS="$SAVE_CFLAGS" 6424 fi 6425 ;; 6426sparc*-*solaris*) 6427 # Find out which ABI we are using. 6428 echo 'int i;' > conftest.$ac_ext 6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6430 (eval $ac_compile) 2>&5 6431 ac_status=$? 6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6433 test $ac_status = 0; }; then 6434 case `/usr/bin/file conftest.o` in 6435 *64-bit*) 6436 case $lt_cv_prog_gnu_ld in 6437 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6438 *) 6439 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6440 LD="${LD-ld} -64" 6441 fi 6442 ;; 6443 esac 6444 ;; 6445 esac 6446 fi 6447 rm -rf conftest* 6448 ;; 6449esac 6450 6451need_locks="$enable_libtool_lock" 6452 6453if test -n "$ac_tool_prefix"; then 6454 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6455set dummy ${ac_tool_prefix}mt; ac_word=$2 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6457$as_echo_n "checking for $ac_word... " >&6; } 6458if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 if test -n "$MANIFEST_TOOL"; then 6462 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6463else 6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6465for as_dir in $PATH 6466do 6467 IFS=$as_save_IFS 6468 test -z "$as_dir" && as_dir=. 6469 for ac_exec_ext in '' $ac_executable_extensions; do 6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6471 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6473 break 2 6474 fi 6475done 6476 done 6477IFS=$as_save_IFS 6478 6479fi 6480fi 6481MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6482if test -n "$MANIFEST_TOOL"; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6484$as_echo "$MANIFEST_TOOL" >&6; } 6485else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6487$as_echo "no" >&6; } 6488fi 6489 6490 6491fi 6492if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6493 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6494 # Extract the first word of "mt", so it can be a program name with args. 6495set dummy mt; ac_word=$2 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497$as_echo_n "checking for $ac_word... " >&6; } 6498if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 if test -n "$ac_ct_MANIFEST_TOOL"; then 6502 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6503else 6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 test -z "$as_dir" && as_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6511 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6513 break 2 6514 fi 6515done 6516 done 6517IFS=$as_save_IFS 6518 6519fi 6520fi 6521ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6522if test -n "$ac_ct_MANIFEST_TOOL"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6524$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6525else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527$as_echo "no" >&6; } 6528fi 6529 6530 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6531 MANIFEST_TOOL=":" 6532 else 6533 case $cross_compiling:$ac_tool_warned in 6534yes:) 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6537ac_tool_warned=yes ;; 6538esac 6539 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6540 fi 6541else 6542 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6543fi 6544 6545test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6547$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6548if ${lt_cv_path_mainfest_tool+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 lt_cv_path_mainfest_tool=no 6552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6554 cat conftest.err >&5 6555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6556 lt_cv_path_mainfest_tool=yes 6557 fi 6558 rm -f conftest* 6559fi 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6561$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6562if test "x$lt_cv_path_mainfest_tool" != xyes; then 6563 MANIFEST_TOOL=: 6564fi 6565 6566 6567 6568 6569 6570 6571 case $host_os in 6572 rhapsody* | darwin*) 6573 if test -n "$ac_tool_prefix"; then 6574 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6575set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if ${ac_cv_prog_DSYMUTIL+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$DSYMUTIL"; then 6582 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6591 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596 done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601DSYMUTIL=$ac_cv_prog_DSYMUTIL 6602if test -n "$DSYMUTIL"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6604$as_echo "$DSYMUTIL" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 6611fi 6612if test -z "$ac_cv_prog_DSYMUTIL"; then 6613 ac_ct_DSYMUTIL=$DSYMUTIL 6614 # Extract the first word of "dsymutil", so it can be a program name with args. 6615set dummy dsymutil; ac_word=$2 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6617$as_echo_n "checking for $ac_word... " >&6; } 6618if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 if test -n "$ac_ct_DSYMUTIL"; then 6622 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6623else 6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635done 6636 done 6637IFS=$as_save_IFS 6638 6639fi 6640fi 6641ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6642if test -n "$ac_ct_DSYMUTIL"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6644$as_echo "$ac_ct_DSYMUTIL" >&6; } 6645else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6647$as_echo "no" >&6; } 6648fi 6649 6650 if test "x$ac_ct_DSYMUTIL" = x; then 6651 DSYMUTIL=":" 6652 else 6653 case $cross_compiling:$ac_tool_warned in 6654yes:) 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6657ac_tool_warned=yes ;; 6658esac 6659 DSYMUTIL=$ac_ct_DSYMUTIL 6660 fi 6661else 6662 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6663fi 6664 6665 if test -n "$ac_tool_prefix"; then 6666 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6667set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669$as_echo_n "checking for $ac_word... " >&6; } 6670if ${ac_cv_prog_NMEDIT+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 if test -n "$NMEDIT"; then 6674 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6683 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688 done 6689IFS=$as_save_IFS 6690 6691fi 6692fi 6693NMEDIT=$ac_cv_prog_NMEDIT 6694if test -n "$NMEDIT"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6696$as_echo "$NMEDIT" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701 6702 6703fi 6704if test -z "$ac_cv_prog_NMEDIT"; then 6705 ac_ct_NMEDIT=$NMEDIT 6706 # Extract the first word of "nmedit", so it can be a program name with args. 6707set dummy nmedit; ac_word=$2 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6709$as_echo_n "checking for $ac_word... " >&6; } 6710if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 if test -n "$ac_ct_NMEDIT"; then 6714 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6715else 6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6723 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728 done 6729IFS=$as_save_IFS 6730 6731fi 6732fi 6733ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6734if test -n "$ac_ct_NMEDIT"; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6736$as_echo "$ac_ct_NMEDIT" >&6; } 6737else 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 if test "x$ac_ct_NMEDIT" = x; then 6743 NMEDIT=":" 6744 else 6745 case $cross_compiling:$ac_tool_warned in 6746yes:) 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6749ac_tool_warned=yes ;; 6750esac 6751 NMEDIT=$ac_ct_NMEDIT 6752 fi 6753else 6754 NMEDIT="$ac_cv_prog_NMEDIT" 6755fi 6756 6757 if test -n "$ac_tool_prefix"; then 6758 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6759set dummy ${ac_tool_prefix}lipo; ac_word=$2 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6761$as_echo_n "checking for $ac_word... " >&6; } 6762if ${ac_cv_prog_LIPO+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 if test -n "$LIPO"; then 6766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6775 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780 done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785LIPO=$ac_cv_prog_LIPO 6786if test -n "$LIPO"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6788$as_echo "$LIPO" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6791$as_echo "no" >&6; } 6792fi 6793 6794 6795fi 6796if test -z "$ac_cv_prog_LIPO"; then 6797 ac_ct_LIPO=$LIPO 6798 # Extract the first word of "lipo", so it can be a program name with args. 6799set dummy lipo; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$ac_ct_LIPO"; then 6806 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6815 ac_cv_prog_ac_ct_LIPO="lipo" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6826if test -n "$ac_ct_LIPO"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6828$as_echo "$ac_ct_LIPO" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 if test "x$ac_ct_LIPO" = x; then 6835 LIPO=":" 6836 else 6837 case $cross_compiling:$ac_tool_warned in 6838yes:) 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6841ac_tool_warned=yes ;; 6842esac 6843 LIPO=$ac_ct_LIPO 6844 fi 6845else 6846 LIPO="$ac_cv_prog_LIPO" 6847fi 6848 6849 if test -n "$ac_tool_prefix"; then 6850 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6851set dummy ${ac_tool_prefix}otool; ac_word=$2 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6853$as_echo_n "checking for $ac_word... " >&6; } 6854if ${ac_cv_prog_OTOOL+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 if test -n "$OTOOL"; then 6858 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6859else 6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6861for as_dir in $PATH 6862do 6863 IFS=$as_save_IFS 6864 test -z "$as_dir" && as_dir=. 6865 for ac_exec_ext in '' $ac_executable_extensions; do 6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6867 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6869 break 2 6870 fi 6871done 6872 done 6873IFS=$as_save_IFS 6874 6875fi 6876fi 6877OTOOL=$ac_cv_prog_OTOOL 6878if test -n "$OTOOL"; then 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6880$as_echo "$OTOOL" >&6; } 6881else 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6883$as_echo "no" >&6; } 6884fi 6885 6886 6887fi 6888if test -z "$ac_cv_prog_OTOOL"; then 6889 ac_ct_OTOOL=$OTOOL 6890 # Extract the first word of "otool", so it can be a program name with args. 6891set dummy otool; ac_word=$2 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$ac_ct_OTOOL"; then 6898 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6907 ac_cv_prog_ac_ct_OTOOL="otool" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912 done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6918if test -n "$ac_ct_OTOOL"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6920$as_echo "$ac_ct_OTOOL" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 if test "x$ac_ct_OTOOL" = x; then 6927 OTOOL=":" 6928 else 6929 case $cross_compiling:$ac_tool_warned in 6930yes:) 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6933ac_tool_warned=yes ;; 6934esac 6935 OTOOL=$ac_ct_OTOOL 6936 fi 6937else 6938 OTOOL="$ac_cv_prog_OTOOL" 6939fi 6940 6941 if test -n "$ac_tool_prefix"; then 6942 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6943set dummy ${ac_tool_prefix}otool64; ac_word=$2 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6945$as_echo_n "checking for $ac_word... " >&6; } 6946if ${ac_cv_prog_OTOOL64+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 if test -n "$OTOOL64"; then 6950 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6951else 6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6953for as_dir in $PATH 6954do 6955 IFS=$as_save_IFS 6956 test -z "$as_dir" && as_dir=. 6957 for ac_exec_ext in '' $ac_executable_extensions; do 6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6959 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6961 break 2 6962 fi 6963done 6964 done 6965IFS=$as_save_IFS 6966 6967fi 6968fi 6969OTOOL64=$ac_cv_prog_OTOOL64 6970if test -n "$OTOOL64"; then 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6972$as_echo "$OTOOL64" >&6; } 6973else 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6975$as_echo "no" >&6; } 6976fi 6977 6978 6979fi 6980if test -z "$ac_cv_prog_OTOOL64"; then 6981 ac_ct_OTOOL64=$OTOOL64 6982 # Extract the first word of "otool64", so it can be a program name with args. 6983set dummy otool64; ac_word=$2 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6985$as_echo_n "checking for $ac_word... " >&6; } 6986if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 if test -n "$ac_ct_OTOOL64"; then 6990 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6991else 6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993for as_dir in $PATH 6994do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6999 ac_cv_prog_ac_ct_OTOOL64="otool64" 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003done 7004 done 7005IFS=$as_save_IFS 7006 7007fi 7008fi 7009ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7010if test -n "$ac_ct_OTOOL64"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7012$as_echo "$ac_ct_OTOOL64" >&6; } 7013else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015$as_echo "no" >&6; } 7016fi 7017 7018 if test "x$ac_ct_OTOOL64" = x; then 7019 OTOOL64=":" 7020 else 7021 case $cross_compiling:$ac_tool_warned in 7022yes:) 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7025ac_tool_warned=yes ;; 7026esac 7027 OTOOL64=$ac_ct_OTOOL64 7028 fi 7029else 7030 OTOOL64="$ac_cv_prog_OTOOL64" 7031fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7060$as_echo_n "checking for -single_module linker flag... " >&6; } 7061if ${lt_cv_apple_cc_single_mod+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 lt_cv_apple_cc_single_mod=no 7065 if test -z "${LT_MULTI_MODULE}"; then 7066 # By default we will add the -single_module flag. You can override 7067 # by either setting the environment variable LT_MULTI_MODULE 7068 # non-empty at configure time, or by adding -multi_module to the 7069 # link flags. 7070 rm -rf libconftest.dylib* 7071 echo "int foo(void){return 1;}" > conftest.c 7072 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7073-dynamiclib -Wl,-single_module conftest.c" >&5 7074 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7075 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7076 _lt_result=$? 7077 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7078 lt_cv_apple_cc_single_mod=yes 7079 else 7080 cat conftest.err >&5 7081 fi 7082 rm -rf libconftest.dylib* 7083 rm -f conftest.* 7084 fi 7085fi 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7087$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7089$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7090if ${lt_cv_ld_exported_symbols_list+:} false; then : 7091 $as_echo_n "(cached) " >&6 7092else 7093 lt_cv_ld_exported_symbols_list=no 7094 save_LDFLAGS=$LDFLAGS 7095 echo "_main" > conftest.sym 7096 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099 7100int 7101main () 7102{ 7103 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108if ac_fn_c_try_link "$LINENO"; then : 7109 lt_cv_ld_exported_symbols_list=yes 7110else 7111 lt_cv_ld_exported_symbols_list=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext \ 7114 conftest$ac_exeext conftest.$ac_ext 7115 LDFLAGS="$save_LDFLAGS" 7116 7117fi 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7119$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7121$as_echo_n "checking for -force_load linker flag... " >&6; } 7122if ${lt_cv_ld_force_load+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 lt_cv_ld_force_load=no 7126 cat > conftest.c << _LT_EOF 7127int forced_loaded() { return 2;} 7128_LT_EOF 7129 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7130 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7131 echo "$AR cru libconftest.a conftest.o" >&5 7132 $AR cru libconftest.a conftest.o 2>&5 7133 echo "$RANLIB libconftest.a" >&5 7134 $RANLIB libconftest.a 2>&5 7135 cat > conftest.c << _LT_EOF 7136int main() { return 0;} 7137_LT_EOF 7138 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7139 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7140 _lt_result=$? 7141 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7142 lt_cv_ld_force_load=yes 7143 else 7144 cat conftest.err >&5 7145 fi 7146 rm -f conftest.err libconftest.a conftest conftest.c 7147 rm -rf conftest.dSYM 7148 7149fi 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7151$as_echo "$lt_cv_ld_force_load" >&6; } 7152 case $host_os in 7153 rhapsody* | darwin1.[012]) 7154 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7155 darwin1.*) 7156 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7157 darwin*) # darwin 5.x on 7158 # if running on 10.5 or later, the deployment target defaults 7159 # to the OS version, if on x86, and 10.4, the deployment 7160 # target defaults to 10.4. Don't you love it? 7161 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7162 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7164 10.[012]*) 7165 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7166 10.*) 7167 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7168 esac 7169 ;; 7170 esac 7171 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7172 _lt_dar_single_mod='$single_module' 7173 fi 7174 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7175 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7176 else 7177 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7178 fi 7179 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7180 _lt_dsymutil='~$DSYMUTIL $lib || :' 7181 else 7182 _lt_dsymutil= 7183 fi 7184 ;; 7185 esac 7186 7187ac_ext=c 7188ac_cpp='$CPP $CPPFLAGS' 7189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7191ac_compiler_gnu=$ac_cv_c_compiler_gnu 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7193$as_echo_n "checking how to run the C preprocessor... " >&6; } 7194# On Suns, sometimes $CPP names a directory. 7195if test -n "$CPP" && test -d "$CPP"; then 7196 CPP= 7197fi 7198if test -z "$CPP"; then 7199 if ${ac_cv_prog_CPP+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 # Double quotes because CPP needs to be expanded 7203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7204 do 7205 ac_preproc_ok=false 7206for ac_c_preproc_warn_flag in '' yes 7207do 7208 # Use a header file that comes with gcc, so configuring glibc 7209 # with a fresh cross-compiler works. 7210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7211 # <limits.h> exists even on freestanding compilers. 7212 # On the NeXT, cc -E runs the code through the compiler's parser, 7213 # not just through cpp. "Syntax error" is here to catch this case. 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216#ifdef __STDC__ 7217# include <limits.h> 7218#else 7219# include <assert.h> 7220#endif 7221 Syntax error 7222_ACEOF 7223if ac_fn_c_try_cpp "$LINENO"; then : 7224 7225else 7226 # Broken: fails on valid input. 7227continue 7228fi 7229rm -f conftest.err conftest.i conftest.$ac_ext 7230 7231 # OK, works on sane cases. Now check whether nonexistent headers 7232 # can be detected and how. 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235#include <ac_nonexistent.h> 7236_ACEOF 7237if ac_fn_c_try_cpp "$LINENO"; then : 7238 # Broken: success on invalid input. 7239continue 7240else 7241 # Passes both tests. 7242ac_preproc_ok=: 7243break 7244fi 7245rm -f conftest.err conftest.i conftest.$ac_ext 7246 7247done 7248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7249rm -f conftest.i conftest.err conftest.$ac_ext 7250if $ac_preproc_ok; then : 7251 break 7252fi 7253 7254 done 7255 ac_cv_prog_CPP=$CPP 7256 7257fi 7258 CPP=$ac_cv_prog_CPP 7259else 7260 ac_cv_prog_CPP=$CPP 7261fi 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7263$as_echo "$CPP" >&6; } 7264ac_preproc_ok=false 7265for ac_c_preproc_warn_flag in '' yes 7266do 7267 # Use a header file that comes with gcc, so configuring glibc 7268 # with a fresh cross-compiler works. 7269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7270 # <limits.h> exists even on freestanding compilers. 7271 # On the NeXT, cc -E runs the code through the compiler's parser, 7272 # not just through cpp. "Syntax error" is here to catch this case. 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7274/* end confdefs.h. */ 7275#ifdef __STDC__ 7276# include <limits.h> 7277#else 7278# include <assert.h> 7279#endif 7280 Syntax error 7281_ACEOF 7282if ac_fn_c_try_cpp "$LINENO"; then : 7283 7284else 7285 # Broken: fails on valid input. 7286continue 7287fi 7288rm -f conftest.err conftest.i conftest.$ac_ext 7289 7290 # OK, works on sane cases. Now check whether nonexistent headers 7291 # can be detected and how. 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294#include <ac_nonexistent.h> 7295_ACEOF 7296if ac_fn_c_try_cpp "$LINENO"; then : 7297 # Broken: success on invalid input. 7298continue 7299else 7300 # Passes both tests. 7301ac_preproc_ok=: 7302break 7303fi 7304rm -f conftest.err conftest.i conftest.$ac_ext 7305 7306done 7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7308rm -f conftest.i conftest.err conftest.$ac_ext 7309if $ac_preproc_ok; then : 7310 7311else 7312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7314as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7315See \`config.log' for more details" "$LINENO" 5; } 7316fi 7317 7318ac_ext=c 7319ac_cpp='$CPP $CPPFLAGS' 7320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7322ac_compiler_gnu=$ac_cv_c_compiler_gnu 7323 7324 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7326$as_echo_n "checking for ANSI C header files... " >&6; } 7327if ${ac_cv_header_stdc+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331/* end confdefs.h. */ 7332#include <stdlib.h> 7333#include <stdarg.h> 7334#include <string.h> 7335#include <float.h> 7336 7337int 7338main () 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 ac_cv_header_stdc=yes 7347else 7348 ac_cv_header_stdc=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351 7352if test $ac_cv_header_stdc = yes; then 7353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356#include <string.h> 7357 7358_ACEOF 7359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7360 $EGREP "memchr" >/dev/null 2>&1; then : 7361 7362else 7363 ac_cv_header_stdc=no 7364fi 7365rm -f conftest* 7366 7367fi 7368 7369if test $ac_cv_header_stdc = yes; then 7370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373#include <stdlib.h> 7374 7375_ACEOF 7376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7377 $EGREP "free" >/dev/null 2>&1; then : 7378 7379else 7380 ac_cv_header_stdc=no 7381fi 7382rm -f conftest* 7383 7384fi 7385 7386if test $ac_cv_header_stdc = yes; then 7387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7388 if test "$cross_compiling" = yes; then : 7389 : 7390else 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393#include <ctype.h> 7394#include <stdlib.h> 7395#if ((' ' & 0x0FF) == 0x020) 7396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7398#else 7399# define ISLOWER(c) \ 7400 (('a' <= (c) && (c) <= 'i') \ 7401 || ('j' <= (c) && (c) <= 'r') \ 7402 || ('s' <= (c) && (c) <= 'z')) 7403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7404#endif 7405 7406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7407int 7408main () 7409{ 7410 int i; 7411 for (i = 0; i < 256; i++) 7412 if (XOR (islower (i), ISLOWER (i)) 7413 || toupper (i) != TOUPPER (i)) 7414 return 2; 7415 return 0; 7416} 7417_ACEOF 7418if ac_fn_c_try_run "$LINENO"; then : 7419 7420else 7421 ac_cv_header_stdc=no 7422fi 7423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7424 conftest.$ac_objext conftest.beam conftest.$ac_ext 7425fi 7426 7427fi 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7430$as_echo "$ac_cv_header_stdc" >&6; } 7431if test $ac_cv_header_stdc = yes; then 7432 7433$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7434 7435fi 7436 7437# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7439 inttypes.h stdint.h unistd.h 7440do : 7441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7442ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7443" 7444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7445 cat >>confdefs.h <<_ACEOF 7446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7447_ACEOF 7448 7449fi 7450 7451done 7452 7453 7454for ac_header in dlfcn.h 7455do : 7456 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7457" 7458if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7459 cat >>confdefs.h <<_ACEOF 7460#define HAVE_DLFCN_H 1 7461_ACEOF 7462 7463fi 7464 7465done 7466 7467 7468 7469 7470 7471# Set options 7472 7473 7474 7475 enable_dlopen=no 7476 7477 7478 enable_win32_dll=no 7479 7480 7481 # Check whether --enable-shared was given. 7482if test "${enable_shared+set}" = set; then : 7483 enableval=$enable_shared; p=${PACKAGE-default} 7484 case $enableval in 7485 yes) enable_shared=yes ;; 7486 no) enable_shared=no ;; 7487 *) 7488 enable_shared=no 7489 # Look at the argument we got. We use all the common list separators. 7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7491 for pkg in $enableval; do 7492 IFS="$lt_save_ifs" 7493 if test "X$pkg" = "X$p"; then 7494 enable_shared=yes 7495 fi 7496 done 7497 IFS="$lt_save_ifs" 7498 ;; 7499 esac 7500else 7501 enable_shared=yes 7502fi 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 # Check whether --enable-static was given. 7513if test "${enable_static+set}" = set; then : 7514 enableval=$enable_static; p=${PACKAGE-default} 7515 case $enableval in 7516 yes) enable_static=yes ;; 7517 no) enable_static=no ;; 7518 *) 7519 enable_static=no 7520 # Look at the argument we got. We use all the common list separators. 7521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7522 for pkg in $enableval; do 7523 IFS="$lt_save_ifs" 7524 if test "X$pkg" = "X$p"; then 7525 enable_static=yes 7526 fi 7527 done 7528 IFS="$lt_save_ifs" 7529 ;; 7530 esac 7531else 7532 enable_static=yes 7533fi 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544# Check whether --with-pic was given. 7545if test "${with_pic+set}" = set; then : 7546 withval=$with_pic; pic_mode="$withval" 7547else 7548 pic_mode=default 7549fi 7550 7551 7552test -z "$pic_mode" && pic_mode=default 7553 7554 7555 7556 7557 7558 7559 7560 # Check whether --enable-fast-install was given. 7561if test "${enable_fast_install+set}" = set; then : 7562 enableval=$enable_fast_install; p=${PACKAGE-default} 7563 case $enableval in 7564 yes) enable_fast_install=yes ;; 7565 no) enable_fast_install=no ;; 7566 *) 7567 enable_fast_install=no 7568 # Look at the argument we got. We use all the common list separators. 7569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7570 for pkg in $enableval; do 7571 IFS="$lt_save_ifs" 7572 if test "X$pkg" = "X$p"; then 7573 enable_fast_install=yes 7574 fi 7575 done 7576 IFS="$lt_save_ifs" 7577 ;; 7578 esac 7579else 7580 enable_fast_install=yes 7581fi 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593# This can be used to rebuild libtool when needed 7594LIBTOOL_DEPS="$ltmain" 7595 7596# Always use our own libtool. 7597LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624test -z "$LN_S" && LN_S="ln -s" 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639if test -n "${ZSH_VERSION+set}" ; then 7640 setopt NO_GLOB_SUBST 7641fi 7642 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7644$as_echo_n "checking for objdir... " >&6; } 7645if ${lt_cv_objdir+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 rm -f .libs 2>/dev/null 7649mkdir .libs 2>/dev/null 7650if test -d .libs; then 7651 lt_cv_objdir=.libs 7652else 7653 # MS-DOS does not allow filenames that begin with a dot. 7654 lt_cv_objdir=_libs 7655fi 7656rmdir .libs 2>/dev/null 7657fi 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7659$as_echo "$lt_cv_objdir" >&6; } 7660objdir=$lt_cv_objdir 7661 7662 7663 7664 7665 7666cat >>confdefs.h <<_ACEOF 7667#define LT_OBJDIR "$lt_cv_objdir/" 7668_ACEOF 7669 7670 7671 7672 7673case $host_os in 7674aix3*) 7675 # AIX sometimes has problems with the GCC collect2 program. For some 7676 # reason, if we set the COLLECT_NAMES environment variable, the problems 7677 # vanish in a puff of smoke. 7678 if test "X${COLLECT_NAMES+set}" != Xset; then 7679 COLLECT_NAMES= 7680 export COLLECT_NAMES 7681 fi 7682 ;; 7683esac 7684 7685# Global variables: 7686ofile=libtool 7687can_build_shared=yes 7688 7689# All known linkers require a `.a' archive for static linking (except MSVC, 7690# which needs '.lib'). 7691libext=a 7692 7693with_gnu_ld="$lt_cv_prog_gnu_ld" 7694 7695old_CC="$CC" 7696old_CFLAGS="$CFLAGS" 7697 7698# Set sane defaults for various variables 7699test -z "$CC" && CC=cc 7700test -z "$LTCC" && LTCC=$CC 7701test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7702test -z "$LD" && LD=ld 7703test -z "$ac_objext" && ac_objext=o 7704 7705for cc_temp in $compiler""; do 7706 case $cc_temp in 7707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7709 \-*) ;; 7710 *) break;; 7711 esac 7712done 7713cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7714 7715 7716# Only perform the check for file, if the check method requires it 7717test -z "$MAGIC_CMD" && MAGIC_CMD=file 7718case $deplibs_check_method in 7719file_magic*) 7720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7722$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7723if ${lt_cv_path_MAGIC_CMD+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 case $MAGIC_CMD in 7727[\\/*] | ?:[\\/]*) 7728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7729 ;; 7730*) 7731 lt_save_MAGIC_CMD="$MAGIC_CMD" 7732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7734 for ac_dir in $ac_dummy; do 7735 IFS="$lt_save_ifs" 7736 test -z "$ac_dir" && ac_dir=. 7737 if test -f $ac_dir/${ac_tool_prefix}file; then 7738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7739 if test -n "$file_magic_test_file"; then 7740 case $deplibs_check_method in 7741 "file_magic "*) 7742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7745 $EGREP "$file_magic_regex" > /dev/null; then 7746 : 7747 else 7748 cat <<_LT_EOF 1>&2 7749 7750*** Warning: the command libtool uses to detect shared libraries, 7751*** $file_magic_cmd, produces output that libtool cannot recognize. 7752*** The result is that libtool may fail to recognize shared libraries 7753*** as such. This will affect the creation of libtool libraries that 7754*** depend on shared libraries, but programs linked with such libtool 7755*** libraries will work regardless of this problem. Nevertheless, you 7756*** may want to report the problem to your system manager and/or to 7757*** bug-libtool@gnu.org 7758 7759_LT_EOF 7760 fi ;; 7761 esac 7762 fi 7763 break 7764 fi 7765 done 7766 IFS="$lt_save_ifs" 7767 MAGIC_CMD="$lt_save_MAGIC_CMD" 7768 ;; 7769esac 7770fi 7771 7772MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7773if test -n "$MAGIC_CMD"; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7775$as_echo "$MAGIC_CMD" >&6; } 7776else 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7778$as_echo "no" >&6; } 7779fi 7780 7781 7782 7783 7784 7785if test -z "$lt_cv_path_MAGIC_CMD"; then 7786 if test -n "$ac_tool_prefix"; then 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7788$as_echo_n "checking for file... " >&6; } 7789if ${lt_cv_path_MAGIC_CMD+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 case $MAGIC_CMD in 7793[\\/*] | ?:[\\/]*) 7794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7795 ;; 7796*) 7797 lt_save_MAGIC_CMD="$MAGIC_CMD" 7798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7800 for ac_dir in $ac_dummy; do 7801 IFS="$lt_save_ifs" 7802 test -z "$ac_dir" && ac_dir=. 7803 if test -f $ac_dir/file; then 7804 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7805 if test -n "$file_magic_test_file"; then 7806 case $deplibs_check_method in 7807 "file_magic "*) 7808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7811 $EGREP "$file_magic_regex" > /dev/null; then 7812 : 7813 else 7814 cat <<_LT_EOF 1>&2 7815 7816*** Warning: the command libtool uses to detect shared libraries, 7817*** $file_magic_cmd, produces output that libtool cannot recognize. 7818*** The result is that libtool may fail to recognize shared libraries 7819*** as such. This will affect the creation of libtool libraries that 7820*** depend on shared libraries, but programs linked with such libtool 7821*** libraries will work regardless of this problem. Nevertheless, you 7822*** may want to report the problem to your system manager and/or to 7823*** bug-libtool@gnu.org 7824 7825_LT_EOF 7826 fi ;; 7827 esac 7828 fi 7829 break 7830 fi 7831 done 7832 IFS="$lt_save_ifs" 7833 MAGIC_CMD="$lt_save_MAGIC_CMD" 7834 ;; 7835esac 7836fi 7837 7838MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7839if test -n "$MAGIC_CMD"; then 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7841$as_echo "$MAGIC_CMD" >&6; } 7842else 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7844$as_echo "no" >&6; } 7845fi 7846 7847 7848 else 7849 MAGIC_CMD=: 7850 fi 7851fi 7852 7853 fi 7854 ;; 7855esac 7856 7857# Use C for the default configuration in the libtool script 7858 7859lt_save_CC="$CC" 7860ac_ext=c 7861ac_cpp='$CPP $CPPFLAGS' 7862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7864ac_compiler_gnu=$ac_cv_c_compiler_gnu 7865 7866 7867# Source file extension for C test sources. 7868ac_ext=c 7869 7870# Object file extension for compiled C test sources. 7871objext=o 7872objext=$objext 7873 7874# Code to be used in simple compile tests 7875lt_simple_compile_test_code="int some_variable = 0;" 7876 7877# Code to be used in simple link tests 7878lt_simple_link_test_code='int main(){return(0);}' 7879 7880 7881 7882 7883 7884 7885 7886# If no C compiler was specified, use CC. 7887LTCC=${LTCC-"$CC"} 7888 7889# If no C compiler flags were specified, use CFLAGS. 7890LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7891 7892# Allow CC to be a program name with arguments. 7893compiler=$CC 7894 7895# Save the default compiler, since it gets overwritten when the other 7896# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7897compiler_DEFAULT=$CC 7898 7899# save warnings/boilerplate of simple test code 7900ac_outfile=conftest.$ac_objext 7901echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7903_lt_compiler_boilerplate=`cat conftest.err` 7904$RM conftest* 7905 7906ac_outfile=conftest.$ac_objext 7907echo "$lt_simple_link_test_code" >conftest.$ac_ext 7908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7909_lt_linker_boilerplate=`cat conftest.err` 7910$RM -r conftest* 7911 7912 7913if test -n "$compiler"; then 7914 7915lt_prog_compiler_no_builtin_flag= 7916 7917if test "$GCC" = yes; then 7918 case $cc_basename in 7919 nvcc*) 7920 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7921 *) 7922 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7923 esac 7924 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7926$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7927if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7928 $as_echo_n "(cached) " >&6 7929else 7930 lt_cv_prog_compiler_rtti_exceptions=no 7931 ac_outfile=conftest.$ac_objext 7932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7933 lt_compiler_flag="-fno-rtti -fno-exceptions" 7934 # Insert the option either (1) after the last *FLAGS variable, or 7935 # (2) before a word containing "conftest.", or (3) at the end. 7936 # Note that $ac_compile itself does not contain backslashes and begins 7937 # with a dollar sign (not a hyphen), so the echo should work correctly. 7938 # The option is referenced via a variable to avoid confusing sed. 7939 lt_compile=`echo "$ac_compile" | $SED \ 7940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7942 -e 's:$: $lt_compiler_flag:'` 7943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7944 (eval "$lt_compile" 2>conftest.err) 7945 ac_status=$? 7946 cat conftest.err >&5 7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7948 if (exit $ac_status) && test -s "$ac_outfile"; then 7949 # The compiler can only warn and ignore the option if not recognized 7950 # So say no if there are warnings other than the usual output. 7951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7954 lt_cv_prog_compiler_rtti_exceptions=yes 7955 fi 7956 fi 7957 $RM conftest* 7958 7959fi 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7961$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7962 7963if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7965else 7966 : 7967fi 7968 7969fi 7970 7971 7972 7973 7974 7975 7976 lt_prog_compiler_wl= 7977lt_prog_compiler_pic= 7978lt_prog_compiler_static= 7979 7980 7981 if test "$GCC" = yes; then 7982 lt_prog_compiler_wl='-Wl,' 7983 lt_prog_compiler_static='-static' 7984 7985 case $host_os in 7986 aix*) 7987 # All AIX code is PIC. 7988 if test "$host_cpu" = ia64; then 7989 # AIX 5 now supports IA64 processor 7990 lt_prog_compiler_static='-Bstatic' 7991 fi 7992 ;; 7993 7994 amigaos*) 7995 case $host_cpu in 7996 powerpc) 7997 # see comment about AmigaOS4 .so support 7998 lt_prog_compiler_pic='-fPIC' 7999 ;; 8000 m68k) 8001 # FIXME: we need at least 68020 code to build shared libraries, but 8002 # adding the `-m68020' flag to GCC prevents building anything better, 8003 # like `-m68040'. 8004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8005 ;; 8006 esac 8007 ;; 8008 8009 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8010 # PIC is the default for these OSes. 8011 ;; 8012 8013 mingw* | cygwin* | pw32* | os2* | cegcc*) 8014 # This hack is so that the source file can tell whether it is being 8015 # built for inclusion in a dll (and should export symbols for example). 8016 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8017 # (--disable-auto-import) libraries 8018 lt_prog_compiler_pic='-DDLL_EXPORT' 8019 ;; 8020 8021 darwin* | rhapsody*) 8022 # PIC is the default on this platform 8023 # Common symbols not allowed in MH_DYLIB files 8024 lt_prog_compiler_pic='-fno-common' 8025 ;; 8026 8027 haiku*) 8028 # PIC is the default for Haiku. 8029 # The "-static" flag exists, but is broken. 8030 lt_prog_compiler_static= 8031 ;; 8032 8033 hpux*) 8034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8036 # sets the default TLS model and affects inlining. 8037 case $host_cpu in 8038 hppa*64*) 8039 # +Z the default 8040 ;; 8041 *) 8042 lt_prog_compiler_pic='-fPIC' 8043 ;; 8044 esac 8045 ;; 8046 8047 interix[3-9]*) 8048 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8049 # Instead, we relocate shared libraries at runtime. 8050 ;; 8051 8052 msdosdjgpp*) 8053 # Just because we use GCC doesn't mean we suddenly get shared libraries 8054 # on systems that don't support them. 8055 lt_prog_compiler_can_build_shared=no 8056 enable_shared=no 8057 ;; 8058 8059 *nto* | *qnx*) 8060 # QNX uses GNU C++, but need to define -shared option too, otherwise 8061 # it will coredump. 8062 lt_prog_compiler_pic='-fPIC -shared' 8063 ;; 8064 8065 sysv4*MP*) 8066 if test -d /usr/nec; then 8067 lt_prog_compiler_pic=-Kconform_pic 8068 fi 8069 ;; 8070 8071 *) 8072 lt_prog_compiler_pic='-fPIC' 8073 ;; 8074 esac 8075 8076 case $cc_basename in 8077 nvcc*) # Cuda Compiler Driver 2.2 8078 lt_prog_compiler_wl='-Xlinker ' 8079 lt_prog_compiler_pic='-Xcompiler -fPIC' 8080 ;; 8081 esac 8082 else 8083 # PORTME Check for flag to pass linker flags through the system compiler. 8084 case $host_os in 8085 aix*) 8086 lt_prog_compiler_wl='-Wl,' 8087 if test "$host_cpu" = ia64; then 8088 # AIX 5 now supports IA64 processor 8089 lt_prog_compiler_static='-Bstatic' 8090 else 8091 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8092 fi 8093 ;; 8094 8095 mingw* | cygwin* | pw32* | os2* | cegcc*) 8096 # This hack is so that the source file can tell whether it is being 8097 # built for inclusion in a dll (and should export symbols for example). 8098 lt_prog_compiler_pic='-DDLL_EXPORT' 8099 ;; 8100 8101 hpux9* | hpux10* | hpux11*) 8102 lt_prog_compiler_wl='-Wl,' 8103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8104 # not for PA HP-UX. 8105 case $host_cpu in 8106 hppa*64*|ia64*) 8107 # +Z the default 8108 ;; 8109 *) 8110 lt_prog_compiler_pic='+Z' 8111 ;; 8112 esac 8113 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8114 lt_prog_compiler_static='${wl}-a ${wl}archive' 8115 ;; 8116 8117 irix5* | irix6* | nonstopux*) 8118 lt_prog_compiler_wl='-Wl,' 8119 # PIC (with -KPIC) is the default. 8120 lt_prog_compiler_static='-non_shared' 8121 ;; 8122 8123 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8124 case $cc_basename in 8125 # old Intel for x86_64 which still supported -KPIC. 8126 ecc*) 8127 lt_prog_compiler_wl='-Wl,' 8128 lt_prog_compiler_pic='-KPIC' 8129 lt_prog_compiler_static='-static' 8130 ;; 8131 # icc used to be incompatible with GCC. 8132 # ICC 10 doesn't accept -KPIC any more. 8133 icc* | ifort*) 8134 lt_prog_compiler_wl='-Wl,' 8135 lt_prog_compiler_pic='-fPIC' 8136 lt_prog_compiler_static='-static' 8137 ;; 8138 # Lahey Fortran 8.1. 8139 lf95*) 8140 lt_prog_compiler_wl='-Wl,' 8141 lt_prog_compiler_pic='--shared' 8142 lt_prog_compiler_static='--static' 8143 ;; 8144 nagfor*) 8145 # NAG Fortran compiler 8146 lt_prog_compiler_wl='-Wl,-Wl,,' 8147 lt_prog_compiler_pic='-PIC' 8148 lt_prog_compiler_static='-Bstatic' 8149 ;; 8150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8151 # Portland Group compilers (*not* the Pentium gcc compiler, 8152 # which looks to be a dead project) 8153 lt_prog_compiler_wl='-Wl,' 8154 lt_prog_compiler_pic='-fpic' 8155 lt_prog_compiler_static='-Bstatic' 8156 ;; 8157 ccc*) 8158 lt_prog_compiler_wl='-Wl,' 8159 # All Alpha code is PIC. 8160 lt_prog_compiler_static='-non_shared' 8161 ;; 8162 xl* | bgxl* | bgf* | mpixl*) 8163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8164 lt_prog_compiler_wl='-Wl,' 8165 lt_prog_compiler_pic='-qpic' 8166 lt_prog_compiler_static='-qstaticlink' 8167 ;; 8168 *) 8169 case `$CC -V 2>&1 | sed 5q` in 8170 *Sun\ F* | *Sun*Fortran*) 8171 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8172 lt_prog_compiler_pic='-KPIC' 8173 lt_prog_compiler_static='-Bstatic' 8174 lt_prog_compiler_wl='' 8175 ;; 8176 *Sun\ C*) 8177 # Sun C 5.9 8178 lt_prog_compiler_pic='-KPIC' 8179 lt_prog_compiler_static='-Bstatic' 8180 lt_prog_compiler_wl='-Wl,' 8181 ;; 8182 esac 8183 ;; 8184 esac 8185 ;; 8186 8187 newsos6) 8188 lt_prog_compiler_pic='-KPIC' 8189 lt_prog_compiler_static='-Bstatic' 8190 ;; 8191 8192 *nto* | *qnx*) 8193 # QNX uses GNU C++, but need to define -shared option too, otherwise 8194 # it will coredump. 8195 lt_prog_compiler_pic='-fPIC -shared' 8196 ;; 8197 8198 osf3* | osf4* | osf5*) 8199 lt_prog_compiler_wl='-Wl,' 8200 # All OSF/1 code is PIC. 8201 lt_prog_compiler_static='-non_shared' 8202 ;; 8203 8204 rdos*) 8205 lt_prog_compiler_static='-non_shared' 8206 ;; 8207 8208 solaris*) 8209 lt_prog_compiler_pic='-KPIC' 8210 lt_prog_compiler_static='-Bstatic' 8211 case $cc_basename in 8212 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8213 lt_prog_compiler_wl='-Qoption ld ';; 8214 *) 8215 lt_prog_compiler_wl='-Wl,';; 8216 esac 8217 ;; 8218 8219 sunos4*) 8220 lt_prog_compiler_wl='-Qoption ld ' 8221 lt_prog_compiler_pic='-PIC' 8222 lt_prog_compiler_static='-Bstatic' 8223 ;; 8224 8225 sysv4 | sysv4.2uw2* | sysv4.3*) 8226 lt_prog_compiler_wl='-Wl,' 8227 lt_prog_compiler_pic='-KPIC' 8228 lt_prog_compiler_static='-Bstatic' 8229 ;; 8230 8231 sysv4*MP*) 8232 if test -d /usr/nec ;then 8233 lt_prog_compiler_pic='-Kconform_pic' 8234 lt_prog_compiler_static='-Bstatic' 8235 fi 8236 ;; 8237 8238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8239 lt_prog_compiler_wl='-Wl,' 8240 lt_prog_compiler_pic='-KPIC' 8241 lt_prog_compiler_static='-Bstatic' 8242 ;; 8243 8244 unicos*) 8245 lt_prog_compiler_wl='-Wl,' 8246 lt_prog_compiler_can_build_shared=no 8247 ;; 8248 8249 uts4*) 8250 lt_prog_compiler_pic='-pic' 8251 lt_prog_compiler_static='-Bstatic' 8252 ;; 8253 8254 *) 8255 lt_prog_compiler_can_build_shared=no 8256 ;; 8257 esac 8258 fi 8259 8260case $host_os in 8261 # For platforms which do not support PIC, -DPIC is meaningless: 8262 *djgpp*) 8263 lt_prog_compiler_pic= 8264 ;; 8265 *) 8266 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8267 ;; 8268esac 8269 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8271$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8272if ${lt_cv_prog_compiler_pic+:} false; then : 8273 $as_echo_n "(cached) " >&6 8274else 8275 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8278$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8279lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8280 8281# 8282# Check to make sure the PIC flag actually works. 8283# 8284if test -n "$lt_prog_compiler_pic"; then 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8286$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8287if ${lt_cv_prog_compiler_pic_works+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 lt_cv_prog_compiler_pic_works=no 8291 ac_outfile=conftest.$ac_objext 8292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8293 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8294 # Insert the option either (1) after the last *FLAGS variable, or 8295 # (2) before a word containing "conftest.", or (3) at the end. 8296 # Note that $ac_compile itself does not contain backslashes and begins 8297 # with a dollar sign (not a hyphen), so the echo should work correctly. 8298 # The option is referenced via a variable to avoid confusing sed. 8299 lt_compile=`echo "$ac_compile" | $SED \ 8300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8302 -e 's:$: $lt_compiler_flag:'` 8303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8304 (eval "$lt_compile" 2>conftest.err) 8305 ac_status=$? 8306 cat conftest.err >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8308 if (exit $ac_status) && test -s "$ac_outfile"; then 8309 # The compiler can only warn and ignore the option if not recognized 8310 # So say no if there are warnings other than the usual output. 8311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8314 lt_cv_prog_compiler_pic_works=yes 8315 fi 8316 fi 8317 $RM conftest* 8318 8319fi 8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8321$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8322 8323if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8324 case $lt_prog_compiler_pic in 8325 "" | " "*) ;; 8326 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8327 esac 8328else 8329 lt_prog_compiler_pic= 8330 lt_prog_compiler_can_build_shared=no 8331fi 8332 8333fi 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345# 8346# Check to make sure the static flag actually works. 8347# 8348wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8350$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8351if ${lt_cv_prog_compiler_static_works+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 lt_cv_prog_compiler_static_works=no 8355 save_LDFLAGS="$LDFLAGS" 8356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8357 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8359 # The linker can only warn and ignore the option if not recognized 8360 # So say no if there are warnings 8361 if test -s conftest.err; then 8362 # Append any errors to the config.log. 8363 cat conftest.err 1>&5 8364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8366 if diff conftest.exp conftest.er2 >/dev/null; then 8367 lt_cv_prog_compiler_static_works=yes 8368 fi 8369 else 8370 lt_cv_prog_compiler_static_works=yes 8371 fi 8372 fi 8373 $RM -r conftest* 8374 LDFLAGS="$save_LDFLAGS" 8375 8376fi 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8378$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8379 8380if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8381 : 8382else 8383 lt_prog_compiler_static= 8384fi 8385 8386 8387 8388 8389 8390 8391 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8393$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8394if ${lt_cv_prog_compiler_c_o+:} false; then : 8395 $as_echo_n "(cached) " >&6 8396else 8397 lt_cv_prog_compiler_c_o=no 8398 $RM -r conftest 2>/dev/null 8399 mkdir conftest 8400 cd conftest 8401 mkdir out 8402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8403 8404 lt_compiler_flag="-o out/conftest2.$ac_objext" 8405 # Insert the option either (1) after the last *FLAGS variable, or 8406 # (2) before a word containing "conftest.", or (3) at the end. 8407 # Note that $ac_compile itself does not contain backslashes and begins 8408 # with a dollar sign (not a hyphen), so the echo should work correctly. 8409 lt_compile=`echo "$ac_compile" | $SED \ 8410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8412 -e 's:$: $lt_compiler_flag:'` 8413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8414 (eval "$lt_compile" 2>out/conftest.err) 8415 ac_status=$? 8416 cat out/conftest.err >&5 8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8418 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8419 then 8420 # The compiler can only warn and ignore the option if not recognized 8421 # So say no if there are warnings 8422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8425 lt_cv_prog_compiler_c_o=yes 8426 fi 8427 fi 8428 chmod u+w . 2>&5 8429 $RM conftest* 8430 # SGI C++ compiler will create directory out/ii_files/ for 8431 # template instantiation 8432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8433 $RM out/* && rmdir out 8434 cd .. 8435 $RM -r conftest 8436 $RM conftest* 8437 8438fi 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8440$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8441 8442 8443 8444 8445 8446 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8448$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8449if ${lt_cv_prog_compiler_c_o+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 lt_cv_prog_compiler_c_o=no 8453 $RM -r conftest 2>/dev/null 8454 mkdir conftest 8455 cd conftest 8456 mkdir out 8457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8458 8459 lt_compiler_flag="-o out/conftest2.$ac_objext" 8460 # Insert the option either (1) after the last *FLAGS variable, or 8461 # (2) before a word containing "conftest.", or (3) at the end. 8462 # Note that $ac_compile itself does not contain backslashes and begins 8463 # with a dollar sign (not a hyphen), so the echo should work correctly. 8464 lt_compile=`echo "$ac_compile" | $SED \ 8465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8467 -e 's:$: $lt_compiler_flag:'` 8468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8469 (eval "$lt_compile" 2>out/conftest.err) 8470 ac_status=$? 8471 cat out/conftest.err >&5 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8474 then 8475 # The compiler can only warn and ignore the option if not recognized 8476 # So say no if there are warnings 8477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8480 lt_cv_prog_compiler_c_o=yes 8481 fi 8482 fi 8483 chmod u+w . 2>&5 8484 $RM conftest* 8485 # SGI C++ compiler will create directory out/ii_files/ for 8486 # template instantiation 8487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8488 $RM out/* && rmdir out 8489 cd .. 8490 $RM -r conftest 8491 $RM conftest* 8492 8493fi 8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8495$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8496 8497 8498 8499 8500hard_links="nottested" 8501if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8502 # do not overwrite the value of need_locks provided by the user 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8504$as_echo_n "checking if we can lock with hard links... " >&6; } 8505 hard_links=yes 8506 $RM conftest* 8507 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8508 touch conftest.a 8509 ln conftest.a conftest.b 2>&5 || hard_links=no 8510 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8512$as_echo "$hard_links" >&6; } 8513 if test "$hard_links" = no; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8515$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8516 need_locks=warn 8517 fi 8518else 8519 need_locks=no 8520fi 8521 8522 8523 8524 8525 8526 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8528$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8529 8530 runpath_var= 8531 allow_undefined_flag= 8532 always_export_symbols=no 8533 archive_cmds= 8534 archive_expsym_cmds= 8535 compiler_needs_object=no 8536 enable_shared_with_static_runtimes=no 8537 export_dynamic_flag_spec= 8538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8539 hardcode_automatic=no 8540 hardcode_direct=no 8541 hardcode_direct_absolute=no 8542 hardcode_libdir_flag_spec= 8543 hardcode_libdir_flag_spec_ld= 8544 hardcode_libdir_separator= 8545 hardcode_minus_L=no 8546 hardcode_shlibpath_var=unsupported 8547 inherit_rpath=no 8548 link_all_deplibs=unknown 8549 module_cmds= 8550 module_expsym_cmds= 8551 old_archive_from_new_cmds= 8552 old_archive_from_expsyms_cmds= 8553 thread_safe_flag_spec= 8554 whole_archive_flag_spec= 8555 # include_expsyms should be a list of space-separated symbols to be *always* 8556 # included in the symbol list 8557 include_expsyms= 8558 # exclude_expsyms can be an extended regexp of symbols to exclude 8559 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8561 # as well as any symbol that contains `d'. 8562 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8564 # platforms (ab)use it in PIC code, but their linkers get confused if 8565 # the symbol is explicitly referenced. Since portable code cannot 8566 # rely on this symbol name, it's probably fine to never include it in 8567 # preloaded symbol tables. 8568 # Exclude shared library initialization/finalization symbols. 8569 extract_expsyms_cmds= 8570 8571 case $host_os in 8572 cygwin* | mingw* | pw32* | cegcc*) 8573 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8574 # When not using gcc, we currently assume that we are using 8575 # Microsoft Visual C++. 8576 if test "$GCC" != yes; then 8577 with_gnu_ld=no 8578 fi 8579 ;; 8580 interix*) 8581 # we just hope/assume this is gcc and not c89 (= MSVC++) 8582 with_gnu_ld=yes 8583 ;; 8584 openbsd*) 8585 with_gnu_ld=no 8586 ;; 8587 esac 8588 8589 ld_shlibs=yes 8590 8591 # On some targets, GNU ld is compatible enough with the native linker 8592 # that we're better off using the native interface for both. 8593 lt_use_gnu_ld_interface=no 8594 if test "$with_gnu_ld" = yes; then 8595 case $host_os in 8596 aix*) 8597 # The AIX port of GNU ld has always aspired to compatibility 8598 # with the native linker. However, as the warning in the GNU ld 8599 # block says, versions before 2.19.5* couldn't really create working 8600 # shared libraries, regardless of the interface used. 8601 case `$LD -v 2>&1` in 8602 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8603 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8604 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8605 *) 8606 lt_use_gnu_ld_interface=yes 8607 ;; 8608 esac 8609 ;; 8610 *) 8611 lt_use_gnu_ld_interface=yes 8612 ;; 8613 esac 8614 fi 8615 8616 if test "$lt_use_gnu_ld_interface" = yes; then 8617 # If archive_cmds runs LD, not CC, wlarc should be empty 8618 wlarc='${wl}' 8619 8620 # Set some defaults for GNU ld with shared library support. These 8621 # are reset later if shared libraries are not supported. Putting them 8622 # here allows them to be overridden if necessary. 8623 runpath_var=LD_RUN_PATH 8624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8625 export_dynamic_flag_spec='${wl}--export-dynamic' 8626 # ancient GNU ld didn't support --whole-archive et. al. 8627 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8628 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8629 else 8630 whole_archive_flag_spec= 8631 fi 8632 supports_anon_versioning=no 8633 case `$LD -v 2>&1` in 8634 *GNU\ gold*) supports_anon_versioning=yes ;; 8635 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8638 *\ 2.11.*) ;; # other 2.11 versions 8639 *) supports_anon_versioning=yes ;; 8640 esac 8641 8642 # See if GNU ld supports shared libraries. 8643 case $host_os in 8644 aix[3-9]*) 8645 # On AIX/PPC, the GNU linker is very broken 8646 if test "$host_cpu" != ia64; then 8647 ld_shlibs=no 8648 cat <<_LT_EOF 1>&2 8649 8650*** Warning: the GNU linker, at least up to release 2.19, is reported 8651*** to be unable to reliably create shared libraries on AIX. 8652*** Therefore, libtool is disabling shared libraries support. If you 8653*** really care for shared libraries, you may want to install binutils 8654*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8655*** You will then need to restart the configuration process. 8656 8657_LT_EOF 8658 fi 8659 ;; 8660 8661 amigaos*) 8662 case $host_cpu in 8663 powerpc) 8664 # see comment about AmigaOS4 .so support 8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8666 archive_expsym_cmds='' 8667 ;; 8668 m68k) 8669 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)' 8670 hardcode_libdir_flag_spec='-L$libdir' 8671 hardcode_minus_L=yes 8672 ;; 8673 esac 8674 ;; 8675 8676 beos*) 8677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8678 allow_undefined_flag=unsupported 8679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8680 # support --undefined. This deserves some investigation. FIXME 8681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8682 else 8683 ld_shlibs=no 8684 fi 8685 ;; 8686 8687 cygwin* | mingw* | pw32* | cegcc*) 8688 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8689 # as there is no search path for DLLs. 8690 hardcode_libdir_flag_spec='-L$libdir' 8691 export_dynamic_flag_spec='${wl}--export-all-symbols' 8692 allow_undefined_flag=unsupported 8693 always_export_symbols=no 8694 enable_shared_with_static_runtimes=yes 8695 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' 8696 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8697 8698 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8700 # If the export-symbols file already is a .def file (1st line 8701 # is EXPORTS), use it as is; otherwise, prepend... 8702 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8703 cp $export_symbols $output_objdir/$soname.def; 8704 else 8705 echo EXPORTS > $output_objdir/$soname.def; 8706 cat $export_symbols >> $output_objdir/$soname.def; 8707 fi~ 8708 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8709 else 8710 ld_shlibs=no 8711 fi 8712 ;; 8713 8714 haiku*) 8715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8716 link_all_deplibs=yes 8717 ;; 8718 8719 interix[3-9]*) 8720 hardcode_direct=no 8721 hardcode_shlibpath_var=no 8722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8723 export_dynamic_flag_spec='${wl}-E' 8724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8725 # Instead, shared libraries are loaded at an image base (0x10000000 by 8726 # default) and relocated if they conflict, which is a slow very memory 8727 # consuming and fragmenting process. To avoid this, we pick a random, 8728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8729 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8731 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' 8732 ;; 8733 8734 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8735 tmp_diet=no 8736 if test "$host_os" = linux-dietlibc; then 8737 case $cc_basename in 8738 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8739 esac 8740 fi 8741 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8742 && test "$tmp_diet" = no 8743 then 8744 tmp_addflag=' $pic_flag' 8745 tmp_sharedflag='-shared' 8746 case $cc_basename,$host_cpu in 8747 pgcc*) # Portland Group C compiler 8748 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' 8749 tmp_addflag=' $pic_flag' 8750 ;; 8751 pgf77* | pgf90* | pgf95* | pgfortran*) 8752 # Portland Group f77 and f90 compilers 8753 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' 8754 tmp_addflag=' $pic_flag -Mnomain' ;; 8755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8756 tmp_addflag=' -i_dynamic' ;; 8757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8758 tmp_addflag=' -i_dynamic -nofor_main' ;; 8759 ifc* | ifort*) # Intel Fortran compiler 8760 tmp_addflag=' -nofor_main' ;; 8761 lf95*) # Lahey Fortran 8.1 8762 whole_archive_flag_spec= 8763 tmp_sharedflag='--shared' ;; 8764 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8765 tmp_sharedflag='-qmkshrobj' 8766 tmp_addflag= ;; 8767 nvcc*) # Cuda Compiler Driver 2.2 8768 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' 8769 compiler_needs_object=yes 8770 ;; 8771 esac 8772 case `$CC -V 2>&1 | sed 5q` in 8773 *Sun\ C*) # Sun C 5.9 8774 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' 8775 compiler_needs_object=yes 8776 tmp_sharedflag='-G' ;; 8777 *Sun\ F*) # Sun Fortran 8.3 8778 tmp_sharedflag='-G' ;; 8779 esac 8780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8781 8782 if test "x$supports_anon_versioning" = xyes; then 8783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8785 echo "local: *; };" >> $output_objdir/$libname.ver~ 8786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8787 fi 8788 8789 case $cc_basename in 8790 xlf* | bgf* | bgxlf* | mpixlf*) 8791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8793 hardcode_libdir_flag_spec= 8794 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8795 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8796 if test "x$supports_anon_versioning" = xyes; then 8797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8799 echo "local: *; };" >> $output_objdir/$libname.ver~ 8800 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8801 fi 8802 ;; 8803 esac 8804 else 8805 ld_shlibs=no 8806 fi 8807 ;; 8808 8809 netbsd*) 8810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8812 wlarc= 8813 else 8814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8815 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8816 fi 8817 ;; 8818 8819 solaris*) 8820 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8821 ld_shlibs=no 8822 cat <<_LT_EOF 1>&2 8823 8824*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8825*** create shared libraries on Solaris systems. Therefore, libtool 8826*** is disabling shared libraries support. We urge you to upgrade GNU 8827*** binutils to release 2.9.1 or newer. Another option is to modify 8828*** your PATH or compiler configuration so that the native linker is 8829*** used, and then restart. 8830 8831_LT_EOF 8832 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8834 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8835 else 8836 ld_shlibs=no 8837 fi 8838 ;; 8839 8840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8841 case `$LD -v 2>&1` in 8842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8843 ld_shlibs=no 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8847*** reliably create shared libraries on SCO systems. Therefore, libtool 8848*** is disabling shared libraries support. We urge you to upgrade GNU 8849*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8850*** your PATH or compiler configuration so that the native linker is 8851*** used, and then restart. 8852 8853_LT_EOF 8854 ;; 8855 *) 8856 # For security reasons, it is highly recommended that you always 8857 # use absolute paths for naming shared libraries, and exclude the 8858 # DT_RUNPATH tag from executables and libraries. But doing so 8859 # requires that you compile everything twice, which is a pain. 8860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8864 else 8865 ld_shlibs=no 8866 fi 8867 ;; 8868 esac 8869 ;; 8870 8871 sunos4*) 8872 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8873 wlarc= 8874 hardcode_direct=yes 8875 hardcode_shlibpath_var=no 8876 ;; 8877 8878 *) 8879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8881 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8882 else 8883 ld_shlibs=no 8884 fi 8885 ;; 8886 esac 8887 8888 if test "$ld_shlibs" = no; then 8889 runpath_var= 8890 hardcode_libdir_flag_spec= 8891 export_dynamic_flag_spec= 8892 whole_archive_flag_spec= 8893 fi 8894 else 8895 # PORTME fill in a description of your system's linker (not GNU ld) 8896 case $host_os in 8897 aix3*) 8898 allow_undefined_flag=unsupported 8899 always_export_symbols=yes 8900 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' 8901 # Note: this linker hardcodes the directories in LIBPATH if there 8902 # are no directories specified by -L. 8903 hardcode_minus_L=yes 8904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8905 # Neither direct hardcoding nor static linking is supported with a 8906 # broken collect2. 8907 hardcode_direct=unsupported 8908 fi 8909 ;; 8910 8911 aix[4-9]*) 8912 if test "$host_cpu" = ia64; then 8913 # On IA64, the linker does run time linking by default, so we don't 8914 # have to do anything special. 8915 aix_use_runtimelinking=no 8916 exp_sym_flag='-Bexport' 8917 no_entry_flag="" 8918 else 8919 # If we're using GNU nm, then we don't want the "-C" option. 8920 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8921 # Also, AIX nm treats weak defined symbols like other global 8922 # defined symbols, whereas GNU nm marks them as "W". 8923 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8924 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' 8925 else 8926 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' 8927 fi 8928 aix_use_runtimelinking=no 8929 8930 # Test if we are trying to use run time linking or normal 8931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8932 # need to do runtime linking. 8933 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8934 for ld_flag in $LDFLAGS; do 8935 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8936 aix_use_runtimelinking=yes 8937 break 8938 fi 8939 done 8940 ;; 8941 esac 8942 8943 exp_sym_flag='-bexport' 8944 no_entry_flag='-bnoentry' 8945 fi 8946 8947 # When large executables or shared objects are built, AIX ld can 8948 # have problems creating the table of contents. If linking a library 8949 # or program results in "error TOC overflow" add -mminimal-toc to 8950 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8951 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8952 8953 archive_cmds='' 8954 hardcode_direct=yes 8955 hardcode_direct_absolute=yes 8956 hardcode_libdir_separator=':' 8957 link_all_deplibs=yes 8958 file_list_spec='${wl}-f,' 8959 8960 if test "$GCC" = yes; then 8961 case $host_os in aix4.[012]|aix4.[012].*) 8962 # We only want to do this on AIX 4.2 and lower, the check 8963 # below for broken collect2 doesn't work under 4.3+ 8964 collect2name=`${CC} -print-prog-name=collect2` 8965 if test -f "$collect2name" && 8966 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8967 then 8968 # We have reworked collect2 8969 : 8970 else 8971 # We have old collect2 8972 hardcode_direct=unsupported 8973 # It fails to find uninstalled libraries when the uninstalled 8974 # path is not listed in the libpath. Setting hardcode_minus_L 8975 # to unsupported forces relinking 8976 hardcode_minus_L=yes 8977 hardcode_libdir_flag_spec='-L$libdir' 8978 hardcode_libdir_separator= 8979 fi 8980 ;; 8981 esac 8982 shared_flag='-shared' 8983 if test "$aix_use_runtimelinking" = yes; then 8984 shared_flag="$shared_flag "'${wl}-G' 8985 fi 8986 else 8987 # not using gcc 8988 if test "$host_cpu" = ia64; then 8989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8990 # chokes on -Wl,-G. The following line is correct: 8991 shared_flag='-G' 8992 else 8993 if test "$aix_use_runtimelinking" = yes; then 8994 shared_flag='${wl}-G' 8995 else 8996 shared_flag='${wl}-bM:SRE' 8997 fi 8998 fi 8999 fi 9000 9001 export_dynamic_flag_spec='${wl}-bexpall' 9002 # It seems that -bexpall does not export symbols beginning with 9003 # underscore (_), so it is better to generate a list of symbols to export. 9004 always_export_symbols=yes 9005 if test "$aix_use_runtimelinking" = yes; then 9006 # Warning - without using the other runtime loading flags (-brtl), 9007 # -berok will link without error, but may produce a broken library. 9008 allow_undefined_flag='-berok' 9009 # Determine the default libpath from the value encoded in an 9010 # empty executable. 9011 if test "${lt_cv_aix_libpath+set}" = set; then 9012 aix_libpath=$lt_cv_aix_libpath 9013else 9014 if ${lt_cv_aix_libpath_+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9018/* end confdefs.h. */ 9019 9020int 9021main () 9022{ 9023 9024 ; 9025 return 0; 9026} 9027_ACEOF 9028if ac_fn_c_try_link "$LINENO"; then : 9029 9030 lt_aix_libpath_sed=' 9031 /Import File Strings/,/^$/ { 9032 /^0/ { 9033 s/^0 *\([^ ]*\) *$/\1/ 9034 p 9035 } 9036 }' 9037 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9038 # Check for a 64-bit object if we didn't find anything. 9039 if test -z "$lt_cv_aix_libpath_"; then 9040 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9041 fi 9042fi 9043rm -f core conftest.err conftest.$ac_objext \ 9044 conftest$ac_exeext conftest.$ac_ext 9045 if test -z "$lt_cv_aix_libpath_"; then 9046 lt_cv_aix_libpath_="/usr/lib:/lib" 9047 fi 9048 9049fi 9050 9051 aix_libpath=$lt_cv_aix_libpath_ 9052fi 9053 9054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9055 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" 9056 else 9057 if test "$host_cpu" = ia64; then 9058 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9059 allow_undefined_flag="-z nodefs" 9060 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" 9061 else 9062 # Determine the default libpath from the value encoded in an 9063 # empty executable. 9064 if test "${lt_cv_aix_libpath+set}" = set; then 9065 aix_libpath=$lt_cv_aix_libpath 9066else 9067 if ${lt_cv_aix_libpath_+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072 9073int 9074main () 9075{ 9076 9077 ; 9078 return 0; 9079} 9080_ACEOF 9081if ac_fn_c_try_link "$LINENO"; then : 9082 9083 lt_aix_libpath_sed=' 9084 /Import File Strings/,/^$/ { 9085 /^0/ { 9086 s/^0 *\([^ ]*\) *$/\1/ 9087 p 9088 } 9089 }' 9090 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9091 # Check for a 64-bit object if we didn't find anything. 9092 if test -z "$lt_cv_aix_libpath_"; then 9093 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9094 fi 9095fi 9096rm -f core conftest.err conftest.$ac_objext \ 9097 conftest$ac_exeext conftest.$ac_ext 9098 if test -z "$lt_cv_aix_libpath_"; then 9099 lt_cv_aix_libpath_="/usr/lib:/lib" 9100 fi 9101 9102fi 9103 9104 aix_libpath=$lt_cv_aix_libpath_ 9105fi 9106 9107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9108 # Warning - without using the other run time loading flags, 9109 # -berok will link without error, but may produce a broken library. 9110 no_undefined_flag=' ${wl}-bernotok' 9111 allow_undefined_flag=' ${wl}-berok' 9112 if test "$with_gnu_ld" = yes; then 9113 # We only use this code for GNU lds that support --whole-archive. 9114 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9115 else 9116 # Exported symbols can be pulled into shared objects from archives 9117 whole_archive_flag_spec='$convenience' 9118 fi 9119 archive_cmds_need_lc=yes 9120 # This is similar to how AIX traditionally builds its shared libraries. 9121 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' 9122 fi 9123 fi 9124 ;; 9125 9126 amigaos*) 9127 case $host_cpu in 9128 powerpc) 9129 # see comment about AmigaOS4 .so support 9130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9131 archive_expsym_cmds='' 9132 ;; 9133 m68k) 9134 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)' 9135 hardcode_libdir_flag_spec='-L$libdir' 9136 hardcode_minus_L=yes 9137 ;; 9138 esac 9139 ;; 9140 9141 bsdi[45]*) 9142 export_dynamic_flag_spec=-rdynamic 9143 ;; 9144 9145 cygwin* | mingw* | pw32* | cegcc*) 9146 # When not using gcc, we currently assume that we are using 9147 # Microsoft Visual C++. 9148 # hardcode_libdir_flag_spec is actually meaningless, as there is 9149 # no search path for DLLs. 9150 case $cc_basename in 9151 cl*) 9152 # Native MSVC 9153 hardcode_libdir_flag_spec=' ' 9154 allow_undefined_flag=unsupported 9155 always_export_symbols=yes 9156 file_list_spec='@' 9157 # Tell ltmain to make .lib files, not .a files. 9158 libext=lib 9159 # Tell ltmain to make .dll files, not .so files. 9160 shrext_cmds=".dll" 9161 # FIXME: Setting linknames here is a bad hack. 9162 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9164 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9165 else 9166 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9167 fi~ 9168 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9169 linknames=' 9170 # The linker will not automatically build a static lib if we build a DLL. 9171 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9172 enable_shared_with_static_runtimes=yes 9173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9174 # Don't use ranlib 9175 old_postinstall_cmds='chmod 644 $oldlib' 9176 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9177 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9178 case $lt_outputfile in 9179 *.exe|*.EXE) ;; 9180 *) 9181 lt_outputfile="$lt_outputfile.exe" 9182 lt_tool_outputfile="$lt_tool_outputfile.exe" 9183 ;; 9184 esac~ 9185 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9186 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9187 $RM "$lt_outputfile.manifest"; 9188 fi' 9189 ;; 9190 *) 9191 # Assume MSVC wrapper 9192 hardcode_libdir_flag_spec=' ' 9193 allow_undefined_flag=unsupported 9194 # Tell ltmain to make .lib files, not .a files. 9195 libext=lib 9196 # Tell ltmain to make .dll files, not .so files. 9197 shrext_cmds=".dll" 9198 # FIXME: Setting linknames here is a bad hack. 9199 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9200 # The linker will automatically build a .lib file if we build a DLL. 9201 old_archive_from_new_cmds='true' 9202 # FIXME: Should let the user specify the lib program. 9203 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9204 enable_shared_with_static_runtimes=yes 9205 ;; 9206 esac 9207 ;; 9208 9209 darwin* | rhapsody*) 9210 9211 9212 archive_cmds_need_lc=no 9213 hardcode_direct=no 9214 hardcode_automatic=yes 9215 hardcode_shlibpath_var=unsupported 9216 if test "$lt_cv_ld_force_load" = "yes"; then 9217 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\"`' 9218 else 9219 whole_archive_flag_spec='' 9220 fi 9221 link_all_deplibs=yes 9222 allow_undefined_flag="$_lt_dar_allow_undefined" 9223 case $cc_basename in 9224 ifort*) _lt_dar_can_shared=yes ;; 9225 *) _lt_dar_can_shared=$GCC ;; 9226 esac 9227 if test "$_lt_dar_can_shared" = "yes"; then 9228 output_verbose_link_cmd=func_echo_all 9229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9231 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}" 9232 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}" 9233 9234 else 9235 ld_shlibs=no 9236 fi 9237 9238 ;; 9239 9240 dgux*) 9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9242 hardcode_libdir_flag_spec='-L$libdir' 9243 hardcode_shlibpath_var=no 9244 ;; 9245 9246 freebsd1*) 9247 ld_shlibs=no 9248 ;; 9249 9250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9251 # support. Future versions do this automatically, but an explicit c++rt0.o 9252 # does not break anything, and helps significantly (at the cost of a little 9253 # extra space). 9254 freebsd2.2*) 9255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9256 hardcode_libdir_flag_spec='-R$libdir' 9257 hardcode_direct=yes 9258 hardcode_shlibpath_var=no 9259 ;; 9260 9261 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9262 freebsd2*) 9263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9264 hardcode_direct=yes 9265 hardcode_minus_L=yes 9266 hardcode_shlibpath_var=no 9267 ;; 9268 9269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9270 freebsd* | dragonfly*) 9271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9272 hardcode_libdir_flag_spec='-R$libdir' 9273 hardcode_direct=yes 9274 hardcode_shlibpath_var=no 9275 ;; 9276 9277 hpux9*) 9278 if test "$GCC" = yes; then 9279 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' 9280 else 9281 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' 9282 fi 9283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9284 hardcode_libdir_separator=: 9285 hardcode_direct=yes 9286 9287 # hardcode_minus_L: Not really in the search PATH, 9288 # but as the default location of the library. 9289 hardcode_minus_L=yes 9290 export_dynamic_flag_spec='${wl}-E' 9291 ;; 9292 9293 hpux10*) 9294 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9295 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9296 else 9297 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9298 fi 9299 if test "$with_gnu_ld" = no; then 9300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9301 hardcode_libdir_flag_spec_ld='+b $libdir' 9302 hardcode_libdir_separator=: 9303 hardcode_direct=yes 9304 hardcode_direct_absolute=yes 9305 export_dynamic_flag_spec='${wl}-E' 9306 # hardcode_minus_L: Not really in the search PATH, 9307 # but as the default location of the library. 9308 hardcode_minus_L=yes 9309 fi 9310 ;; 9311 9312 hpux11*) 9313 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9314 case $host_cpu in 9315 hppa*64*) 9316 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9317 ;; 9318 ia64*) 9319 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9320 ;; 9321 *) 9322 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9323 ;; 9324 esac 9325 else 9326 case $host_cpu in 9327 hppa*64*) 9328 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9329 ;; 9330 ia64*) 9331 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9332 ;; 9333 *) 9334 9335 # Older versions of the 11.00 compiler do not understand -b yet 9336 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9338$as_echo_n "checking if $CC understands -b... " >&6; } 9339if ${lt_cv_prog_compiler__b+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 lt_cv_prog_compiler__b=no 9343 save_LDFLAGS="$LDFLAGS" 9344 LDFLAGS="$LDFLAGS -b" 9345 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9347 # The linker can only warn and ignore the option if not recognized 9348 # So say no if there are warnings 9349 if test -s conftest.err; then 9350 # Append any errors to the config.log. 9351 cat conftest.err 1>&5 9352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9354 if diff conftest.exp conftest.er2 >/dev/null; then 9355 lt_cv_prog_compiler__b=yes 9356 fi 9357 else 9358 lt_cv_prog_compiler__b=yes 9359 fi 9360 fi 9361 $RM -r conftest* 9362 LDFLAGS="$save_LDFLAGS" 9363 9364fi 9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9366$as_echo "$lt_cv_prog_compiler__b" >&6; } 9367 9368if test x"$lt_cv_prog_compiler__b" = xyes; then 9369 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9370else 9371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9372fi 9373 9374 ;; 9375 esac 9376 fi 9377 if test "$with_gnu_ld" = no; then 9378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9379 hardcode_libdir_separator=: 9380 9381 case $host_cpu in 9382 hppa*64*|ia64*) 9383 hardcode_direct=no 9384 hardcode_shlibpath_var=no 9385 ;; 9386 *) 9387 hardcode_direct=yes 9388 hardcode_direct_absolute=yes 9389 export_dynamic_flag_spec='${wl}-E' 9390 9391 # hardcode_minus_L: Not really in the search PATH, 9392 # but as the default location of the library. 9393 hardcode_minus_L=yes 9394 ;; 9395 esac 9396 fi 9397 ;; 9398 9399 irix5* | irix6* | nonstopux*) 9400 if test "$GCC" = yes; then 9401 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' 9402 # Try to use the -exported_symbol ld option, if it does not 9403 # work, assume that -exports_file does not work either and 9404 # implicitly export all symbols. 9405 # This should be the same for all languages, so no per-tag cache variable. 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9407$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9408if ${lt_cv_irix_exported_symbol+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 save_LDFLAGS="$LDFLAGS" 9412 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9414/* end confdefs.h. */ 9415int foo (void) { return 0; } 9416_ACEOF 9417if ac_fn_c_try_link "$LINENO"; then : 9418 lt_cv_irix_exported_symbol=yes 9419else 9420 lt_cv_irix_exported_symbol=no 9421fi 9422rm -f core conftest.err conftest.$ac_objext \ 9423 conftest$ac_exeext conftest.$ac_ext 9424 LDFLAGS="$save_LDFLAGS" 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9427$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9428 if test "$lt_cv_irix_exported_symbol" = yes; then 9429 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' 9430 fi 9431 else 9432 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' 9433 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' 9434 fi 9435 archive_cmds_need_lc='no' 9436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9437 hardcode_libdir_separator=: 9438 inherit_rpath=yes 9439 link_all_deplibs=yes 9440 ;; 9441 9442 netbsd*) 9443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9445 else 9446 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9447 fi 9448 hardcode_libdir_flag_spec='-R$libdir' 9449 hardcode_direct=yes 9450 hardcode_shlibpath_var=no 9451 ;; 9452 9453 newsos6) 9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9455 hardcode_direct=yes 9456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9457 hardcode_libdir_separator=: 9458 hardcode_shlibpath_var=no 9459 ;; 9460 9461 *nto* | *qnx*) 9462 ;; 9463 9464 openbsd*) 9465 if test -f /usr/libexec/ld.so; then 9466 hardcode_direct=yes 9467 hardcode_shlibpath_var=no 9468 hardcode_direct_absolute=yes 9469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9471 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9473 export_dynamic_flag_spec='${wl}-E' 9474 else 9475 case $host_os in 9476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9478 hardcode_libdir_flag_spec='-R$libdir' 9479 ;; 9480 *) 9481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9483 ;; 9484 esac 9485 fi 9486 else 9487 ld_shlibs=no 9488 fi 9489 ;; 9490 9491 os2*) 9492 hardcode_libdir_flag_spec='-L$libdir' 9493 hardcode_minus_L=yes 9494 allow_undefined_flag=unsupported 9495 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' 9496 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9497 ;; 9498 9499 osf3*) 9500 if test "$GCC" = yes; then 9501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9502 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' 9503 else 9504 allow_undefined_flag=' -expect_unresolved \*' 9505 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' 9506 fi 9507 archive_cmds_need_lc='no' 9508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9509 hardcode_libdir_separator=: 9510 ;; 9511 9512 osf4* | osf5*) # as osf3* with the addition of -msym flag 9513 if test "$GCC" = yes; then 9514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9515 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' 9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9517 else 9518 allow_undefined_flag=' -expect_unresolved \*' 9519 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' 9520 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~ 9521 $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' 9522 9523 # Both c and cxx compiler support -rpath directly 9524 hardcode_libdir_flag_spec='-rpath $libdir' 9525 fi 9526 archive_cmds_need_lc='no' 9527 hardcode_libdir_separator=: 9528 ;; 9529 9530 solaris*) 9531 no_undefined_flag=' -z defs' 9532 if test "$GCC" = yes; then 9533 wlarc='${wl}' 9534 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9536 $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' 9537 else 9538 case `$CC -V 2>&1` in 9539 *"Compilers 5.0"*) 9540 wlarc='' 9541 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9543 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9544 ;; 9545 *) 9546 wlarc='${wl}' 9547 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9549 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9550 ;; 9551 esac 9552 fi 9553 hardcode_libdir_flag_spec='-R$libdir' 9554 hardcode_shlibpath_var=no 9555 case $host_os in 9556 solaris2.[0-5] | solaris2.[0-5].*) ;; 9557 *) 9558 # The compiler driver will combine and reorder linker options, 9559 # but understands `-z linker_flag'. GCC discards it without `$wl', 9560 # but is careful enough not to reorder. 9561 # Supported since Solaris 2.6 (maybe 2.5.1?) 9562 if test "$GCC" = yes; then 9563 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9564 else 9565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9566 fi 9567 ;; 9568 esac 9569 link_all_deplibs=yes 9570 ;; 9571 9572 sunos4*) 9573 if test "x$host_vendor" = xsequent; then 9574 # Use $CC to link under sequent, because it throws in some extra .o 9575 # files that make .init and .fini sections work. 9576 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9577 else 9578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9579 fi 9580 hardcode_libdir_flag_spec='-L$libdir' 9581 hardcode_direct=yes 9582 hardcode_minus_L=yes 9583 hardcode_shlibpath_var=no 9584 ;; 9585 9586 sysv4) 9587 case $host_vendor in 9588 sni) 9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9590 hardcode_direct=yes # is this really true??? 9591 ;; 9592 siemens) 9593 ## LD is ld it makes a PLAMLIB 9594 ## CC just makes a GrossModule. 9595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9596 reload_cmds='$CC -r -o $output$reload_objs' 9597 hardcode_direct=no 9598 ;; 9599 motorola) 9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9602 ;; 9603 esac 9604 runpath_var='LD_RUN_PATH' 9605 hardcode_shlibpath_var=no 9606 ;; 9607 9608 sysv4.3*) 9609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9610 hardcode_shlibpath_var=no 9611 export_dynamic_flag_spec='-Bexport' 9612 ;; 9613 9614 sysv4*MP*) 9615 if test -d /usr/nec; then 9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9617 hardcode_shlibpath_var=no 9618 runpath_var=LD_RUN_PATH 9619 hardcode_runpath_var=yes 9620 ld_shlibs=yes 9621 fi 9622 ;; 9623 9624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9625 no_undefined_flag='${wl}-z,text' 9626 archive_cmds_need_lc=no 9627 hardcode_shlibpath_var=no 9628 runpath_var='LD_RUN_PATH' 9629 9630 if test "$GCC" = yes; then 9631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9633 else 9634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9636 fi 9637 ;; 9638 9639 sysv5* | sco3.2v5* | sco5v6*) 9640 # Note: We can NOT use -z defs as we might desire, because we do not 9641 # link with -lc, and that would cause any symbols used from libc to 9642 # always be unresolved, which means just about no library would 9643 # ever link correctly. If we're not using GNU ld we use -z text 9644 # though, which does catch some bad symbols but isn't as heavy-handed 9645 # as -z defs. 9646 no_undefined_flag='${wl}-z,text' 9647 allow_undefined_flag='${wl}-z,nodefs' 9648 archive_cmds_need_lc=no 9649 hardcode_shlibpath_var=no 9650 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9651 hardcode_libdir_separator=':' 9652 link_all_deplibs=yes 9653 export_dynamic_flag_spec='${wl}-Bexport' 9654 runpath_var='LD_RUN_PATH' 9655 9656 if test "$GCC" = yes; then 9657 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9658 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9659 else 9660 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9661 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9662 fi 9663 ;; 9664 9665 uts4*) 9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9667 hardcode_libdir_flag_spec='-L$libdir' 9668 hardcode_shlibpath_var=no 9669 ;; 9670 9671 *) 9672 ld_shlibs=no 9673 ;; 9674 esac 9675 9676 if test x$host_vendor = xsni; then 9677 case $host in 9678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9679 export_dynamic_flag_spec='${wl}-Blargedynsym' 9680 ;; 9681 esac 9682 fi 9683 fi 9684 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9686$as_echo "$ld_shlibs" >&6; } 9687test "$ld_shlibs" = no && can_build_shared=no 9688 9689with_gnu_ld=$with_gnu_ld 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705# 9706# Do we need to explicitly link libc? 9707# 9708case "x$archive_cmds_need_lc" in 9709x|xyes) 9710 # Assume -lc should be added 9711 archive_cmds_need_lc=yes 9712 9713 if test "$enable_shared" = yes && test "$GCC" = yes; then 9714 case $archive_cmds in 9715 *'~'*) 9716 # FIXME: we may have to deal with multi-command sequences. 9717 ;; 9718 '$CC '*) 9719 # Test whether the compiler implicitly links with -lc since on some 9720 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9721 # to ld, don't add -lc before -lgcc. 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9723$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9724if ${lt_cv_archive_cmds_need_lc+:} false; then : 9725 $as_echo_n "(cached) " >&6 9726else 9727 $RM conftest* 9728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9729 9730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9731 (eval $ac_compile) 2>&5 9732 ac_status=$? 9733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9734 test $ac_status = 0; } 2>conftest.err; then 9735 soname=conftest 9736 lib=conftest 9737 libobjs=conftest.$ac_objext 9738 deplibs= 9739 wl=$lt_prog_compiler_wl 9740 pic_flag=$lt_prog_compiler_pic 9741 compiler_flags=-v 9742 linker_flags=-v 9743 verstring= 9744 output_objdir=. 9745 libname=conftest 9746 lt_save_allow_undefined_flag=$allow_undefined_flag 9747 allow_undefined_flag= 9748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9749 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9750 ac_status=$? 9751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9752 test $ac_status = 0; } 9753 then 9754 lt_cv_archive_cmds_need_lc=no 9755 else 9756 lt_cv_archive_cmds_need_lc=yes 9757 fi 9758 allow_undefined_flag=$lt_save_allow_undefined_flag 9759 else 9760 cat conftest.err 1>&5 9761 fi 9762 $RM conftest* 9763 9764fi 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9766$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9767 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9768 ;; 9769 esac 9770 fi 9771 ;; 9772esac 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9931$as_echo_n "checking dynamic linker characteristics... " >&6; } 9932 9933if test "$GCC" = yes; then 9934 case $host_os in 9935 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9936 *) lt_awk_arg="/^libraries:/" ;; 9937 esac 9938 case $host_os in 9939 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9940 *) lt_sed_strip_eq="s,=/,/,g" ;; 9941 esac 9942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9943 case $lt_search_path_spec in 9944 *\;*) 9945 # if the path contains ";" then we assume it to be the separator 9946 # otherwise default to the standard path separator (i.e. ":") - it is 9947 # assumed that no part of a normal pathname contains ";" but that should 9948 # okay in the real world where ";" in dirpaths is itself problematic. 9949 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9950 ;; 9951 *) 9952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9953 ;; 9954 esac 9955 # Ok, now we have the path, separated by spaces, we can step through it 9956 # and add multilib dir if necessary. 9957 lt_tmp_lt_search_path_spec= 9958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9959 for lt_sys_path in $lt_search_path_spec; do 9960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9962 else 9963 test -d "$lt_sys_path" && \ 9964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9965 fi 9966 done 9967 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9968BEGIN {RS=" "; FS="/|\n";} { 9969 lt_foo=""; 9970 lt_count=0; 9971 for (lt_i = NF; lt_i > 0; lt_i--) { 9972 if ($lt_i != "" && $lt_i != ".") { 9973 if ($lt_i == "..") { 9974 lt_count++; 9975 } else { 9976 if (lt_count == 0) { 9977 lt_foo="/" $lt_i lt_foo; 9978 } else { 9979 lt_count--; 9980 } 9981 } 9982 } 9983 } 9984 if (lt_foo != "") { lt_freq[lt_foo]++; } 9985 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9986}'` 9987 # AWK program above erroneously prepends '/' to C:/dos/paths 9988 # for these hosts. 9989 case $host_os in 9990 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9991 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9992 esac 9993 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9994else 9995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9996fi 9997library_names_spec= 9998libname_spec='lib$name' 9999soname_spec= 10000shrext_cmds=".so" 10001postinstall_cmds= 10002postuninstall_cmds= 10003finish_cmds= 10004finish_eval= 10005shlibpath_var= 10006shlibpath_overrides_runpath=unknown 10007version_type=none 10008dynamic_linker="$host_os ld.so" 10009sys_lib_dlsearch_path_spec="/lib /usr/lib" 10010need_lib_prefix=unknown 10011hardcode_into_libs=no 10012 10013# when you set need_version to no, make sure it does not cause -set_version 10014# flags to be left without arguments 10015need_version=unknown 10016 10017case $host_os in 10018aix3*) 10019 version_type=linux 10020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10021 shlibpath_var=LIBPATH 10022 10023 # AIX 3 has no versioning support, so we append a major version to the name. 10024 soname_spec='${libname}${release}${shared_ext}$major' 10025 ;; 10026 10027aix[4-9]*) 10028 version_type=linux 10029 need_lib_prefix=no 10030 need_version=no 10031 hardcode_into_libs=yes 10032 if test "$host_cpu" = ia64; then 10033 # AIX 5 supports IA64 10034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10035 shlibpath_var=LD_LIBRARY_PATH 10036 else 10037 # With GCC up to 2.95.x, collect2 would create an import file 10038 # for dependence libraries. The import file would start with 10039 # the line `#! .'. This would cause the generated library to 10040 # depend on `.', always an invalid library. This was fixed in 10041 # development snapshots of GCC prior to 3.0. 10042 case $host_os in 10043 aix4 | aix4.[01] | aix4.[01].*) 10044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10045 echo ' yes ' 10046 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10047 : 10048 else 10049 can_build_shared=no 10050 fi 10051 ;; 10052 esac 10053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10054 # soname into executable. Probably we can add versioning support to 10055 # collect2, so additional links can be useful in future. 10056 if test "$aix_use_runtimelinking" = yes; then 10057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10058 # instead of lib<name>.a to let people know that these are not 10059 # typical AIX shared libraries. 10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10061 else 10062 # We preserve .a as extension for shared libraries through AIX4.2 10063 # and later when we are not doing run time linking. 10064 library_names_spec='${libname}${release}.a $libname.a' 10065 soname_spec='${libname}${release}${shared_ext}$major' 10066 fi 10067 shlibpath_var=LIBPATH 10068 fi 10069 ;; 10070 10071amigaos*) 10072 case $host_cpu in 10073 powerpc) 10074 # Since July 2007 AmigaOS4 officially supports .so libraries. 10075 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10077 ;; 10078 m68k) 10079 library_names_spec='$libname.ixlibrary $libname.a' 10080 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10081 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' 10082 ;; 10083 esac 10084 ;; 10085 10086beos*) 10087 library_names_spec='${libname}${shared_ext}' 10088 dynamic_linker="$host_os ld.so" 10089 shlibpath_var=LIBRARY_PATH 10090 ;; 10091 10092bsdi[45]*) 10093 version_type=linux 10094 need_version=no 10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10096 soname_spec='${libname}${release}${shared_ext}$major' 10097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10098 shlibpath_var=LD_LIBRARY_PATH 10099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10101 # the default ld.so.conf also contains /usr/contrib/lib and 10102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10103 # libtool to hard-code these into programs 10104 ;; 10105 10106cygwin* | mingw* | pw32* | cegcc*) 10107 version_type=windows 10108 shrext_cmds=".dll" 10109 need_version=no 10110 need_lib_prefix=no 10111 10112 case $GCC,$cc_basename in 10113 yes,*) 10114 # gcc 10115 library_names_spec='$libname.dll.a' 10116 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10117 postinstall_cmds='base_file=`basename \${file}`~ 10118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10119 dldir=$destdir/`dirname \$dlpath`~ 10120 test -d \$dldir || mkdir -p \$dldir~ 10121 $install_prog $dir/$dlname \$dldir/$dlname~ 10122 chmod a+x \$dldir/$dlname~ 10123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10125 fi' 10126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10127 dlpath=$dir/\$dldll~ 10128 $RM \$dlpath' 10129 shlibpath_overrides_runpath=yes 10130 10131 case $host_os in 10132 cygwin*) 10133 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10135 10136 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10137 ;; 10138 mingw* | cegcc*) 10139 # MinGW DLLs use traditional 'lib' prefix 10140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10141 ;; 10142 pw32*) 10143 # pw32 DLLs use 'pw' prefix rather than 'lib' 10144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10145 ;; 10146 esac 10147 dynamic_linker='Win32 ld.exe' 10148 ;; 10149 10150 *,cl*) 10151 # Native MSVC 10152 libname_spec='$name' 10153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10154 library_names_spec='${libname}.dll.lib' 10155 10156 case $build_os in 10157 mingw*) 10158 sys_lib_search_path_spec= 10159 lt_save_ifs=$IFS 10160 IFS=';' 10161 for lt_path in $LIB 10162 do 10163 IFS=$lt_save_ifs 10164 # Let DOS variable expansion print the short 8.3 style file name. 10165 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10166 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10167 done 10168 IFS=$lt_save_ifs 10169 # Convert to MSYS style. 10170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10171 ;; 10172 cygwin*) 10173 # Convert to unix form, then to dos form, then back to unix form 10174 # but this time dos style (no spaces!) so that the unix form looks 10175 # like /cygdrive/c/PROGRA~1:/cygdr... 10176 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10177 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10178 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10179 ;; 10180 *) 10181 sys_lib_search_path_spec="$LIB" 10182 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10183 # It is most probably a Windows format PATH. 10184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10185 else 10186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10187 fi 10188 # FIXME: find the short name or the path components, as spaces are 10189 # common. (e.g. "Program Files" -> "PROGRA~1") 10190 ;; 10191 esac 10192 10193 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10194 postinstall_cmds='base_file=`basename \${file}`~ 10195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10196 dldir=$destdir/`dirname \$dlpath`~ 10197 test -d \$dldir || mkdir -p \$dldir~ 10198 $install_prog $dir/$dlname \$dldir/$dlname' 10199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10200 dlpath=$dir/\$dldll~ 10201 $RM \$dlpath' 10202 shlibpath_overrides_runpath=yes 10203 dynamic_linker='Win32 link.exe' 10204 ;; 10205 10206 *) 10207 # Assume MSVC wrapper 10208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10209 dynamic_linker='Win32 ld.exe' 10210 ;; 10211 esac 10212 # FIXME: first we should search . and the directory the executable is in 10213 shlibpath_var=PATH 10214 ;; 10215 10216darwin* | rhapsody*) 10217 dynamic_linker="$host_os dyld" 10218 version_type=darwin 10219 need_lib_prefix=no 10220 need_version=no 10221 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10222 soname_spec='${libname}${release}${major}$shared_ext' 10223 shlibpath_overrides_runpath=yes 10224 shlibpath_var=DYLD_LIBRARY_PATH 10225 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10226 10227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10229 ;; 10230 10231dgux*) 10232 version_type=linux 10233 need_lib_prefix=no 10234 need_version=no 10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10236 soname_spec='${libname}${release}${shared_ext}$major' 10237 shlibpath_var=LD_LIBRARY_PATH 10238 ;; 10239 10240freebsd1*) 10241 dynamic_linker=no 10242 ;; 10243 10244freebsd* | dragonfly*) 10245 # DragonFly does not have aout. When/if they implement a new 10246 # versioning mechanism, adjust this. 10247 if test -x /usr/bin/objformat; then 10248 objformat=`/usr/bin/objformat` 10249 else 10250 case $host_os in 10251 freebsd[123]*) objformat=aout ;; 10252 *) objformat=elf ;; 10253 esac 10254 fi 10255 version_type=freebsd-$objformat 10256 case $version_type in 10257 freebsd-elf*) 10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10259 need_version=no 10260 need_lib_prefix=no 10261 ;; 10262 freebsd-*) 10263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10264 need_version=yes 10265 ;; 10266 esac 10267 shlibpath_var=LD_LIBRARY_PATH 10268 case $host_os in 10269 freebsd2*) 10270 shlibpath_overrides_runpath=yes 10271 ;; 10272 freebsd3.[01]* | freebsdelf3.[01]*) 10273 shlibpath_overrides_runpath=yes 10274 hardcode_into_libs=yes 10275 ;; 10276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10278 shlibpath_overrides_runpath=no 10279 hardcode_into_libs=yes 10280 ;; 10281 *) # from 4.6 on, and DragonFly 10282 shlibpath_overrides_runpath=yes 10283 hardcode_into_libs=yes 10284 ;; 10285 esac 10286 ;; 10287 10288gnu*) 10289 version_type=linux 10290 need_lib_prefix=no 10291 need_version=no 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10293 soname_spec='${libname}${release}${shared_ext}$major' 10294 shlibpath_var=LD_LIBRARY_PATH 10295 hardcode_into_libs=yes 10296 ;; 10297 10298haiku*) 10299 version_type=linux 10300 need_lib_prefix=no 10301 need_version=no 10302 dynamic_linker="$host_os runtime_loader" 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 shlibpath_var=LIBRARY_PATH 10306 shlibpath_overrides_runpath=yes 10307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10308 hardcode_into_libs=yes 10309 ;; 10310 10311hpux9* | hpux10* | hpux11*) 10312 # Give a soname corresponding to the major version so that dld.sl refuses to 10313 # link against other versions. 10314 version_type=sunos 10315 need_lib_prefix=no 10316 need_version=no 10317 case $host_cpu in 10318 ia64*) 10319 shrext_cmds='.so' 10320 hardcode_into_libs=yes 10321 dynamic_linker="$host_os dld.so" 10322 shlibpath_var=LD_LIBRARY_PATH 10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 if test "X$HPUX_IA64_MODE" = X32; then 10327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10328 else 10329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10330 fi 10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10332 ;; 10333 hppa*64*) 10334 shrext_cmds='.sl' 10335 hardcode_into_libs=yes 10336 dynamic_linker="$host_os dld.sl" 10337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10340 soname_spec='${libname}${release}${shared_ext}$major' 10341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 *) 10345 shrext_cmds='.sl' 10346 dynamic_linker="$host_os dld.sl" 10347 shlibpath_var=SHLIB_PATH 10348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10350 soname_spec='${libname}${release}${shared_ext}$major' 10351 ;; 10352 esac 10353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10354 postinstall_cmds='chmod 555 $lib' 10355 # or fails outright, so override atomically: 10356 install_override_mode=555 10357 ;; 10358 10359interix[3-9]*) 10360 version_type=linux 10361 need_lib_prefix=no 10362 need_version=no 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10364 soname_spec='${libname}${release}${shared_ext}$major' 10365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10366 shlibpath_var=LD_LIBRARY_PATH 10367 shlibpath_overrides_runpath=no 10368 hardcode_into_libs=yes 10369 ;; 10370 10371irix5* | irix6* | nonstopux*) 10372 case $host_os in 10373 nonstopux*) version_type=nonstopux ;; 10374 *) 10375 if test "$lt_cv_prog_gnu_ld" = yes; then 10376 version_type=linux 10377 else 10378 version_type=irix 10379 fi ;; 10380 esac 10381 need_lib_prefix=no 10382 need_version=no 10383 soname_spec='${libname}${release}${shared_ext}$major' 10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10385 case $host_os in 10386 irix5* | nonstopux*) 10387 libsuff= shlibsuff= 10388 ;; 10389 *) 10390 case $LD in # libtool.m4 will add one of these switches to LD 10391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10392 libsuff= shlibsuff= libmagic=32-bit;; 10393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10394 libsuff=32 shlibsuff=N32 libmagic=N32;; 10395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10396 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10397 *) libsuff= shlibsuff= libmagic=never-match;; 10398 esac 10399 ;; 10400 esac 10401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10402 shlibpath_overrides_runpath=no 10403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10405 hardcode_into_libs=yes 10406 ;; 10407 10408# No shared lib support for Linux oldld, aout, or coff. 10409linux*oldld* | linux*aout* | linux*coff*) 10410 dynamic_linker=no 10411 ;; 10412 10413# This must be Linux ELF. 10414linux* | k*bsd*-gnu | kopensolaris*-gnu) 10415 version_type=linux 10416 need_lib_prefix=no 10417 need_version=no 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10419 soname_spec='${libname}${release}${shared_ext}$major' 10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10421 shlibpath_var=LD_LIBRARY_PATH 10422 shlibpath_overrides_runpath=no 10423 10424 # Some binutils ld are patched to set DT_RUNPATH 10425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 lt_cv_shlibpath_overrides_runpath=no 10429 save_LDFLAGS=$LDFLAGS 10430 save_libdir=$libdir 10431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435 10436int 10437main () 10438{ 10439 10440 ; 10441 return 0; 10442} 10443_ACEOF 10444if ac_fn_c_try_link "$LINENO"; then : 10445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10446 lt_cv_shlibpath_overrides_runpath=yes 10447fi 10448fi 10449rm -f core conftest.err conftest.$ac_objext \ 10450 conftest$ac_exeext conftest.$ac_ext 10451 LDFLAGS=$save_LDFLAGS 10452 libdir=$save_libdir 10453 10454fi 10455 10456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10457 10458 # This implies no fast_install, which is unacceptable. 10459 # Some rework will be needed to allow for fast_install 10460 # before this can be enabled. 10461 hardcode_into_libs=yes 10462 10463 # Append ld.so.conf contents to the search path 10464 if test -f /etc/ld.so.conf; then 10465 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' ' '` 10466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10467 fi 10468 10469 # We used to test for /lib/ld.so.1 and disable shared libraries on 10470 # powerpc, because MkLinux only supported shared libraries with the 10471 # GNU dynamic linker. Since this was broken with cross compilers, 10472 # most powerpc-linux boxes support dynamic linking these days and 10473 # people can always --disable-shared, the test was removed, and we 10474 # assume the GNU/Linux dynamic linker is in use. 10475 dynamic_linker='GNU/Linux ld.so' 10476 ;; 10477 10478netbsd*) 10479 version_type=sunos 10480 need_lib_prefix=no 10481 need_version=no 10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10485 dynamic_linker='NetBSD (a.out) ld.so' 10486 else 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10488 soname_spec='${libname}${release}${shared_ext}$major' 10489 dynamic_linker='NetBSD ld.elf_so' 10490 fi 10491 shlibpath_var=LD_LIBRARY_PATH 10492 shlibpath_overrides_runpath=yes 10493 hardcode_into_libs=yes 10494 ;; 10495 10496newsos6) 10497 version_type=linux 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 shlibpath_overrides_runpath=yes 10501 ;; 10502 10503*nto* | *qnx*) 10504 version_type=qnx 10505 need_lib_prefix=no 10506 need_version=no 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10508 soname_spec='${libname}${release}${shared_ext}$major' 10509 shlibpath_var=LD_LIBRARY_PATH 10510 shlibpath_overrides_runpath=no 10511 hardcode_into_libs=yes 10512 dynamic_linker='ldqnx.so' 10513 ;; 10514 10515openbsd*) 10516 version_type=sunos 10517 sys_lib_dlsearch_path_spec="/usr/lib" 10518 need_lib_prefix=no 10519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10520 case $host_os in 10521 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10522 *) need_version=no ;; 10523 esac 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10526 shlibpath_var=LD_LIBRARY_PATH 10527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10528 case $host_os in 10529 openbsd2.[89] | openbsd2.[89].*) 10530 shlibpath_overrides_runpath=no 10531 ;; 10532 *) 10533 shlibpath_overrides_runpath=yes 10534 ;; 10535 esac 10536 else 10537 shlibpath_overrides_runpath=yes 10538 fi 10539 ;; 10540 10541os2*) 10542 libname_spec='$name' 10543 shrext_cmds=".dll" 10544 need_lib_prefix=no 10545 library_names_spec='$libname${shared_ext} $libname.a' 10546 dynamic_linker='OS/2 ld.exe' 10547 shlibpath_var=LIBPATH 10548 ;; 10549 10550osf3* | osf4* | osf5*) 10551 version_type=osf 10552 need_lib_prefix=no 10553 need_version=no 10554 soname_spec='${libname}${release}${shared_ext}$major' 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10559 ;; 10560 10561rdos*) 10562 dynamic_linker=no 10563 ;; 10564 10565solaris*) 10566 version_type=linux 10567 need_lib_prefix=no 10568 need_version=no 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10570 soname_spec='${libname}${release}${shared_ext}$major' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=yes 10573 hardcode_into_libs=yes 10574 # ldd complains unless libraries are executable 10575 postinstall_cmds='chmod +x $lib' 10576 ;; 10577 10578sunos4*) 10579 version_type=sunos 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 shlibpath_overrides_runpath=yes 10584 if test "$with_gnu_ld" = yes; then 10585 need_lib_prefix=no 10586 fi 10587 need_version=yes 10588 ;; 10589 10590sysv4 | sysv4.3*) 10591 version_type=linux 10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10593 soname_spec='${libname}${release}${shared_ext}$major' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 case $host_vendor in 10596 sni) 10597 shlibpath_overrides_runpath=no 10598 need_lib_prefix=no 10599 runpath_var=LD_RUN_PATH 10600 ;; 10601 siemens) 10602 need_lib_prefix=no 10603 ;; 10604 motorola) 10605 need_lib_prefix=no 10606 need_version=no 10607 shlibpath_overrides_runpath=no 10608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10609 ;; 10610 esac 10611 ;; 10612 10613sysv4*MP*) 10614 if test -d /usr/nec ;then 10615 version_type=linux 10616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10617 soname_spec='$libname${shared_ext}.$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 fi 10620 ;; 10621 10622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10623 version_type=freebsd-elf 10624 need_lib_prefix=no 10625 need_version=no 10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10627 soname_spec='${libname}${release}${shared_ext}$major' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 shlibpath_overrides_runpath=yes 10630 hardcode_into_libs=yes 10631 if test "$with_gnu_ld" = yes; then 10632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10633 else 10634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10635 case $host_os in 10636 sco3.2v5*) 10637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10638 ;; 10639 esac 10640 fi 10641 sys_lib_dlsearch_path_spec='/usr/lib' 10642 ;; 10643 10644tpf*) 10645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10646 version_type=linux 10647 need_lib_prefix=no 10648 need_version=no 10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10650 shlibpath_var=LD_LIBRARY_PATH 10651 shlibpath_overrides_runpath=no 10652 hardcode_into_libs=yes 10653 ;; 10654 10655uts4*) 10656 version_type=linux 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 shlibpath_var=LD_LIBRARY_PATH 10660 ;; 10661 10662*) 10663 dynamic_linker=no 10664 ;; 10665esac 10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10667$as_echo "$dynamic_linker" >&6; } 10668test "$dynamic_linker" = no && can_build_shared=no 10669 10670variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10671if test "$GCC" = yes; then 10672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10673fi 10674 10675if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10677fi 10678if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10680fi 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10774$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10775hardcode_action= 10776if test -n "$hardcode_libdir_flag_spec" || 10777 test -n "$runpath_var" || 10778 test "X$hardcode_automatic" = "Xyes" ; then 10779 10780 # We can hardcode non-existent directories. 10781 if test "$hardcode_direct" != no && 10782 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10783 # have to relink, otherwise we might link with an installed library 10784 # when we should be linking with a yet-to-be-installed one 10785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10786 test "$hardcode_minus_L" != no; then 10787 # Linking always hardcodes the temporary library directory. 10788 hardcode_action=relink 10789 else 10790 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10791 hardcode_action=immediate 10792 fi 10793else 10794 # We cannot hardcode anything, or else we can only hardcode existing 10795 # directories. 10796 hardcode_action=unsupported 10797fi 10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10799$as_echo "$hardcode_action" >&6; } 10800 10801if test "$hardcode_action" = relink || 10802 test "$inherit_rpath" = yes; then 10803 # Fast installation is not supported 10804 enable_fast_install=no 10805elif test "$shlibpath_overrides_runpath" = yes || 10806 test "$enable_shared" = no; then 10807 # Fast installation is not necessary 10808 enable_fast_install=needless 10809fi 10810 10811 10812 10813 10814 10815 10816 if test "x$enable_dlopen" != xyes; then 10817 enable_dlopen=unknown 10818 enable_dlopen_self=unknown 10819 enable_dlopen_self_static=unknown 10820else 10821 lt_cv_dlopen=no 10822 lt_cv_dlopen_libs= 10823 10824 case $host_os in 10825 beos*) 10826 lt_cv_dlopen="load_add_on" 10827 lt_cv_dlopen_libs= 10828 lt_cv_dlopen_self=yes 10829 ;; 10830 10831 mingw* | pw32* | cegcc*) 10832 lt_cv_dlopen="LoadLibrary" 10833 lt_cv_dlopen_libs= 10834 ;; 10835 10836 cygwin*) 10837 lt_cv_dlopen="dlopen" 10838 lt_cv_dlopen_libs= 10839 ;; 10840 10841 darwin*) 10842 # if libdl is installed we need to link against it 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10844$as_echo_n "checking for dlopen in -ldl... " >&6; } 10845if ${ac_cv_lib_dl_dlopen+:} false; then : 10846 $as_echo_n "(cached) " >&6 10847else 10848 ac_check_lib_save_LIBS=$LIBS 10849LIBS="-ldl $LIBS" 10850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852 10853/* Override any GCC internal prototype to avoid an error. 10854 Use char because int might match the return type of a GCC 10855 builtin and then its argument prototype would still apply. */ 10856#ifdef __cplusplus 10857extern "C" 10858#endif 10859char dlopen (); 10860int 10861main () 10862{ 10863return dlopen (); 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868if ac_fn_c_try_link "$LINENO"; then : 10869 ac_cv_lib_dl_dlopen=yes 10870else 10871 ac_cv_lib_dl_dlopen=no 10872fi 10873rm -f core conftest.err conftest.$ac_objext \ 10874 conftest$ac_exeext conftest.$ac_ext 10875LIBS=$ac_check_lib_save_LIBS 10876fi 10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10878$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10879if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10881else 10882 10883 lt_cv_dlopen="dyld" 10884 lt_cv_dlopen_libs= 10885 lt_cv_dlopen_self=yes 10886 10887fi 10888 10889 ;; 10890 10891 *) 10892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10893if test "x$ac_cv_func_shl_load" = xyes; then : 10894 lt_cv_dlopen="shl_load" 10895else 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10897$as_echo_n "checking for shl_load in -ldld... " >&6; } 10898if ${ac_cv_lib_dld_shl_load+:} false; then : 10899 $as_echo_n "(cached) " >&6 10900else 10901 ac_check_lib_save_LIBS=$LIBS 10902LIBS="-ldld $LIBS" 10903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904/* end confdefs.h. */ 10905 10906/* Override any GCC internal prototype to avoid an error. 10907 Use char because int might match the return type of a GCC 10908 builtin and then its argument prototype would still apply. */ 10909#ifdef __cplusplus 10910extern "C" 10911#endif 10912char shl_load (); 10913int 10914main () 10915{ 10916return shl_load (); 10917 ; 10918 return 0; 10919} 10920_ACEOF 10921if ac_fn_c_try_link "$LINENO"; then : 10922 ac_cv_lib_dld_shl_load=yes 10923else 10924 ac_cv_lib_dld_shl_load=no 10925fi 10926rm -f core conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext conftest.$ac_ext 10928LIBS=$ac_check_lib_save_LIBS 10929fi 10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10931$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10932if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10934else 10935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10936if test "x$ac_cv_func_dlopen" = xyes; then : 10937 lt_cv_dlopen="dlopen" 10938else 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10940$as_echo_n "checking for dlopen in -ldl... " >&6; } 10941if ${ac_cv_lib_dl_dlopen+:} false; then : 10942 $as_echo_n "(cached) " >&6 10943else 10944 ac_check_lib_save_LIBS=$LIBS 10945LIBS="-ldl $LIBS" 10946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948 10949/* Override any GCC internal prototype to avoid an error. 10950 Use char because int might match the return type of a GCC 10951 builtin and then its argument prototype would still apply. */ 10952#ifdef __cplusplus 10953extern "C" 10954#endif 10955char dlopen (); 10956int 10957main () 10958{ 10959return dlopen (); 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_link "$LINENO"; then : 10965 ac_cv_lib_dl_dlopen=yes 10966else 10967 ac_cv_lib_dl_dlopen=no 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971LIBS=$ac_check_lib_save_LIBS 10972fi 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10974$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10975if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10977else 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10979$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10980if ${ac_cv_lib_svld_dlopen+:} false; then : 10981 $as_echo_n "(cached) " >&6 10982else 10983 ac_check_lib_save_LIBS=$LIBS 10984LIBS="-lsvld $LIBS" 10985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988/* Override any GCC internal prototype to avoid an error. 10989 Use char because int might match the return type of a GCC 10990 builtin and then its argument prototype would still apply. */ 10991#ifdef __cplusplus 10992extern "C" 10993#endif 10994char dlopen (); 10995int 10996main () 10997{ 10998return dlopen (); 10999 ; 11000 return 0; 11001} 11002_ACEOF 11003if ac_fn_c_try_link "$LINENO"; then : 11004 ac_cv_lib_svld_dlopen=yes 11005else 11006 ac_cv_lib_svld_dlopen=no 11007fi 11008rm -f core conftest.err conftest.$ac_objext \ 11009 conftest$ac_exeext conftest.$ac_ext 11010LIBS=$ac_check_lib_save_LIBS 11011fi 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11013$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11014if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11016else 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11018$as_echo_n "checking for dld_link in -ldld... " >&6; } 11019if ${ac_cv_lib_dld_dld_link+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 ac_check_lib_save_LIBS=$LIBS 11023LIBS="-ldld $LIBS" 11024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026 11027/* Override any GCC internal prototype to avoid an error. 11028 Use char because int might match the return type of a GCC 11029 builtin and then its argument prototype would still apply. */ 11030#ifdef __cplusplus 11031extern "C" 11032#endif 11033char dld_link (); 11034int 11035main () 11036{ 11037return dld_link (); 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO"; then : 11043 ac_cv_lib_dld_dld_link=yes 11044else 11045 ac_cv_lib_dld_dld_link=no 11046fi 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049LIBS=$ac_check_lib_save_LIBS 11050fi 11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11052$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11053if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11055fi 11056 11057 11058fi 11059 11060 11061fi 11062 11063 11064fi 11065 11066 11067fi 11068 11069 11070fi 11071 11072 ;; 11073 esac 11074 11075 if test "x$lt_cv_dlopen" != xno; then 11076 enable_dlopen=yes 11077 else 11078 enable_dlopen=no 11079 fi 11080 11081 case $lt_cv_dlopen in 11082 dlopen) 11083 save_CPPFLAGS="$CPPFLAGS" 11084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11085 11086 save_LDFLAGS="$LDFLAGS" 11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11088 11089 save_LIBS="$LIBS" 11090 LIBS="$lt_cv_dlopen_libs $LIBS" 11091 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11093$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11094if ${lt_cv_dlopen_self+:} false; then : 11095 $as_echo_n "(cached) " >&6 11096else 11097 if test "$cross_compiling" = yes; then : 11098 lt_cv_dlopen_self=cross 11099else 11100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11101 lt_status=$lt_dlunknown 11102 cat > conftest.$ac_ext <<_LT_EOF 11103#line $LINENO "configure" 11104#include "confdefs.h" 11105 11106#if HAVE_DLFCN_H 11107#include <dlfcn.h> 11108#endif 11109 11110#include <stdio.h> 11111 11112#ifdef RTLD_GLOBAL 11113# define LT_DLGLOBAL RTLD_GLOBAL 11114#else 11115# ifdef DL_GLOBAL 11116# define LT_DLGLOBAL DL_GLOBAL 11117# else 11118# define LT_DLGLOBAL 0 11119# endif 11120#endif 11121 11122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11123 find out it does not work in some platform. */ 11124#ifndef LT_DLLAZY_OR_NOW 11125# ifdef RTLD_LAZY 11126# define LT_DLLAZY_OR_NOW RTLD_LAZY 11127# else 11128# ifdef DL_LAZY 11129# define LT_DLLAZY_OR_NOW DL_LAZY 11130# else 11131# ifdef RTLD_NOW 11132# define LT_DLLAZY_OR_NOW RTLD_NOW 11133# else 11134# ifdef DL_NOW 11135# define LT_DLLAZY_OR_NOW DL_NOW 11136# else 11137# define LT_DLLAZY_OR_NOW 0 11138# endif 11139# endif 11140# endif 11141# endif 11142#endif 11143 11144/* When -fvisbility=hidden is used, assume the code has been annotated 11145 correspondingly for the symbols needed. */ 11146#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11147int fnord () __attribute__((visibility("default"))); 11148#endif 11149 11150int fnord () { return 42; } 11151int main () 11152{ 11153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11154 int status = $lt_dlunknown; 11155 11156 if (self) 11157 { 11158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11159 else 11160 { 11161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11162 else puts (dlerror ()); 11163 } 11164 /* dlclose (self); */ 11165 } 11166 else 11167 puts (dlerror ()); 11168 11169 return status; 11170} 11171_LT_EOF 11172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11173 (eval $ac_link) 2>&5 11174 ac_status=$? 11175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11177 (./conftest; exit; ) >&5 2>/dev/null 11178 lt_status=$? 11179 case x$lt_status in 11180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11183 esac 11184 else : 11185 # compilation failed 11186 lt_cv_dlopen_self=no 11187 fi 11188fi 11189rm -fr conftest* 11190 11191 11192fi 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11194$as_echo "$lt_cv_dlopen_self" >&6; } 11195 11196 if test "x$lt_cv_dlopen_self" = xyes; then 11197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11199$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11200if ${lt_cv_dlopen_self_static+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 if test "$cross_compiling" = yes; then : 11204 lt_cv_dlopen_self_static=cross 11205else 11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11207 lt_status=$lt_dlunknown 11208 cat > conftest.$ac_ext <<_LT_EOF 11209#line $LINENO "configure" 11210#include "confdefs.h" 11211 11212#if HAVE_DLFCN_H 11213#include <dlfcn.h> 11214#endif 11215 11216#include <stdio.h> 11217 11218#ifdef RTLD_GLOBAL 11219# define LT_DLGLOBAL RTLD_GLOBAL 11220#else 11221# ifdef DL_GLOBAL 11222# define LT_DLGLOBAL DL_GLOBAL 11223# else 11224# define LT_DLGLOBAL 0 11225# endif 11226#endif 11227 11228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11229 find out it does not work in some platform. */ 11230#ifndef LT_DLLAZY_OR_NOW 11231# ifdef RTLD_LAZY 11232# define LT_DLLAZY_OR_NOW RTLD_LAZY 11233# else 11234# ifdef DL_LAZY 11235# define LT_DLLAZY_OR_NOW DL_LAZY 11236# else 11237# ifdef RTLD_NOW 11238# define LT_DLLAZY_OR_NOW RTLD_NOW 11239# else 11240# ifdef DL_NOW 11241# define LT_DLLAZY_OR_NOW DL_NOW 11242# else 11243# define LT_DLLAZY_OR_NOW 0 11244# endif 11245# endif 11246# endif 11247# endif 11248#endif 11249 11250/* When -fvisbility=hidden is used, assume the code has been annotated 11251 correspondingly for the symbols needed. */ 11252#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11253int fnord () __attribute__((visibility("default"))); 11254#endif 11255 11256int fnord () { return 42; } 11257int main () 11258{ 11259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11260 int status = $lt_dlunknown; 11261 11262 if (self) 11263 { 11264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11265 else 11266 { 11267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11268 else puts (dlerror ()); 11269 } 11270 /* dlclose (self); */ 11271 } 11272 else 11273 puts (dlerror ()); 11274 11275 return status; 11276} 11277_LT_EOF 11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11279 (eval $ac_link) 2>&5 11280 ac_status=$? 11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11283 (./conftest; exit; ) >&5 2>/dev/null 11284 lt_status=$? 11285 case x$lt_status in 11286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11288 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11289 esac 11290 else : 11291 # compilation failed 11292 lt_cv_dlopen_self_static=no 11293 fi 11294fi 11295rm -fr conftest* 11296 11297 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11300$as_echo "$lt_cv_dlopen_self_static" >&6; } 11301 fi 11302 11303 CPPFLAGS="$save_CPPFLAGS" 11304 LDFLAGS="$save_LDFLAGS" 11305 LIBS="$save_LIBS" 11306 ;; 11307 esac 11308 11309 case $lt_cv_dlopen_self in 11310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11311 *) enable_dlopen_self=unknown ;; 11312 esac 11313 11314 case $lt_cv_dlopen_self_static in 11315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11316 *) enable_dlopen_self_static=unknown ;; 11317 esac 11318fi 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336striplib= 11337old_striplib= 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11339$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11340if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11342 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11344$as_echo "yes" >&6; } 11345else 11346# FIXME - insert some real tests, host_os isn't really good enough 11347 case $host_os in 11348 darwin*) 11349 if test -n "$STRIP" ; then 11350 striplib="$STRIP -x" 11351 old_striplib="$STRIP -S" 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11353$as_echo "yes" >&6; } 11354 else 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11356$as_echo "no" >&6; } 11357 fi 11358 ;; 11359 *) 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11361$as_echo "no" >&6; } 11362 ;; 11363 esac 11364fi 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 # Report which library types will actually be built 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11379$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11381$as_echo "$can_build_shared" >&6; } 11382 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11384$as_echo_n "checking whether to build shared libraries... " >&6; } 11385 test "$can_build_shared" = "no" && enable_shared=no 11386 11387 # On AIX, shared libraries and static libraries use the same namespace, and 11388 # are all built from PIC. 11389 case $host_os in 11390 aix3*) 11391 test "$enable_shared" = yes && enable_static=no 11392 if test -n "$RANLIB"; then 11393 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11394 postinstall_cmds='$RANLIB $lib' 11395 fi 11396 ;; 11397 11398 aix[4-9]*) 11399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11400 test "$enable_shared" = yes && enable_static=no 11401 fi 11402 ;; 11403 esac 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11405$as_echo "$enable_shared" >&6; } 11406 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11408$as_echo_n "checking whether to build static libraries... " >&6; } 11409 # Make sure either enable_shared or enable_static is yes. 11410 test "$enable_shared" = yes || enable_static=yes 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11412$as_echo "$enable_static" >&6; } 11413 11414 11415 11416 11417fi 11418ac_ext=c 11419ac_cpp='$CPP $CPPFLAGS' 11420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11422ac_compiler_gnu=$ac_cv_c_compiler_gnu 11423 11424CC="$lt_save_CC" 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 ac_config_commands="$ac_config_commands libtool" 11439 11440 11441 11442 11443# Only expand once: 11444 11445 11446 11447# Require xorg-macros minimum of 1.12 for DocBook external references 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11460$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11461if ${ac_cv_prog_cc_c99+:} false; then : 11462 $as_echo_n "(cached) " >&6 11463else 11464 ac_cv_prog_cc_c99=no 11465ac_save_CC=$CC 11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11467/* end confdefs.h. */ 11468#include <stdarg.h> 11469#include <stdbool.h> 11470#include <stdlib.h> 11471#include <wchar.h> 11472#include <stdio.h> 11473 11474// Check varargs macros. These examples are taken from C99 6.10.3.5. 11475#define debug(...) fprintf (stderr, __VA_ARGS__) 11476#define showlist(...) puts (#__VA_ARGS__) 11477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11478static void 11479test_varargs_macros (void) 11480{ 11481 int x = 1234; 11482 int y = 5678; 11483 debug ("Flag"); 11484 debug ("X = %d\n", x); 11485 showlist (The first, second, and third items.); 11486 report (x>y, "x is %d but y is %d", x, y); 11487} 11488 11489// Check long long types. 11490#define BIG64 18446744073709551615ull 11491#define BIG32 4294967295ul 11492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11493#if !BIG_OK 11494 your preprocessor is broken; 11495#endif 11496#if BIG_OK 11497#else 11498 your preprocessor is broken; 11499#endif 11500static long long int bignum = -9223372036854775807LL; 11501static unsigned long long int ubignum = BIG64; 11502 11503struct incomplete_array 11504{ 11505 int datasize; 11506 double data[]; 11507}; 11508 11509struct named_init { 11510 int number; 11511 const wchar_t *name; 11512 double average; 11513}; 11514 11515typedef const char *ccp; 11516 11517static inline int 11518test_restrict (ccp restrict text) 11519{ 11520 // See if C++-style comments work. 11521 // Iterate through items via the restricted pointer. 11522 // Also check for declarations in for loops. 11523 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11524 continue; 11525 return 0; 11526} 11527 11528// Check varargs and va_copy. 11529static void 11530test_varargs (const char *format, ...) 11531{ 11532 va_list args; 11533 va_start (args, format); 11534 va_list args_copy; 11535 va_copy (args_copy, args); 11536 11537 const char *str; 11538 int number; 11539 float fnumber; 11540 11541 while (*format) 11542 { 11543 switch (*format++) 11544 { 11545 case 's': // string 11546 str = va_arg (args_copy, const char *); 11547 break; 11548 case 'd': // int 11549 number = va_arg (args_copy, int); 11550 break; 11551 case 'f': // float 11552 fnumber = va_arg (args_copy, double); 11553 break; 11554 default: 11555 break; 11556 } 11557 } 11558 va_end (args_copy); 11559 va_end (args); 11560} 11561 11562int 11563main () 11564{ 11565 11566 // Check bool. 11567 _Bool success = false; 11568 11569 // Check restrict. 11570 if (test_restrict ("String literal") == 0) 11571 success = true; 11572 char *restrict newvar = "Another string"; 11573 11574 // Check varargs. 11575 test_varargs ("s, d' f .", "string", 65, 34.234); 11576 test_varargs_macros (); 11577 11578 // Check flexible array members. 11579 struct incomplete_array *ia = 11580 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11581 ia->datasize = 10; 11582 for (int i = 0; i < ia->datasize; ++i) 11583 ia->data[i] = i * 1.234; 11584 11585 // Check named initializers. 11586 struct named_init ni = { 11587 .number = 34, 11588 .name = L"Test wide string", 11589 .average = 543.34343, 11590 }; 11591 11592 ni.number = 58; 11593 11594 int dynamic_array[ni.number]; 11595 dynamic_array[ni.number - 1] = 543; 11596 11597 // work around unused variable warnings 11598 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11599 || dynamic_array[ni.number - 1] != 543); 11600 11601 ; 11602 return 0; 11603} 11604_ACEOF 11605for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11606do 11607 CC="$ac_save_CC $ac_arg" 11608 if ac_fn_c_try_compile "$LINENO"; then : 11609 ac_cv_prog_cc_c99=$ac_arg 11610fi 11611rm -f core conftest.err conftest.$ac_objext 11612 test "x$ac_cv_prog_cc_c99" != "xno" && break 11613done 11614rm -f conftest.$ac_ext 11615CC=$ac_save_CC 11616 11617fi 11618# AC_CACHE_VAL 11619case "x$ac_cv_prog_cc_c99" in 11620 x) 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11622$as_echo "none needed" >&6; } ;; 11623 xno) 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11625$as_echo "unsupported" >&6; } ;; 11626 *) 11627 CC="$CC $ac_cv_prog_cc_c99" 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11629$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11630esac 11631if test "x$ac_cv_prog_cc_c99" != xno; then : 11632 11633fi 11634 11635 11636 11637 11638ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11639if test "x$ac_cv_have_decl___clang__" = xyes; then : 11640 CLANGCC="yes" 11641else 11642 CLANGCC="no" 11643fi 11644 11645ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11646if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11647 INTELCC="yes" 11648else 11649 INTELCC="no" 11650fi 11651 11652ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11653if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11654 SUNCC="yes" 11655else 11656 SUNCC="no" 11657fi 11658 11659 11660 11661 11662if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11663 if test -n "$ac_tool_prefix"; then 11664 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11665set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11667$as_echo_n "checking for $ac_word... " >&6; } 11668if ${ac_cv_path_PKG_CONFIG+:} false; then : 11669 $as_echo_n "(cached) " >&6 11670else 11671 case $PKG_CONFIG in 11672 [\\/]* | ?:[\\/]*) 11673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11674 ;; 11675 *) 11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11677for as_dir in $PATH 11678do 11679 IFS=$as_save_IFS 11680 test -z "$as_dir" && as_dir=. 11681 for ac_exec_ext in '' $ac_executable_extensions; do 11682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11685 break 2 11686 fi 11687done 11688 done 11689IFS=$as_save_IFS 11690 11691 ;; 11692esac 11693fi 11694PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11695if test -n "$PKG_CONFIG"; then 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11697$as_echo "$PKG_CONFIG" >&6; } 11698else 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11700$as_echo "no" >&6; } 11701fi 11702 11703 11704fi 11705if test -z "$ac_cv_path_PKG_CONFIG"; then 11706 ac_pt_PKG_CONFIG=$PKG_CONFIG 11707 # Extract the first word of "pkg-config", so it can be a program name with args. 11708set dummy pkg-config; ac_word=$2 11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11710$as_echo_n "checking for $ac_word... " >&6; } 11711if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11712 $as_echo_n "(cached) " >&6 11713else 11714 case $ac_pt_PKG_CONFIG in 11715 [\\/]* | ?:[\\/]*) 11716 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11717 ;; 11718 *) 11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11720for as_dir in $PATH 11721do 11722 IFS=$as_save_IFS 11723 test -z "$as_dir" && as_dir=. 11724 for ac_exec_ext in '' $ac_executable_extensions; do 11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11726 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11728 break 2 11729 fi 11730done 11731 done 11732IFS=$as_save_IFS 11733 11734 ;; 11735esac 11736fi 11737ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11738if test -n "$ac_pt_PKG_CONFIG"; then 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11740$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11741else 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11743$as_echo "no" >&6; } 11744fi 11745 11746 if test "x$ac_pt_PKG_CONFIG" = x; then 11747 PKG_CONFIG="" 11748 else 11749 case $cross_compiling:$ac_tool_warned in 11750yes:) 11751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11753ac_tool_warned=yes ;; 11754esac 11755 PKG_CONFIG=$ac_pt_PKG_CONFIG 11756 fi 11757else 11758 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11759fi 11760 11761fi 11762if test -n "$PKG_CONFIG"; then 11763 _pkg_min_version=0.9.0 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11765$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11766 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11768$as_echo "yes" >&6; } 11769 else 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11771$as_echo "no" >&6; } 11772 PKG_CONFIG="" 11773 fi 11774 11775fi 11776 11777 11778 11779 11780 11781# Check whether --enable-selective-werror was given. 11782if test "${enable_selective_werror+set}" = set; then : 11783 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11784else 11785 SELECTIVE_WERROR=yes 11786fi 11787 11788 11789# -v is too short to test reliably with XORG_TESTSET_CFLAG 11790if test "x$SUNCC" = "xyes"; then 11791 BASE_CFLAGS="-v" 11792else 11793 BASE_CFLAGS="" 11794fi 11795 11796# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11797 11798 11799 11800 11801 11802xorg_testset_save_CFLAGS="$CFLAGS" 11803 11804if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11812/* end confdefs.h. */ 11813int i; 11814_ACEOF 11815if ac_fn_c_try_compile "$LINENO"; then : 11816 xorg_cv_cc_flag_unknown_warning_option=yes 11817else 11818 xorg_cv_cc_flag_unknown_warning_option=no 11819fi 11820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11821fi 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11824 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11825 CFLAGS="$xorg_testset_save_CFLAGS" 11826fi 11827 11828if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11831 fi 11832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837else 11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11839/* end confdefs.h. */ 11840int i; 11841_ACEOF 11842if ac_fn_c_try_compile "$LINENO"; then : 11843 xorg_cv_cc_flag_unused_command_line_argument=yes 11844else 11845 xorg_cv_cc_flag_unused_command_line_argument=no 11846fi 11847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11848fi 11849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11851 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11852 CFLAGS="$xorg_testset_save_CFLAGS" 11853fi 11854 11855found="no" 11856 11857 if test $found = "no" ; then 11858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11860 fi 11861 11862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11864 fi 11865 11866 CFLAGS="$CFLAGS -Wall" 11867 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11869$as_echo_n "checking if $CC supports -Wall... " >&6; } 11870 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 11871 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11875/* end confdefs.h. */ 11876int i; 11877int 11878main () 11879{ 11880 11881 ; 11882 return 0; 11883} 11884_ACEOF 11885if ac_fn_c_try_link "$LINENO"; then : 11886 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11887else 11888 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11889fi 11890rm -f core conftest.err conftest.$ac_objext \ 11891 conftest$ac_exeext conftest.$ac_ext 11892fi 11893 11894 11895 CFLAGS="$xorg_testset_save_CFLAGS" 11896 11897 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11899$as_echo "$supported" >&6; } 11900 if test "$supported" = "yes" ; then 11901 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11902 found="yes" 11903 fi 11904 fi 11905 11906 11907 11908 11909 11910 11911 11912xorg_testset_save_CFLAGS="$CFLAGS" 11913 11914if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11919 $as_echo_n "(cached) " >&6 11920else 11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11922/* end confdefs.h. */ 11923int i; 11924_ACEOF 11925if ac_fn_c_try_compile "$LINENO"; then : 11926 xorg_cv_cc_flag_unknown_warning_option=yes 11927else 11928 xorg_cv_cc_flag_unknown_warning_option=no 11929fi 11930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11931fi 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11934 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11935 CFLAGS="$xorg_testset_save_CFLAGS" 11936fi 11937 11938if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11941 fi 11942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11946 $as_echo_n "(cached) " >&6 11947else 11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11949/* end confdefs.h. */ 11950int i; 11951_ACEOF 11952if ac_fn_c_try_compile "$LINENO"; then : 11953 xorg_cv_cc_flag_unused_command_line_argument=yes 11954else 11955 xorg_cv_cc_flag_unused_command_line_argument=no 11956fi 11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11958fi 11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11961 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11962 CFLAGS="$xorg_testset_save_CFLAGS" 11963fi 11964 11965found="no" 11966 11967 if test $found = "no" ; then 11968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11970 fi 11971 11972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11974 fi 11975 11976 CFLAGS="$CFLAGS -Wpointer-arith" 11977 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11979$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11980 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 11981 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11982 $as_echo_n "(cached) " >&6 11983else 11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985/* end confdefs.h. */ 11986int i; 11987int 11988main () 11989{ 11990 11991 ; 11992 return 0; 11993} 11994_ACEOF 11995if ac_fn_c_try_link "$LINENO"; then : 11996 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11997else 11998 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11999fi 12000rm -f core conftest.err conftest.$ac_objext \ 12001 conftest$ac_exeext conftest.$ac_ext 12002fi 12003 12004 12005 CFLAGS="$xorg_testset_save_CFLAGS" 12006 12007 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12009$as_echo "$supported" >&6; } 12010 if test "$supported" = "yes" ; then 12011 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12012 found="yes" 12013 fi 12014 fi 12015 12016 12017 12018 12019 12020 12021 12022xorg_testset_save_CFLAGS="$CFLAGS" 12023 12024if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12032/* end confdefs.h. */ 12033int i; 12034_ACEOF 12035if ac_fn_c_try_compile "$LINENO"; then : 12036 xorg_cv_cc_flag_unknown_warning_option=yes 12037else 12038 xorg_cv_cc_flag_unknown_warning_option=no 12039fi 12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12044 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12045 CFLAGS="$xorg_testset_save_CFLAGS" 12046fi 12047 12048if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12049 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12051 fi 12052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12059/* end confdefs.h. */ 12060int i; 12061_ACEOF 12062if ac_fn_c_try_compile "$LINENO"; then : 12063 xorg_cv_cc_flag_unused_command_line_argument=yes 12064else 12065 xorg_cv_cc_flag_unused_command_line_argument=no 12066fi 12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12068fi 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12071 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12072 CFLAGS="$xorg_testset_save_CFLAGS" 12073fi 12074 12075found="no" 12076 12077 if test $found = "no" ; then 12078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12080 fi 12081 12082 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12084 fi 12085 12086 CFLAGS="$CFLAGS -Wstrict-prototypes" 12087 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12089$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12090 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 12091 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12092 $as_echo_n "(cached) " >&6 12093else 12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096int i; 12097int 12098main () 12099{ 12100 12101 ; 12102 return 0; 12103} 12104_ACEOF 12105if ac_fn_c_try_link "$LINENO"; then : 12106 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12107else 12108 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12109fi 12110rm -f core conftest.err conftest.$ac_objext \ 12111 conftest$ac_exeext conftest.$ac_ext 12112fi 12113 12114 12115 CFLAGS="$xorg_testset_save_CFLAGS" 12116 12117 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12119$as_echo "$supported" >&6; } 12120 if test "$supported" = "yes" ; then 12121 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12122 found="yes" 12123 fi 12124 fi 12125 12126 12127 12128 12129 12130 12131 12132xorg_testset_save_CFLAGS="$CFLAGS" 12133 12134if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12139 $as_echo_n "(cached) " >&6 12140else 12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12142/* end confdefs.h. */ 12143int i; 12144_ACEOF 12145if ac_fn_c_try_compile "$LINENO"; then : 12146 xorg_cv_cc_flag_unknown_warning_option=yes 12147else 12148 xorg_cv_cc_flag_unknown_warning_option=no 12149fi 12150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12154 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12155 CFLAGS="$xorg_testset_save_CFLAGS" 12156fi 12157 12158if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12161 fi 12162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167else 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170int i; 12171_ACEOF 12172if ac_fn_c_try_compile "$LINENO"; then : 12173 xorg_cv_cc_flag_unused_command_line_argument=yes 12174else 12175 xorg_cv_cc_flag_unused_command_line_argument=no 12176fi 12177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12178fi 12179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12181 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12182 CFLAGS="$xorg_testset_save_CFLAGS" 12183fi 12184 12185found="no" 12186 12187 if test $found = "no" ; then 12188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12190 fi 12191 12192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12194 fi 12195 12196 CFLAGS="$CFLAGS -Wmissing-prototypes" 12197 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12199$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12200 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 12201 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206int i; 12207int 12208main () 12209{ 12210 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_c_try_link "$LINENO"; then : 12216 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12217else 12218 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12219fi 12220rm -f core conftest.err conftest.$ac_objext \ 12221 conftest$ac_exeext conftest.$ac_ext 12222fi 12223 12224 12225 CFLAGS="$xorg_testset_save_CFLAGS" 12226 12227 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12229$as_echo "$supported" >&6; } 12230 if test "$supported" = "yes" ; then 12231 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12232 found="yes" 12233 fi 12234 fi 12235 12236 12237 12238 12239 12240 12241 12242xorg_testset_save_CFLAGS="$CFLAGS" 12243 12244if test "x$xorg_testset_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_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12265 CFLAGS="$xorg_testset_save_CFLAGS" 12266fi 12267 12268if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12269 if test "x$xorg_testset_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_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_unknown_warning_option" = "xyes" ; then 12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12300 fi 12301 12302 if test "x$xorg_testset_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=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 12311 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes 12327else 12328 eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh` 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 12352xorg_testset_save_CFLAGS="$CFLAGS" 12353 12354if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12359 $as_echo_n "(cached) " >&6 12360else 12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12362/* end confdefs.h. */ 12363int i; 12364_ACEOF 12365if ac_fn_c_try_compile "$LINENO"; then : 12366 xorg_cv_cc_flag_unknown_warning_option=yes 12367else 12368 xorg_cv_cc_flag_unknown_warning_option=no 12369fi 12370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12371fi 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12374 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12375 CFLAGS="$xorg_testset_save_CFLAGS" 12376fi 12377 12378if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12381 fi 12382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12386 $as_echo_n "(cached) " >&6 12387else 12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12389/* end confdefs.h. */ 12390int i; 12391_ACEOF 12392if ac_fn_c_try_compile "$LINENO"; then : 12393 xorg_cv_cc_flag_unused_command_line_argument=yes 12394else 12395 xorg_cv_cc_flag_unused_command_line_argument=no 12396fi 12397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12398fi 12399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12401 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12402 CFLAGS="$xorg_testset_save_CFLAGS" 12403fi 12404 12405found="no" 12406 12407 if test $found = "no" ; then 12408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12410 fi 12411 12412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12414 fi 12415 12416 CFLAGS="$CFLAGS -Wnested-externs" 12417 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12419$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12420 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 12421 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12425/* end confdefs.h. */ 12426int i; 12427int 12428main () 12429{ 12430 12431 ; 12432 return 0; 12433} 12434_ACEOF 12435if ac_fn_c_try_link "$LINENO"; then : 12436 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12437else 12438 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12439fi 12440rm -f core conftest.err conftest.$ac_objext \ 12441 conftest$ac_exeext conftest.$ac_ext 12442fi 12443 12444 12445 CFLAGS="$xorg_testset_save_CFLAGS" 12446 12447 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12449$as_echo "$supported" >&6; } 12450 if test "$supported" = "yes" ; then 12451 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12452 found="yes" 12453 fi 12454 fi 12455 12456 12457 12458 12459 12460 12461 12462xorg_testset_save_CFLAGS="$CFLAGS" 12463 12464if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12469 $as_echo_n "(cached) " >&6 12470else 12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12472/* end confdefs.h. */ 12473int i; 12474_ACEOF 12475if ac_fn_c_try_compile "$LINENO"; then : 12476 xorg_cv_cc_flag_unknown_warning_option=yes 12477else 12478 xorg_cv_cc_flag_unknown_warning_option=no 12479fi 12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12481fi 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12484 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12485 CFLAGS="$xorg_testset_save_CFLAGS" 12486fi 12487 12488if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12491 fi 12492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497else 12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12499/* end confdefs.h. */ 12500int i; 12501_ACEOF 12502if ac_fn_c_try_compile "$LINENO"; then : 12503 xorg_cv_cc_flag_unused_command_line_argument=yes 12504else 12505 xorg_cv_cc_flag_unused_command_line_argument=no 12506fi 12507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12508fi 12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12511 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12512 CFLAGS="$xorg_testset_save_CFLAGS" 12513fi 12514 12515found="no" 12516 12517 if test $found = "no" ; then 12518 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12520 fi 12521 12522 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12524 fi 12525 12526 CFLAGS="$CFLAGS -Wbad-function-cast" 12527 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12529$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12530 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 12531 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12532 $as_echo_n "(cached) " >&6 12533else 12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12535/* end confdefs.h. */ 12536int i; 12537int 12538main () 12539{ 12540 12541 ; 12542 return 0; 12543} 12544_ACEOF 12545if ac_fn_c_try_link "$LINENO"; then : 12546 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12547else 12548 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12549fi 12550rm -f core conftest.err conftest.$ac_objext \ 12551 conftest$ac_exeext conftest.$ac_ext 12552fi 12553 12554 12555 CFLAGS="$xorg_testset_save_CFLAGS" 12556 12557 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12559$as_echo "$supported" >&6; } 12560 if test "$supported" = "yes" ; then 12561 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12562 found="yes" 12563 fi 12564 fi 12565 12566 12567 12568 12569 12570 12571 12572xorg_testset_save_CFLAGS="$CFLAGS" 12573 12574if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12579 $as_echo_n "(cached) " >&6 12580else 12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12582/* end confdefs.h. */ 12583int i; 12584_ACEOF 12585if ac_fn_c_try_compile "$LINENO"; then : 12586 xorg_cv_cc_flag_unknown_warning_option=yes 12587else 12588 xorg_cv_cc_flag_unknown_warning_option=no 12589fi 12590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12591fi 12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12594 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12595 CFLAGS="$xorg_testset_save_CFLAGS" 12596fi 12597 12598if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12601 fi 12602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12606 $as_echo_n "(cached) " >&6 12607else 12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12609/* end confdefs.h. */ 12610int i; 12611_ACEOF 12612if ac_fn_c_try_compile "$LINENO"; then : 12613 xorg_cv_cc_flag_unused_command_line_argument=yes 12614else 12615 xorg_cv_cc_flag_unused_command_line_argument=no 12616fi 12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12618fi 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12621 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12622 CFLAGS="$xorg_testset_save_CFLAGS" 12623fi 12624 12625found="no" 12626 12627 if test $found = "no" ; then 12628 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12630 fi 12631 12632 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12634 fi 12635 12636 CFLAGS="$CFLAGS -Wformat=2" 12637 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12639$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12640 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 12641 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12642 $as_echo_n "(cached) " >&6 12643else 12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12645/* end confdefs.h. */ 12646int i; 12647int 12648main () 12649{ 12650 12651 ; 12652 return 0; 12653} 12654_ACEOF 12655if ac_fn_c_try_link "$LINENO"; then : 12656 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12657else 12658 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12659fi 12660rm -f core conftest.err conftest.$ac_objext \ 12661 conftest$ac_exeext conftest.$ac_ext 12662fi 12663 12664 12665 CFLAGS="$xorg_testset_save_CFLAGS" 12666 12667 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12669$as_echo "$supported" >&6; } 12670 if test "$supported" = "yes" ; then 12671 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12672 found="yes" 12673 fi 12674 fi 12675 12676 if test $found = "no" ; then 12677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12679 fi 12680 12681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12683 fi 12684 12685 CFLAGS="$CFLAGS -Wformat" 12686 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12688$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12689 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 12690 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12691 $as_echo_n "(cached) " >&6 12692else 12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12694/* end confdefs.h. */ 12695int i; 12696int 12697main () 12698{ 12699 12700 ; 12701 return 0; 12702} 12703_ACEOF 12704if ac_fn_c_try_link "$LINENO"; then : 12705 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12706else 12707 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12708fi 12709rm -f core conftest.err conftest.$ac_objext \ 12710 conftest$ac_exeext conftest.$ac_ext 12711fi 12712 12713 12714 CFLAGS="$xorg_testset_save_CFLAGS" 12715 12716 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12718$as_echo "$supported" >&6; } 12719 if test "$supported" = "yes" ; then 12720 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12721 found="yes" 12722 fi 12723 fi 12724 12725 12726 12727 12728 12729 12730 12731xorg_testset_save_CFLAGS="$CFLAGS" 12732 12733if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12738 $as_echo_n "(cached) " >&6 12739else 12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12741/* end confdefs.h. */ 12742int i; 12743_ACEOF 12744if ac_fn_c_try_compile "$LINENO"; then : 12745 xorg_cv_cc_flag_unknown_warning_option=yes 12746else 12747 xorg_cv_cc_flag_unknown_warning_option=no 12748fi 12749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12750fi 12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12753 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12754 CFLAGS="$xorg_testset_save_CFLAGS" 12755fi 12756 12757if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12760 fi 12761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12765 $as_echo_n "(cached) " >&6 12766else 12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12768/* end confdefs.h. */ 12769int i; 12770_ACEOF 12771if ac_fn_c_try_compile "$LINENO"; then : 12772 xorg_cv_cc_flag_unused_command_line_argument=yes 12773else 12774 xorg_cv_cc_flag_unused_command_line_argument=no 12775fi 12776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12777fi 12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12780 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12781 CFLAGS="$xorg_testset_save_CFLAGS" 12782fi 12783 12784found="no" 12785 12786 if test $found = "no" ; then 12787 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12789 fi 12790 12791 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12793 fi 12794 12795 CFLAGS="$CFLAGS -Wold-style-definition" 12796 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12798$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12799 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 12800 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12804/* end confdefs.h. */ 12805int i; 12806int 12807main () 12808{ 12809 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814if ac_fn_c_try_link "$LINENO"; then : 12815 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12816else 12817 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12818fi 12819rm -f core conftest.err conftest.$ac_objext \ 12820 conftest$ac_exeext conftest.$ac_ext 12821fi 12822 12823 12824 CFLAGS="$xorg_testset_save_CFLAGS" 12825 12826 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12828$as_echo "$supported" >&6; } 12829 if test "$supported" = "yes" ; then 12830 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12831 found="yes" 12832 fi 12833 fi 12834 12835 12836 12837 12838 12839 12840 12841xorg_testset_save_CFLAGS="$CFLAGS" 12842 12843if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852int i; 12853_ACEOF 12854if ac_fn_c_try_compile "$LINENO"; then : 12855 xorg_cv_cc_flag_unknown_warning_option=yes 12856else 12857 xorg_cv_cc_flag_unknown_warning_option=no 12858fi 12859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12860fi 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12863 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12864 CFLAGS="$xorg_testset_save_CFLAGS" 12865fi 12866 12867if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12870 fi 12871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879int i; 12880_ACEOF 12881if ac_fn_c_try_compile "$LINENO"; then : 12882 xorg_cv_cc_flag_unused_command_line_argument=yes 12883else 12884 xorg_cv_cc_flag_unused_command_line_argument=no 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12890 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12891 CFLAGS="$xorg_testset_save_CFLAGS" 12892fi 12893 12894found="no" 12895 12896 if test $found = "no" ; then 12897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12899 fi 12900 12901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12903 fi 12904 12905 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12906 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12908$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12909 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 12910 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12911 $as_echo_n "(cached) " >&6 12912else 12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12914/* end confdefs.h. */ 12915int i; 12916int 12917main () 12918{ 12919 12920 ; 12921 return 0; 12922} 12923_ACEOF 12924if ac_fn_c_try_link "$LINENO"; then : 12925 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12926else 12927 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12928fi 12929rm -f core conftest.err conftest.$ac_objext \ 12930 conftest$ac_exeext conftest.$ac_ext 12931fi 12932 12933 12934 CFLAGS="$xorg_testset_save_CFLAGS" 12935 12936 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12938$as_echo "$supported" >&6; } 12939 if test "$supported" = "yes" ; then 12940 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12941 found="yes" 12942 fi 12943 fi 12944 12945 12946 12947# This chunk adds additional warnings that could catch undesired effects. 12948 12949 12950 12951 12952 12953xorg_testset_save_CFLAGS="$CFLAGS" 12954 12955if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12960 $as_echo_n "(cached) " >&6 12961else 12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12963/* end confdefs.h. */ 12964int i; 12965_ACEOF 12966if ac_fn_c_try_compile "$LINENO"; then : 12967 xorg_cv_cc_flag_unknown_warning_option=yes 12968else 12969 xorg_cv_cc_flag_unknown_warning_option=no 12970fi 12971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12972fi 12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12975 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12976 CFLAGS="$xorg_testset_save_CFLAGS" 12977fi 12978 12979if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12980 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12982 fi 12983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12987 $as_echo_n "(cached) " >&6 12988else 12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12990/* end confdefs.h. */ 12991int i; 12992_ACEOF 12993if ac_fn_c_try_compile "$LINENO"; then : 12994 xorg_cv_cc_flag_unused_command_line_argument=yes 12995else 12996 xorg_cv_cc_flag_unused_command_line_argument=no 12997fi 12998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13002 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13003 CFLAGS="$xorg_testset_save_CFLAGS" 13004fi 13005 13006found="no" 13007 13008 if test $found = "no" ; then 13009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13011 fi 13012 13013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13015 fi 13016 13017 CFLAGS="$CFLAGS -Wunused" 13018 13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13020$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13021 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 13022 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13023 $as_echo_n "(cached) " >&6 13024else 13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13026/* end confdefs.h. */ 13027int i; 13028int 13029main () 13030{ 13031 13032 ; 13033 return 0; 13034} 13035_ACEOF 13036if ac_fn_c_try_link "$LINENO"; then : 13037 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13038else 13039 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext \ 13042 conftest$ac_exeext conftest.$ac_ext 13043fi 13044 13045 13046 CFLAGS="$xorg_testset_save_CFLAGS" 13047 13048 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13050$as_echo "$supported" >&6; } 13051 if test "$supported" = "yes" ; then 13052 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13053 found="yes" 13054 fi 13055 fi 13056 13057 13058 13059 13060 13061 13062 13063xorg_testset_save_CFLAGS="$CFLAGS" 13064 13065if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13070 $as_echo_n "(cached) " >&6 13071else 13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13073/* end confdefs.h. */ 13074int i; 13075_ACEOF 13076if ac_fn_c_try_compile "$LINENO"; then : 13077 xorg_cv_cc_flag_unknown_warning_option=yes 13078else 13079 xorg_cv_cc_flag_unknown_warning_option=no 13080fi 13081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13082fi 13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13085 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13086 CFLAGS="$xorg_testset_save_CFLAGS" 13087fi 13088 13089if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13092 fi 13093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101int i; 13102_ACEOF 13103if ac_fn_c_try_compile "$LINENO"; then : 13104 xorg_cv_cc_flag_unused_command_line_argument=yes 13105else 13106 xorg_cv_cc_flag_unused_command_line_argument=no 13107fi 13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13109fi 13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13112 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13113 CFLAGS="$xorg_testset_save_CFLAGS" 13114fi 13115 13116found="no" 13117 13118 if test $found = "no" ; then 13119 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13121 fi 13122 13123 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13125 fi 13126 13127 CFLAGS="$CFLAGS -Wuninitialized" 13128 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13130$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13131 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 13132 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13133 $as_echo_n "(cached) " >&6 13134else 13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136/* end confdefs.h. */ 13137int i; 13138int 13139main () 13140{ 13141 13142 ; 13143 return 0; 13144} 13145_ACEOF 13146if ac_fn_c_try_link "$LINENO"; then : 13147 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13148else 13149 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13150fi 13151rm -f core conftest.err conftest.$ac_objext \ 13152 conftest$ac_exeext conftest.$ac_ext 13153fi 13154 13155 13156 CFLAGS="$xorg_testset_save_CFLAGS" 13157 13158 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13160$as_echo "$supported" >&6; } 13161 if test "$supported" = "yes" ; then 13162 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13163 found="yes" 13164 fi 13165 fi 13166 13167 13168 13169 13170 13171 13172 13173xorg_testset_save_CFLAGS="$CFLAGS" 13174 13175if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13183/* end confdefs.h. */ 13184int i; 13185_ACEOF 13186if ac_fn_c_try_compile "$LINENO"; then : 13187 xorg_cv_cc_flag_unknown_warning_option=yes 13188else 13189 xorg_cv_cc_flag_unknown_warning_option=no 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13192fi 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13195 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13196 CFLAGS="$xorg_testset_save_CFLAGS" 13197fi 13198 13199if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13202 fi 13203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13207 $as_echo_n "(cached) " >&6 13208else 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210/* end confdefs.h. */ 13211int i; 13212_ACEOF 13213if ac_fn_c_try_compile "$LINENO"; then : 13214 xorg_cv_cc_flag_unused_command_line_argument=yes 13215else 13216 xorg_cv_cc_flag_unused_command_line_argument=no 13217fi 13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13219fi 13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13222 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13223 CFLAGS="$xorg_testset_save_CFLAGS" 13224fi 13225 13226found="no" 13227 13228 if test $found = "no" ; then 13229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13231 fi 13232 13233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13235 fi 13236 13237 CFLAGS="$CFLAGS -Wshadow" 13238 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13240$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13241 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 13242 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13243 $as_echo_n "(cached) " >&6 13244else 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247int i; 13248int 13249main () 13250{ 13251 13252 ; 13253 return 0; 13254} 13255_ACEOF 13256if ac_fn_c_try_link "$LINENO"; then : 13257 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13258else 13259 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13260fi 13261rm -f core conftest.err conftest.$ac_objext \ 13262 conftest$ac_exeext conftest.$ac_ext 13263fi 13264 13265 13266 CFLAGS="$xorg_testset_save_CFLAGS" 13267 13268 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13270$as_echo "$supported" >&6; } 13271 if test "$supported" = "yes" ; then 13272 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13273 found="yes" 13274 fi 13275 fi 13276 13277 13278 13279 13280 13281 13282 13283xorg_testset_save_CFLAGS="$CFLAGS" 13284 13285if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13293/* end confdefs.h. */ 13294int i; 13295_ACEOF 13296if ac_fn_c_try_compile "$LINENO"; then : 13297 xorg_cv_cc_flag_unknown_warning_option=yes 13298else 13299 xorg_cv_cc_flag_unknown_warning_option=no 13300fi 13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13302fi 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13305 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13306 CFLAGS="$xorg_testset_save_CFLAGS" 13307fi 13308 13309if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13312 fi 13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13317 $as_echo_n "(cached) " >&6 13318else 13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13320/* end confdefs.h. */ 13321int i; 13322_ACEOF 13323if ac_fn_c_try_compile "$LINENO"; then : 13324 xorg_cv_cc_flag_unused_command_line_argument=yes 13325else 13326 xorg_cv_cc_flag_unused_command_line_argument=no 13327fi 13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13329fi 13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13332 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13333 CFLAGS="$xorg_testset_save_CFLAGS" 13334fi 13335 13336found="no" 13337 13338 if test $found = "no" ; then 13339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13341 fi 13342 13343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13345 fi 13346 13347 CFLAGS="$CFLAGS -Wcast-qual" 13348 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13350$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13351 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 13352 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13353 $as_echo_n "(cached) " >&6 13354else 13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356/* end confdefs.h. */ 13357int i; 13358int 13359main () 13360{ 13361 13362 ; 13363 return 0; 13364} 13365_ACEOF 13366if ac_fn_c_try_link "$LINENO"; then : 13367 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13368else 13369 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13370fi 13371rm -f core conftest.err conftest.$ac_objext \ 13372 conftest$ac_exeext conftest.$ac_ext 13373fi 13374 13375 13376 CFLAGS="$xorg_testset_save_CFLAGS" 13377 13378 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13380$as_echo "$supported" >&6; } 13381 if test "$supported" = "yes" ; then 13382 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13383 found="yes" 13384 fi 13385 fi 13386 13387 13388 13389 13390 13391 13392 13393xorg_testset_save_CFLAGS="$CFLAGS" 13394 13395if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401else 13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13403/* end confdefs.h. */ 13404int i; 13405_ACEOF 13406if ac_fn_c_try_compile "$LINENO"; then : 13407 xorg_cv_cc_flag_unknown_warning_option=yes 13408else 13409 xorg_cv_cc_flag_unknown_warning_option=no 13410fi 13411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13412fi 13413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13415 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13416 CFLAGS="$xorg_testset_save_CFLAGS" 13417fi 13418 13419if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13422 fi 13423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13430/* end confdefs.h. */ 13431int i; 13432_ACEOF 13433if ac_fn_c_try_compile "$LINENO"; then : 13434 xorg_cv_cc_flag_unused_command_line_argument=yes 13435else 13436 xorg_cv_cc_flag_unused_command_line_argument=no 13437fi 13438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13439fi 13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13442 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13443 CFLAGS="$xorg_testset_save_CFLAGS" 13444fi 13445 13446found="no" 13447 13448 if test $found = "no" ; then 13449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13451 fi 13452 13453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13455 fi 13456 13457 CFLAGS="$CFLAGS -Wmissing-noreturn" 13458 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13460$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13461 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 13462 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13463 $as_echo_n "(cached) " >&6 13464else 13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13466/* end confdefs.h. */ 13467int i; 13468int 13469main () 13470{ 13471 13472 ; 13473 return 0; 13474} 13475_ACEOF 13476if ac_fn_c_try_link "$LINENO"; then : 13477 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13478else 13479 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13480fi 13481rm -f core conftest.err conftest.$ac_objext \ 13482 conftest$ac_exeext conftest.$ac_ext 13483fi 13484 13485 13486 CFLAGS="$xorg_testset_save_CFLAGS" 13487 13488 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13490$as_echo "$supported" >&6; } 13491 if test "$supported" = "yes" ; then 13492 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13493 found="yes" 13494 fi 13495 fi 13496 13497 13498 13499 13500 13501 13502 13503xorg_testset_save_CFLAGS="$CFLAGS" 13504 13505if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13513/* end confdefs.h. */ 13514int i; 13515_ACEOF 13516if ac_fn_c_try_compile "$LINENO"; then : 13517 xorg_cv_cc_flag_unknown_warning_option=yes 13518else 13519 xorg_cv_cc_flag_unknown_warning_option=no 13520fi 13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13522fi 13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13525 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13526 CFLAGS="$xorg_testset_save_CFLAGS" 13527fi 13528 13529if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13532 fi 13533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13537 $as_echo_n "(cached) " >&6 13538else 13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13540/* end confdefs.h. */ 13541int i; 13542_ACEOF 13543if ac_fn_c_try_compile "$LINENO"; then : 13544 xorg_cv_cc_flag_unused_command_line_argument=yes 13545else 13546 xorg_cv_cc_flag_unused_command_line_argument=no 13547fi 13548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13549fi 13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13552 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13553 CFLAGS="$xorg_testset_save_CFLAGS" 13554fi 13555 13556found="no" 13557 13558 if test $found = "no" ; then 13559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13561 fi 13562 13563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13565 fi 13566 13567 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13568 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13570$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13571 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 13572 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13573 $as_echo_n "(cached) " >&6 13574else 13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13576/* end confdefs.h. */ 13577int i; 13578int 13579main () 13580{ 13581 13582 ; 13583 return 0; 13584} 13585_ACEOF 13586if ac_fn_c_try_link "$LINENO"; then : 13587 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13588else 13589 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13590fi 13591rm -f core conftest.err conftest.$ac_objext \ 13592 conftest$ac_exeext conftest.$ac_ext 13593fi 13594 13595 13596 CFLAGS="$xorg_testset_save_CFLAGS" 13597 13598 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13600$as_echo "$supported" >&6; } 13601 if test "$supported" = "yes" ; then 13602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13603 found="yes" 13604 fi 13605 fi 13606 13607 13608 13609 13610 13611 13612 13613xorg_testset_save_CFLAGS="$CFLAGS" 13614 13615if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13620 $as_echo_n "(cached) " >&6 13621else 13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13623/* end confdefs.h. */ 13624int i; 13625_ACEOF 13626if ac_fn_c_try_compile "$LINENO"; then : 13627 xorg_cv_cc_flag_unknown_warning_option=yes 13628else 13629 xorg_cv_cc_flag_unknown_warning_option=no 13630fi 13631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13632fi 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13635 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13636 CFLAGS="$xorg_testset_save_CFLAGS" 13637fi 13638 13639if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13642 fi 13643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13647 $as_echo_n "(cached) " >&6 13648else 13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13650/* end confdefs.h. */ 13651int i; 13652_ACEOF 13653if ac_fn_c_try_compile "$LINENO"; then : 13654 xorg_cv_cc_flag_unused_command_line_argument=yes 13655else 13656 xorg_cv_cc_flag_unused_command_line_argument=no 13657fi 13658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13659fi 13660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13662 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13663 CFLAGS="$xorg_testset_save_CFLAGS" 13664fi 13665 13666found="no" 13667 13668 if test $found = "no" ; then 13669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 fi 13672 13673 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13675 fi 13676 13677 CFLAGS="$CFLAGS -Wredundant-decls" 13678 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13680$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13681 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 13682 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13683 $as_echo_n "(cached) " >&6 13684else 13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13686/* end confdefs.h. */ 13687int i; 13688int 13689main () 13690{ 13691 13692 ; 13693 return 0; 13694} 13695_ACEOF 13696if ac_fn_c_try_link "$LINENO"; then : 13697 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13698else 13699 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13700fi 13701rm -f core conftest.err conftest.$ac_objext \ 13702 conftest$ac_exeext conftest.$ac_ext 13703fi 13704 13705 13706 CFLAGS="$xorg_testset_save_CFLAGS" 13707 13708 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13710$as_echo "$supported" >&6; } 13711 if test "$supported" = "yes" ; then 13712 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13713 found="yes" 13714 fi 13715 fi 13716 13717 13718 13719# These are currently disabled because they are noisy. They will be enabled 13720# in the future once the codebase is sufficiently modernized to silence 13721# them. For now, I don't want them to drown out the other warnings. 13722# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op]) 13723# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses]) 13724# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align]) 13725 13726# Turn some warnings into errors, so we don't accidently get successful builds 13727# when there are problems that should be fixed. 13728 13729if test "x$SELECTIVE_WERROR" = "xyes" ; then 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747_ACEOF 13748if ac_fn_c_try_compile "$LINENO"; then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774_ACEOF 13775if ac_fn_c_try_compile "$LINENO"; then : 13776 xorg_cv_cc_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_cc_flag_unused_command_line_argument=no 13779fi 13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13785 CFLAGS="$xorg_testset_save_CFLAGS" 13786fi 13787 13788found="no" 13789 13790 if test $found = "no" ; then 13791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Werror=implicit" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13802$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13803 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 13804 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810int 13811main () 13812{ 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_c_try_link "$LINENO"; then : 13819 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13820else 13821 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext \ 13824 conftest$ac_exeext conftest.$ac_ext 13825fi 13826 13827 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829 13830 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13832$as_echo "$supported" >&6; } 13833 if test "$supported" = "yes" ; then 13834 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13835 found="yes" 13836 fi 13837 fi 13838 13839 if test $found = "no" ; then 13840 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13842 fi 13843 13844 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13846 fi 13847 13848 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13849 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13851$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13852 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 13853 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13854 $as_echo_n "(cached) " >&6 13855else 13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858int i; 13859int 13860main () 13861{ 13862 13863 ; 13864 return 0; 13865} 13866_ACEOF 13867if ac_fn_c_try_link "$LINENO"; then : 13868 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13869else 13870 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13871fi 13872rm -f core conftest.err conftest.$ac_objext \ 13873 conftest$ac_exeext conftest.$ac_ext 13874fi 13875 13876 13877 CFLAGS="$xorg_testset_save_CFLAGS" 13878 13879 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13881$as_echo "$supported" >&6; } 13882 if test "$supported" = "yes" ; then 13883 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13884 found="yes" 13885 fi 13886 fi 13887 13888 13889 13890 13891 13892 13893 13894xorg_testset_save_CFLAGS="$CFLAGS" 13895 13896if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904/* end confdefs.h. */ 13905int i; 13906_ACEOF 13907if ac_fn_c_try_compile "$LINENO"; then : 13908 xorg_cv_cc_flag_unknown_warning_option=yes 13909else 13910 xorg_cv_cc_flag_unknown_warning_option=no 13911fi 13912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13913fi 13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13916 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13917 CFLAGS="$xorg_testset_save_CFLAGS" 13918fi 13919 13920if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13923 fi 13924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13928 $as_echo_n "(cached) " >&6 13929else 13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13931/* end confdefs.h. */ 13932int i; 13933_ACEOF 13934if ac_fn_c_try_compile "$LINENO"; then : 13935 xorg_cv_cc_flag_unused_command_line_argument=yes 13936else 13937 xorg_cv_cc_flag_unused_command_line_argument=no 13938fi 13939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13940fi 13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13943 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13944 CFLAGS="$xorg_testset_save_CFLAGS" 13945fi 13946 13947found="no" 13948 13949 if test $found = "no" ; then 13950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13952 fi 13953 13954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13956 fi 13957 13958 CFLAGS="$CFLAGS -Werror=nonnull" 13959 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 13961$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 13962 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 13963 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13964 $as_echo_n "(cached) " >&6 13965else 13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967/* end confdefs.h. */ 13968int i; 13969int 13970main () 13971{ 13972 13973 ; 13974 return 0; 13975} 13976_ACEOF 13977if ac_fn_c_try_link "$LINENO"; then : 13978 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13979else 13980 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13981fi 13982rm -f core conftest.err conftest.$ac_objext \ 13983 conftest$ac_exeext conftest.$ac_ext 13984fi 13985 13986 13987 CFLAGS="$xorg_testset_save_CFLAGS" 13988 13989 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13991$as_echo "$supported" >&6; } 13992 if test "$supported" = "yes" ; then 13993 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 13994 found="yes" 13995 fi 13996 fi 13997 13998 13999 14000 14001 14002 14003 14004xorg_testset_save_CFLAGS="$CFLAGS" 14005 14006if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14011 $as_echo_n "(cached) " >&6 14012else 14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14014/* end confdefs.h. */ 14015int i; 14016_ACEOF 14017if ac_fn_c_try_compile "$LINENO"; then : 14018 xorg_cv_cc_flag_unknown_warning_option=yes 14019else 14020 xorg_cv_cc_flag_unknown_warning_option=no 14021fi 14022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14023fi 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14026 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14027 CFLAGS="$xorg_testset_save_CFLAGS" 14028fi 14029 14030if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14033 fi 14034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14038 $as_echo_n "(cached) " >&6 14039else 14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042int i; 14043_ACEOF 14044if ac_fn_c_try_compile "$LINENO"; then : 14045 xorg_cv_cc_flag_unused_command_line_argument=yes 14046else 14047 xorg_cv_cc_flag_unused_command_line_argument=no 14048fi 14049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14050fi 14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14053 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14054 CFLAGS="$xorg_testset_save_CFLAGS" 14055fi 14056 14057found="no" 14058 14059 if test $found = "no" ; then 14060 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14062 fi 14063 14064 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14066 fi 14067 14068 CFLAGS="$CFLAGS -Werror=init-self" 14069 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14071$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14072 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 14073 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14074 $as_echo_n "(cached) " >&6 14075else 14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14077/* end confdefs.h. */ 14078int i; 14079int 14080main () 14081{ 14082 14083 ; 14084 return 0; 14085} 14086_ACEOF 14087if ac_fn_c_try_link "$LINENO"; then : 14088 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14089else 14090 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14091fi 14092rm -f core conftest.err conftest.$ac_objext \ 14093 conftest$ac_exeext conftest.$ac_ext 14094fi 14095 14096 14097 CFLAGS="$xorg_testset_save_CFLAGS" 14098 14099 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14101$as_echo "$supported" >&6; } 14102 if test "$supported" = "yes" ; then 14103 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14104 found="yes" 14105 fi 14106 fi 14107 14108 14109 14110 14111 14112 14113 14114xorg_testset_save_CFLAGS="$CFLAGS" 14115 14116if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14121 $as_echo_n "(cached) " >&6 14122else 14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14124/* end confdefs.h. */ 14125int i; 14126_ACEOF 14127if ac_fn_c_try_compile "$LINENO"; then : 14128 xorg_cv_cc_flag_unknown_warning_option=yes 14129else 14130 xorg_cv_cc_flag_unknown_warning_option=no 14131fi 14132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14133fi 14134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14136 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14137 CFLAGS="$xorg_testset_save_CFLAGS" 14138fi 14139 14140if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14143 fi 14144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14148 $as_echo_n "(cached) " >&6 14149else 14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14151/* end confdefs.h. */ 14152int i; 14153_ACEOF 14154if ac_fn_c_try_compile "$LINENO"; then : 14155 xorg_cv_cc_flag_unused_command_line_argument=yes 14156else 14157 xorg_cv_cc_flag_unused_command_line_argument=no 14158fi 14159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14160fi 14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14163 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14164 CFLAGS="$xorg_testset_save_CFLAGS" 14165fi 14166 14167found="no" 14168 14169 if test $found = "no" ; then 14170 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14172 fi 14173 14174 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14176 fi 14177 14178 CFLAGS="$CFLAGS -Werror=main" 14179 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14181$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14182 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 14183 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188int i; 14189int 14190main () 14191{ 14192 14193 ; 14194 return 0; 14195} 14196_ACEOF 14197if ac_fn_c_try_link "$LINENO"; then : 14198 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14199else 14200 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14201fi 14202rm -f core conftest.err conftest.$ac_objext \ 14203 conftest$ac_exeext conftest.$ac_ext 14204fi 14205 14206 14207 CFLAGS="$xorg_testset_save_CFLAGS" 14208 14209 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14211$as_echo "$supported" >&6; } 14212 if test "$supported" = "yes" ; then 14213 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14214 found="yes" 14215 fi 14216 fi 14217 14218 14219 14220 14221 14222 14223 14224xorg_testset_save_CFLAGS="$CFLAGS" 14225 14226if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14231 $as_echo_n "(cached) " >&6 14232else 14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14234/* end confdefs.h. */ 14235int i; 14236_ACEOF 14237if ac_fn_c_try_compile "$LINENO"; then : 14238 xorg_cv_cc_flag_unknown_warning_option=yes 14239else 14240 xorg_cv_cc_flag_unknown_warning_option=no 14241fi 14242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14243fi 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14246 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14247 CFLAGS="$xorg_testset_save_CFLAGS" 14248fi 14249 14250if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14253 fi 14254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14258 $as_echo_n "(cached) " >&6 14259else 14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14261/* end confdefs.h. */ 14262int i; 14263_ACEOF 14264if ac_fn_c_try_compile "$LINENO"; then : 14265 xorg_cv_cc_flag_unused_command_line_argument=yes 14266else 14267 xorg_cv_cc_flag_unused_command_line_argument=no 14268fi 14269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14270fi 14271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14273 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14274 CFLAGS="$xorg_testset_save_CFLAGS" 14275fi 14276 14277found="no" 14278 14279 if test $found = "no" ; then 14280 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14282 fi 14283 14284 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14286 fi 14287 14288 CFLAGS="$CFLAGS -Werror=missing-braces" 14289 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14291$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14292 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 14293 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14294 $as_echo_n "(cached) " >&6 14295else 14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14297/* end confdefs.h. */ 14298int i; 14299int 14300main () 14301{ 14302 14303 ; 14304 return 0; 14305} 14306_ACEOF 14307if ac_fn_c_try_link "$LINENO"; then : 14308 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14309else 14310 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14311fi 14312rm -f core conftest.err conftest.$ac_objext \ 14313 conftest$ac_exeext conftest.$ac_ext 14314fi 14315 14316 14317 CFLAGS="$xorg_testset_save_CFLAGS" 14318 14319 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14321$as_echo "$supported" >&6; } 14322 if test "$supported" = "yes" ; then 14323 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14324 found="yes" 14325 fi 14326 fi 14327 14328 14329 14330 14331 14332 14333 14334xorg_testset_save_CFLAGS="$CFLAGS" 14335 14336if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14341 $as_echo_n "(cached) " >&6 14342else 14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14344/* end confdefs.h. */ 14345int i; 14346_ACEOF 14347if ac_fn_c_try_compile "$LINENO"; then : 14348 xorg_cv_cc_flag_unknown_warning_option=yes 14349else 14350 xorg_cv_cc_flag_unknown_warning_option=no 14351fi 14352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14353fi 14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14356 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14357 CFLAGS="$xorg_testset_save_CFLAGS" 14358fi 14359 14360if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14363 fi 14364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14368 $as_echo_n "(cached) " >&6 14369else 14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14371/* end confdefs.h. */ 14372int i; 14373_ACEOF 14374if ac_fn_c_try_compile "$LINENO"; then : 14375 xorg_cv_cc_flag_unused_command_line_argument=yes 14376else 14377 xorg_cv_cc_flag_unused_command_line_argument=no 14378fi 14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14380fi 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14383 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14384 CFLAGS="$xorg_testset_save_CFLAGS" 14385fi 14386 14387found="no" 14388 14389 if test $found = "no" ; then 14390 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14392 fi 14393 14394 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14396 fi 14397 14398 CFLAGS="$CFLAGS -Werror=sequence-point" 14399 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14401$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14402 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 14403 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14404 $as_echo_n "(cached) " >&6 14405else 14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14407/* end confdefs.h. */ 14408int i; 14409int 14410main () 14411{ 14412 14413 ; 14414 return 0; 14415} 14416_ACEOF 14417if ac_fn_c_try_link "$LINENO"; then : 14418 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14419else 14420 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14421fi 14422rm -f core conftest.err conftest.$ac_objext \ 14423 conftest$ac_exeext conftest.$ac_ext 14424fi 14425 14426 14427 CFLAGS="$xorg_testset_save_CFLAGS" 14428 14429 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14431$as_echo "$supported" >&6; } 14432 if test "$supported" = "yes" ; then 14433 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14434 found="yes" 14435 fi 14436 fi 14437 14438 14439 14440 14441 14442 14443 14444xorg_testset_save_CFLAGS="$CFLAGS" 14445 14446if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14451 $as_echo_n "(cached) " >&6 14452else 14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14454/* end confdefs.h. */ 14455int i; 14456_ACEOF 14457if ac_fn_c_try_compile "$LINENO"; then : 14458 xorg_cv_cc_flag_unknown_warning_option=yes 14459else 14460 xorg_cv_cc_flag_unknown_warning_option=no 14461fi 14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14463fi 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14466 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14467 CFLAGS="$xorg_testset_save_CFLAGS" 14468fi 14469 14470if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14471 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 fi 14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482int i; 14483_ACEOF 14484if ac_fn_c_try_compile "$LINENO"; then : 14485 xorg_cv_cc_flag_unused_command_line_argument=yes 14486else 14487 xorg_cv_cc_flag_unused_command_line_argument=no 14488fi 14489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14490fi 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14493 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495fi 14496 14497found="no" 14498 14499 if test $found = "no" ; then 14500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14502 fi 14503 14504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14506 fi 14507 14508 CFLAGS="$CFLAGS -Werror=return-type" 14509 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14511$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14512 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 14513 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517/* end confdefs.h. */ 14518int i; 14519int 14520main () 14521{ 14522 14523 ; 14524 return 0; 14525} 14526_ACEOF 14527if ac_fn_c_try_link "$LINENO"; then : 14528 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14529else 14530 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14531fi 14532rm -f core conftest.err conftest.$ac_objext \ 14533 conftest$ac_exeext conftest.$ac_ext 14534fi 14535 14536 14537 CFLAGS="$xorg_testset_save_CFLAGS" 14538 14539 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14541$as_echo "$supported" >&6; } 14542 if test "$supported" = "yes" ; then 14543 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14544 found="yes" 14545 fi 14546 fi 14547 14548 if test $found = "no" ; then 14549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14551 fi 14552 14553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14555 fi 14556 14557 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14558 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14560$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14561 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 14562 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14563 $as_echo_n "(cached) " >&6 14564else 14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14566/* end confdefs.h. */ 14567int i; 14568int 14569main () 14570{ 14571 14572 ; 14573 return 0; 14574} 14575_ACEOF 14576if ac_fn_c_try_link "$LINENO"; then : 14577 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14578else 14579 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14580fi 14581rm -f core conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583fi 14584 14585 14586 CFLAGS="$xorg_testset_save_CFLAGS" 14587 14588 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14590$as_echo "$supported" >&6; } 14591 if test "$supported" = "yes" ; then 14592 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14593 found="yes" 14594 fi 14595 fi 14596 14597 14598 14599 14600 14601 14602 14603xorg_testset_save_CFLAGS="$CFLAGS" 14604 14605if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14610 $as_echo_n "(cached) " >&6 14611else 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613/* end confdefs.h. */ 14614int i; 14615_ACEOF 14616if ac_fn_c_try_compile "$LINENO"; then : 14617 xorg_cv_cc_flag_unknown_warning_option=yes 14618else 14619 xorg_cv_cc_flag_unknown_warning_option=no 14620fi 14621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14622fi 14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14625 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14626 CFLAGS="$xorg_testset_save_CFLAGS" 14627fi 14628 14629if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14632 fi 14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14637 $as_echo_n "(cached) " >&6 14638else 14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14640/* end confdefs.h. */ 14641int i; 14642_ACEOF 14643if ac_fn_c_try_compile "$LINENO"; then : 14644 xorg_cv_cc_flag_unused_command_line_argument=yes 14645else 14646 xorg_cv_cc_flag_unused_command_line_argument=no 14647fi 14648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14649fi 14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14652 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14653 CFLAGS="$xorg_testset_save_CFLAGS" 14654fi 14655 14656found="no" 14657 14658 if test $found = "no" ; then 14659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14661 fi 14662 14663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14665 fi 14666 14667 CFLAGS="$CFLAGS -Werror=trigraphs" 14668 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14670$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14671 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 14672 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14673 $as_echo_n "(cached) " >&6 14674else 14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14676/* end confdefs.h. */ 14677int i; 14678int 14679main () 14680{ 14681 14682 ; 14683 return 0; 14684} 14685_ACEOF 14686if ac_fn_c_try_link "$LINENO"; then : 14687 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14688else 14689 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14690fi 14691rm -f core conftest.err conftest.$ac_objext \ 14692 conftest$ac_exeext conftest.$ac_ext 14693fi 14694 14695 14696 CFLAGS="$xorg_testset_save_CFLAGS" 14697 14698 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14700$as_echo "$supported" >&6; } 14701 if test "$supported" = "yes" ; then 14702 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14703 found="yes" 14704 fi 14705 fi 14706 14707 14708 14709 14710 14711 14712 14713xorg_testset_save_CFLAGS="$CFLAGS" 14714 14715if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14720 $as_echo_n "(cached) " >&6 14721else 14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723/* end confdefs.h. */ 14724int i; 14725_ACEOF 14726if ac_fn_c_try_compile "$LINENO"; then : 14727 xorg_cv_cc_flag_unknown_warning_option=yes 14728else 14729 xorg_cv_cc_flag_unknown_warning_option=no 14730fi 14731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14732fi 14733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14735 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14736 CFLAGS="$xorg_testset_save_CFLAGS" 14737fi 14738 14739if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14742 fi 14743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751int i; 14752_ACEOF 14753if ac_fn_c_try_compile "$LINENO"; then : 14754 xorg_cv_cc_flag_unused_command_line_argument=yes 14755else 14756 xorg_cv_cc_flag_unused_command_line_argument=no 14757fi 14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14759fi 14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14762 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14763 CFLAGS="$xorg_testset_save_CFLAGS" 14764fi 14765 14766found="no" 14767 14768 if test $found = "no" ; then 14769 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14771 fi 14772 14773 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14775 fi 14776 14777 CFLAGS="$CFLAGS -Werror=array-bounds" 14778 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14780$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14781 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 14782 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14783 $as_echo_n "(cached) " >&6 14784else 14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786/* end confdefs.h. */ 14787int i; 14788int 14789main () 14790{ 14791 14792 ; 14793 return 0; 14794} 14795_ACEOF 14796if ac_fn_c_try_link "$LINENO"; then : 14797 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14798else 14799 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14800fi 14801rm -f core conftest.err conftest.$ac_objext \ 14802 conftest$ac_exeext conftest.$ac_ext 14803fi 14804 14805 14806 CFLAGS="$xorg_testset_save_CFLAGS" 14807 14808 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14810$as_echo "$supported" >&6; } 14811 if test "$supported" = "yes" ; then 14812 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14813 found="yes" 14814 fi 14815 fi 14816 14817 14818 14819 14820 14821 14822 14823xorg_testset_save_CFLAGS="$CFLAGS" 14824 14825if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14830 $as_echo_n "(cached) " >&6 14831else 14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834int i; 14835_ACEOF 14836if ac_fn_c_try_compile "$LINENO"; then : 14837 xorg_cv_cc_flag_unknown_warning_option=yes 14838else 14839 xorg_cv_cc_flag_unknown_warning_option=no 14840fi 14841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14842fi 14843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14845 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847fi 14848 14849if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14852 fi 14853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14857 $as_echo_n "(cached) " >&6 14858else 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860/* end confdefs.h. */ 14861int i; 14862_ACEOF 14863if ac_fn_c_try_compile "$LINENO"; then : 14864 xorg_cv_cc_flag_unused_command_line_argument=yes 14865else 14866 xorg_cv_cc_flag_unused_command_line_argument=no 14867fi 14868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14869fi 14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14872 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14873 CFLAGS="$xorg_testset_save_CFLAGS" 14874fi 14875 14876found="no" 14877 14878 if test $found = "no" ; then 14879 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14881 fi 14882 14883 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14885 fi 14886 14887 CFLAGS="$CFLAGS -Werror=write-strings" 14888 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 14890$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 14891 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 14892 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14893 $as_echo_n "(cached) " >&6 14894else 14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897int i; 14898int 14899main () 14900{ 14901 14902 ; 14903 return 0; 14904} 14905_ACEOF 14906if ac_fn_c_try_link "$LINENO"; then : 14907 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14908else 14909 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14910fi 14911rm -f core conftest.err conftest.$ac_objext \ 14912 conftest$ac_exeext conftest.$ac_ext 14913fi 14914 14915 14916 CFLAGS="$xorg_testset_save_CFLAGS" 14917 14918 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14920$as_echo "$supported" >&6; } 14921 if test "$supported" = "yes" ; then 14922 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 14923 found="yes" 14924 fi 14925 fi 14926 14927 14928 14929 14930 14931 14932 14933xorg_testset_save_CFLAGS="$CFLAGS" 14934 14935if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14940 $as_echo_n "(cached) " >&6 14941else 14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944int i; 14945_ACEOF 14946if ac_fn_c_try_compile "$LINENO"; then : 14947 xorg_cv_cc_flag_unknown_warning_option=yes 14948else 14949 xorg_cv_cc_flag_unknown_warning_option=no 14950fi 14951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14952fi 14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14955 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14956 CFLAGS="$xorg_testset_save_CFLAGS" 14957fi 14958 14959if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14962 fi 14963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14967 $as_echo_n "(cached) " >&6 14968else 14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14970/* end confdefs.h. */ 14971int i; 14972_ACEOF 14973if ac_fn_c_try_compile "$LINENO"; then : 14974 xorg_cv_cc_flag_unused_command_line_argument=yes 14975else 14976 xorg_cv_cc_flag_unused_command_line_argument=no 14977fi 14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14979fi 14980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14982 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14983 CFLAGS="$xorg_testset_save_CFLAGS" 14984fi 14985 14986found="no" 14987 14988 if test $found = "no" ; then 14989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14991 fi 14992 14993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14995 fi 14996 14997 CFLAGS="$CFLAGS -Werror=address" 14998 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15000$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15001 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 15002 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15003 $as_echo_n "(cached) " >&6 15004else 15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007int i; 15008int 15009main () 15010{ 15011 15012 ; 15013 return 0; 15014} 15015_ACEOF 15016if ac_fn_c_try_link "$LINENO"; then : 15017 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15018else 15019 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15020fi 15021rm -f core conftest.err conftest.$ac_objext \ 15022 conftest$ac_exeext conftest.$ac_ext 15023fi 15024 15025 15026 CFLAGS="$xorg_testset_save_CFLAGS" 15027 15028 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15030$as_echo "$supported" >&6; } 15031 if test "$supported" = "yes" ; then 15032 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15033 found="yes" 15034 fi 15035 fi 15036 15037 15038 15039 15040 15041 15042 15043xorg_testset_save_CFLAGS="$CFLAGS" 15044 15045if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15050 $as_echo_n "(cached) " >&6 15051else 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15053/* end confdefs.h. */ 15054int i; 15055_ACEOF 15056if ac_fn_c_try_compile "$LINENO"; then : 15057 xorg_cv_cc_flag_unknown_warning_option=yes 15058else 15059 xorg_cv_cc_flag_unknown_warning_option=no 15060fi 15061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15062fi 15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15065 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15066 CFLAGS="$xorg_testset_save_CFLAGS" 15067fi 15068 15069if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15072 fi 15073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15077 $as_echo_n "(cached) " >&6 15078else 15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15080/* end confdefs.h. */ 15081int i; 15082_ACEOF 15083if ac_fn_c_try_compile "$LINENO"; then : 15084 xorg_cv_cc_flag_unused_command_line_argument=yes 15085else 15086 xorg_cv_cc_flag_unused_command_line_argument=no 15087fi 15088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15089fi 15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15092 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15093 CFLAGS="$xorg_testset_save_CFLAGS" 15094fi 15095 15096found="no" 15097 15098 if test $found = "no" ; then 15099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15101 fi 15102 15103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15105 fi 15106 15107 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15108 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15110$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15111 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 15112 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15113 $as_echo_n "(cached) " >&6 15114else 15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15116/* end confdefs.h. */ 15117int i; 15118int 15119main () 15120{ 15121 15122 ; 15123 return 0; 15124} 15125_ACEOF 15126if ac_fn_c_try_link "$LINENO"; then : 15127 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15128else 15129 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15130fi 15131rm -f core conftest.err conftest.$ac_objext \ 15132 conftest$ac_exeext conftest.$ac_ext 15133fi 15134 15135 15136 CFLAGS="$xorg_testset_save_CFLAGS" 15137 15138 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15140$as_echo "$supported" >&6; } 15141 if test "$supported" = "yes" ; then 15142 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15143 found="yes" 15144 fi 15145 fi 15146 15147 if test $found = "no" ; then 15148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15150 fi 15151 15152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15154 fi 15155 15156 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15157 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15159$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15160 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 15161 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15162 $as_echo_n "(cached) " >&6 15163else 15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15165/* end confdefs.h. */ 15166int i; 15167int 15168main () 15169{ 15170 15171 ; 15172 return 0; 15173} 15174_ACEOF 15175if ac_fn_c_try_link "$LINENO"; then : 15176 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15177else 15178 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15179fi 15180rm -f core conftest.err conftest.$ac_objext \ 15181 conftest$ac_exeext conftest.$ac_ext 15182fi 15183 15184 15185 CFLAGS="$xorg_testset_save_CFLAGS" 15186 15187 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15189$as_echo "$supported" >&6; } 15190 if test "$supported" = "yes" ; then 15191 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15192 found="yes" 15193 fi 15194 fi 15195 15196 15197 15198 15199 15200 15201 15202xorg_testset_save_CFLAGS="$CFLAGS" 15203 15204if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15209 $as_echo_n "(cached) " >&6 15210else 15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15212/* end confdefs.h. */ 15213int i; 15214_ACEOF 15215if ac_fn_c_try_compile "$LINENO"; then : 15216 xorg_cv_cc_flag_unknown_warning_option=yes 15217else 15218 xorg_cv_cc_flag_unknown_warning_option=no 15219fi 15220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15221fi 15222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15224 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15225 CFLAGS="$xorg_testset_save_CFLAGS" 15226fi 15227 15228if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15231 fi 15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237else 15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15239/* end confdefs.h. */ 15240int i; 15241_ACEOF 15242if ac_fn_c_try_compile "$LINENO"; then : 15243 xorg_cv_cc_flag_unused_command_line_argument=yes 15244else 15245 xorg_cv_cc_flag_unused_command_line_argument=no 15246fi 15247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15248fi 15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15251 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15252 CFLAGS="$xorg_testset_save_CFLAGS" 15253fi 15254 15255found="no" 15256 15257 if test $found = "no" ; then 15258 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15260 fi 15261 15262 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15264 fi 15265 15266 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15267 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15269$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15270 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 15271 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15272 $as_echo_n "(cached) " >&6 15273else 15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15275/* end confdefs.h. */ 15276int i; 15277int 15278main () 15279{ 15280 15281 ; 15282 return 0; 15283} 15284_ACEOF 15285if ac_fn_c_try_link "$LINENO"; then : 15286 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15287else 15288 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15289fi 15290rm -f core conftest.err conftest.$ac_objext \ 15291 conftest$ac_exeext conftest.$ac_ext 15292fi 15293 15294 15295 CFLAGS="$xorg_testset_save_CFLAGS" 15296 15297 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15299$as_echo "$supported" >&6; } 15300 if test "$supported" = "yes" ; then 15301 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15302 found="yes" 15303 fi 15304 fi 15305 15306 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15307else 15308{ $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 15309$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;} 15310 15311 15312 15313 15314 15315xorg_testset_save_CFLAGS="$CFLAGS" 15316 15317if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15322 $as_echo_n "(cached) " >&6 15323else 15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325/* end confdefs.h. */ 15326int i; 15327_ACEOF 15328if ac_fn_c_try_compile "$LINENO"; then : 15329 xorg_cv_cc_flag_unknown_warning_option=yes 15330else 15331 xorg_cv_cc_flag_unknown_warning_option=no 15332fi 15333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15334fi 15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15337 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15338 CFLAGS="$xorg_testset_save_CFLAGS" 15339fi 15340 15341if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15344 fi 15345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15349 $as_echo_n "(cached) " >&6 15350else 15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15352/* end confdefs.h. */ 15353int i; 15354_ACEOF 15355if ac_fn_c_try_compile "$LINENO"; then : 15356 xorg_cv_cc_flag_unused_command_line_argument=yes 15357else 15358 xorg_cv_cc_flag_unused_command_line_argument=no 15359fi 15360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15361fi 15362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15364 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15365 CFLAGS="$xorg_testset_save_CFLAGS" 15366fi 15367 15368found="no" 15369 15370 if test $found = "no" ; then 15371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15373 fi 15374 15375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15377 fi 15378 15379 CFLAGS="$CFLAGS -Wimplicit" 15380 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15382$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15383 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 15384 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389int i; 15390int 15391main () 15392{ 15393 15394 ; 15395 return 0; 15396} 15397_ACEOF 15398if ac_fn_c_try_link "$LINENO"; then : 15399 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15400else 15401 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15402fi 15403rm -f core conftest.err conftest.$ac_objext \ 15404 conftest$ac_exeext conftest.$ac_ext 15405fi 15406 15407 15408 CFLAGS="$xorg_testset_save_CFLAGS" 15409 15410 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15412$as_echo "$supported" >&6; } 15413 if test "$supported" = "yes" ; then 15414 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15415 found="yes" 15416 fi 15417 fi 15418 15419 15420 15421 15422 15423 15424 15425xorg_testset_save_CFLAGS="$CFLAGS" 15426 15427if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15432 $as_echo_n "(cached) " >&6 15433else 15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15435/* end confdefs.h. */ 15436int i; 15437_ACEOF 15438if ac_fn_c_try_compile "$LINENO"; then : 15439 xorg_cv_cc_flag_unknown_warning_option=yes 15440else 15441 xorg_cv_cc_flag_unknown_warning_option=no 15442fi 15443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15444fi 15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15447 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15448 CFLAGS="$xorg_testset_save_CFLAGS" 15449fi 15450 15451if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15454 fi 15455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15459 $as_echo_n "(cached) " >&6 15460else 15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15462/* end confdefs.h. */ 15463int i; 15464_ACEOF 15465if ac_fn_c_try_compile "$LINENO"; then : 15466 xorg_cv_cc_flag_unused_command_line_argument=yes 15467else 15468 xorg_cv_cc_flag_unused_command_line_argument=no 15469fi 15470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15471fi 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15474 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15475 CFLAGS="$xorg_testset_save_CFLAGS" 15476fi 15477 15478found="no" 15479 15480 if test $found = "no" ; then 15481 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15483 fi 15484 15485 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15487 fi 15488 15489 CFLAGS="$CFLAGS -Wnonnull" 15490 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15492$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15493 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 15494 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498/* end confdefs.h. */ 15499int i; 15500int 15501main () 15502{ 15503 15504 ; 15505 return 0; 15506} 15507_ACEOF 15508if ac_fn_c_try_link "$LINENO"; then : 15509 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15510else 15511 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15512fi 15513rm -f core conftest.err conftest.$ac_objext \ 15514 conftest$ac_exeext conftest.$ac_ext 15515fi 15516 15517 15518 CFLAGS="$xorg_testset_save_CFLAGS" 15519 15520 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15522$as_echo "$supported" >&6; } 15523 if test "$supported" = "yes" ; then 15524 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15525 found="yes" 15526 fi 15527 fi 15528 15529 15530 15531 15532 15533 15534 15535xorg_testset_save_CFLAGS="$CFLAGS" 15536 15537if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15542 $as_echo_n "(cached) " >&6 15543else 15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15545/* end confdefs.h. */ 15546int i; 15547_ACEOF 15548if ac_fn_c_try_compile "$LINENO"; then : 15549 xorg_cv_cc_flag_unknown_warning_option=yes 15550else 15551 xorg_cv_cc_flag_unknown_warning_option=no 15552fi 15553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15554fi 15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15557 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15558 CFLAGS="$xorg_testset_save_CFLAGS" 15559fi 15560 15561if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15564 fi 15565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15569 $as_echo_n "(cached) " >&6 15570else 15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15572/* end confdefs.h. */ 15573int i; 15574_ACEOF 15575if ac_fn_c_try_compile "$LINENO"; then : 15576 xorg_cv_cc_flag_unused_command_line_argument=yes 15577else 15578 xorg_cv_cc_flag_unused_command_line_argument=no 15579fi 15580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15581fi 15582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15584 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15585 CFLAGS="$xorg_testset_save_CFLAGS" 15586fi 15587 15588found="no" 15589 15590 if test $found = "no" ; then 15591 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15593 fi 15594 15595 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15597 fi 15598 15599 CFLAGS="$CFLAGS -Winit-self" 15600 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15602$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15603 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 15604 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15605 $as_echo_n "(cached) " >&6 15606else 15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15608/* end confdefs.h. */ 15609int i; 15610int 15611main () 15612{ 15613 15614 ; 15615 return 0; 15616} 15617_ACEOF 15618if ac_fn_c_try_link "$LINENO"; then : 15619 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15620else 15621 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15622fi 15623rm -f core conftest.err conftest.$ac_objext \ 15624 conftest$ac_exeext conftest.$ac_ext 15625fi 15626 15627 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629 15630 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15632$as_echo "$supported" >&6; } 15633 if test "$supported" = "yes" ; then 15634 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15635 found="yes" 15636 fi 15637 fi 15638 15639 15640 15641 15642 15643 15644 15645xorg_testset_save_CFLAGS="$CFLAGS" 15646 15647if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15652 $as_echo_n "(cached) " >&6 15653else 15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15655/* end confdefs.h. */ 15656int i; 15657_ACEOF 15658if ac_fn_c_try_compile "$LINENO"; then : 15659 xorg_cv_cc_flag_unknown_warning_option=yes 15660else 15661 xorg_cv_cc_flag_unknown_warning_option=no 15662fi 15663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15664fi 15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15667 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15668 CFLAGS="$xorg_testset_save_CFLAGS" 15669fi 15670 15671if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15674 fi 15675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15679 $as_echo_n "(cached) " >&6 15680else 15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15682/* end confdefs.h. */ 15683int i; 15684_ACEOF 15685if ac_fn_c_try_compile "$LINENO"; then : 15686 xorg_cv_cc_flag_unused_command_line_argument=yes 15687else 15688 xorg_cv_cc_flag_unused_command_line_argument=no 15689fi 15690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15691fi 15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15694 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15695 CFLAGS="$xorg_testset_save_CFLAGS" 15696fi 15697 15698found="no" 15699 15700 if test $found = "no" ; then 15701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15703 fi 15704 15705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15707 fi 15708 15709 CFLAGS="$CFLAGS -Wmain" 15710 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15712$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15713 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 15714 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15715 $as_echo_n "(cached) " >&6 15716else 15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15718/* end confdefs.h. */ 15719int i; 15720int 15721main () 15722{ 15723 15724 ; 15725 return 0; 15726} 15727_ACEOF 15728if ac_fn_c_try_link "$LINENO"; then : 15729 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15730else 15731 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15732fi 15733rm -f core conftest.err conftest.$ac_objext \ 15734 conftest$ac_exeext conftest.$ac_ext 15735fi 15736 15737 15738 CFLAGS="$xorg_testset_save_CFLAGS" 15739 15740 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15742$as_echo "$supported" >&6; } 15743 if test "$supported" = "yes" ; then 15744 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15745 found="yes" 15746 fi 15747 fi 15748 15749 15750 15751 15752 15753 15754 15755xorg_testset_save_CFLAGS="$CFLAGS" 15756 15757if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15762 $as_echo_n "(cached) " >&6 15763else 15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15765/* end confdefs.h. */ 15766int i; 15767_ACEOF 15768if ac_fn_c_try_compile "$LINENO"; then : 15769 xorg_cv_cc_flag_unknown_warning_option=yes 15770else 15771 xorg_cv_cc_flag_unknown_warning_option=no 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15774fi 15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15777 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15778 CFLAGS="$xorg_testset_save_CFLAGS" 15779fi 15780 15781if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15784 fi 15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15792/* end confdefs.h. */ 15793int i; 15794_ACEOF 15795if ac_fn_c_try_compile "$LINENO"; then : 15796 xorg_cv_cc_flag_unused_command_line_argument=yes 15797else 15798 xorg_cv_cc_flag_unused_command_line_argument=no 15799fi 15800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15801fi 15802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15804 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15805 CFLAGS="$xorg_testset_save_CFLAGS" 15806fi 15807 15808found="no" 15809 15810 if test $found = "no" ; then 15811 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 fi 15814 15815 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15817 fi 15818 15819 CFLAGS="$CFLAGS -Wmissing-braces" 15820 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15822$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15823 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 15824 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15825 $as_echo_n "(cached) " >&6 15826else 15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829int i; 15830int 15831main () 15832{ 15833 15834 ; 15835 return 0; 15836} 15837_ACEOF 15838if ac_fn_c_try_link "$LINENO"; then : 15839 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15840else 15841 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15842fi 15843rm -f core conftest.err conftest.$ac_objext \ 15844 conftest$ac_exeext conftest.$ac_ext 15845fi 15846 15847 15848 CFLAGS="$xorg_testset_save_CFLAGS" 15849 15850 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15852$as_echo "$supported" >&6; } 15853 if test "$supported" = "yes" ; then 15854 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 15855 found="yes" 15856 fi 15857 fi 15858 15859 15860 15861 15862 15863 15864 15865xorg_testset_save_CFLAGS="$CFLAGS" 15866 15867if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15872 $as_echo_n "(cached) " >&6 15873else 15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15875/* end confdefs.h. */ 15876int i; 15877_ACEOF 15878if ac_fn_c_try_compile "$LINENO"; then : 15879 xorg_cv_cc_flag_unknown_warning_option=yes 15880else 15881 xorg_cv_cc_flag_unknown_warning_option=no 15882fi 15883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15884fi 15885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15887 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15888 CFLAGS="$xorg_testset_save_CFLAGS" 15889fi 15890 15891if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15892 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15894 fi 15895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900else 15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15902/* end confdefs.h. */ 15903int i; 15904_ACEOF 15905if ac_fn_c_try_compile "$LINENO"; then : 15906 xorg_cv_cc_flag_unused_command_line_argument=yes 15907else 15908 xorg_cv_cc_flag_unused_command_line_argument=no 15909fi 15910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15911fi 15912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15914 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15915 CFLAGS="$xorg_testset_save_CFLAGS" 15916fi 15917 15918found="no" 15919 15920 if test $found = "no" ; then 15921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15923 fi 15924 15925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15927 fi 15928 15929 CFLAGS="$CFLAGS -Wsequence-point" 15930 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 15932$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 15933 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 15934 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15935 $as_echo_n "(cached) " >&6 15936else 15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15938/* end confdefs.h. */ 15939int i; 15940int 15941main () 15942{ 15943 15944 ; 15945 return 0; 15946} 15947_ACEOF 15948if ac_fn_c_try_link "$LINENO"; then : 15949 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15950else 15951 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15952fi 15953rm -f core conftest.err conftest.$ac_objext \ 15954 conftest$ac_exeext conftest.$ac_ext 15955fi 15956 15957 15958 CFLAGS="$xorg_testset_save_CFLAGS" 15959 15960 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15962$as_echo "$supported" >&6; } 15963 if test "$supported" = "yes" ; then 15964 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 15965 found="yes" 15966 fi 15967 fi 15968 15969 15970 15971 15972 15973 15974 15975xorg_testset_save_CFLAGS="$CFLAGS" 15976 15977if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15982 $as_echo_n "(cached) " >&6 15983else 15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15985/* end confdefs.h. */ 15986int i; 15987_ACEOF 15988if ac_fn_c_try_compile "$LINENO"; then : 15989 xorg_cv_cc_flag_unknown_warning_option=yes 15990else 15991 xorg_cv_cc_flag_unknown_warning_option=no 15992fi 15993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15994fi 15995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15997 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15998 CFLAGS="$xorg_testset_save_CFLAGS" 15999fi 16000 16001if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16004 fi 16005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16009 $as_echo_n "(cached) " >&6 16010else 16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16012/* end confdefs.h. */ 16013int i; 16014_ACEOF 16015if ac_fn_c_try_compile "$LINENO"; then : 16016 xorg_cv_cc_flag_unused_command_line_argument=yes 16017else 16018 xorg_cv_cc_flag_unused_command_line_argument=no 16019fi 16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16021fi 16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16024 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16025 CFLAGS="$xorg_testset_save_CFLAGS" 16026fi 16027 16028found="no" 16029 16030 if test $found = "no" ; then 16031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16033 fi 16034 16035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16037 fi 16038 16039 CFLAGS="$CFLAGS -Wreturn-type" 16040 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16042$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16043 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 16044 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16045 $as_echo_n "(cached) " >&6 16046else 16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16048/* end confdefs.h. */ 16049int i; 16050int 16051main () 16052{ 16053 16054 ; 16055 return 0; 16056} 16057_ACEOF 16058if ac_fn_c_try_link "$LINENO"; then : 16059 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16060else 16061 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16062fi 16063rm -f core conftest.err conftest.$ac_objext \ 16064 conftest$ac_exeext conftest.$ac_ext 16065fi 16066 16067 16068 CFLAGS="$xorg_testset_save_CFLAGS" 16069 16070 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16072$as_echo "$supported" >&6; } 16073 if test "$supported" = "yes" ; then 16074 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16075 found="yes" 16076 fi 16077 fi 16078 16079 16080 16081 16082 16083 16084 16085xorg_testset_save_CFLAGS="$CFLAGS" 16086 16087if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16092 $as_echo_n "(cached) " >&6 16093else 16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16095/* end confdefs.h. */ 16096int i; 16097_ACEOF 16098if ac_fn_c_try_compile "$LINENO"; then : 16099 xorg_cv_cc_flag_unknown_warning_option=yes 16100else 16101 xorg_cv_cc_flag_unknown_warning_option=no 16102fi 16103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16104fi 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16107 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16108 CFLAGS="$xorg_testset_save_CFLAGS" 16109fi 16110 16111if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16114 fi 16115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16119 $as_echo_n "(cached) " >&6 16120else 16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123int i; 16124_ACEOF 16125if ac_fn_c_try_compile "$LINENO"; then : 16126 xorg_cv_cc_flag_unused_command_line_argument=yes 16127else 16128 xorg_cv_cc_flag_unused_command_line_argument=no 16129fi 16130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16131fi 16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16134 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16135 CFLAGS="$xorg_testset_save_CFLAGS" 16136fi 16137 16138found="no" 16139 16140 if test $found = "no" ; then 16141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 fi 16144 16145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16147 fi 16148 16149 CFLAGS="$CFLAGS -Wtrigraphs" 16150 16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16152$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16153 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 16154 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16155 $as_echo_n "(cached) " >&6 16156else 16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16158/* end confdefs.h. */ 16159int i; 16160int 16161main () 16162{ 16163 16164 ; 16165 return 0; 16166} 16167_ACEOF 16168if ac_fn_c_try_link "$LINENO"; then : 16169 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16170else 16171 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16172fi 16173rm -f core conftest.err conftest.$ac_objext \ 16174 conftest$ac_exeext conftest.$ac_ext 16175fi 16176 16177 16178 CFLAGS="$xorg_testset_save_CFLAGS" 16179 16180 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16182$as_echo "$supported" >&6; } 16183 if test "$supported" = "yes" ; then 16184 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16185 found="yes" 16186 fi 16187 fi 16188 16189 16190 16191 16192 16193 16194 16195xorg_testset_save_CFLAGS="$CFLAGS" 16196 16197if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16202 $as_echo_n "(cached) " >&6 16203else 16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16205/* end confdefs.h. */ 16206int i; 16207_ACEOF 16208if ac_fn_c_try_compile "$LINENO"; then : 16209 xorg_cv_cc_flag_unknown_warning_option=yes 16210else 16211 xorg_cv_cc_flag_unknown_warning_option=no 16212fi 16213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16214fi 16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16217 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16218 CFLAGS="$xorg_testset_save_CFLAGS" 16219fi 16220 16221if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16224 fi 16225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233int i; 16234_ACEOF 16235if ac_fn_c_try_compile "$LINENO"; then : 16236 xorg_cv_cc_flag_unused_command_line_argument=yes 16237else 16238 xorg_cv_cc_flag_unused_command_line_argument=no 16239fi 16240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16241fi 16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16244 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16245 CFLAGS="$xorg_testset_save_CFLAGS" 16246fi 16247 16248found="no" 16249 16250 if test $found = "no" ; then 16251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16253 fi 16254 16255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16257 fi 16258 16259 CFLAGS="$CFLAGS -Warray-bounds" 16260 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16262$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16263 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 16264 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269int i; 16270int 16271main () 16272{ 16273 16274 ; 16275 return 0; 16276} 16277_ACEOF 16278if ac_fn_c_try_link "$LINENO"; then : 16279 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16280else 16281 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16282fi 16283rm -f core conftest.err conftest.$ac_objext \ 16284 conftest$ac_exeext conftest.$ac_ext 16285fi 16286 16287 16288 CFLAGS="$xorg_testset_save_CFLAGS" 16289 16290 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16292$as_echo "$supported" >&6; } 16293 if test "$supported" = "yes" ; then 16294 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16295 found="yes" 16296 fi 16297 fi 16298 16299 16300 16301 16302 16303 16304 16305xorg_testset_save_CFLAGS="$CFLAGS" 16306 16307if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16312 $as_echo_n "(cached) " >&6 16313else 16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16315/* end confdefs.h. */ 16316int i; 16317_ACEOF 16318if ac_fn_c_try_compile "$LINENO"; then : 16319 xorg_cv_cc_flag_unknown_warning_option=yes 16320else 16321 xorg_cv_cc_flag_unknown_warning_option=no 16322fi 16323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16324fi 16325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16327 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16328 CFLAGS="$xorg_testset_save_CFLAGS" 16329fi 16330 16331if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16334 fi 16335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16339 $as_echo_n "(cached) " >&6 16340else 16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16342/* end confdefs.h. */ 16343int i; 16344_ACEOF 16345if ac_fn_c_try_compile "$LINENO"; then : 16346 xorg_cv_cc_flag_unused_command_line_argument=yes 16347else 16348 xorg_cv_cc_flag_unused_command_line_argument=no 16349fi 16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16351fi 16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16354 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16355 CFLAGS="$xorg_testset_save_CFLAGS" 16356fi 16357 16358found="no" 16359 16360 if test $found = "no" ; then 16361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16363 fi 16364 16365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16367 fi 16368 16369 CFLAGS="$CFLAGS -Wwrite-strings" 16370 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16372$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16373 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 16374 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16375 $as_echo_n "(cached) " >&6 16376else 16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16378/* end confdefs.h. */ 16379int i; 16380int 16381main () 16382{ 16383 16384 ; 16385 return 0; 16386} 16387_ACEOF 16388if ac_fn_c_try_link "$LINENO"; then : 16389 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16390else 16391 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext \ 16394 conftest$ac_exeext conftest.$ac_ext 16395fi 16396 16397 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399 16400 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16402$as_echo "$supported" >&6; } 16403 if test "$supported" = "yes" ; then 16404 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16405 found="yes" 16406 fi 16407 fi 16408 16409 16410 16411 16412 16413 16414 16415xorg_testset_save_CFLAGS="$CFLAGS" 16416 16417if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16422 $as_echo_n "(cached) " >&6 16423else 16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16425/* end confdefs.h. */ 16426int i; 16427_ACEOF 16428if ac_fn_c_try_compile "$LINENO"; then : 16429 xorg_cv_cc_flag_unknown_warning_option=yes 16430else 16431 xorg_cv_cc_flag_unknown_warning_option=no 16432fi 16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16434fi 16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16437 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16438 CFLAGS="$xorg_testset_save_CFLAGS" 16439fi 16440 16441if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16444 fi 16445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16449 $as_echo_n "(cached) " >&6 16450else 16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16452/* end confdefs.h. */ 16453int i; 16454_ACEOF 16455if ac_fn_c_try_compile "$LINENO"; then : 16456 xorg_cv_cc_flag_unused_command_line_argument=yes 16457else 16458 xorg_cv_cc_flag_unused_command_line_argument=no 16459fi 16460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16461fi 16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16464 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16465 CFLAGS="$xorg_testset_save_CFLAGS" 16466fi 16467 16468found="no" 16469 16470 if test $found = "no" ; then 16471 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16473 fi 16474 16475 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16477 fi 16478 16479 CFLAGS="$CFLAGS -Waddress" 16480 16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16482$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16483 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 16484 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16485 $as_echo_n "(cached) " >&6 16486else 16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16488/* end confdefs.h. */ 16489int i; 16490int 16491main () 16492{ 16493 16494 ; 16495 return 0; 16496} 16497_ACEOF 16498if ac_fn_c_try_link "$LINENO"; then : 16499 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16500else 16501 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16502fi 16503rm -f core conftest.err conftest.$ac_objext \ 16504 conftest$ac_exeext conftest.$ac_ext 16505fi 16506 16507 16508 CFLAGS="$xorg_testset_save_CFLAGS" 16509 16510 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16512$as_echo "$supported" >&6; } 16513 if test "$supported" = "yes" ; then 16514 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16515 found="yes" 16516 fi 16517 fi 16518 16519 16520 16521 16522 16523 16524 16525xorg_testset_save_CFLAGS="$CFLAGS" 16526 16527if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16532 $as_echo_n "(cached) " >&6 16533else 16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16535/* end confdefs.h. */ 16536int i; 16537_ACEOF 16538if ac_fn_c_try_compile "$LINENO"; then : 16539 xorg_cv_cc_flag_unknown_warning_option=yes 16540else 16541 xorg_cv_cc_flag_unknown_warning_option=no 16542fi 16543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16544fi 16545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16547 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16548 CFLAGS="$xorg_testset_save_CFLAGS" 16549fi 16550 16551if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16554 fi 16555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16559 $as_echo_n "(cached) " >&6 16560else 16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16562/* end confdefs.h. */ 16563int i; 16564_ACEOF 16565if ac_fn_c_try_compile "$LINENO"; then : 16566 xorg_cv_cc_flag_unused_command_line_argument=yes 16567else 16568 xorg_cv_cc_flag_unused_command_line_argument=no 16569fi 16570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16571fi 16572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16574 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16575 CFLAGS="$xorg_testset_save_CFLAGS" 16576fi 16577 16578found="no" 16579 16580 if test $found = "no" ; then 16581 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16583 fi 16584 16585 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16587 fi 16588 16589 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16590 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16592$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16593 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 16594 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16595 $as_echo_n "(cached) " >&6 16596else 16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16598/* end confdefs.h. */ 16599int i; 16600int 16601main () 16602{ 16603 16604 ; 16605 return 0; 16606} 16607_ACEOF 16608if ac_fn_c_try_link "$LINENO"; then : 16609 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16610else 16611 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16612fi 16613rm -f core conftest.err conftest.$ac_objext \ 16614 conftest$ac_exeext conftest.$ac_ext 16615fi 16616 16617 16618 CFLAGS="$xorg_testset_save_CFLAGS" 16619 16620 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16622$as_echo "$supported" >&6; } 16623 if test "$supported" = "yes" ; then 16624 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16625 found="yes" 16626 fi 16627 fi 16628 16629 16630 16631 16632 16633 16634 16635xorg_testset_save_CFLAGS="$CFLAGS" 16636 16637if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16642 $as_echo_n "(cached) " >&6 16643else 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646int i; 16647_ACEOF 16648if ac_fn_c_try_compile "$LINENO"; then : 16649 xorg_cv_cc_flag_unknown_warning_option=yes 16650else 16651 xorg_cv_cc_flag_unknown_warning_option=no 16652fi 16653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16654fi 16655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16657 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16658 CFLAGS="$xorg_testset_save_CFLAGS" 16659fi 16660 16661if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16664 fi 16665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16669 $as_echo_n "(cached) " >&6 16670else 16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16672/* end confdefs.h. */ 16673int i; 16674_ACEOF 16675if ac_fn_c_try_compile "$LINENO"; then : 16676 xorg_cv_cc_flag_unused_command_line_argument=yes 16677else 16678 xorg_cv_cc_flag_unused_command_line_argument=no 16679fi 16680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16681fi 16682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16684 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16685 CFLAGS="$xorg_testset_save_CFLAGS" 16686fi 16687 16688found="no" 16689 16690 if test $found = "no" ; then 16691 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16693 fi 16694 16695 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16697 fi 16698 16699 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16700 16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16702$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16703 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 16704 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16705 $as_echo_n "(cached) " >&6 16706else 16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16708/* end confdefs.h. */ 16709int i; 16710int 16711main () 16712{ 16713 16714 ; 16715 return 0; 16716} 16717_ACEOF 16718if ac_fn_c_try_link "$LINENO"; then : 16719 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16720else 16721 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16722fi 16723rm -f core conftest.err conftest.$ac_objext \ 16724 conftest$ac_exeext conftest.$ac_ext 16725fi 16726 16727 16728 CFLAGS="$xorg_testset_save_CFLAGS" 16729 16730 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16732$as_echo "$supported" >&6; } 16733 if test "$supported" = "yes" ; then 16734 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16735 found="yes" 16736 fi 16737 fi 16738 16739 16740fi 16741 16742 16743 16744 16745 16746 16747CWARNFLAGS="$BASE_CFLAGS" 16748if test "x$GCC" = xyes ; then 16749 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16750fi 16751 16752 16753 16754 16755 16756 16757# Check whether --enable-strict-compilation was given. 16758if test "${enable_strict_compilation+set}" = set; then : 16759 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 16760else 16761 STRICT_COMPILE=no 16762fi 16763 16764 16765STRICT_CFLAGS="" 16766 16767 16768 16769 16770 16771xorg_testset_save_CFLAGS="$CFLAGS" 16772 16773if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16778 $as_echo_n "(cached) " >&6 16779else 16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16781/* end confdefs.h. */ 16782int i; 16783_ACEOF 16784if ac_fn_c_try_compile "$LINENO"; then : 16785 xorg_cv_cc_flag_unknown_warning_option=yes 16786else 16787 xorg_cv_cc_flag_unknown_warning_option=no 16788fi 16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16790fi 16791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16793 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16794 CFLAGS="$xorg_testset_save_CFLAGS" 16795fi 16796 16797if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16800 fi 16801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16805 $as_echo_n "(cached) " >&6 16806else 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808/* end confdefs.h. */ 16809int i; 16810_ACEOF 16811if ac_fn_c_try_compile "$LINENO"; then : 16812 xorg_cv_cc_flag_unused_command_line_argument=yes 16813else 16814 xorg_cv_cc_flag_unused_command_line_argument=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16817fi 16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16820 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822fi 16823 16824found="no" 16825 16826 if test $found = "no" ; then 16827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16829 fi 16830 16831 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16833 fi 16834 16835 CFLAGS="$CFLAGS -pedantic" 16836 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 16838$as_echo_n "checking if $CC supports -pedantic... " >&6; } 16839 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 16840 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16841 $as_echo_n "(cached) " >&6 16842else 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845int i; 16846int 16847main () 16848{ 16849 16850 ; 16851 return 0; 16852} 16853_ACEOF 16854if ac_fn_c_try_link "$LINENO"; then : 16855 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16856else 16857 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16858fi 16859rm -f core conftest.err conftest.$ac_objext \ 16860 conftest$ac_exeext conftest.$ac_ext 16861fi 16862 16863 16864 CFLAGS="$xorg_testset_save_CFLAGS" 16865 16866 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16868$as_echo "$supported" >&6; } 16869 if test "$supported" = "yes" ; then 16870 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 16871 found="yes" 16872 fi 16873 fi 16874 16875 16876 16877 16878 16879 16880 16881xorg_testset_save_CFLAGS="$CFLAGS" 16882 16883if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16888 $as_echo_n "(cached) " >&6 16889else 16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16891/* end confdefs.h. */ 16892int i; 16893_ACEOF 16894if ac_fn_c_try_compile "$LINENO"; then : 16895 xorg_cv_cc_flag_unknown_warning_option=yes 16896else 16897 xorg_cv_cc_flag_unknown_warning_option=no 16898fi 16899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16900fi 16901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16903 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16904 CFLAGS="$xorg_testset_save_CFLAGS" 16905fi 16906 16907if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16910 fi 16911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16915 $as_echo_n "(cached) " >&6 16916else 16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16918/* end confdefs.h. */ 16919int i; 16920_ACEOF 16921if ac_fn_c_try_compile "$LINENO"; then : 16922 xorg_cv_cc_flag_unused_command_line_argument=yes 16923else 16924 xorg_cv_cc_flag_unused_command_line_argument=no 16925fi 16926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16927fi 16928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16930 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16931 CFLAGS="$xorg_testset_save_CFLAGS" 16932fi 16933 16934found="no" 16935 16936 if test $found = "no" ; then 16937 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16939 fi 16940 16941 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16943 fi 16944 16945 CFLAGS="$CFLAGS -Werror" 16946 16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 16948$as_echo_n "checking if $CC supports -Werror... " >&6; } 16949 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 16950 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16951 $as_echo_n "(cached) " >&6 16952else 16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16954/* end confdefs.h. */ 16955int i; 16956int 16957main () 16958{ 16959 16960 ; 16961 return 0; 16962} 16963_ACEOF 16964if ac_fn_c_try_link "$LINENO"; then : 16965 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16966else 16967 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16968fi 16969rm -f core conftest.err conftest.$ac_objext \ 16970 conftest$ac_exeext conftest.$ac_ext 16971fi 16972 16973 16974 CFLAGS="$xorg_testset_save_CFLAGS" 16975 16976 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16978$as_echo "$supported" >&6; } 16979 if test "$supported" = "yes" ; then 16980 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 16981 found="yes" 16982 fi 16983 fi 16984 16985 if test $found = "no" ; then 16986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16988 fi 16989 16990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16992 fi 16993 16994 CFLAGS="$CFLAGS -errwarn" 16995 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 16997$as_echo_n "checking if $CC supports -errwarn... " >&6; } 16998 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 16999 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17000 $as_echo_n "(cached) " >&6 17001else 17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17003/* end confdefs.h. */ 17004int i; 17005int 17006main () 17007{ 17008 17009 ; 17010 return 0; 17011} 17012_ACEOF 17013if ac_fn_c_try_link "$LINENO"; then : 17014 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17015else 17016 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17017fi 17018rm -f core conftest.err conftest.$ac_objext \ 17019 conftest$ac_exeext conftest.$ac_ext 17020fi 17021 17022 17023 CFLAGS="$xorg_testset_save_CFLAGS" 17024 17025 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17027$as_echo "$supported" >&6; } 17028 if test "$supported" = "yes" ; then 17029 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17030 found="yes" 17031 fi 17032 fi 17033 17034 17035 17036# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17037# activate it with -Werror, so we add it here explicitly. 17038 17039 17040 17041 17042 17043xorg_testset_save_CFLAGS="$CFLAGS" 17044 17045if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17050 $as_echo_n "(cached) " >&6 17051else 17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17053/* end confdefs.h. */ 17054int i; 17055_ACEOF 17056if ac_fn_c_try_compile "$LINENO"; then : 17057 xorg_cv_cc_flag_unknown_warning_option=yes 17058else 17059 xorg_cv_cc_flag_unknown_warning_option=no 17060fi 17061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17062fi 17063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17065 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17066 CFLAGS="$xorg_testset_save_CFLAGS" 17067fi 17068 17069if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17072 fi 17073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17077 $as_echo_n "(cached) " >&6 17078else 17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17080/* end confdefs.h. */ 17081int i; 17082_ACEOF 17083if ac_fn_c_try_compile "$LINENO"; then : 17084 xorg_cv_cc_flag_unused_command_line_argument=yes 17085else 17086 xorg_cv_cc_flag_unused_command_line_argument=no 17087fi 17088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17089fi 17090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17092 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17093 CFLAGS="$xorg_testset_save_CFLAGS" 17094fi 17095 17096found="no" 17097 17098 if test $found = "no" ; then 17099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17101 fi 17102 17103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17105 fi 17106 17107 CFLAGS="$CFLAGS -Werror=attributes" 17108 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17110$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17111 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 17112 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17113 $as_echo_n "(cached) " >&6 17114else 17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17116/* end confdefs.h. */ 17117int i; 17118int 17119main () 17120{ 17121 17122 ; 17123 return 0; 17124} 17125_ACEOF 17126if ac_fn_c_try_link "$LINENO"; then : 17127 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17128else 17129 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17130fi 17131rm -f core conftest.err conftest.$ac_objext \ 17132 conftest$ac_exeext conftest.$ac_ext 17133fi 17134 17135 17136 CFLAGS="$xorg_testset_save_CFLAGS" 17137 17138 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17140$as_echo "$supported" >&6; } 17141 if test "$supported" = "yes" ; then 17142 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17143 found="yes" 17144 fi 17145 fi 17146 17147 17148 17149if test "x$STRICT_COMPILE" = "xyes"; then 17150 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17151 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17152fi 17153 17154 17155 17156 17157 17158 17159cat >>confdefs.h <<_ACEOF 17160#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17161_ACEOF 17162 17163 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17164 if test "x$PVM" = "x"; then 17165 PVM="0" 17166 fi 17167 17168cat >>confdefs.h <<_ACEOF 17169#define PACKAGE_VERSION_MINOR $PVM 17170_ACEOF 17171 17172 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17173 if test "x$PVP" = "x"; then 17174 PVP="0" 17175 fi 17176 17177cat >>confdefs.h <<_ACEOF 17178#define PACKAGE_VERSION_PATCHLEVEL $PVP 17179_ACEOF 17180 17181 17182 17183CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17184mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17185|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17186echo 'git directory not found: installing possibly empty changelog.' >&2)" 17187 17188 17189 17190 17191macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17192INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17193mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17194|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17195echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17196 17197 17198 17199 17200 17201 17202if test x$APP_MAN_SUFFIX = x ; then 17203 APP_MAN_SUFFIX=1 17204fi 17205if test x$APP_MAN_DIR = x ; then 17206 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17207fi 17208 17209if test x$LIB_MAN_SUFFIX = x ; then 17210 LIB_MAN_SUFFIX=3 17211fi 17212if test x$LIB_MAN_DIR = x ; then 17213 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17214fi 17215 17216if test x$FILE_MAN_SUFFIX = x ; then 17217 case $host_os in 17218 solaris*) FILE_MAN_SUFFIX=4 ;; 17219 *) FILE_MAN_SUFFIX=5 ;; 17220 esac 17221fi 17222if test x$FILE_MAN_DIR = x ; then 17223 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17224fi 17225 17226if test x$MISC_MAN_SUFFIX = x ; then 17227 case $host_os in 17228 solaris*) MISC_MAN_SUFFIX=5 ;; 17229 *) MISC_MAN_SUFFIX=7 ;; 17230 esac 17231fi 17232if test x$MISC_MAN_DIR = x ; then 17233 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17234fi 17235 17236if test x$DRIVER_MAN_SUFFIX = x ; then 17237 case $host_os in 17238 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17239 *) DRIVER_MAN_SUFFIX=4 ;; 17240 esac 17241fi 17242if test x$DRIVER_MAN_DIR = x ; then 17243 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17244fi 17245 17246if test x$ADMIN_MAN_SUFFIX = x ; then 17247 case $host_os in 17248 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17249 *) ADMIN_MAN_SUFFIX=8 ;; 17250 esac 17251fi 17252if test x$ADMIN_MAN_DIR = x ; then 17253 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17254fi 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270XORG_MAN_PAGE="X Version 11" 17271 17272MAN_SUBSTS="\ 17273 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17274 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17275 -e 's|__xservername__|Xorg|g' \ 17276 -e 's|__xconfigfile__|xorg.conf|g' \ 17277 -e 's|__projectroot__|\$(prefix)|g' \ 17278 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17279 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17280 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17281 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17282 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17283 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17284 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17285 17286 17287 17288# Check whether --enable-silent-rules was given. 17289if test "${enable_silent_rules+set}" = set; then : 17290 enableval=$enable_silent_rules; 17291fi 17292 17293case $enable_silent_rules in 17294yes) AM_DEFAULT_VERBOSITY=0;; 17295no) AM_DEFAULT_VERBOSITY=1;; 17296*) AM_DEFAULT_VERBOSITY=0;; 17297esac 17298AM_BACKSLASH='\' 17299 17300 17301 17302 17303# Check whether --enable-docs was given. 17304if test "${enable_docs+set}" = set; then : 17305 enableval=$enable_docs; build_docs=$enableval 17306else 17307 build_docs=yes 17308fi 17309 17310 17311 if test x$build_docs = xyes; then 17312 ENABLE_DOCS_TRUE= 17313 ENABLE_DOCS_FALSE='#' 17314else 17315 ENABLE_DOCS_TRUE='#' 17316 ENABLE_DOCS_FALSE= 17317fi 17318 17319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17320$as_echo_n "checking whether to build documentation... " >&6; } 17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17322$as_echo "$build_docs" >&6; } 17323 17324 17325 17326 17327 17328# Check whether --with-xmlto was given. 17329if test "${with_xmlto+set}" = set; then : 17330 withval=$with_xmlto; use_xmlto=$withval 17331else 17332 use_xmlto=auto 17333fi 17334 17335 17336 17337if test "x$use_xmlto" = x"auto"; then 17338 # Extract the first word of "xmlto", so it can be a program name with args. 17339set dummy xmlto; ac_word=$2 17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17341$as_echo_n "checking for $ac_word... " >&6; } 17342if ${ac_cv_path_XMLTO+:} false; then : 17343 $as_echo_n "(cached) " >&6 17344else 17345 case $XMLTO in 17346 [\\/]* | ?:[\\/]*) 17347 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17348 ;; 17349 *) 17350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17351for as_dir in $PATH 17352do 17353 IFS=$as_save_IFS 17354 test -z "$as_dir" && as_dir=. 17355 for ac_exec_ext in '' $ac_executable_extensions; do 17356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17357 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17359 break 2 17360 fi 17361done 17362 done 17363IFS=$as_save_IFS 17364 17365 ;; 17366esac 17367fi 17368XMLTO=$ac_cv_path_XMLTO 17369if test -n "$XMLTO"; then 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17371$as_echo "$XMLTO" >&6; } 17372else 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17374$as_echo "no" >&6; } 17375fi 17376 17377 17378 if test "x$XMLTO" = "x"; then 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17380$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17381 have_xmlto=no 17382 else 17383 have_xmlto=yes 17384 fi 17385elif test "x$use_xmlto" = x"yes" ; then 17386 # Extract the first word of "xmlto", so it can be a program name with args. 17387set dummy xmlto; ac_word=$2 17388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17389$as_echo_n "checking for $ac_word... " >&6; } 17390if ${ac_cv_path_XMLTO+:} false; then : 17391 $as_echo_n "(cached) " >&6 17392else 17393 case $XMLTO in 17394 [\\/]* | ?:[\\/]*) 17395 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17396 ;; 17397 *) 17398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17399for as_dir in $PATH 17400do 17401 IFS=$as_save_IFS 17402 test -z "$as_dir" && as_dir=. 17403 for ac_exec_ext in '' $ac_executable_extensions; do 17404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17405 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17407 break 2 17408 fi 17409done 17410 done 17411IFS=$as_save_IFS 17412 17413 ;; 17414esac 17415fi 17416XMLTO=$ac_cv_path_XMLTO 17417if test -n "$XMLTO"; then 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17419$as_echo "$XMLTO" >&6; } 17420else 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17422$as_echo "no" >&6; } 17423fi 17424 17425 17426 if test "x$XMLTO" = "x"; then 17427 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17428 fi 17429 have_xmlto=yes 17430elif test "x$use_xmlto" = x"no" ; then 17431 if test "x$XMLTO" != "x"; then 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17433$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17434 fi 17435 have_xmlto=no 17436else 17437 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17438fi 17439 17440# Test for a minimum version of xmlto, if provided. 17441if test "$have_xmlto" = yes; then 17442 # scrape the xmlto version 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17444$as_echo_n "checking the xmlto version... " >&6; } 17445 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17447$as_echo "$xmlto_version" >&6; } 17448 as_arg_v1=$xmlto_version 17449as_arg_v2=0.0.22 17450awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17451case $? in #( 17452 1) : 17453 if test "x$use_xmlto" = xauto; then 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17455$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17456 have_xmlto=no 17457 else 17458 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17459 fi ;; #( 17460 0) : 17461 ;; #( 17462 2) : 17463 ;; #( 17464 *) : 17465 ;; 17466esac 17467fi 17468 17469# Test for the ability of xmlto to generate a text target 17470have_xmlto_text=no 17471cat > conftest.xml << "EOF" 17472EOF 17473if test "$have_xmlto" = yes; then : 17474 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17475 have_xmlto_text=yes 17476else 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17478$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17479fi 17480fi 17481rm -f conftest.xml 17482 if test $have_xmlto_text = yes; then 17483 HAVE_XMLTO_TEXT_TRUE= 17484 HAVE_XMLTO_TEXT_FALSE='#' 17485else 17486 HAVE_XMLTO_TEXT_TRUE='#' 17487 HAVE_XMLTO_TEXT_FALSE= 17488fi 17489 17490 if test "$have_xmlto" = yes; then 17491 HAVE_XMLTO_TRUE= 17492 HAVE_XMLTO_FALSE='#' 17493else 17494 HAVE_XMLTO_TRUE='#' 17495 HAVE_XMLTO_FALSE= 17496fi 17497 17498 17499 17500 17501 17502 17503# Check whether --with-fop was given. 17504if test "${with_fop+set}" = set; then : 17505 withval=$with_fop; use_fop=$withval 17506else 17507 use_fop=auto 17508fi 17509 17510 17511 17512if test "x$use_fop" = x"auto"; then 17513 # Extract the first word of "fop", so it can be a program name with args. 17514set dummy fop; ac_word=$2 17515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17516$as_echo_n "checking for $ac_word... " >&6; } 17517if ${ac_cv_path_FOP+:} false; then : 17518 $as_echo_n "(cached) " >&6 17519else 17520 case $FOP in 17521 [\\/]* | ?:[\\/]*) 17522 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17523 ;; 17524 *) 17525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17526for as_dir in $PATH 17527do 17528 IFS=$as_save_IFS 17529 test -z "$as_dir" && as_dir=. 17530 for ac_exec_ext in '' $ac_executable_extensions; do 17531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17532 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17534 break 2 17535 fi 17536done 17537 done 17538IFS=$as_save_IFS 17539 17540 ;; 17541esac 17542fi 17543FOP=$ac_cv_path_FOP 17544if test -n "$FOP"; then 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17546$as_echo "$FOP" >&6; } 17547else 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17549$as_echo "no" >&6; } 17550fi 17551 17552 17553 if test "x$FOP" = "x"; then 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17555$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17556 have_fop=no 17557 else 17558 have_fop=yes 17559 fi 17560elif test "x$use_fop" = x"yes" ; then 17561 # Extract the first word of "fop", so it can be a program name with args. 17562set dummy fop; ac_word=$2 17563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17564$as_echo_n "checking for $ac_word... " >&6; } 17565if ${ac_cv_path_FOP+:} false; then : 17566 $as_echo_n "(cached) " >&6 17567else 17568 case $FOP in 17569 [\\/]* | ?:[\\/]*) 17570 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17571 ;; 17572 *) 17573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17574for as_dir in $PATH 17575do 17576 IFS=$as_save_IFS 17577 test -z "$as_dir" && as_dir=. 17578 for ac_exec_ext in '' $ac_executable_extensions; do 17579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17580 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17582 break 2 17583 fi 17584done 17585 done 17586IFS=$as_save_IFS 17587 17588 ;; 17589esac 17590fi 17591FOP=$ac_cv_path_FOP 17592if test -n "$FOP"; then 17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17594$as_echo "$FOP" >&6; } 17595else 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17597$as_echo "no" >&6; } 17598fi 17599 17600 17601 if test "x$FOP" = "x"; then 17602 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 17603 fi 17604 have_fop=yes 17605elif test "x$use_fop" = x"no" ; then 17606 if test "x$FOP" != "x"; then 17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 17608$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 17609 fi 17610 have_fop=no 17611else 17612 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 17613fi 17614 17615# Test for a minimum version of fop, if provided. 17616 17617 if test "$have_fop" = yes; then 17618 HAVE_FOP_TRUE= 17619 HAVE_FOP_FALSE='#' 17620else 17621 HAVE_FOP_TRUE='#' 17622 HAVE_FOP_FALSE= 17623fi 17624 17625 17626 17627 17628# Preserves the interface, should it be implemented later 17629 17630 17631 17632# Check whether --with-xsltproc was given. 17633if test "${with_xsltproc+set}" = set; then : 17634 withval=$with_xsltproc; use_xsltproc=$withval 17635else 17636 use_xsltproc=auto 17637fi 17638 17639 17640 17641if test "x$use_xsltproc" = x"auto"; then 17642 # Extract the first word of "xsltproc", so it can be a program name with args. 17643set dummy xsltproc; ac_word=$2 17644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17645$as_echo_n "checking for $ac_word... " >&6; } 17646if ${ac_cv_path_XSLTPROC+:} false; then : 17647 $as_echo_n "(cached) " >&6 17648else 17649 case $XSLTPROC in 17650 [\\/]* | ?:[\\/]*) 17651 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 17652 ;; 17653 *) 17654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17655for as_dir in $PATH 17656do 17657 IFS=$as_save_IFS 17658 test -z "$as_dir" && as_dir=. 17659 for ac_exec_ext in '' $ac_executable_extensions; do 17660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17661 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 17662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17663 break 2 17664 fi 17665done 17666 done 17667IFS=$as_save_IFS 17668 17669 ;; 17670esac 17671fi 17672XSLTPROC=$ac_cv_path_XSLTPROC 17673if test -n "$XSLTPROC"; then 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 17675$as_echo "$XSLTPROC" >&6; } 17676else 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17678$as_echo "no" >&6; } 17679fi 17680 17681 17682 if test "x$XSLTPROC" = "x"; then 17683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 17684$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 17685 have_xsltproc=no 17686 else 17687 have_xsltproc=yes 17688 fi 17689elif test "x$use_xsltproc" = x"yes" ; then 17690 # Extract the first word of "xsltproc", so it can be a program name with args. 17691set dummy xsltproc; ac_word=$2 17692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17693$as_echo_n "checking for $ac_word... " >&6; } 17694if ${ac_cv_path_XSLTPROC+:} false; then : 17695 $as_echo_n "(cached) " >&6 17696else 17697 case $XSLTPROC in 17698 [\\/]* | ?:[\\/]*) 17699 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 17700 ;; 17701 *) 17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17703for as_dir in $PATH 17704do 17705 IFS=$as_save_IFS 17706 test -z "$as_dir" && as_dir=. 17707 for ac_exec_ext in '' $ac_executable_extensions; do 17708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17709 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 17710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17711 break 2 17712 fi 17713done 17714 done 17715IFS=$as_save_IFS 17716 17717 ;; 17718esac 17719fi 17720XSLTPROC=$ac_cv_path_XSLTPROC 17721if test -n "$XSLTPROC"; then 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 17723$as_echo "$XSLTPROC" >&6; } 17724else 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17726$as_echo "no" >&6; } 17727fi 17728 17729 17730 if test "x$XSLTPROC" = "x"; then 17731 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 17732 fi 17733 have_xsltproc=yes 17734elif test "x$use_xsltproc" = x"no" ; then 17735 if test "x$XSLTPROC" != "x"; then 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 17737$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 17738 fi 17739 have_xsltproc=no 17740else 17741 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 17742fi 17743 17744 if test "$have_xsltproc" = yes; then 17745 HAVE_XSLTPROC_TRUE= 17746 HAVE_XSLTPROC_FALSE='#' 17747else 17748 HAVE_XSLTPROC_TRUE='#' 17749 HAVE_XSLTPROC_FALSE= 17750fi 17751 17752 17753 17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 17755$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 17756XORG_SGML_PATH= 17757if test -n "$PKG_CONFIG" && \ 17758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 17759 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 17760 ac_status=$? 17761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17762 test $ac_status = 0; }; then 17763 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 17764else 17765 : 17766 17767fi 17768 17769# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 17770# the path and the name of the doc stylesheet 17771if test "x$XORG_SGML_PATH" != "x" ; then 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 17773$as_echo "$XORG_SGML_PATH" >&6; } 17774 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 17775 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 17776else 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17778$as_echo "no" >&6; } 17779fi 17780 17781 17782 17783 17784 if test "x$XSL_STYLESHEET" != "x"; then 17785 HAVE_STYLESHEETS_TRUE= 17786 HAVE_STYLESHEETS_FALSE='#' 17787else 17788 HAVE_STYLESHEETS_TRUE='#' 17789 HAVE_STYLESHEETS_FALSE= 17790fi 17791 17792 17793 17794# Obtain compiler/linker options for depedencies 17795 17796pkg_failed=no 17797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5 17798$as_echo_n "checking for SM... " >&6; } 17799 17800if test -n "$SM_CFLAGS"; then 17801 pkg_cv_SM_CFLAGS="$SM_CFLAGS" 17802 elif test -n "$PKG_CONFIG"; then 17803 if test -n "$PKG_CONFIG" && \ 17804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5 17805 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5 17806 ac_status=$? 17807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17808 test $ac_status = 0; }; then 17809 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0.5 xproto xtrans" 2>/dev/null` 17810else 17811 pkg_failed=yes 17812fi 17813 else 17814 pkg_failed=untried 17815fi 17816if test -n "$SM_LIBS"; then 17817 pkg_cv_SM_LIBS="$SM_LIBS" 17818 elif test -n "$PKG_CONFIG"; then 17819 if test -n "$PKG_CONFIG" && \ 17820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5 17821 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5 17822 ac_status=$? 17823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17824 test $ac_status = 0; }; then 17825 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.0.5 xproto xtrans" 2>/dev/null` 17826else 17827 pkg_failed=yes 17828fi 17829 else 17830 pkg_failed=untried 17831fi 17832 17833 17834 17835if test $pkg_failed = yes; then 17836 17837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17838 _pkg_short_errors_supported=yes 17839else 17840 _pkg_short_errors_supported=no 17841fi 17842 if test $_pkg_short_errors_supported = yes; then 17843 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice >= 1.0.5 xproto xtrans" 2>&1` 17844 else 17845 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice >= 1.0.5 xproto xtrans" 2>&1` 17846 fi 17847 # Put the nasty error message in config.log where it belongs 17848 echo "$SM_PKG_ERRORS" >&5 17849 17850 as_fn_error $? "Package requirements (ice >= 1.0.5 xproto xtrans) were not met: 17851 17852$SM_PKG_ERRORS 17853 17854Consider adjusting the PKG_CONFIG_PATH environment variable if you 17855installed software in a non-standard prefix. 17856 17857Alternatively, you may set the environment variables SM_CFLAGS 17858and SM_LIBS to avoid the need to call pkg-config. 17859See the pkg-config man page for more details. 17860" "$LINENO" 5 17861elif test $pkg_failed = untried; then 17862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17864as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17865is in your PATH or set the PKG_CONFIG environment variable to the full 17866path to pkg-config. 17867 17868Alternatively, you may set the environment variables SM_CFLAGS 17869and SM_LIBS to avoid the need to call pkg-config. 17870See the pkg-config man page for more details. 17871 17872To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17873See \`config.log' for more details" "$LINENO" 5; } 17874else 17875 SM_CFLAGS=$pkg_cv_SM_CFLAGS 17876 SM_LIBS=$pkg_cv_SM_LIBS 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17878$as_echo "yes" >&6; } 17879 : 17880fi 17881 17882# Needed to check for TCP & IPv6 support and set flags appropriately 17883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 17884$as_echo_n "checking return type of signal handlers... " >&6; } 17885if ${ac_cv_type_signal+:} false; then : 17886 $as_echo_n "(cached) " >&6 17887else 17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17889/* end confdefs.h. */ 17890#include <sys/types.h> 17891#include <signal.h> 17892 17893int 17894main () 17895{ 17896return *(signal (0, 0)) (0) == 1; 17897 ; 17898 return 0; 17899} 17900_ACEOF 17901if ac_fn_c_try_compile "$LINENO"; then : 17902 ac_cv_type_signal=int 17903else 17904 ac_cv_type_signal=void 17905fi 17906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17907fi 17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 17909$as_echo "$ac_cv_type_signal" >&6; } 17910 17911cat >>confdefs.h <<_ACEOF 17912#define RETSIGTYPE $ac_cv_type_signal 17913_ACEOF 17914 17915 17916 17917 17918 17919 case $host_os in 17920 mingw*) unixdef="no" ;; 17921 *) unixdef="yes" ;; 17922 esac 17923 # Check whether --enable-unix-transport was given. 17924if test "${enable_unix_transport+set}" = set; then : 17925 enableval=$enable_unix_transport; UNIXCONN=$enableval 17926else 17927 UNIXCONN=$unixdef 17928fi 17929 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 17931$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 17932 if test "$UNIXCONN" = "yes"; then 17933 17934$as_echo "#define UNIXCONN 1" >>confdefs.h 17935 17936 fi 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 17938$as_echo "$UNIXCONN" >&6; } 17939 # Check whether --enable-tcp-transport was given. 17940if test "${enable_tcp_transport+set}" = set; then : 17941 enableval=$enable_tcp_transport; TCPCONN=$enableval 17942else 17943 TCPCONN=yes 17944fi 17945 17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 17947$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 17949$as_echo "$TCPCONN" >&6; } 17950 if test "$TCPCONN" = "yes"; then 17951 17952$as_echo "#define TCPCONN 1" >>confdefs.h 17953 17954 17955 # SVR4 hides these in libraries other than libc 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 17957$as_echo_n "checking for library containing socket... " >&6; } 17958if ${ac_cv_search_socket+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960else 17961 ac_func_search_save_LIBS=$LIBS 17962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17963/* end confdefs.h. */ 17964 17965/* Override any GCC internal prototype to avoid an error. 17966 Use char because int might match the return type of a GCC 17967 builtin and then its argument prototype would still apply. */ 17968#ifdef __cplusplus 17969extern "C" 17970#endif 17971char socket (); 17972int 17973main () 17974{ 17975return socket (); 17976 ; 17977 return 0; 17978} 17979_ACEOF 17980for ac_lib in '' socket; do 17981 if test -z "$ac_lib"; then 17982 ac_res="none required" 17983 else 17984 ac_res=-l$ac_lib 17985 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17986 fi 17987 if ac_fn_c_try_link "$LINENO"; then : 17988 ac_cv_search_socket=$ac_res 17989fi 17990rm -f core conftest.err conftest.$ac_objext \ 17991 conftest$ac_exeext 17992 if ${ac_cv_search_socket+:} false; then : 17993 break 17994fi 17995done 17996if ${ac_cv_search_socket+:} false; then : 17997 17998else 17999 ac_cv_search_socket=no 18000fi 18001rm conftest.$ac_ext 18002LIBS=$ac_func_search_save_LIBS 18003fi 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18005$as_echo "$ac_cv_search_socket" >&6; } 18006ac_res=$ac_cv_search_socket 18007if test "$ac_res" != no; then : 18008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18009 18010fi 18011 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18013$as_echo_n "checking for library containing gethostbyname... " >&6; } 18014if ${ac_cv_search_gethostbyname+:} false; then : 18015 $as_echo_n "(cached) " >&6 18016else 18017 ac_func_search_save_LIBS=$LIBS 18018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18019/* end confdefs.h. */ 18020 18021/* Override any GCC internal prototype to avoid an error. 18022 Use char because int might match the return type of a GCC 18023 builtin and then its argument prototype would still apply. */ 18024#ifdef __cplusplus 18025extern "C" 18026#endif 18027char gethostbyname (); 18028int 18029main () 18030{ 18031return gethostbyname (); 18032 ; 18033 return 0; 18034} 18035_ACEOF 18036for ac_lib in '' nsl; do 18037 if test -z "$ac_lib"; then 18038 ac_res="none required" 18039 else 18040 ac_res=-l$ac_lib 18041 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18042 fi 18043 if ac_fn_c_try_link "$LINENO"; then : 18044 ac_cv_search_gethostbyname=$ac_res 18045fi 18046rm -f core conftest.err conftest.$ac_objext \ 18047 conftest$ac_exeext 18048 if ${ac_cv_search_gethostbyname+:} false; then : 18049 break 18050fi 18051done 18052if ${ac_cv_search_gethostbyname+:} false; then : 18053 18054else 18055 ac_cv_search_gethostbyname=no 18056fi 18057rm conftest.$ac_ext 18058LIBS=$ac_func_search_save_LIBS 18059fi 18060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18061$as_echo "$ac_cv_search_gethostbyname" >&6; } 18062ac_res=$ac_cv_search_gethostbyname 18063if test "$ac_res" != no; then : 18064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18065 18066fi 18067 18068 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18070$as_echo_n "checking for main in -lws2_32... " >&6; } 18071if ${ac_cv_lib_ws2_32_main+:} false; then : 18072 $as_echo_n "(cached) " >&6 18073else 18074 ac_check_lib_save_LIBS=$LIBS 18075LIBS="-lws2_32 $LIBS" 18076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18077/* end confdefs.h. */ 18078 18079 18080int 18081main () 18082{ 18083return main (); 18084 ; 18085 return 0; 18086} 18087_ACEOF 18088if ac_fn_c_try_link "$LINENO"; then : 18089 ac_cv_lib_ws2_32_main=yes 18090else 18091 ac_cv_lib_ws2_32_main=no 18092fi 18093rm -f core conftest.err conftest.$ac_objext \ 18094 conftest$ac_exeext conftest.$ac_ext 18095LIBS=$ac_check_lib_save_LIBS 18096fi 18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18098$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18099if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18100 cat >>confdefs.h <<_ACEOF 18101#define HAVE_LIBWS2_32 1 18102_ACEOF 18103 18104 LIBS="-lws2_32 $LIBS" 18105 18106fi 18107ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 18108 18109 fi 18110 18111 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18112 # Check whether --enable-ipv6 was given. 18113if test "${enable_ipv6+set}" = set; then : 18114 enableval=$enable_ipv6; IPV6CONN=$enableval 18115else 18116 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18117if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18118 IPV6CONN=yes 18119else 18120 IPV6CONN=no 18121fi 18122 18123fi 18124 18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18126$as_echo_n "checking if IPv6 support should be built... " >&6; } 18127 if test "$IPV6CONN" = "yes"; then 18128 18129$as_echo "#define IPv6 1" >>confdefs.h 18130 18131 fi 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18133$as_echo "$IPV6CONN" >&6; } 18134 18135 # 4.3BSD-Reno added a new member to struct sockaddr_in 18136 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18137#include <sys/types.h> 18138#include <sys/socket.h> 18139#include <netinet/in.h> 18140 18141" 18142if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18143 18144$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18145 18146fi 18147 18148 18149 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18150 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18151$ac_includes_default 18152#include <sys/socket.h> 18153" 18154if test "x$ac_cv_type_socklen_t" = xyes; then : 18155 18156cat >>confdefs.h <<_ACEOF 18157#define HAVE_SOCKLEN_T 1 18158_ACEOF 18159 18160 18161fi 18162 18163 18164 18165 fi 18166 case $host_os in 18167 solaris*|sco*|sysv4*) localdef="yes" ;; 18168 *) localdef="no" ;; 18169 esac 18170 # Check whether --enable-local-transport was given. 18171if test "${enable_local_transport+set}" = set; then : 18172 enableval=$enable_local_transport; LOCALCONN=$enableval 18173else 18174 LOCALCONN=$localdef 18175fi 18176 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 18178$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 18180$as_echo "$LOCALCONN" >&6; } 18181 if test "$LOCALCONN" = "yes"; then 18182 18183$as_echo "#define LOCALCONN 1" >>confdefs.h 18184 18185 fi 18186 18187 18188 18189 18190# Check whether --with-libuuid was given. 18191if test "${with_libuuid+set}" = set; then : 18192 withval=$with_libuuid; 18193fi 18194 18195 18196for ac_func in uuid_create 18197do : 18198 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create" 18199if test "x$ac_cv_func_uuid_create" = xyes; then : 18200 cat >>confdefs.h <<_ACEOF 18201#define HAVE_UUID_CREATE 1 18202_ACEOF 18203 18204else 18205 18206 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then 18207 18208pkg_failed=no 18209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5 18210$as_echo_n "checking for LIBUUID... " >&6; } 18211 18212if test -n "$LIBUUID_CFLAGS"; then 18213 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 18214 elif test -n "$PKG_CONFIG"; then 18215 if test -n "$PKG_CONFIG" && \ 18216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 18217 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 18218 ac_status=$? 18219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18220 test $ac_status = 0; }; then 18221 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null` 18222else 18223 pkg_failed=yes 18224fi 18225 else 18226 pkg_failed=untried 18227fi 18228if test -n "$LIBUUID_LIBS"; then 18229 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 18230 elif test -n "$PKG_CONFIG"; then 18231 if test -n "$PKG_CONFIG" && \ 18232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 18233 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 18234 ac_status=$? 18235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18236 test $ac_status = 0; }; then 18237 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null` 18238else 18239 pkg_failed=yes 18240fi 18241 else 18242 pkg_failed=untried 18243fi 18244 18245 18246 18247if test $pkg_failed = yes; then 18248 18249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18250 _pkg_short_errors_supported=yes 18251else 18252 _pkg_short_errors_supported=no 18253fi 18254 if test $_pkg_short_errors_supported = yes; then 18255 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1` 18256 else 18257 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1` 18258 fi 18259 # Put the nasty error message in config.log where it belongs 18260 echo "$LIBUUID_PKG_ERRORS" >&5 18261 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18263$as_echo "no" >&6; } 18264 HAVE_LIBUUID=no 18265elif test $pkg_failed = untried; then 18266 HAVE_LIBUUID=no 18267else 18268 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 18269 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18271$as_echo "yes" >&6; } 18272 HAVE_LIBUUID=yes 18273fi 18274 fi 18275 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then 18276 as_fn_error $? "requested libuuid support but uuid.pc not found" "$LINENO" 5 18277 fi 18278 18279fi 18280done 18281 18282 18283 if test x"$HAVE_LIBUUID" = xyes; then 18284 WITH_LIBUUID_TRUE= 18285 WITH_LIBUUID_FALSE='#' 18286else 18287 WITH_LIBUUID_TRUE='#' 18288 WITH_LIBUUID_FALSE= 18289fi 18290 18291 18292ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc" 18293 18294cat >confcache <<\_ACEOF 18295# This file is a shell script that caches the results of configure 18296# tests run on this system so they can be shared between configure 18297# scripts and configure runs, see configure's option --config-cache. 18298# It is not useful on other systems. If it contains results you don't 18299# want to keep, you may remove or edit it. 18300# 18301# config.status only pays attention to the cache file if you give it 18302# the --recheck option to rerun configure. 18303# 18304# `ac_cv_env_foo' variables (set or unset) will be overridden when 18305# loading this file, other *unset* `ac_cv_foo' will be assigned the 18306# following values. 18307 18308_ACEOF 18309 18310# The following way of writing the cache mishandles newlines in values, 18311# but we know of no workaround that is simple, portable, and efficient. 18312# So, we kill variables containing newlines. 18313# Ultrix sh set writes to stderr and can't be redirected directly, 18314# and sets the high bit in the cache file unless we assign to the vars. 18315( 18316 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18317 eval ac_val=\$$ac_var 18318 case $ac_val in #( 18319 *${as_nl}*) 18320 case $ac_var in #( 18321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18323 esac 18324 case $ac_var in #( 18325 _ | IFS | as_nl) ;; #( 18326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18327 *) { eval $ac_var=; unset $ac_var;} ;; 18328 esac ;; 18329 esac 18330 done 18331 18332 (set) 2>&1 | 18333 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18334 *${as_nl}ac_space=\ *) 18335 # `set' does not quote correctly, so add quotes: double-quote 18336 # substitution turns \\\\ into \\, and sed turns \\ into \. 18337 sed -n \ 18338 "s/'/'\\\\''/g; 18339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18340 ;; #( 18341 *) 18342 # `set' quotes correctly as required by POSIX, so do not add quotes. 18343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18344 ;; 18345 esac | 18346 sort 18347) | 18348 sed ' 18349 /^ac_cv_env_/b end 18350 t clear 18351 :clear 18352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18353 t end 18354 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18355 :end' >>confcache 18356if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18357 if test -w "$cache_file"; then 18358 if test "x$cache_file" != "x/dev/null"; then 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18360$as_echo "$as_me: updating cache $cache_file" >&6;} 18361 if test ! -f "$cache_file" || test -h "$cache_file"; then 18362 cat confcache >"$cache_file" 18363 else 18364 case $cache_file in #( 18365 */* | ?:*) 18366 mv -f confcache "$cache_file"$$ && 18367 mv -f "$cache_file"$$ "$cache_file" ;; #( 18368 *) 18369 mv -f confcache "$cache_file" ;; 18370 esac 18371 fi 18372 fi 18373 else 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18375$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18376 fi 18377fi 18378rm -f confcache 18379 18380test "x$prefix" = xNONE && prefix=$ac_default_prefix 18381# Let make expand exec_prefix. 18382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18383 18384DEFS=-DHAVE_CONFIG_H 18385 18386ac_libobjs= 18387ac_ltlibobjs= 18388U= 18389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18390 # 1. Remove the extension, and $U if already installed. 18391 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18392 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18394 # will be set to the directory where LIBOBJS objects are built. 18395 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18396 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18397done 18398LIBOBJS=$ac_libobjs 18399 18400LTLIBOBJS=$ac_ltlibobjs 18401 18402 18403 if test -n "$EXEEXT"; then 18404 am__EXEEXT_TRUE= 18405 am__EXEEXT_FALSE='#' 18406else 18407 am__EXEEXT_TRUE='#' 18408 am__EXEEXT_FALSE= 18409fi 18410 18411if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18412 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18413Usually this means the macro was only invoked conditionally." "$LINENO" 5 18414fi 18415if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18416 as_fn_error $? "conditional \"AMDEP\" was never defined. 18417Usually this means the macro was only invoked conditionally." "$LINENO" 5 18418fi 18419if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18420 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18421Usually this means the macro was only invoked conditionally." "$LINENO" 5 18422fi 18423if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 18424 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 18425Usually this means the macro was only invoked conditionally." "$LINENO" 5 18426fi 18427if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18428 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18429Usually this means the macro was only invoked conditionally." "$LINENO" 5 18430fi 18431if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18432 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18433Usually this means the macro was only invoked conditionally." "$LINENO" 5 18434fi 18435if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18436 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18437Usually this means the macro was only invoked conditionally." "$LINENO" 5 18438fi 18439if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18440 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18441Usually this means the macro was only invoked conditionally." "$LINENO" 5 18442fi 18443if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18444 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18445Usually this means the macro was only invoked conditionally." "$LINENO" 5 18446fi 18447if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then 18448 as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined. 18449Usually this means the macro was only invoked conditionally." "$LINENO" 5 18450fi 18451 18452: "${CONFIG_STATUS=./config.status}" 18453ac_write_fail=0 18454ac_clean_files_save=$ac_clean_files 18455ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18456{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18457$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18458as_write_fail=0 18459cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18460#! $SHELL 18461# Generated by $as_me. 18462# Run this file to recreate the current configuration. 18463# Compiler output produced by configure, useful for debugging 18464# configure, is in config.log if it exists. 18465 18466debug=false 18467ac_cs_recheck=false 18468ac_cs_silent=false 18469 18470SHELL=\${CONFIG_SHELL-$SHELL} 18471export SHELL 18472_ASEOF 18473cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18474## -------------------- ## 18475## M4sh Initialization. ## 18476## -------------------- ## 18477 18478# Be more Bourne compatible 18479DUALCASE=1; export DUALCASE # for MKS sh 18480if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18481 emulate sh 18482 NULLCMD=: 18483 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18484 # is contrary to our usage. Disable this feature. 18485 alias -g '${1+"$@"}'='"$@"' 18486 setopt NO_GLOB_SUBST 18487else 18488 case `(set -o) 2>/dev/null` in #( 18489 *posix*) : 18490 set -o posix ;; #( 18491 *) : 18492 ;; 18493esac 18494fi 18495 18496 18497as_nl=' 18498' 18499export as_nl 18500# Printing a long string crashes Solaris 7 /usr/bin/printf. 18501as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18502as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18504# Prefer a ksh shell builtin over an external printf program on Solaris, 18505# but without wasting forks for bash or zsh. 18506if test -z "$BASH_VERSION$ZSH_VERSION" \ 18507 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18508 as_echo='print -r --' 18509 as_echo_n='print -rn --' 18510elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18511 as_echo='printf %s\n' 18512 as_echo_n='printf %s' 18513else 18514 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18515 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18516 as_echo_n='/usr/ucb/echo -n' 18517 else 18518 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18519 as_echo_n_body='eval 18520 arg=$1; 18521 case $arg in #( 18522 *"$as_nl"*) 18523 expr "X$arg" : "X\\(.*\\)$as_nl"; 18524 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18525 esac; 18526 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18527 ' 18528 export as_echo_n_body 18529 as_echo_n='sh -c $as_echo_n_body as_echo' 18530 fi 18531 export as_echo_body 18532 as_echo='sh -c $as_echo_body as_echo' 18533fi 18534 18535# The user is always right. 18536if test "${PATH_SEPARATOR+set}" != set; then 18537 PATH_SEPARATOR=: 18538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18539 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18540 PATH_SEPARATOR=';' 18541 } 18542fi 18543 18544 18545# IFS 18546# We need space, tab and new line, in precisely that order. Quoting is 18547# there to prevent editors from complaining about space-tab. 18548# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18549# splitting by setting IFS to empty value.) 18550IFS=" "" $as_nl" 18551 18552# Find who we are. Look in the path if we contain no directory separator. 18553as_myself= 18554case $0 in #(( 18555 *[\\/]* ) as_myself=$0 ;; 18556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18557for as_dir in $PATH 18558do 18559 IFS=$as_save_IFS 18560 test -z "$as_dir" && as_dir=. 18561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18562 done 18563IFS=$as_save_IFS 18564 18565 ;; 18566esac 18567# We did not find ourselves, most probably we were run as `sh COMMAND' 18568# in which case we are not to be found in the path. 18569if test "x$as_myself" = x; then 18570 as_myself=$0 18571fi 18572if test ! -f "$as_myself"; then 18573 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18574 exit 1 18575fi 18576 18577# Unset variables that we do not need and which cause bugs (e.g. in 18578# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18579# suppresses any "Segmentation fault" message there. '((' could 18580# trigger a bug in pdksh 5.2.14. 18581for as_var in BASH_ENV ENV MAIL MAILPATH 18582do eval test x\${$as_var+set} = xset \ 18583 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18584done 18585PS1='$ ' 18586PS2='> ' 18587PS4='+ ' 18588 18589# NLS nuisances. 18590LC_ALL=C 18591export LC_ALL 18592LANGUAGE=C 18593export LANGUAGE 18594 18595# CDPATH. 18596(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18597 18598 18599# as_fn_error STATUS ERROR [LINENO LOG_FD] 18600# ---------------------------------------- 18601# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18602# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18603# script with STATUS, using 1 if that was 0. 18604as_fn_error () 18605{ 18606 as_status=$1; test $as_status -eq 0 && as_status=1 18607 if test "$4"; then 18608 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18609 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18610 fi 18611 $as_echo "$as_me: error: $2" >&2 18612 as_fn_exit $as_status 18613} # as_fn_error 18614 18615 18616# as_fn_set_status STATUS 18617# ----------------------- 18618# Set $? to STATUS, without forking. 18619as_fn_set_status () 18620{ 18621 return $1 18622} # as_fn_set_status 18623 18624# as_fn_exit STATUS 18625# ----------------- 18626# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18627as_fn_exit () 18628{ 18629 set +e 18630 as_fn_set_status $1 18631 exit $1 18632} # as_fn_exit 18633 18634# as_fn_unset VAR 18635# --------------- 18636# Portably unset VAR. 18637as_fn_unset () 18638{ 18639 { eval $1=; unset $1;} 18640} 18641as_unset=as_fn_unset 18642# as_fn_append VAR VALUE 18643# ---------------------- 18644# Append the text in VALUE to the end of the definition contained in VAR. Take 18645# advantage of any shell optimizations that allow amortized linear growth over 18646# repeated appends, instead of the typical quadratic growth present in naive 18647# implementations. 18648if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18649 eval 'as_fn_append () 18650 { 18651 eval $1+=\$2 18652 }' 18653else 18654 as_fn_append () 18655 { 18656 eval $1=\$$1\$2 18657 } 18658fi # as_fn_append 18659 18660# as_fn_arith ARG... 18661# ------------------ 18662# Perform arithmetic evaluation on the ARGs, and store the result in the 18663# global $as_val. Take advantage of shells that can avoid forks. The arguments 18664# must be portable across $(()) and expr. 18665if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18666 eval 'as_fn_arith () 18667 { 18668 as_val=$(( $* )) 18669 }' 18670else 18671 as_fn_arith () 18672 { 18673 as_val=`expr "$@" || test $? -eq 1` 18674 } 18675fi # as_fn_arith 18676 18677 18678if expr a : '\(a\)' >/dev/null 2>&1 && 18679 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18680 as_expr=expr 18681else 18682 as_expr=false 18683fi 18684 18685if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18686 as_basename=basename 18687else 18688 as_basename=false 18689fi 18690 18691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18692 as_dirname=dirname 18693else 18694 as_dirname=false 18695fi 18696 18697as_me=`$as_basename -- "$0" || 18698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18699 X"$0" : 'X\(//\)$' \| \ 18700 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18701$as_echo X/"$0" | 18702 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18703 s//\1/ 18704 q 18705 } 18706 /^X\/\(\/\/\)$/{ 18707 s//\1/ 18708 q 18709 } 18710 /^X\/\(\/\).*/{ 18711 s//\1/ 18712 q 18713 } 18714 s/.*/./; q'` 18715 18716# Avoid depending upon Character Ranges. 18717as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18718as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18719as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18720as_cr_digits='0123456789' 18721as_cr_alnum=$as_cr_Letters$as_cr_digits 18722 18723ECHO_C= ECHO_N= ECHO_T= 18724case `echo -n x` in #((((( 18725-n*) 18726 case `echo 'xy\c'` in 18727 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18728 xy) ECHO_C='\c';; 18729 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18730 ECHO_T=' ';; 18731 esac;; 18732*) 18733 ECHO_N='-n';; 18734esac 18735 18736rm -f conf$$ conf$$.exe conf$$.file 18737if test -d conf$$.dir; then 18738 rm -f conf$$.dir/conf$$.file 18739else 18740 rm -f conf$$.dir 18741 mkdir conf$$.dir 2>/dev/null 18742fi 18743if (echo >conf$$.file) 2>/dev/null; then 18744 if ln -s conf$$.file conf$$ 2>/dev/null; then 18745 as_ln_s='ln -s' 18746 # ... but there are two gotchas: 18747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18749 # In both cases, we have to default to `cp -p'. 18750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18751 as_ln_s='cp -p' 18752 elif ln conf$$.file conf$$ 2>/dev/null; then 18753 as_ln_s=ln 18754 else 18755 as_ln_s='cp -p' 18756 fi 18757else 18758 as_ln_s='cp -p' 18759fi 18760rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18761rmdir conf$$.dir 2>/dev/null 18762 18763 18764# as_fn_mkdir_p 18765# ------------- 18766# Create "$as_dir" as a directory, including parents if necessary. 18767as_fn_mkdir_p () 18768{ 18769 18770 case $as_dir in #( 18771 -*) as_dir=./$as_dir;; 18772 esac 18773 test -d "$as_dir" || eval $as_mkdir_p || { 18774 as_dirs= 18775 while :; do 18776 case $as_dir in #( 18777 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18778 *) as_qdir=$as_dir;; 18779 esac 18780 as_dirs="'$as_qdir' $as_dirs" 18781 as_dir=`$as_dirname -- "$as_dir" || 18782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18783 X"$as_dir" : 'X\(//\)[^/]' \| \ 18784 X"$as_dir" : 'X\(//\)$' \| \ 18785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18786$as_echo X"$as_dir" | 18787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18788 s//\1/ 18789 q 18790 } 18791 /^X\(\/\/\)[^/].*/{ 18792 s//\1/ 18793 q 18794 } 18795 /^X\(\/\/\)$/{ 18796 s//\1/ 18797 q 18798 } 18799 /^X\(\/\).*/{ 18800 s//\1/ 18801 q 18802 } 18803 s/.*/./; q'` 18804 test -d "$as_dir" && break 18805 done 18806 test -z "$as_dirs" || eval "mkdir $as_dirs" 18807 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18808 18809 18810} # as_fn_mkdir_p 18811if mkdir -p . 2>/dev/null; then 18812 as_mkdir_p='mkdir -p "$as_dir"' 18813else 18814 test -d ./-p && rmdir ./-p 18815 as_mkdir_p=false 18816fi 18817 18818if test -x / >/dev/null 2>&1; then 18819 as_test_x='test -x' 18820else 18821 if ls -dL / >/dev/null 2>&1; then 18822 as_ls_L_option=L 18823 else 18824 as_ls_L_option= 18825 fi 18826 as_test_x=' 18827 eval sh -c '\'' 18828 if test -d "$1"; then 18829 test -d "$1/."; 18830 else 18831 case $1 in #( 18832 -*)set "./$1";; 18833 esac; 18834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18835 ???[sx]*):;;*)false;;esac;fi 18836 '\'' sh 18837 ' 18838fi 18839as_executable_p=$as_test_x 18840 18841# Sed expression to map a string onto a valid CPP name. 18842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18843 18844# Sed expression to map a string onto a valid variable name. 18845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18846 18847 18848exec 6>&1 18849## ----------------------------------- ## 18850## Main body of $CONFIG_STATUS script. ## 18851## ----------------------------------- ## 18852_ASEOF 18853test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18854 18855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18856# Save the log message, to keep $0 and so on meaningful, and to 18857# report actual input values of CONFIG_FILES etc. instead of their 18858# values after options handling. 18859ac_log=" 18860This file was extended by libSM $as_me 1.2.1, which was 18861generated by GNU Autoconf 2.68. Invocation command line was 18862 18863 CONFIG_FILES = $CONFIG_FILES 18864 CONFIG_HEADERS = $CONFIG_HEADERS 18865 CONFIG_LINKS = $CONFIG_LINKS 18866 CONFIG_COMMANDS = $CONFIG_COMMANDS 18867 $ $0 $@ 18868 18869on `(hostname || uname -n) 2>/dev/null | sed 1q` 18870" 18871 18872_ACEOF 18873 18874case $ac_config_files in *" 18875"*) set x $ac_config_files; shift; ac_config_files=$*;; 18876esac 18877 18878case $ac_config_headers in *" 18879"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18880esac 18881 18882 18883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18884# Files that config.status was made for. 18885config_files="$ac_config_files" 18886config_headers="$ac_config_headers" 18887config_commands="$ac_config_commands" 18888 18889_ACEOF 18890 18891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18892ac_cs_usage="\ 18893\`$as_me' instantiates files and other configuration actions 18894from templates according to the current configuration. Unless the files 18895and actions are specified as TAGs, all are instantiated by default. 18896 18897Usage: $0 [OPTION]... [TAG]... 18898 18899 -h, --help print this help, then exit 18900 -V, --version print version number and configuration settings, then exit 18901 --config print configuration, then exit 18902 -q, --quiet, --silent 18903 do not print progress messages 18904 -d, --debug don't remove temporary files 18905 --recheck update $as_me by reconfiguring in the same conditions 18906 --file=FILE[:TEMPLATE] 18907 instantiate the configuration file FILE 18908 --header=FILE[:TEMPLATE] 18909 instantiate the configuration header FILE 18910 18911Configuration files: 18912$config_files 18913 18914Configuration headers: 18915$config_headers 18916 18917Configuration commands: 18918$config_commands 18919 18920Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18921 18922_ACEOF 18923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18924ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18925ac_cs_version="\\ 18926libSM config.status 1.2.1 18927configured by $0, generated by GNU Autoconf 2.68, 18928 with options \\"\$ac_cs_config\\" 18929 18930Copyright (C) 2010 Free Software Foundation, Inc. 18931This config.status script is free software; the Free Software Foundation 18932gives unlimited permission to copy, distribute and modify it." 18933 18934ac_pwd='$ac_pwd' 18935srcdir='$srcdir' 18936INSTALL='$INSTALL' 18937MKDIR_P='$MKDIR_P' 18938AWK='$AWK' 18939test -n "\$AWK" || AWK=awk 18940_ACEOF 18941 18942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18943# The default lists apply if the user does not specify any file. 18944ac_need_defaults=: 18945while test $# != 0 18946do 18947 case $1 in 18948 --*=?*) 18949 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18951 ac_shift=: 18952 ;; 18953 --*=) 18954 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18955 ac_optarg= 18956 ac_shift=: 18957 ;; 18958 *) 18959 ac_option=$1 18960 ac_optarg=$2 18961 ac_shift=shift 18962 ;; 18963 esac 18964 18965 case $ac_option in 18966 # Handling of the options. 18967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18968 ac_cs_recheck=: ;; 18969 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18970 $as_echo "$ac_cs_version"; exit ;; 18971 --config | --confi | --conf | --con | --co | --c ) 18972 $as_echo "$ac_cs_config"; exit ;; 18973 --debug | --debu | --deb | --de | --d | -d ) 18974 debug=: ;; 18975 --file | --fil | --fi | --f ) 18976 $ac_shift 18977 case $ac_optarg in 18978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18979 '') as_fn_error $? "missing file argument" ;; 18980 esac 18981 as_fn_append CONFIG_FILES " '$ac_optarg'" 18982 ac_need_defaults=false;; 18983 --header | --heade | --head | --hea ) 18984 $ac_shift 18985 case $ac_optarg in 18986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18987 esac 18988 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18989 ac_need_defaults=false;; 18990 --he | --h) 18991 # Conflict between --help and --header 18992 as_fn_error $? "ambiguous option: \`$1' 18993Try \`$0 --help' for more information.";; 18994 --help | --hel | -h ) 18995 $as_echo "$ac_cs_usage"; exit ;; 18996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18997 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18998 ac_cs_silent=: ;; 18999 19000 # This is an error. 19001 -*) as_fn_error $? "unrecognized option: \`$1' 19002Try \`$0 --help' for more information." ;; 19003 19004 *) as_fn_append ac_config_targets " $1" 19005 ac_need_defaults=false ;; 19006 19007 esac 19008 shift 19009done 19010 19011ac_configure_extra_args= 19012 19013if $ac_cs_silent; then 19014 exec 6>/dev/null 19015 ac_configure_extra_args="$ac_configure_extra_args --silent" 19016fi 19017 19018_ACEOF 19019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19020if \$ac_cs_recheck; then 19021 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19022 shift 19023 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19024 CONFIG_SHELL='$SHELL' 19025 export CONFIG_SHELL 19026 exec "\$@" 19027fi 19028 19029_ACEOF 19030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19031exec 5>>config.log 19032{ 19033 echo 19034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19035## Running $as_me. ## 19036_ASBOX 19037 $as_echo "$ac_log" 19038} >&5 19039 19040_ACEOF 19041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19042# 19043# INIT-COMMANDS 19044# 19045AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19046 19047 19048# The HP-UX ksh and POSIX shell print the target directory to stdout 19049# if CDPATH is set. 19050(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19051 19052sed_quote_subst='$sed_quote_subst' 19053double_quote_subst='$double_quote_subst' 19054delay_variable_subst='$delay_variable_subst' 19055macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19056macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19057enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19058enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19059pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19060enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19061SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19062ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19063host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19064host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19065host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19066build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19067build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19068build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19069SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19070Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19071GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19072EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19073FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19074LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19075NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19076LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19077max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19078ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19079exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19080lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19081lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19082lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19083lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19084lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19085reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19086reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19087OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19088deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19089file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19090file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19091want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19092DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19093sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19094AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19095AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19096archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19097STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19098RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19099old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19100old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19101old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19102lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19103CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19104CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19105compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19106GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19107lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19108lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19109lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19110lt_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"`' 19111nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19112lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19113objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19114MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19115lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19116lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19117lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19118lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19119lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19120need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19121MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19122DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19123NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19124LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19125OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19126OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19127libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19128shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19129extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19130archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19131enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19132export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19133whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19134compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19135old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19136old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19137archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19138archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19139module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19140module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19141with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19142allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19143no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19144hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19145hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 19146hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19147hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19148hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19149hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19150hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19151hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19152inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19153link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19154always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19155export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19156exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19157include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19158prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19159postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19160file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19161variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19162need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19163need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19164version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19165runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19166shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19167shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19168libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19169library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19170soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19171install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19172postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19173postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19174finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19175finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19176hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19177sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19178sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19179hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19180enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19181enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19182enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19183old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19184striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19185 19186LTCC='$LTCC' 19187LTCFLAGS='$LTCFLAGS' 19188compiler='$compiler_DEFAULT' 19189 19190# A function that is used when there is no print builtin or printf. 19191func_fallback_echo () 19192{ 19193 eval 'cat <<_LTECHO_EOF 19194\$1 19195_LTECHO_EOF' 19196} 19197 19198# Quote evaled strings. 19199for var in SHELL \ 19200ECHO \ 19201SED \ 19202GREP \ 19203EGREP \ 19204FGREP \ 19205LD \ 19206NM \ 19207LN_S \ 19208lt_SP2NL \ 19209lt_NL2SP \ 19210reload_flag \ 19211OBJDUMP \ 19212deplibs_check_method \ 19213file_magic_cmd \ 19214file_magic_glob \ 19215want_nocaseglob \ 19216DLLTOOL \ 19217sharedlib_from_linklib_cmd \ 19218AR \ 19219AR_FLAGS \ 19220archiver_list_spec \ 19221STRIP \ 19222RANLIB \ 19223CC \ 19224CFLAGS \ 19225compiler \ 19226lt_cv_sys_global_symbol_pipe \ 19227lt_cv_sys_global_symbol_to_cdecl \ 19228lt_cv_sys_global_symbol_to_c_name_address \ 19229lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19230nm_file_list_spec \ 19231lt_prog_compiler_no_builtin_flag \ 19232lt_prog_compiler_pic \ 19233lt_prog_compiler_wl \ 19234lt_prog_compiler_static \ 19235lt_cv_prog_compiler_c_o \ 19236need_locks \ 19237MANIFEST_TOOL \ 19238DSYMUTIL \ 19239NMEDIT \ 19240LIPO \ 19241OTOOL \ 19242OTOOL64 \ 19243shrext_cmds \ 19244export_dynamic_flag_spec \ 19245whole_archive_flag_spec \ 19246compiler_needs_object \ 19247with_gnu_ld \ 19248allow_undefined_flag \ 19249no_undefined_flag \ 19250hardcode_libdir_flag_spec \ 19251hardcode_libdir_flag_spec_ld \ 19252hardcode_libdir_separator \ 19253exclude_expsyms \ 19254include_expsyms \ 19255file_list_spec \ 19256variables_saved_for_relink \ 19257libname_spec \ 19258library_names_spec \ 19259soname_spec \ 19260install_override_mode \ 19261finish_eval \ 19262old_striplib \ 19263striplib; do 19264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19265 *[\\\\\\\`\\"\\\$]*) 19266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19267 ;; 19268 *) 19269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19270 ;; 19271 esac 19272done 19273 19274# Double-quote double-evaled strings. 19275for var in reload_cmds \ 19276old_postinstall_cmds \ 19277old_postuninstall_cmds \ 19278old_archive_cmds \ 19279extract_expsyms_cmds \ 19280old_archive_from_new_cmds \ 19281old_archive_from_expsyms_cmds \ 19282archive_cmds \ 19283archive_expsym_cmds \ 19284module_cmds \ 19285module_expsym_cmds \ 19286export_symbols_cmds \ 19287prelink_cmds \ 19288postlink_cmds \ 19289postinstall_cmds \ 19290postuninstall_cmds \ 19291finish_cmds \ 19292sys_lib_search_path_spec \ 19293sys_lib_dlsearch_path_spec; do 19294 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19295 *[\\\\\\\`\\"\\\$]*) 19296 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19297 ;; 19298 *) 19299 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19300 ;; 19301 esac 19302done 19303 19304ac_aux_dir='$ac_aux_dir' 19305xsi_shell='$xsi_shell' 19306lt_shell_append='$lt_shell_append' 19307 19308# See if we are running on zsh, and set the options which allow our 19309# commands through without removal of \ escapes INIT. 19310if test -n "\${ZSH_VERSION+set}" ; then 19311 setopt NO_GLOB_SUBST 19312fi 19313 19314 19315 PACKAGE='$PACKAGE' 19316 VERSION='$VERSION' 19317 TIMESTAMP='$TIMESTAMP' 19318 RM='$RM' 19319 ofile='$ofile' 19320 19321 19322 19323 19324_ACEOF 19325 19326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19327 19328# Handling of arguments. 19329for ac_config_target in $ac_config_targets 19330do 19331 case $ac_config_target in 19332 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19333 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19334 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19335 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19336 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19337 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19338 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;; 19339 19340 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19341 esac 19342done 19343 19344 19345# If the user did not use the arguments to specify the items to instantiate, 19346# then the envvar interface is used. Set only those that are not. 19347# We use the long form for the default assignment because of an extremely 19348# bizarre bug on SunOS 4.1.3. 19349if $ac_need_defaults; then 19350 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19351 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19353fi 19354 19355# Have a temporary directory for convenience. Make it in the build tree 19356# simply because there is no reason against having it here, and in addition, 19357# creating and moving files from /tmp can sometimes cause problems. 19358# Hook for its removal unless debugging. 19359# Note that there is a small window in which the directory will not be cleaned: 19360# after its creation but before its name has been assigned to `$tmp'. 19361$debug || 19362{ 19363 tmp= ac_tmp= 19364 trap 'exit_status=$? 19365 : "${ac_tmp:=$tmp}" 19366 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19367' 0 19368 trap 'as_fn_exit 1' 1 2 13 15 19369} 19370# Create a (secure) tmp directory for tmp files. 19371 19372{ 19373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19374 test -d "$tmp" 19375} || 19376{ 19377 tmp=./conf$$-$RANDOM 19378 (umask 077 && mkdir "$tmp") 19379} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19380ac_tmp=$tmp 19381 19382# Set up the scripts for CONFIG_FILES section. 19383# No need to generate them if there are no CONFIG_FILES. 19384# This happens for instance with `./config.status config.h'. 19385if test -n "$CONFIG_FILES"; then 19386 19387 19388ac_cr=`echo X | tr X '\015'` 19389# On cygwin, bash can eat \r inside `` if the user requested igncr. 19390# But we know of no other shell where ac_cr would be empty at this 19391# point, so we can use a bashism as a fallback. 19392if test "x$ac_cr" = x; then 19393 eval ac_cr=\$\'\\r\' 19394fi 19395ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19396if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19397 ac_cs_awk_cr='\\r' 19398else 19399 ac_cs_awk_cr=$ac_cr 19400fi 19401 19402echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19403_ACEOF 19404 19405 19406{ 19407 echo "cat >conf$$subs.awk <<_ACEOF" && 19408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19409 echo "_ACEOF" 19410} >conf$$subs.sh || 19411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19412ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19413ac_delim='%!_!# ' 19414for ac_last_try in false false false false false :; do 19415 . ./conf$$subs.sh || 19416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19417 19418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19419 if test $ac_delim_n = $ac_delim_num; then 19420 break 19421 elif $ac_last_try; then 19422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19423 else 19424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19425 fi 19426done 19427rm -f conf$$subs.sh 19428 19429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19430cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19431_ACEOF 19432sed -n ' 19433h 19434s/^/S["/; s/!.*/"]=/ 19435p 19436g 19437s/^[^!]*!// 19438:repl 19439t repl 19440s/'"$ac_delim"'$// 19441t delim 19442:nl 19443h 19444s/\(.\{148\}\)..*/\1/ 19445t more1 19446s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19447p 19448n 19449b repl 19450:more1 19451s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19452p 19453g 19454s/.\{148\}// 19455t nl 19456:delim 19457h 19458s/\(.\{148\}\)..*/\1/ 19459t more2 19460s/["\\]/\\&/g; s/^/"/; s/$/"/ 19461p 19462b 19463:more2 19464s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19465p 19466g 19467s/.\{148\}// 19468t delim 19469' <conf$$subs.awk | sed ' 19470/^[^""]/{ 19471 N 19472 s/\n// 19473} 19474' >>$CONFIG_STATUS || ac_write_fail=1 19475rm -f conf$$subs.awk 19476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19477_ACAWK 19478cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19479 for (key in S) S_is_set[key] = 1 19480 FS = "" 19481 19482} 19483{ 19484 line = $ 0 19485 nfields = split(line, field, "@") 19486 substed = 0 19487 len = length(field[1]) 19488 for (i = 2; i < nfields; i++) { 19489 key = field[i] 19490 keylen = length(key) 19491 if (S_is_set[key]) { 19492 value = S[key] 19493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19494 len += length(value) + length(field[++i]) 19495 substed = 1 19496 } else 19497 len += 1 + keylen 19498 } 19499 19500 print line 19501} 19502 19503_ACAWK 19504_ACEOF 19505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19506if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19507 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19508else 19509 cat 19510fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19511 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19512_ACEOF 19513 19514# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19515# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19516# trailing colons and then remove the whole line if VPATH becomes empty 19517# (actually we leave an empty line to preserve line numbers). 19518if test "x$srcdir" = x.; then 19519 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19520h 19521s/// 19522s/^/:/ 19523s/[ ]*$/:/ 19524s/:\$(srcdir):/:/g 19525s/:\${srcdir}:/:/g 19526s/:@srcdir@:/:/g 19527s/^:*// 19528s/:*$// 19529x 19530s/\(=[ ]*\).*/\1/ 19531G 19532s/\n// 19533s/^[^=]*=[ ]*$// 19534}' 19535fi 19536 19537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19538fi # test -n "$CONFIG_FILES" 19539 19540# Set up the scripts for CONFIG_HEADERS section. 19541# No need to generate them if there are no CONFIG_HEADERS. 19542# This happens for instance with `./config.status Makefile'. 19543if test -n "$CONFIG_HEADERS"; then 19544cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19545BEGIN { 19546_ACEOF 19547 19548# Transform confdefs.h into an awk script `defines.awk', embedded as 19549# here-document in config.status, that substitutes the proper values into 19550# config.h.in to produce config.h. 19551 19552# Create a delimiter string that does not exist in confdefs.h, to ease 19553# handling of long lines. 19554ac_delim='%!_!# ' 19555for ac_last_try in false false :; do 19556 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19557 if test -z "$ac_tt"; then 19558 break 19559 elif $ac_last_try; then 19560 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19561 else 19562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19563 fi 19564done 19565 19566# For the awk script, D is an array of macro values keyed by name, 19567# likewise P contains macro parameters if any. Preserve backslash 19568# newline sequences. 19569 19570ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19571sed -n ' 19572s/.\{148\}/&'"$ac_delim"'/g 19573t rset 19574:rset 19575s/^[ ]*#[ ]*define[ ][ ]*/ / 19576t def 19577d 19578:def 19579s/\\$// 19580t bsnl 19581s/["\\]/\\&/g 19582s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19583D["\1"]=" \3"/p 19584s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19585d 19586:bsnl 19587s/["\\]/\\&/g 19588s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19589D["\1"]=" \3\\\\\\n"\\/p 19590t cont 19591s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19592t cont 19593d 19594:cont 19595n 19596s/.\{148\}/&'"$ac_delim"'/g 19597t clear 19598:clear 19599s/\\$// 19600t bsnlc 19601s/["\\]/\\&/g; s/^/"/; s/$/"/p 19602d 19603:bsnlc 19604s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19605b cont 19606' <confdefs.h | sed ' 19607s/'"$ac_delim"'/"\\\ 19608"/g' >>$CONFIG_STATUS || ac_write_fail=1 19609 19610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19611 for (key in D) D_is_set[key] = 1 19612 FS = "" 19613} 19614/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19615 line = \$ 0 19616 split(line, arg, " ") 19617 if (arg[1] == "#") { 19618 defundef = arg[2] 19619 mac1 = arg[3] 19620 } else { 19621 defundef = substr(arg[1], 2) 19622 mac1 = arg[2] 19623 } 19624 split(mac1, mac2, "(") #) 19625 macro = mac2[1] 19626 prefix = substr(line, 1, index(line, defundef) - 1) 19627 if (D_is_set[macro]) { 19628 # Preserve the white space surrounding the "#". 19629 print prefix "define", macro P[macro] D[macro] 19630 next 19631 } else { 19632 # Replace #undef with comments. This is necessary, for example, 19633 # in the case of _POSIX_SOURCE, which is predefined and required 19634 # on some systems where configure will not decide to define it. 19635 if (defundef == "undef") { 19636 print "/*", prefix defundef, macro, "*/" 19637 next 19638 } 19639 } 19640} 19641{ print } 19642_ACAWK 19643_ACEOF 19644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19645 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19646fi # test -n "$CONFIG_HEADERS" 19647 19648 19649eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19650shift 19651for ac_tag 19652do 19653 case $ac_tag in 19654 :[FHLC]) ac_mode=$ac_tag; continue;; 19655 esac 19656 case $ac_mode$ac_tag in 19657 :[FHL]*:*);; 19658 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19659 :[FH]-) ac_tag=-:-;; 19660 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19661 esac 19662 ac_save_IFS=$IFS 19663 IFS=: 19664 set x $ac_tag 19665 IFS=$ac_save_IFS 19666 shift 19667 ac_file=$1 19668 shift 19669 19670 case $ac_mode in 19671 :L) ac_source=$1;; 19672 :[FH]) 19673 ac_file_inputs= 19674 for ac_f 19675 do 19676 case $ac_f in 19677 -) ac_f="$ac_tmp/stdin";; 19678 *) # Look for the file first in the build tree, then in the source tree 19679 # (if the path is not absolute). The absolute path cannot be DOS-style, 19680 # because $ac_f cannot contain `:'. 19681 test -f "$ac_f" || 19682 case $ac_f in 19683 [\\/$]*) false;; 19684 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19685 esac || 19686 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19687 esac 19688 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19689 as_fn_append ac_file_inputs " '$ac_f'" 19690 done 19691 19692 # Let's still pretend it is `configure' which instantiates (i.e., don't 19693 # use $as_me), people would be surprised to read: 19694 # /* config.h. Generated by config.status. */ 19695 configure_input='Generated from '` 19696 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19697 `' by configure.' 19698 if test x"$ac_file" != x-; then 19699 configure_input="$ac_file. $configure_input" 19700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19701$as_echo "$as_me: creating $ac_file" >&6;} 19702 fi 19703 # Neutralize special characters interpreted by sed in replacement strings. 19704 case $configure_input in #( 19705 *\&* | *\|* | *\\* ) 19706 ac_sed_conf_input=`$as_echo "$configure_input" | 19707 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19708 *) ac_sed_conf_input=$configure_input;; 19709 esac 19710 19711 case $ac_tag in 19712 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19714 esac 19715 ;; 19716 esac 19717 19718 ac_dir=`$as_dirname -- "$ac_file" || 19719$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19720 X"$ac_file" : 'X\(//\)[^/]' \| \ 19721 X"$ac_file" : 'X\(//\)$' \| \ 19722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19723$as_echo X"$ac_file" | 19724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19725 s//\1/ 19726 q 19727 } 19728 /^X\(\/\/\)[^/].*/{ 19729 s//\1/ 19730 q 19731 } 19732 /^X\(\/\/\)$/{ 19733 s//\1/ 19734 q 19735 } 19736 /^X\(\/\).*/{ 19737 s//\1/ 19738 q 19739 } 19740 s/.*/./; q'` 19741 as_dir="$ac_dir"; as_fn_mkdir_p 19742 ac_builddir=. 19743 19744case "$ac_dir" in 19745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19746*) 19747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19748 # A ".." for each directory in $ac_dir_suffix. 19749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19750 case $ac_top_builddir_sub in 19751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19753 esac ;; 19754esac 19755ac_abs_top_builddir=$ac_pwd 19756ac_abs_builddir=$ac_pwd$ac_dir_suffix 19757# for backward compatibility: 19758ac_top_builddir=$ac_top_build_prefix 19759 19760case $srcdir in 19761 .) # We are building in place. 19762 ac_srcdir=. 19763 ac_top_srcdir=$ac_top_builddir_sub 19764 ac_abs_top_srcdir=$ac_pwd ;; 19765 [\\/]* | ?:[\\/]* ) # Absolute name. 19766 ac_srcdir=$srcdir$ac_dir_suffix; 19767 ac_top_srcdir=$srcdir 19768 ac_abs_top_srcdir=$srcdir ;; 19769 *) # Relative name. 19770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19771 ac_top_srcdir=$ac_top_build_prefix$srcdir 19772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19773esac 19774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19775 19776 19777 case $ac_mode in 19778 :F) 19779 # 19780 # CONFIG_FILE 19781 # 19782 19783 case $INSTALL in 19784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19786 esac 19787 ac_MKDIR_P=$MKDIR_P 19788 case $MKDIR_P in 19789 [\\/$]* | ?:[\\/]* ) ;; 19790 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19791 esac 19792_ACEOF 19793 19794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19795# If the template does not know about datarootdir, expand it. 19796# FIXME: This hack should be removed a few years after 2.60. 19797ac_datarootdir_hack=; ac_datarootdir_seen= 19798ac_sed_dataroot=' 19799/datarootdir/ { 19800 p 19801 q 19802} 19803/@datadir@/p 19804/@docdir@/p 19805/@infodir@/p 19806/@localedir@/p 19807/@mandir@/p' 19808case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19809*datarootdir*) ac_datarootdir_seen=yes;; 19810*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19812$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19813_ACEOF 19814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19815 ac_datarootdir_hack=' 19816 s&@datadir@&$datadir&g 19817 s&@docdir@&$docdir&g 19818 s&@infodir@&$infodir&g 19819 s&@localedir@&$localedir&g 19820 s&@mandir@&$mandir&g 19821 s&\\\${datarootdir}&$datarootdir&g' ;; 19822esac 19823_ACEOF 19824 19825# Neutralize VPATH when `$srcdir' = `.'. 19826# Shell code in configure.ac might set extrasub. 19827# FIXME: do we really want to maintain this feature? 19828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19829ac_sed_extra="$ac_vpsub 19830$extrasub 19831_ACEOF 19832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19833:t 19834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19835s|@configure_input@|$ac_sed_conf_input|;t t 19836s&@top_builddir@&$ac_top_builddir_sub&;t t 19837s&@top_build_prefix@&$ac_top_build_prefix&;t t 19838s&@srcdir@&$ac_srcdir&;t t 19839s&@abs_srcdir@&$ac_abs_srcdir&;t t 19840s&@top_srcdir@&$ac_top_srcdir&;t t 19841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19842s&@builddir@&$ac_builddir&;t t 19843s&@abs_builddir@&$ac_abs_builddir&;t t 19844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19845s&@INSTALL@&$ac_INSTALL&;t t 19846s&@MKDIR_P@&$ac_MKDIR_P&;t t 19847$ac_datarootdir_hack 19848" 19849eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19850 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19851 19852test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19853 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19855 "$ac_tmp/out"`; test -z "$ac_out"; } && 19856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19857which seems to be undefined. Please make sure it is defined" >&5 19858$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19859which seems to be undefined. Please make sure it is defined" >&2;} 19860 19861 rm -f "$ac_tmp/stdin" 19862 case $ac_file in 19863 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19864 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19865 esac \ 19866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19867 ;; 19868 :H) 19869 # 19870 # CONFIG_HEADER 19871 # 19872 if test x"$ac_file" != x-; then 19873 { 19874 $as_echo "/* $configure_input */" \ 19875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19876 } >"$ac_tmp/config.h" \ 19877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19878 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19879 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19880$as_echo "$as_me: $ac_file is unchanged" >&6;} 19881 else 19882 rm -f "$ac_file" 19883 mv "$ac_tmp/config.h" "$ac_file" \ 19884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19885 fi 19886 else 19887 $as_echo "/* $configure_input */" \ 19888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19889 || as_fn_error $? "could not create -" "$LINENO" 5 19890 fi 19891# Compute "$ac_file"'s index in $config_headers. 19892_am_arg="$ac_file" 19893_am_stamp_count=1 19894for _am_header in $config_headers :; do 19895 case $_am_header in 19896 $_am_arg | $_am_arg:* ) 19897 break ;; 19898 * ) 19899 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19900 esac 19901done 19902echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19903$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19904 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19905 X"$_am_arg" : 'X\(//\)$' \| \ 19906 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19907$as_echo X"$_am_arg" | 19908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19909 s//\1/ 19910 q 19911 } 19912 /^X\(\/\/\)[^/].*/{ 19913 s//\1/ 19914 q 19915 } 19916 /^X\(\/\/\)$/{ 19917 s//\1/ 19918 q 19919 } 19920 /^X\(\/\).*/{ 19921 s//\1/ 19922 q 19923 } 19924 s/.*/./; q'`/stamp-h$_am_stamp_count 19925 ;; 19926 19927 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19928$as_echo "$as_me: executing $ac_file commands" >&6;} 19929 ;; 19930 esac 19931 19932 19933 case $ac_file$ac_mode in 19934 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19935 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19936 # are listed without --file. Let's play safe and only enable the eval 19937 # if we detect the quoting. 19938 case $CONFIG_FILES in 19939 *\'*) eval set x "$CONFIG_FILES" ;; 19940 *) set x $CONFIG_FILES ;; 19941 esac 19942 shift 19943 for mf 19944 do 19945 # Strip MF so we end up with the name of the file. 19946 mf=`echo "$mf" | sed -e 's/:.*$//'` 19947 # Check whether this is an Automake generated Makefile or not. 19948 # We used to match only the files named `Makefile.in', but 19949 # some people rename them; so instead we look at the file content. 19950 # Grep'ing the first line is not enough: some people post-process 19951 # each Makefile.in and add a new line on top of each file to say so. 19952 # Grep'ing the whole file is not good either: AIX grep has a line 19953 # limit of 2048, but all sed's we know have understand at least 4000. 19954 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19955 dirpart=`$as_dirname -- "$mf" || 19956$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19957 X"$mf" : 'X\(//\)[^/]' \| \ 19958 X"$mf" : 'X\(//\)$' \| \ 19959 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19960$as_echo X"$mf" | 19961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19962 s//\1/ 19963 q 19964 } 19965 /^X\(\/\/\)[^/].*/{ 19966 s//\1/ 19967 q 19968 } 19969 /^X\(\/\/\)$/{ 19970 s//\1/ 19971 q 19972 } 19973 /^X\(\/\).*/{ 19974 s//\1/ 19975 q 19976 } 19977 s/.*/./; q'` 19978 else 19979 continue 19980 fi 19981 # Extract the definition of DEPDIR, am__include, and am__quote 19982 # from the Makefile without running `make'. 19983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19984 test -z "$DEPDIR" && continue 19985 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19986 test -z "am__include" && continue 19987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19988 # When using ansi2knr, U may be empty or an underscore; expand it 19989 U=`sed -n 's/^U = //p' < "$mf"` 19990 # Find all dependency output files, they are included files with 19991 # $(DEPDIR) in their names. We invoke sed twice because it is the 19992 # simplest approach to changing $(DEPDIR) to its actual value in the 19993 # expansion. 19994 for file in `sed -n " 19995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19997 # Make sure the directory exists. 19998 test -f "$dirpart/$file" && continue 19999 fdir=`$as_dirname -- "$file" || 20000$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20001 X"$file" : 'X\(//\)[^/]' \| \ 20002 X"$file" : 'X\(//\)$' \| \ 20003 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20004$as_echo X"$file" | 20005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20006 s//\1/ 20007 q 20008 } 20009 /^X\(\/\/\)[^/].*/{ 20010 s//\1/ 20011 q 20012 } 20013 /^X\(\/\/\)$/{ 20014 s//\1/ 20015 q 20016 } 20017 /^X\(\/\).*/{ 20018 s//\1/ 20019 q 20020 } 20021 s/.*/./; q'` 20022 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20023 # echo "creating $dirpart/$file" 20024 echo '# dummy' > "$dirpart/$file" 20025 done 20026 done 20027} 20028 ;; 20029 "libtool":C) 20030 20031 # See if we are running on zsh, and set the options which allow our 20032 # commands through without removal of \ escapes. 20033 if test -n "${ZSH_VERSION+set}" ; then 20034 setopt NO_GLOB_SUBST 20035 fi 20036 20037 cfgfile="${ofile}T" 20038 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20039 $RM "$cfgfile" 20040 20041 cat <<_LT_EOF >> "$cfgfile" 20042#! $SHELL 20043 20044# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20045# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20046# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20047# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20048# 20049# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20050# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 20051# Inc. 20052# Written by Gordon Matzigkeit, 1996 20053# 20054# This file is part of GNU Libtool. 20055# 20056# GNU Libtool is free software; you can redistribute it and/or 20057# modify it under the terms of the GNU General Public License as 20058# published by the Free Software Foundation; either version 2 of 20059# the License, or (at your option) any later version. 20060# 20061# As a special exception to the GNU General Public License, 20062# if you distribute this file as part of a program or library that 20063# is built using GNU Libtool, you may include this file under the 20064# same distribution terms that you use for the rest of that program. 20065# 20066# GNU Libtool is distributed in the hope that it will be useful, 20067# but WITHOUT ANY WARRANTY; without even the implied warranty of 20068# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20069# GNU General Public License for more details. 20070# 20071# You should have received a copy of the GNU General Public License 20072# along with GNU Libtool; see the file COPYING. If not, a copy 20073# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20074# obtained by writing to the Free Software Foundation, Inc., 20075# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20076 20077 20078# The names of the tagged configurations supported by this script. 20079available_tags="" 20080 20081# ### BEGIN LIBTOOL CONFIG 20082 20083# Which release of libtool.m4 was used? 20084macro_version=$macro_version 20085macro_revision=$macro_revision 20086 20087# Whether or not to build shared libraries. 20088build_libtool_libs=$enable_shared 20089 20090# Whether or not to build static libraries. 20091build_old_libs=$enable_static 20092 20093# What type of objects to build. 20094pic_mode=$pic_mode 20095 20096# Whether or not to optimize for fast installation. 20097fast_install=$enable_fast_install 20098 20099# Shell to use when invoking shell scripts. 20100SHELL=$lt_SHELL 20101 20102# An echo program that protects backslashes. 20103ECHO=$lt_ECHO 20104 20105# The host system. 20106host_alias=$host_alias 20107host=$host 20108host_os=$host_os 20109 20110# The build system. 20111build_alias=$build_alias 20112build=$build 20113build_os=$build_os 20114 20115# A sed program that does not truncate output. 20116SED=$lt_SED 20117 20118# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20119Xsed="\$SED -e 1s/^X//" 20120 20121# A grep program that handles long lines. 20122GREP=$lt_GREP 20123 20124# An ERE matcher. 20125EGREP=$lt_EGREP 20126 20127# A literal string matcher. 20128FGREP=$lt_FGREP 20129 20130# A BSD- or MS-compatible name lister. 20131NM=$lt_NM 20132 20133# Whether we need soft or hard links. 20134LN_S=$lt_LN_S 20135 20136# What is the maximum length of a command? 20137max_cmd_len=$max_cmd_len 20138 20139# Object file suffix (normally "o"). 20140objext=$ac_objext 20141 20142# Executable file suffix (normally ""). 20143exeext=$exeext 20144 20145# whether the shell understands "unset". 20146lt_unset=$lt_unset 20147 20148# turn spaces into newlines. 20149SP2NL=$lt_lt_SP2NL 20150 20151# turn newlines into spaces. 20152NL2SP=$lt_lt_NL2SP 20153 20154# convert \$build file names to \$host format. 20155to_host_file_cmd=$lt_cv_to_host_file_cmd 20156 20157# convert \$build files to toolchain format. 20158to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20159 20160# An object symbol dumper. 20161OBJDUMP=$lt_OBJDUMP 20162 20163# Method to check whether dependent libraries are shared objects. 20164deplibs_check_method=$lt_deplibs_check_method 20165 20166# Command to use when deplibs_check_method = "file_magic". 20167file_magic_cmd=$lt_file_magic_cmd 20168 20169# How to find potential files when deplibs_check_method = "file_magic". 20170file_magic_glob=$lt_file_magic_glob 20171 20172# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20173want_nocaseglob=$lt_want_nocaseglob 20174 20175# DLL creation program. 20176DLLTOOL=$lt_DLLTOOL 20177 20178# Command to associate shared and link libraries. 20179sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20180 20181# The archiver. 20182AR=$lt_AR 20183 20184# Flags to create an archive. 20185AR_FLAGS=$lt_AR_FLAGS 20186 20187# How to feed a file listing to the archiver. 20188archiver_list_spec=$lt_archiver_list_spec 20189 20190# A symbol stripping program. 20191STRIP=$lt_STRIP 20192 20193# Commands used to install an old-style archive. 20194RANLIB=$lt_RANLIB 20195old_postinstall_cmds=$lt_old_postinstall_cmds 20196old_postuninstall_cmds=$lt_old_postuninstall_cmds 20197 20198# Whether to use a lock for old archive extraction. 20199lock_old_archive_extraction=$lock_old_archive_extraction 20200 20201# A C compiler. 20202LTCC=$lt_CC 20203 20204# LTCC compiler flags. 20205LTCFLAGS=$lt_CFLAGS 20206 20207# Take the output of nm and produce a listing of raw symbols and C names. 20208global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20209 20210# Transform the output of nm in a proper C declaration. 20211global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20212 20213# Transform the output of nm in a C name address pair. 20214global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20215 20216# Transform the output of nm in a C name address pair when lib prefix is needed. 20217global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20218 20219# Specify filename containing input files for \$NM. 20220nm_file_list_spec=$lt_nm_file_list_spec 20221 20222# The root where to search for dependent libraries,and in which our libraries should be installed. 20223lt_sysroot=$lt_sysroot 20224 20225# The name of the directory that contains temporary libtool files. 20226objdir=$objdir 20227 20228# Used to examine libraries when file_magic_cmd begins with "file". 20229MAGIC_CMD=$MAGIC_CMD 20230 20231# Must we lock files when doing compilation? 20232need_locks=$lt_need_locks 20233 20234# Manifest tool. 20235MANIFEST_TOOL=$lt_MANIFEST_TOOL 20236 20237# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20238DSYMUTIL=$lt_DSYMUTIL 20239 20240# Tool to change global to local symbols on Mac OS X. 20241NMEDIT=$lt_NMEDIT 20242 20243# Tool to manipulate fat objects and archives on Mac OS X. 20244LIPO=$lt_LIPO 20245 20246# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20247OTOOL=$lt_OTOOL 20248 20249# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20250OTOOL64=$lt_OTOOL64 20251 20252# Old archive suffix (normally "a"). 20253libext=$libext 20254 20255# Shared library suffix (normally ".so"). 20256shrext_cmds=$lt_shrext_cmds 20257 20258# The commands to extract the exported symbol list from a shared archive. 20259extract_expsyms_cmds=$lt_extract_expsyms_cmds 20260 20261# Variables whose values should be saved in libtool wrapper scripts and 20262# restored at link time. 20263variables_saved_for_relink=$lt_variables_saved_for_relink 20264 20265# Do we need the "lib" prefix for modules? 20266need_lib_prefix=$need_lib_prefix 20267 20268# Do we need a version for libraries? 20269need_version=$need_version 20270 20271# Library versioning type. 20272version_type=$version_type 20273 20274# Shared library runtime path variable. 20275runpath_var=$runpath_var 20276 20277# Shared library path variable. 20278shlibpath_var=$shlibpath_var 20279 20280# Is shlibpath searched before the hard-coded library search path? 20281shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20282 20283# Format of library name prefix. 20284libname_spec=$lt_libname_spec 20285 20286# List of archive names. First name is the real one, the rest are links. 20287# The last name is the one that the linker finds with -lNAME 20288library_names_spec=$lt_library_names_spec 20289 20290# The coded name of the library, if different from the real name. 20291soname_spec=$lt_soname_spec 20292 20293# Permission mode override for installation of shared libraries. 20294install_override_mode=$lt_install_override_mode 20295 20296# Command to use after installation of a shared archive. 20297postinstall_cmds=$lt_postinstall_cmds 20298 20299# Command to use after uninstallation of a shared archive. 20300postuninstall_cmds=$lt_postuninstall_cmds 20301 20302# Commands used to finish a libtool library installation in a directory. 20303finish_cmds=$lt_finish_cmds 20304 20305# As "finish_cmds", except a single script fragment to be evaled but 20306# not shown. 20307finish_eval=$lt_finish_eval 20308 20309# Whether we should hardcode library paths into libraries. 20310hardcode_into_libs=$hardcode_into_libs 20311 20312# Compile-time system search path for libraries. 20313sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20314 20315# Run-time system search path for libraries. 20316sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20317 20318# Whether dlopen is supported. 20319dlopen_support=$enable_dlopen 20320 20321# Whether dlopen of programs is supported. 20322dlopen_self=$enable_dlopen_self 20323 20324# Whether dlopen of statically linked programs is supported. 20325dlopen_self_static=$enable_dlopen_self_static 20326 20327# Commands to strip libraries. 20328old_striplib=$lt_old_striplib 20329striplib=$lt_striplib 20330 20331 20332# The linker used to build libraries. 20333LD=$lt_LD 20334 20335# How to create reloadable object files. 20336reload_flag=$lt_reload_flag 20337reload_cmds=$lt_reload_cmds 20338 20339# Commands used to build an old-style archive. 20340old_archive_cmds=$lt_old_archive_cmds 20341 20342# A language specific compiler. 20343CC=$lt_compiler 20344 20345# Is the compiler the GNU compiler? 20346with_gcc=$GCC 20347 20348# Compiler flag to turn off builtin functions. 20349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20350 20351# Additional compiler flags for building library objects. 20352pic_flag=$lt_lt_prog_compiler_pic 20353 20354# How to pass a linker flag through the compiler. 20355wl=$lt_lt_prog_compiler_wl 20356 20357# Compiler flag to prevent dynamic linking. 20358link_static_flag=$lt_lt_prog_compiler_static 20359 20360# Does compiler simultaneously support -c and -o options? 20361compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20362 20363# Whether or not to add -lc for building shared libraries. 20364build_libtool_need_lc=$archive_cmds_need_lc 20365 20366# Whether or not to disallow shared libs when runtime libs are static. 20367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20368 20369# Compiler flag to allow reflexive dlopens. 20370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20371 20372# Compiler flag to generate shared objects directly from archives. 20373whole_archive_flag_spec=$lt_whole_archive_flag_spec 20374 20375# Whether the compiler copes with passing no objects directly. 20376compiler_needs_object=$lt_compiler_needs_object 20377 20378# Create an old-style archive from a shared archive. 20379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20380 20381# Create a temporary old-style archive to link instead of a shared archive. 20382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20383 20384# Commands used to build a shared archive. 20385archive_cmds=$lt_archive_cmds 20386archive_expsym_cmds=$lt_archive_expsym_cmds 20387 20388# Commands used to build a loadable module if different from building 20389# a shared archive. 20390module_cmds=$lt_module_cmds 20391module_expsym_cmds=$lt_module_expsym_cmds 20392 20393# Whether we are building with GNU ld or not. 20394with_gnu_ld=$lt_with_gnu_ld 20395 20396# Flag that allows shared libraries with undefined symbols to be built. 20397allow_undefined_flag=$lt_allow_undefined_flag 20398 20399# Flag that enforces no undefined symbols. 20400no_undefined_flag=$lt_no_undefined_flag 20401 20402# Flag to hardcode \$libdir into a binary during linking. 20403# This must work even if \$libdir does not exist 20404hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20405 20406# If ld is used when linking, flag to hardcode \$libdir into a binary 20407# during linking. This must work even if \$libdir does not exist. 20408hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20409 20410# Whether we need a single "-rpath" flag with a separated argument. 20411hardcode_libdir_separator=$lt_hardcode_libdir_separator 20412 20413# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20414# DIR into the resulting binary. 20415hardcode_direct=$hardcode_direct 20416 20417# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20418# DIR into the resulting binary and the resulting library dependency is 20419# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20420# library is relocated. 20421hardcode_direct_absolute=$hardcode_direct_absolute 20422 20423# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20424# into the resulting binary. 20425hardcode_minus_L=$hardcode_minus_L 20426 20427# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20428# into the resulting binary. 20429hardcode_shlibpath_var=$hardcode_shlibpath_var 20430 20431# Set to "yes" if building a shared library automatically hardcodes DIR 20432# into the library and all subsequent libraries and executables linked 20433# against it. 20434hardcode_automatic=$hardcode_automatic 20435 20436# Set to yes if linker adds runtime paths of dependent libraries 20437# to runtime path list. 20438inherit_rpath=$inherit_rpath 20439 20440# Whether libtool must link a program against all its dependency libraries. 20441link_all_deplibs=$link_all_deplibs 20442 20443# Set to "yes" if exported symbols are required. 20444always_export_symbols=$always_export_symbols 20445 20446# The commands to list exported symbols. 20447export_symbols_cmds=$lt_export_symbols_cmds 20448 20449# Symbols that should not be listed in the preloaded symbols. 20450exclude_expsyms=$lt_exclude_expsyms 20451 20452# Symbols that must always be exported. 20453include_expsyms=$lt_include_expsyms 20454 20455# Commands necessary for linking programs (against libraries) with templates. 20456prelink_cmds=$lt_prelink_cmds 20457 20458# Commands necessary for finishing linking programs. 20459postlink_cmds=$lt_postlink_cmds 20460 20461# Specify filename containing input files. 20462file_list_spec=$lt_file_list_spec 20463 20464# How to hardcode a shared library path into an executable. 20465hardcode_action=$hardcode_action 20466 20467# ### END LIBTOOL CONFIG 20468 20469_LT_EOF 20470 20471 case $host_os in 20472 aix3*) 20473 cat <<\_LT_EOF >> "$cfgfile" 20474# AIX sometimes has problems with the GCC collect2 program. For some 20475# reason, if we set the COLLECT_NAMES environment variable, the problems 20476# vanish in a puff of smoke. 20477if test "X${COLLECT_NAMES+set}" != Xset; then 20478 COLLECT_NAMES= 20479 export COLLECT_NAMES 20480fi 20481_LT_EOF 20482 ;; 20483 esac 20484 20485 20486ltmain="$ac_aux_dir/ltmain.sh" 20487 20488 20489 # We use sed instead of cat because bash on DJGPP gets confused if 20490 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20491 # text mode, it properly converts lines to CR/LF. This bash problem 20492 # is reportedly fixed, but why not run on old versions too? 20493 sed '$q' "$ltmain" >> "$cfgfile" \ 20494 || (rm -f "$cfgfile"; exit 1) 20495 20496 if test x"$xsi_shell" = xyes; then 20497 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20498func_dirname ()\ 20499{\ 20500\ case ${1} in\ 20501\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20502\ * ) func_dirname_result="${3}" ;;\ 20503\ esac\ 20504} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20505 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20507test 0 -eq $? || _lt_function_replace_fail=: 20508 20509 20510 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20511func_basename ()\ 20512{\ 20513\ func_basename_result="${1##*/}"\ 20514} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20515 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20517test 0 -eq $? || _lt_function_replace_fail=: 20518 20519 20520 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20521func_dirname_and_basename ()\ 20522{\ 20523\ case ${1} in\ 20524\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20525\ * ) func_dirname_result="${3}" ;;\ 20526\ esac\ 20527\ func_basename_result="${1##*/}"\ 20528} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20529 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20531test 0 -eq $? || _lt_function_replace_fail=: 20532 20533 20534 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20535func_stripname ()\ 20536{\ 20537\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20538\ # positional parameters, so assign one to ordinary parameter first.\ 20539\ func_stripname_result=${3}\ 20540\ func_stripname_result=${func_stripname_result#"${1}"}\ 20541\ func_stripname_result=${func_stripname_result%"${2}"}\ 20542} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20543 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20544 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20545test 0 -eq $? || _lt_function_replace_fail=: 20546 20547 20548 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20549func_split_long_opt ()\ 20550{\ 20551\ func_split_long_opt_name=${1%%=*}\ 20552\ func_split_long_opt_arg=${1#*=}\ 20553} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20554 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20556test 0 -eq $? || _lt_function_replace_fail=: 20557 20558 20559 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20560func_split_short_opt ()\ 20561{\ 20562\ func_split_short_opt_arg=${1#??}\ 20563\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20564} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20565 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20567test 0 -eq $? || _lt_function_replace_fail=: 20568 20569 20570 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20571func_lo2o ()\ 20572{\ 20573\ case ${1} in\ 20574\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20575\ *) func_lo2o_result=${1} ;;\ 20576\ esac\ 20577} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20578 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20580test 0 -eq $? || _lt_function_replace_fail=: 20581 20582 20583 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20584func_xform ()\ 20585{\ 20586 func_xform_result=${1%.*}.lo\ 20587} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20588 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20590test 0 -eq $? || _lt_function_replace_fail=: 20591 20592 20593 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20594func_arith ()\ 20595{\ 20596 func_arith_result=$(( $* ))\ 20597} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20598 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20600test 0 -eq $? || _lt_function_replace_fail=: 20601 20602 20603 sed -e '/^func_len ()$/,/^} # func_len /c\ 20604func_len ()\ 20605{\ 20606 func_len_result=${#1}\ 20607} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20608 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20610test 0 -eq $? || _lt_function_replace_fail=: 20611 20612fi 20613 20614if test x"$lt_shell_append" = xyes; then 20615 sed -e '/^func_append ()$/,/^} # func_append /c\ 20616func_append ()\ 20617{\ 20618 eval "${1}+=\\${2}"\ 20619} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20620 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20622test 0 -eq $? || _lt_function_replace_fail=: 20623 20624 20625 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20626func_append_quoted ()\ 20627{\ 20628\ func_quote_for_eval "${2}"\ 20629\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20630} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20631 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20633test 0 -eq $? || _lt_function_replace_fail=: 20634 20635 20636 # Save a `func_append' function call where possible by direct use of '+=' 20637 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20638 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20640 test 0 -eq $? || _lt_function_replace_fail=: 20641else 20642 # Save a `func_append' function call even when '+=' is not available 20643 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20644 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20646 test 0 -eq $? || _lt_function_replace_fail=: 20647fi 20648 20649if test x"$_lt_function_replace_fail" = x":"; then 20650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20651$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20652fi 20653 20654 20655 mv -f "$cfgfile" "$ofile" || 20656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20657 chmod +x "$ofile" 20658 20659 ;; 20660 20661 esac 20662done # for ac_tag 20663 20664 20665as_fn_exit 0 20666_ACEOF 20667ac_clean_files=$ac_clean_files_save 20668 20669test $ac_write_fail = 0 || 20670 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20671 20672 20673# configure is writing to config.log, and then calls config.status. 20674# config.status does its own redirection, appending to config.log. 20675# Unfortunately, on DOS this fails, as config.log is still kept open 20676# by configure, so config.status won't be able to write to it; its 20677# output is simply discarded. So we exec the FD to /dev/null, 20678# effectively closing config.log, so it can be properly (re)opened and 20679# appended to by config.status. When coming back to configure, we 20680# need to make the FD available again. 20681if test "$no_create" != yes; then 20682 ac_cs_success=: 20683 ac_config_status_args= 20684 test "$silent" = yes && 20685 ac_config_status_args="$ac_config_status_args --quiet" 20686 exec 5>/dev/null 20687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20688 exec 5>>config.log 20689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20690 # would make configure fail if this is the last instruction. 20691 $ac_cs_success || as_fn_exit 1 20692fi 20693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20695$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20696fi 20697 20698